In case this helps anyone else desperately searching the archives one day
hence:

The jsp *works* under Tomcat (NT), Caucho Resin 1.1.5 (NT), WebLogic (NT),
and Orion 1.3.8/JDK 1.3 on linux.

The exception occurs under Orion 1.3.8 *and* Orion 1.4.0 on NT under jdk
1.2.2 *and* jdk 1.3.

Once again, I'd appreciate if anyone had any clues; I suspect possibly a
bug, possibly a classpath conflict; I had to put a lot of weblogic classes
in the classpath, and the weblogicaux.jar has a lot of com.sun.* classes in
it, such as com.sun.java.util.collections.*, etc.

Colin

-----Original Message-----
From: Colin Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 12:18 PM
To: Orion-Interest
Subject: Orion, JNDI & Weblogic


Hi there.

We're using WebLogic on our core platform for now, alas, but I'm hoping to
go with Orion in our web farm, using it as a JSP/Servlet environment
initially, and then expanding its duties to erode on WebLogic.

I've run into a little snag in my initial test. I've got some test EJBs
deployed on weblogic, and I'm trying to use them in a simple JSP I deployed
in the orion default-web-app directory. I'm using the following JSP snippet:

<%@ page contentType="text/html"
import="java.io.*,java.lang.Integer,javax.naming.*,javax.ejb.*,weblogic.comm
on.*,test.*,java.util.Hashtable" %>

<%
  PingHome home = null;
 
  Hashtable env = new Hashtable(5);
  env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
  env.put(Context.PROVIDER_URL, "t3://cjacobs:7001");
  Context ctx = new InitialContext(env);
  try {
    home = (PingHome) ctx.lookup("PingHome");
  } catch(Exception e) {
     // ...
  }
%>

The line "home = (PingHome) ctx.lookup("PingHome");" generates the following
exception, (full stack trace below).

javax.naming.CommunicationException [Root exception is
weblogic.rjvm.PeerGoneException: 
 - with nested exception:
[java.lang.NoClassDefFoundError: weblogic/service/BasicServiceStub]]

I'm kind of mystified - the class weblogic.service.BasicServiceStub *is* in
the classpath (Class.forName() doesn't generate an error).
weblogic/service/... looks like a path, not a class. WebLogic itself has
complained "Exception on send : weblogic.rmi.ConnectException: Attempt to
sendMsg using a closed connection" several times during these tests.

I only get the exception if the lookup succeeds, i.e.
ctx.lookup("SpoddySpodSpod") throws a javax.naming.NameNotFoundException as
expected.

I tried this code in Tomcat, and it worked perfectly. Any ideas? 

Thanks,

Colin

javax.naming.CommunicationException.  Root exception is
weblogic.rjvm.PeerGoneException: 
 - with nested exception:
[java.lang.NoClassDefFoundError: weblogic/service/BasicServiceStub]
        at
weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:76)
        at
weblogic.jndi.toolkit.BasicWLContext_WLStub.lookup(BasicWLContext_WLStub.jav
a:246)
        at weblogic.jndi.toolkit.WLContextStub.lookup(WLContextStub.java,
Compiled Code)
        at javax.naming.InitialContext.lookup(InitialContext.java:354)
        at
__jspPage1_externalTest_jsp._jspService(__jspPage1_externalTest_jsp.java:58)
        at com.orionserver.http.OrionHttpJspPage.service(JAX)
        at com.evermind.server.http.HttpApplication.xa(JAX)
        at com.evermind.server.http.JSPServlet.service(JAX)
        at com.evermind.server.http.d3.so(JAX, Compiled Code)
        at com.evermind.server.http.d3.sm(JAX)
        at com.evermind.server.http.ef.su(JAX, Compiled Code)
        at com.evermind.server.http.ef.dn(JAX, Compiled Code)
        at com.evermind.util.f.run(JAX, Compiled Code)

Here's my global-web-application.xml classpath:
<orion-web-app
        jsp-cache-directory="./persistence"
        servlet-webdir="/servlet"
        development="false"
>
        <classpath path="e:\weblogic\classes" />
        <classpath path="e:\weblogic\lib\weblogicaux.jar" />
...

----------------------------------------
Colin Jacobs
Senior Software Engineer
Optfor Derivatives, Inc.
http://www.opt4.com

I don't pretend to have all the answers. I don't
even pretend to know what the questions are. Hey,
where am I? -- Jack Handey


Reply via email to