Patrick,
How are you running jetty? Is it with the maven plugin or is it
standalone?
What jars do you have in WEB-INF/lib? If you are running
standalone, which jars have you placed in $(jetty.home)lib?
Can you look in WEB-INF/lib and $(jetty.home)lib for jars
that contain a file called jndi.properties and post them?
It looks like there are multiple providers for the "java:"
url and the one from apache is being used in preference
to jetty's.
cheers
Jan
J. Patrick Bedell wrote:
> Hi,
> Thanks very much for your reply. I now have the lines in
> WEB-INF/jetty-env.xml of
>
> <New class="org.mortbay.jetty.plus.naming.Resource">
> <Arg>jdbc/icwsDataSource</Arg>
> <Arg>
> <New class="org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource">
> <Set name="DatabaseName"><SystemProperty name="icws.db.name"/></Set>
> <Set name="ConnectionAttributes">bootPassword=<SystemProperty
> name="icws.db.password"/>;encryptionAlgorithm=<SystemProperty
> name="DERBY_ENCRYPTION_ALGORITHM"/>;dataEncryption=true</Set>
> </New>
> </Arg>
> </New>
>
> and the lines in WEB-INF/web.xml of
>
> <resource-ref>
> <res-ref-name>jdbc/icwsDataSource</res-ref-name>
> <res-ref-type>javax.sql.DataSource</res-ref-type>
> <res-auth>Container</res-auth>
> </resource-ref>
>
> Each time I call the webapp, I run the test routine here:
>
> String[] nameStr = new String[] { "java:comp/env/jdbc/icwsDataSource",
> "jdbc/icwsDataSource" };
>
> for ( int x = 0 ; x < nameStr.length ; x++ ) {
> try{
> NamingEntry connPool = NamingEntry.lookupNamingEntry(
> org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource.class,
>
> nameStr[x] );
>
> if ( connPool != null ){
> Object obj = connPool.getObjectToBind();
> if ( obj == null ) {
> log.info("Found NamingEntry for "+nameStr[x]+
> ", but did not find object within.");
> }
> else {
> log.info("Found NamingEntry for "+nameStr[x]+
> ", and found object of class " +
> obj.getClass().getName() + ".");
> }
> }
> else {
> log.info("Did not find connection pool for jndi
> name "+nameStr[x]+".");
> }
> }
> catch(Exception e) {
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> PrintStream ps = new PrintStream(baos);
> e.printStackTrace(ps);
> log.info( " GHGHGHGHG - exception with context lookup for " +
> nameStr[x]+": \n" + baos.toString() + "\n" );
> }
> try{
> Context ctxt = new InitialContext();
> DataSource dsTwo = (DataSource) ctxt.lookup(nameStr[x]);
>
> if ( dsTwo != null ) {
> log.info(" Found dsTwo with ctxt.lookup of " +
> nameStr[x] + ".");
> Connection cTwo = dsTwo.getConnection();
>
> if ( cTwo != null ) {
> log.info(" XZXZXZXZ - Found a connection for name " +
> nameStr[x] + ".");
> cTwo.close();
> }
> else {
> log.info("Did not find a connection.");
> }
> }
> else {
> log.info("Did not find the DataSource!");
> }
> }
> catch(Exception e) {
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> PrintStream ps = new PrintStream(baos);
> e.printStackTrace(ps);
> log.info( " TRTRTR - exception with context lookup for " +
> nameStr[x]+": \n" + baos.toString() + "\n" );
> }
> }
>
> and I get the following exceptions in the log.
>
> INFO btpool0-2 ICWSServerImpl.class - Did not find connection pool for
> jndi name java:comp/env/jdbc/icwsDataSource.
> INFO btpool0-2 ICWSServerImpl.class - TRTRTR - exception with
> context lookup for java:comp/env/jdbc/icwsDataSource:
> javax.naming.NameNotFoundException: Name 3rot5_icws is not bound in this Context
> at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:587)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:670)
> at org.mortbay.naming.java.javaRootURLContext.lookup(javaRootURLContext.java:112)
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
> at org.infoeng.icws.ICWSServerImpl.<init>(ICWSServerImpl.java:175)
> at org.infoeng.x2005.x10.icws.ICWSService.<init>(ICWSService.java:53)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.ws.resource.handler.ResourceHandler.createService(ResourceHandler.java:691)
> at org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:144)
> at org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:209)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:180)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:147)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> at org.mortbay.jetty.Server.handle(Server.java:248)
> at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:360)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:628)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:611)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:197)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:180)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
>
>
> INFO btpool0-2 ICWSServerImpl.class - Did not find connection pool
> for jndi name jdbc/icwsDataSource.
> INFO btpool0-2 ICWSServerImpl.class - TRTRTR - exception with
> context lookup for jdbc/icwsDataSource:
> javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
> at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
> at org.infoeng.icws.ICWSServerImpl.<init>(ICWSServerImpl.java:175)
> at org.infoeng.x2005.x10.icws.ICWSService.<init>(ICWSService.java:53)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.ws.resource.handler.ResourceHandler.createService(ResourceHandler.java:691)
> at org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:144)
> at org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:209)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:180)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:147)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> at org.mortbay.jetty.Server.handle(Server.java:248)
> at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:360)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:628)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:611)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:197)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:180)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
>
>
>
> From the stack traces above, it looks like the apache naming
> classes are being used by InitialContext. To test, I replaced the
> environment hashtable of jndiEnv supplied to "new
> InitialContext(jndiEnv)" and got the same result:
>
> INFO btpool0-2 ICWSServerImpl.class - Did not find connection pool
> for jndi name java:comp/env/jdbc/icwsDataSource.
> INFO btpool0-2 ICWSServerImpl.class - THIS IS WITH THE jndiEnv
> supplied to InitialContext.
> INFO btpool0-2 ICWSServerImpl.class - TRTRTR - exception with
> context lookup for java:comp/env/jdbc/icwsDataSource:
> javax.naming.NameNotFoundException: Name 3rot5_icws is not bound in this Context
> at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:587)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:670)
> at org.mortbay.naming.java.javaRootURLContext.lookup(javaRootURLContext.java:112)
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
> at org.infoeng.icws.ICWSServerImpl.<init>(ICWSServerImpl.java:181)
> at org.infoeng.x2005.x10.icws.ICWSService.<init>(ICWSService.java:53)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.ws.resource.handler.ResourceHandler.createService(ResourceHandler.java:691)
> at org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:144)
> at org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:209)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:180)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:147)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> at org.mortbay.jetty.Server.handle(Server.java:248)
> at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:360)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:628)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:611)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:197)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:180)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
>
>
> INFO btpool0-2 ICWSServerImpl.class - Did not find connection pool
> for jndi name jdbc/icwsDataSource.
> INFO btpool0-2 ICWSServerImpl.class - THIS IS WITH THE jndiEnv
> supplied to InitialContext.
> INFO btpool0-2 ICWSServerImpl.class - TRTRTR - exception with
> context lookup for jdbc/icwsDataSource:
> javax.naming.NameNotFoundException; remaining name 'jdbc/icwsDataSource'
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:624)
> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:670)
> at org.mortbay.naming.local.localContext.lookup(localContext.java:164)
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
> at org.infoeng.icws.ICWSServerImpl.<init>(ICWSServerImpl.java:181)
> at org.infoeng.x2005.x10.icws.ICWSService.<init>(ICWSService.java:53)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> at org.apache.ws.resource.handler.ResourceHandler.createService(ResourceHandler.java:691)
> at org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:144)
> at org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:209)
> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:180)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:147)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
> at org.mortbay.jetty.Server.handle(Server.java:248)
> at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:360)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:628)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:611)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:197)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:180)
> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
>
> Any suggestions? Thanks very much for your help!!!
>
> Patrick
> jpbedell@...
> http://infoeng.sourceforge.net - Jetty powered application
> available for download!
>
>
>
>
>
>
>
>
>
>
> On 8/3/06, Jan Bartel <janb@...> wrote:
>
>>Patrick,
>>
>>Try deleting these lines:
>>Hashtable jndiEnv = new Hashtable();
>>jndiEnv.put("java.naming.factory.url.pkgs", "org.mortbay.naming");
>>jndiEnv.put("java.naming.factory.initial",
>>"org.mortbay.naming.InitialContextFactory");
>>
>>And removing the jndiEnv from this:
>>Context ctxt = new InitialContext(jndiEnv);
>>
>>BTW the log entries about "Bound fu22m_icws/jdbc/icwsDataSource using context ..."
>>are just debug that has been misclassified as info level. If I haven't
>>already changed that, I will.
>>
>>regards
>>Jan
>>
>>J. Patrick Bedell wrote:
>>
>>>Hello,
>>> I am trying to access an embedded Derby database from a webapp
>>>running on Derby, and I am having a few problems.
>>> I have in the webapp's WEB-INF/jetty-env.xml the element
>>>
>>> <New class="org.mortbay.jetty.plus.naming.Resource">
>>> <Arg>jdbc/icwsDataSource</Arg>
>>> <Arg>
>>> <New class="org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource">
>>> <Set name="DatabaseName"><SystemProperty name="icws.db.name"/></Set>
>>> <Set name="ConnectionAttributes">bootPassword=<SystemProperty
>>>name="icws.db.password"/>;encryptionAlgorithm=<SystemProperty
>>>name="DERBY_ENCRYPTION_ALGORITHM"/>;dataEncrypt\ion=true</Set>
>>> </New>
>>> </Arg>
>>> </New>
>>>
>>>This element creates the embedded database connection pool for Derby
>>>and associates it with the name "jdbc/icwsDataSource".
>>>
>>>Then, in the WEB-INF/web.xml file there is the element
>>>
>>><resource-env-ref>
>>> <resource-env-ref-name>jdbc/icwsDataSource</resource-env-ref-name>
>>> <resource-env-ref-type>javax.sql.DataSource</resource-env-ref-type>
>>></resource-env-ref>
>>>
>>>so that the webapp can access the resource.
>>>
>>> The following messages are printed at startup when the
>>>configuration files are processed:
>>>
>>>:INFO: Bound fu22m_icws/jdbc/icwsDataSource using context
>>>org.mortbay.naming.NamingContext@...
>>>:INFO: Bound org.mortbay.jetty.plus.naming.Resource/jdbc/icwsDataSource
>>>using context org.mortbay.naming.NamingContext@...
>>>:INFO: Binding java:comp/env/jdbc/icwsDataSource to
>>>fu22m_icws/jdbc/icwsDataSource
>>>:INFO: Bound resource-env-ref java:comp/env/jdbc/icwsDataSource
>>>
>>> I have no idea where the fu22m_icws prefix above comes from.
>>>
>>> When I try to access the resource using the code
>>>
>>>-=-=- JNDI access to DataSource in webapp excecution -=-=-
>>>
>>> Hashtable jndiEnv = new Hashtable();
>>> jndiEnv.put("java.naming.factory.url.pkgs", "org.mortbay.naming");
>>> jndiEnv.put("java.naming.factory.initial",
>>>"org.mortbay.naming.InitialContextFactory");
>>>
>>> Context ctxt = new InitialContext(jndiEnv);
>>> DataSource ds = (DataSource) ctxt.lookup(
>>>"java:comp/env/jdbc/icwsDataSource" );
>>>
>>> tmpConn = ds.getConnection();
>>> if ( tmpConn != null )
>>> return tmpConn;
>>>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>>>
>>>This code generates the exception below:
>>>
>>>============= Begin exception stack trace =============
>>>
>>>INFO btpool0-2 ICWSServerImpl.class - getConnection: exception data
>>>source lookup for jndi name java:comp/env/jdbc/icwsDataSource:
>>>javax.naming.NameNotFoundException: Name fu22m_icws is not bound in this Context
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
>>> at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:351)
>>> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:587)
>>> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
>>> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
>>> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:655)
>>> at org.mortbay.naming.NamingContext.lookup(NamingContext.java:670)
>>> at org.mortbay.naming.java.javaRootURLContext.lookup(javaRootURLContext.java:112)
>>> at javax.naming.InitialContext.lookup(InitialContext.java:351)
>>> at org.infoeng.icws.ICWSServerImpl.getConnection(ICWSServerImpl.java:1924)
>>> at org.infoeng.icws.ICWSServerImpl.initializeServer(ICWSServerImpl.java:158)
>>> at org.infoeng.icws.ICWSServerImpl.<init>(ICWSServerImpl.java:138)
>>> at org.infoeng.x2005.x10.icws.ICWSService.<init>(ICWSService.java:53)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>> at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>>> at org.apache.ws.resource.handler.ResourceHandler.createService(ResourceHandler.java:691)
>>> at org.apache.ws.resource.handler.ResourceHandler.handleRequest(ResourceHandler.java:144)
>>> at org.apache.ws.resource.handler.axis.ResourceProvider.invoke(ResourceProvider.java:209)
>>> at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
>>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>>> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
>>> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
>>> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
>>> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
>>> at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
>>> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
>>> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
>>> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:180)
>>> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
>>> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:567)
>>> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:147)
>>> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)
>>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
>>> at org.mortbay.jetty.Server.handle(Server.java:248)
>>> at org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:360)
>>> at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:628)
>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:611)
>>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:197)
>>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:288)
>>> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:180)
>>> at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
>>>
>>>============= End exception stack trace =============
>>>
>>> Can anyone suggest a means to access the object from the JNDI
>>>store, or let me know what I am doing wrong? Thanks for your help!
>>>
>>> Patrick
>>> jpbedell@...
>>>
>>>-------------------------------------------------------------------------
>>>Take Surveys. Earn Cash. Influence the Future of IT
>>>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>>opinions on IT & business topics through brief surveys -- and earn cash
>>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>_______________________________________________
>>>Jetty-support mailing list
>>>Jetty-support@...
>>>https://lists.sourceforge.net/lists/listinfo/jetty-support
>>>
>>
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>opinions on IT & business topics through brief surveys -- and earn cash
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>_______________________________________________
>>Jetty-support mailing list
>>Jetty-support@...
>>https://lists.sourceforge.net/lists/listinfo/jetty-support
>>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jetty-support mailing list
> Jetty-support@...
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>
|