[Nandish S Angadi] Hello,
Trying to implement a test app. with Database connection pooling.
When I start up my Tomcat (4.0.4) the .war file will not even explode. I
have included the relevant chunck of the log file at the end of this mail.
I have removed Tyrex from /common/lib as the classes12.jar in there has a
version of javax.sql.DataSource so I am going to use that. There was also a
copy DataSource.class in jdbc2_0-stdext.jar so I removed that also. But no
effect, my .war still will not explode.
Please help.
In my server.xml I have both <Resource> and <ResourceParams> tags:
<Context path="/langtest" docBase="langtest" debug="3">
<Resource name="jdbc/langtest" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/langtest">
<parameter>
<name>user</name>
<value>andoni</value>
</parameter>
<parameter>
<name>password</name>
<value>mypass</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>driverName</name>
<value>jdbc:oracle:thin:@localhost:1521:orcl</value>
</parameter>
</ResourceParams>
</Context>
and in my web.xml file I have:
<resource-ref>
<res-ref-name>jdbc/langtest</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
This is because the documentation cannot seem to decide if both the
server.xml and web.xml entries are necessary or not?????
Is there anything else I need?
Thanks in advance.
Andoni.
2003-03-19 09:48:06 HttpProcessor[8080][4] Starting background thread
2003-03-19 09:51:29 HttpConnector Opening server socket on all host IP
addresses
2003-03-19 09:51:29 StandardContext[/langtest]: Starting
2003-03-19 09:51:29 StandardContext[/langtest]: Processing start(), current
available=false
2003-03-19 09:51:29 StandardContext[/langtest]: Configuring default
Resources
2003-03-19 09:51:29 StandardContext[/langtest]: Error initializing
resources: Document base C:\tomcat40\webapps\langtest does not exist or is
not a readable directory
******************************************************************************************************
here it says the directory does not exists. So either you create a directory and
place the files by your self
or in the docbase instead of C:\tomcat40\webapps\langtest specify teh .war file itself
suppose the name of teh war file is "myapp.war" and you put in
C:\tomcat40\webapps\myapp.war
your docbase should point to the C:\tomcat40\webapps\myapp.war directly
******************************************************************************************************
2003-03-19 09:51:29 StandardContext[/langtest]: Configuring non-privileged
default Loader
2003-03-19 09:51:29 StandardContext[/langtest]: Configuring default Manager
2003-03-19 09:51:29 StandardContext[/langtest]: Processing standard
container startup
2003-03-19 09:51:29 StandardContext[/langtest]: Context startup failed due
to previous errors
2003-03-19 09:51:29 StandardContext[/langtest]: Stopping
2003-03-19 09:51:29 StandardContext[/langtest]: Stopping filters
2003-03-19 09:51:29 StandardContext[/langtest]: Sending application stop
events
2003-03-19 09:51:29 StandardContext[/langtest]: Processing standard
container shutdown
2003-03-19 09:51:29 StandardContext[/langtest]: Exception during cleanup
after start failed
LifecycleException: Container StandardContext[/langtest] has not been
started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]