tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Morton" <fmor...@base2inc.com>
Subject Tomcat 4.0.1+JBOSS naming problem/bug?
Date Sun, 06 Jan 2002 01:34:32 GMT
I'm using the following:

JDK 1.3.1_01 w/ HotSpot on Solaris 8/SPARC
Tomcat 4.0.1
JBOSS 2.4.1
Running different JVM instances for tomcat and jboss

If I lookup a JBOSS entity bean from a stand-alone application,
which is apparently using org.jnp.interfaces.NamingContext to
do the lookup, things are just fine.

If I do a lookup from tomcat 3.3.x, things are fine.

I needed to upgrade to 4.0.1 for the Servlet 2.3 API, but the
lookup fails from such a servlet. I've tried lots of different approaches,
but always come back to this exception below.

Incidentally, if the ejb name is "base2/profile" the exception reports
the name as "base2". If the name is "profile" it reports the failed lookup
as named "profile". Both naming approaches fail.

The static Factory.getProfileHome() method is simply:

InitialContext context = new InitialContext();
ProfileHome profileHome = (ProfileHome)(context.lookup("profile"));

Help, because I've tried everything I can think of...

javax.naming.NameNotFoundException: Name profile is not bound in this
Context
        at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
        at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at com.base2inc.bean.util.Factory.getProfileHome(Factory.java:53)
        at
com.base2inc.app.util.ServletEnvironment.authenticate(ServletEnvironment.jav
a:590)
        at
com.base2inc.app.framework.JspFramework.authenticate(JspFramework.java:211)
        at
com.base2inc.app.framework.JspFramework.doService(JspFramework.java:75)
        at
com.base2inc.app.util.HttpServletExtended.doPost(HttpServletExtended.java:62
)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:446)
        at
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)






--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message