Hi,
I'm hoing someone can help me figure out what happened when I checked out my working code on a new machine. I've got my java webapp compiling with no problems on one machine I've been using for a long time, but my new setup is causing warning errors.
The working machine is running my webapp with:
tomcat 6.0.14
JRE 6.0_03
The new machine (with compile warnings) is running my webapp with:
tomcat 6.0.16
JRE 6.0_05
Both machines are using Eclipse 3.3.2 and are connecting to the same remote postgres 8.3.0 database.
I tried getting eclipse to connect to tomcat 6.0.14 to see if that was the problem, but I can't get Eclipse to change over, it just says it can't find 6.0.14, even if I delete the old server settings and set it up again with 6.0.14. I have no idea why this is.
I've tried running my app despite these warnings, but I get a bunch of database connection errors. I'm not sure if the warnings are related to the database connection problems, but I'd like to find out what to do about the tomcat warnings none the less
Jul 7, 2008 6:19:40 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '1' did
not find a matching property.
Jul 7, 2008 6:19:40 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.e
clipse.jst.jee.server:MesEduSchoolsProject' did not find a matching property.
Jul 7, 2008 6:19:40 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production envi
ronments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_05\bin;.;C:\Windows\
Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.6.0_05\bin\client;C:\Program
Files\Java\jre1.6.0_05\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\
ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\QuickTime\QTSystem\
Jul 7, 2008 6:19:40 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 7, 2008 6:19:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 934 ms
Jul 7, 2008 6:19:41 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 7, 2008 6:19:41 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
Jul 7, 2008 6:19:41 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "teska.backend.SessionCounter" is already configured for this context. The duplic
ate definition has been ignored.
Jul 7, 2008 6:19:42 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 7, 2008 6:19:42 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 7, 2008 6:19:42 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/48 config=null
Jul 7, 2008 6:19:42 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1444 ms
My Context file is under: WebContent/META-INF/context.xml
Here is the content:
<Context path="/someApp" docBase="someApp"
crossContext="true" reloadable="true" debug="1">
<Resource name="jdbc/teska_messb1" auth="Container"
type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://69.89.8.218:5432/teska_messb1"
username="teska_admin" password="*******" maxActive="20" maxIdle="10" maxWait="-1"
/>
</Context>
My Eclipse Workspace Directory:
C:\Users\C2 Vista\Documents\Courtenay\Work\ProgrammingApps\eclipse_workspace\
My Webapp
C:\Users\C2 Vista\Documents\Courtenay\Work\ProgrammingApps\eclipse_workspace\MesEduSchoolsProject
My Webapp context file:
C:\Users\C2 Vista\Documents\Courtenay\Work\ProgrammingApps\eclipse_workspace\MesEduSchoolsProject\WebContent\META-INF\context.xml
here is the content:
<Context path="/someApp" docBase="someApp"
crossContext="true" reloadable="true" debug="1">
<Resource name="jdbc/teska_messb1" auth="Container"
type="javax.sql.DataSource" driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://69.89.8.218:5432/teska_messb1"
username="teska_admin" password="*******" maxActive="20" maxIdle="10" maxWait="-1"
/>
</Context>
My tomcat directory:
C:\apache-tomcat-6.0.16
tomcat context.xml:
C:\apache-tomcat-6.0.16\conf\context.xml
here is the content:
<?xml version='1.0' encoding='utf-8'?>
<!-- The contents of this file will be loaded for each web application -->
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
</Context>
Thanks in advance,
Courtenay