Hey, > Simon, > > Your suggestion did not work. I disabled naming, no go. I also tried > passing a properties object to new InitialContext for > locating ejbs, and > still no go. > > Any more suggestions? As pointed out by Vincent Harcq, it can be a problem with beta3. Can you try the latest nightly build ? Also, can you post the code of your servlet/jsp where you call EJB1 and EJB2 ? Simon > > Mayank > > -----Original Message----- > From: Bordet, Simone [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 25, 2001 9:28 AM > To: '[EMAIL PROTECTED]' > Subject: R: [JBoss-user] Invalid protocol jndi exception thrown by > tomcat 4 Beta 3 > > > Hey, > > > No, I don't use that option, I will try it out latter today. > > What does that > > option do? (disable naming, can you elabrate) > > Catalina comes with its own naming implementation, that is by default > active. > So if you have code under web-inf/lib or web-inf/classes that does new > InitialContext(), even if a jndi.properties is in the web application > classpath (pointing to a different naming service than the > Catalina one), > Catalina get confused and barfs unknown protocol: jndi > > Since JBoss has its own naming service, you should probably > start Catalina > with the -nonaming option. > > I didn't try Catalina with JBoss, but with another > application I wrote (that > has its own naming service), the -nonaming option did the > job. Probably will > do also for JBoss, but I'm not 100% sure of this. > > Let us know. > > HTH, > > Simon > > > > > Thanks, > > > > Mayank > > > > -----Original Message----- > > From: Bordet, Simone [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, April 25, 2001 8:51 AM > > To: '[EMAIL PROTECTED]' > > Subject: R: [JBoss-user] Invalid protocol jndi exception thrown by > > tomcat 4 Beta 3 > > > > > > Hey, > > > > how do you start Catalina ? Do you use the -nonaming option ? > > I launch it with (W2K): > > catalina run -nonaming from the Tomcat bin directory. > > > > HTH, > > > > Simon > > > > > -----Messaggio originale----- > > > Da: Shah, Mayank [mailto:[EMAIL PROTECTED]] > > > Inviato: mercoledì 25 aprile 2001 14:35 > > > A: '[EMAIL PROTECTED]' > > > Oggetto: [JBoss-user] Invalid protocol jndi exception thrown > > > by tomcat 4 > > > Beta 3 > > > > > > > > > I am using Jboss as my ejb server and tomcat 4 Beta 3. Both > > > are running on > > > the > > > same machine, but different processes (2 jvms). I have > > > tested the ejb on > > > it's > > > own from the command line and works fine for the error I am > > > getting in a > > > servlet and jsp. Here is what i have: > > > EJB1 returns primaryKeyEJB2 > > > on EJB2 I execute a method which returns a string. > > > > > > EJB1 works fine, but when I execute a method on EJB2 I get > > > the following > > > exception. In my jar file I have all the required classes, I > > > tried copying > > > the > > > jndi in various lib folders, but no go. I even tried a copy > > > of jndi that i > > > downloaded from sun, but still no go. Can someone look into > > > this and help > > > suggest some possible sollutions. Thanks, > > > > > > > > > > > > ------------------------------------ > > > java.lang.reflect.UndeclaredThrowableException > > > java.lang.reflect.UndeclaredThrowableException: > > > java.net.MalformedURLException: > > > java.lang.NullPointerException: invalid url: jndi:/WEB- > > > INF/lib/myservlet_with_ejb_client_classes.jar!/ > > > (java. > > > net.MalformedURLException: unknown protocol: jndi) > > > at > > > > > > sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream > > > RemoteCall.java:245) > > > at > > > > > > sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java: > > > 220) > > > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) > > > at > > > > > > org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Un > > > known Source) > > > at > > > > > > org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy. > > > java:182) > > > at $Proxy4.getArtist(Unknown Source) > > > at > > > com.mydomain.servlets.av.AlbumDetailView.processRequest(AlbumD > > > etailView.j > > > ava:150) > > > at > > > com.mydomain.servlets.util.RequestManagerServlet.processReques > > > t(RequestMa > > > nagerServlet.java:458) > > > at > > > com.mydomain.servlets.util.RequestManagerServlet.doGet(Request > > > ManagerServ > > > let.java:186) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > > at > > > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > > > icationFilterChain.java:246) > > > at > > > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > > > ilterChain.java:191) > > > at > > > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > > > alve.java:255) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > ..java:566) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > > a:472) > > > at > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) > > > > > > at > > > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > > > alve.java:225) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > ..java:566) > > > at > > > > > > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve > > > ..java:246) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > ..java:564) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > > a:472) > > > at > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) > > > > > > at > > > > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java: > > > 2175) > > > at > > > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > > > ava:164) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > ..java:566) > > > at > > > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: > > > 446) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > ..java:564) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > > a:472) > > > at > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) > > > > > > at > > > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > > > ve.java:162) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline > > > ..java:566) > > > at > > > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav > > > a:472) > > > at > > > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) > > > > > > at > > > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso > > > r.java:827) > > > at > > > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja > > > va:904) > > > at java.lang.Thread.run(Thread.java:484) > > > > > > > > > _______________________________________________ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user