|
Table of Contents
|
|
Labels:
Page:
Change context path
Page:
Change port
Page:
Failed login with UnknownHostException
Page:
Reset admin password
Page:
Uninstall eHour

5 Comments
Hide/Show CommentsOct 30, 2011
Anonymous
I'm installing ehour WAR on a Microsoft Server 2008 R2. At address http://localhost:8080/ehour/ the browser shows the following error:
HTTP Status 404
type Status report
message
description The requested resource () is not available
--------------------------------------------------------------------------------
Apache Tomcat/6.0.33
Apache working properly (as shown on http://localhost:8080/)
Here follows the ehour.xml stored in C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost.
<Context path="/ehour" reloadable="false" cookies="true" docBase="C:/ehour-0.9.1/app/ehour-0.9.1.war">
<Resource name="jdbc/eHourDS"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="Password1!"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/ehour?zeroDateTimeBehavior=convertToNull&useOldAliasMetadataBehavior=true"/>
<!-- Rather than defining an environment variable you can also specify the EHOUR_HOME here
Remove the comment tags and set the absolute path to your eHour home dir as the value.
Please use forward slashes (/) in the path rather than backslashes (\) as is standard on Windows -->
<!--<Parameter name="EHOUR_HOME" value="" override="true" />-->
<ResourceParams name="jdbc/eHourDS">
<parameter>
<name>validationQuery</name>
<value>SELECT 1</value>
</parameter>
<parameter>
<name>testOnBorrow</name>
<value>true</value>
</parameter>
<parameter>
<name>zeroDateTimeBehavior</name>
<value>convertToNull</value>
</parameter>
<parameter>
<name>autoReconnect</name>
<value>true</value>
</parameter>
<parameter>
<name>timeBetweenEvictionRunsMillis</name>
<value>10000</value>
</parameter>
<parameter>
<name>testWhileIdle</name>
<value>true</value>
</parameter>
<parameter>
<name>minEvictableIdleTimeMillis</name>
<value>60000</value>
</parameter>
</ResourceParams>
</Context>
Nov 29, 2011
Anonymous
Even I am getting the same error when I tried deploying the app as per the instructions for war.
Anybody to help please.
Thanks
AK
Nov 30, 2011
Thies Edeling
In case that doesn't work, try to rename the war to ehour.war and change the name in the ehour.xml as well
Mar 14, 2012
Anonymous
even after changing to ehour.war,the same error
Mar 14, 2012
Anonymous
<Context path="/ehour" reloadable="false" cookies="true" docBase="/tmp/ehour-0.9.1/app/ehour.war">
<Resource name="jdbc/eHourDS"
auth="Container"
type="javax.sql.DataSource"
maxActive="100"
maxIdle="30"
maxWait="10000"
username="root"
password="ehour123"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull&useOldAliasMetadataBehavior=true"/>