I know that this question has been asked a few times, but
none of the responses that I've read have got me through
this.
I'm running the jBoss with Embedded Tomcat:
[EmbeddedTomcatSX] Starting
[EmbeddedTomcatSX] Starting EmbeddedTomcatSX....
2001-06-11 01:28:56 - ContextManager: Adding context Ctx( /examples )
2001-06-11 01:28:56 - ContextManager: Adding context Ctx( /admin )
[EmbeddedTomcatSX] Starting tomcat. Check logs/tomcat.log for error messages
2001-06-11 01:28:56 - ContextManager: Adding context Ctx( )
2001-06-11 01:28:56 - ContextManager: Adding context Ctx( /test )
2001-06-11 01:28:57 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080
2001-06-11 01:28:57 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007
[EmbeddedTomcatSX] OK
[EmbeddedTomcatSX] Started
I've added the resource tag to my web.xml within the war file
that contains the servlet that connects to the database:
<web-app>
<resource-ref>
<res-ref-name>jdbc.atalk</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
The [Auto deploy] says that the datasource is Linked (does this mean
bound?):
[J2EE Deployer Default] Starting module util.war
[Auto deploy] deploy, ctxPath=/util,
warUrl=file:/D:/usr/local/jboss/tmp/deploy/
Default/respond.ear/web1002/
2001-06-11 01:29:07 - ContextManager: Adding context Ctx( /util )
[Auto deploy] AbstractWebContainer.parseWebAppDescriptors, Begin
[Auto deploy] addEnvEntries
[Auto deploy] linkResourceRefs
[Auto deploy] Linking 'jdbc.atalk' to JNDI name: jdbc.atalk
[Auto deploy] linkEjbRefs
[Auto deploy] linkSecurityDomain
[Auto deploy] Binding security/securityMgr to NullSecurityManager
[Auto deploy] AbstractWebContainer.parseWebAppDescriptors, End
[Auto deploy] AbstractWebContainer.parseWebAppDescriptors, Begin
[Auto deploy] addEnvEntries
[Auto deploy] linkResourceRefs
[Auto deploy] Linking 'jdbc.atalk' to JNDI name: jdbc.atalk
[Auto deploy] linkEjbRefs
[Auto deploy] linkSecurityDomain
[Auto deploy] Binding security/securityMgr to NullSecurityManager
[Auto deploy] AbstractWebContainer.parseWebAppDescriptors, End
But when the servlet tries to access the database, I get this:
[main] INFO com.sitraka.util.StartupServlet - Loading UpTime
[main] INFO com.sitraka.util.StartupServlet - Loading CascadeEngine
[main] ERROR com.sitraka.cs.db.impl.DBImpl -
javax.naming.NameNotFoundException: jdbc not bound
I'm running on:
Windows 2000 / MS SQL 7.0
JBoss 2.2.2 /w Tomcat 3.2.2
I have an ear file that contains two war files,
and two ejb jars. Additionally, all the supporting
jars are also included in a 'lib' directory.
-Scott
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user