J2EE JDBC Connections
J2EE JDBC Connections
- Subject: J2EE JDBC Connections
- From: Tom Pelaia <email@hidden>
- Date: Fri, 14 Dec 2007 15:49:39 -0500
Hi,
I have a WebObjects Application that I deploy to the Oracle J2EE
server. It ran as a J2EE WAR when built under WO 5.3.x but not WO 5.4.
I connect using an EO Model and am building using the Xcode build
system since I can't get the new Ant system to deploy.
Here is the error that I am getting. I'm not sure if I need to
configure and JNDI stuff. I don't really know what to put and where
to put it. I've commented out the data source entry in the web.xml
template as the file instructs since I want to connect directly
through the EO Model.
I am getting the following error:
- javax.naming.NameNotFoundException: java:comp/env/jdbc not found in
Logbook
at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:225)
at com.oracle.naming.J2EEContext.lookup(J2EEContext.java:172)
at
com
.evermind
.server.ApplicationContext.lookupInJavaContext(ApplicationContext.java:
308)
at
com
.evermind
.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:
232)
at
com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:
197)
at
com.evermind.server.ApplicationContext.list(ApplicationContext.java:542)
at javax.naming.InitialContext.list(InitialContext.java:395)
at
com
.webobjects
.jdbcadaptor.JDBCContext.setupJndiConfiguration(JDBCContext.java:310)
at com.webobjects.jdbcadaptor.JDBCContext.connect(JDBCContext.java:197)
at
com.webobjects.jdbcadaptor.JDBCContext._tryConnect(JDBCContext.java:362)
at
com
.webobjects.jdbcadaptor.JDBCContext._channelWillOpen(JDBCContext.java:
505)
at
com.webobjects.jdbcadaptor.JDBCChannel.openChannel(JDBCChannel.java:111)
at
com
.webobjects
.eoaccess.EODatabaseChannel._openChannel(EODatabaseChannel.java:714)
at
com
.webobjects
.eoaccess.EODatabaseContext.availableChannel(EODatabaseContext.java:
1324)
at
com
.webobjects
.eoaccess
.EODatabaseContext.forceConnectionWithModel(EODatabaseContext.java:1127)
at
com
.webobjects
.eoaccess.EOUtilities.connectWithModelNamed(EOUtilities.java:840)
at gov.sns.apps.logbook.DirectAction.loginAction(DirectAction.java:74)
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:585)
at
com
.webobjects
.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
at
com
.webobjects
.appserver
._private
.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
at
com
.webobjects
.appserver
._private
.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:161)
at
com
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:
1678)
at
com
.webobjects
.jspservlet
._WOApplicationWrapper
.servletDispatchRequest(_WOApplicationWrapper.java:131)
at
com
.webobjects
.jspservlet.WOServletAdaptor._handleRequest(WOServletAdaptor.java:727)
at
com
.webobjects.jspservlet.WOServletAdaptor.doPost(WOServletAdaptor.java:
695)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
com
.evermind
.server
.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at
com
.evermind
.server
.http
.ServletRequestDispatcher
.forwardInternal(ServletRequestDispatcher.java:370)
at
com
.evermind
.server
.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at
com
.evermind
.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
453)
at
com
.evermind
.server
.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at
com
.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
122)
at
com
.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
111)
at oracle.oc4j.network.ServerSocketReadHandler
$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor
$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:613)
thanks,
tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden