Struts - problem with pool connection

C

cccc

Hi,
I want to manage a pool connection with struts framework and Tomcat 5.0.
My RAD is JBuilderX.

I have put this code in the rows struts-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<data-sources>
<data-source key="db">
<set-property property="url" value="jdbc:eek:dbc:wDRG" />
<set-property property="password" value="a" />
<set-property property="user" value="a" />
<set-property property="driverClass" value="javax.sql.DataSource" />
</data-source>
</data-sources>
....
...
..

But this not work.
I have only this message error:
StandardContext[/wdrg]: Servlet /wdrg threw load() exception:
javax.servlet.ServletException: Servlet.init() for servlet action threw
exception

javax.servlet.ServletException: Servlet.init() for servlet action threw
exception

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:96
3)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)

....
...
..


Why?
You can help me?

Thank you,
CC
 
M

Murray

But this not work.
I have only this message error:
StandardContext[/wdrg]: Servlet /wdrg threw load() exception:
javax.servlet.ServletException: Servlet.init() for servlet action threw
exception

javax.servlet.ServletException: Servlet.init() for servlet action threw
exception

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:96
3)

at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)

That could mean almost anything. Try and get access to the real / full
exception stacktrace
 
C

cccc

That could mean almost anything. Try and get access to the real / full
exception stacktrace

This is the stacktrace of server startup:

C:\JBuilderX\jdk1.4\bin\javaw -classpath
"C:\JBuilderX\thirdparty\jakarta-tomcat-4.1.27-LE-jdk14\bin\bootstrap.jar;C:
\JBuilderX\jdk1.4\lib\tools.jar" -Dcatalina.home="C:/JBuilderX/thirdparty/j
akarta-tomcat-4.1.27-LE-jdk14"
org.apache.catalina.startup.Bootstrap -config "C:\Documents and
Settings\Carlo\Desktop\wDRG\Tomcat\conf\server8080.xml" start
15-lug-2004 17.54.31 org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on port 8080

Starting service Tomcat-Standalone

Apache Tomcat/4.1.27-LE-jdk14

HostConfig[localhost]: HostConfig: Processing START

HostConfig[localhost]: Deploying discovered web applications

HostConfig[localhost]: Deploying configuration descriptor jb-wdrg.xml

WebappLoader[/wdrg]: Deploying class repositories to work directory
C:\Documents and Settings\Carlo\Desktop\wDRG\Tomcat\work\wdrg

WebappLoader[/wdrg]: Deploy class files /WEB-INF/classes to C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\classes

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/beandt.jar to C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\beandt.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to
C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\commons-beanutils.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/commons-collections.jar to
C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\commons-collections.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/commons-digester.jar to
C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\commons-digester.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/commons-fileupload.jar to
C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\commons-fileupload.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/commons-lang.jar to
C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\commons-lang.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/commons-logging.jar to
C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\commons-logging.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/commons-validator.jar to
C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\commons-validator.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/dx.jar to C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\dx.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/jakarta-oro.jar to C:\Documents
and Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\jakarta-oro.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/jds.jar to C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\jds.jar

WebappLoader[/wdrg]: Deploy JAR /WEB-INF/lib/struts.jar to C:\Documents and
Settings\Carlo\Desktop\wDRG\wdrg\WEB-INF\lib\struts.jar

WebappLoader[/wdrg]: Reloading checks are enabled for this Context

StandardManager[/wdrg]: Seeding random number generator class
java.security.SecureRandom

StandardManager[/wdrg]: Seeding of random number generator has been
completed

StandardWrapper[/wdrg:default]: Loading container servlet default

15-lug-2004 17.54.33 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true

15-lug-2004 17.54.33 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true

15-lug-2004 17.54.33 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='ApplicationResources', returnNull=true

StandardContext[/wdrg]: Servlet /wdrg threw load() exception:
javax.servlet.ServletException: Servlet.init() for servlet action threw
exception

javax.servlet.ServletException: Servlet.init() for servlet action threw
exception

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:96
3)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)

at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3421)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:700)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)

at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)

at org.apache.commons.digester.Rule.end(Rule.java:276)

at org.apache.commons.digester.Digester.endElement(Digester.java:1058)

at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1683)

at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)

at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)

at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)

at org.apache.commons.digester.Digester.parse(Digester.java:1567)

at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:385)

at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)

at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:442
)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)

at org.apache.catalina.core.StandardService.start(StandardService.java:497)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)

at org.apache.catalina.startup.Catalina.start(Catalina.java:512)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)

at org.apache.catalina.startup.Catalina.process(Catalina.java:180)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

StandardWrapper[/wdrg:invoker]: Loading container servlet invoker

HostConfig[localhost]: Starting background thread

EngineConfig: EngineConfig: Processing START

HostConfig[localhost]: BACKGROUND THREAD Starting

15-lug-2004 17.54.34 org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on port 8080

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/login.jsp'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

15-lug-2004 17.54.34 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

15-lug-2004 17.54.34 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true

15-lug-2004 17.54.34 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

15-lug-2004 17.54.34 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

15-lug-2004 17.54.34 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

15-lug-2004 17.54.34 org.apache.struts.util.PropertyMessageResources <init>

INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/JS/login.js'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/CSS/global.css'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/immagini/logo_login.jpg'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/immagini/logo_login.jpg'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

StandardEngine[Standalone]: Mapping server name 'localhost'

StandardEngine[Standalone]: Trying a direct match

StandardHost[localhost]: Mapping request URI '/wdrg/immagini/logo_login.jpg'

StandardHost[localhost]: Trying the longest context path prefix

StandardHost[localhost]: Mapped to context '/wdrg'

HostConfig[localhost]: Deploying discovered web applications

HostConfig[localhost]: Deploying discovered web applications

HostConfig[localhost]: Deploying discovered web applications
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top