DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4315>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4315 EJB Access with weblogic.jar included: Can't access new InitialContext() ------- Additional Comments From [EMAIL PROTECTED] 2001-10-22 04:31 ------- I have no success with setup tomcat with weblogic jndi. I copy my weblogic.jar to WEB-INF/lib and setup a resource /WEB-INF/weblogic-jndi.properties to configure my remote ejb access. Here my jsp access : >>> Properties props = new Properties() ; props.load( application.getResourceAsStream("/WEB-INF/weblogic-jndi.properties") ) ; Context ctx = new InitialContext(props); EchoHome home = (EchoHome) javax.rmi.PortableRemoteObject.narrow(ctx.lookup("echo.EchoHome"), EchoHome.class); Echo echo = home.create(); <<< But with weblogic.jar I have no chance to accces Tomcat JNDI tree! That is very bad. I want access some remote EJB and access JDBC datasources directly via tomcat. >>> javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory. Root exception is java.lang.ClassCastException: org.apache.naming.java.javaURLContextFactory at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:658) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.<init>(InitialContext.java:174) at org.apache.jsp.jdbc_0002daccess$jsp._jspService(jdbc_0002daccess$jsp.java:67) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:2 02) <<< Hups! I thing the big weblogic.jar with all j2ee classes load some other classes at the tomcat 4 distribution have at common/lib. ... When have next week time, I working on spezial JNDI Resource factory or at night I made a spezial weblogic.jar without j2ee classes that included at tomcat. Help are very welcome ?? Thanx, Peter