You can specify an additonal paths to jars, etc. via the "library path"
tag in the application.xml config file.  For example, here's my config that
I added a library path tag to find the oracle JDBC jar:

<orion-application>
        <!-- snip -->

        <!-- Path to the libraries that are installed on this server.
        These will accesible for the servlets, EJBs etc -->
        <library path="../lib" />
        <library
path="/usr/local/oracle/8i/u01/app/oracle/product/8.1.6/jdbc/lib/classes12.z
ip" />

    <!-- snip -->
</orion-application>


--
Jason Rimmer
[EMAIL PROTECTED]


----- Original Message -----
From: "Laurent Cornelis" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, October 26, 2000 2:58 AM
Subject: Re: EJB classpath problem


Your solution will surely works but I don't want to mix my jars with Orion
jars... It is really i^mpossible to specify an additional classpath for EJBs
in Orion ?

Thanks anyway ;)

Laurent
  ----- Original Message -----
  From: wim veninga
  To: Orion-Interest
  Sent: Wednesday, October 25, 2000 3:56 PM
  Subject: Re: EJB classpath problem


  Hi Laurent
  Where is your rapids-util.jar file located. I would suggest that you put
this in
  your_orion_dir/lib.

  I had the same kind of situation with cloudscape (database) and orion. I
have a couple of
  objects that need to be stored in cloudscape but cloudscape couldn't find
it. But i had the classes in one of my ejb-jars. So when i put the classes
in orion/lib everything
  worked fine. I think that orions class loader doesn't make the classes in
ejb-jar available
  to the rest of the system.

  Greetings Wim Veninga.

  Laurent Cornelis wrote:

    Hello,
    I deploy a J2EE application (called rapids) with Orion, here is my
directory
    structure after deployment :

    orion/applications/rapids -> Contains EJBs jar
    orion/applications/rapids/rapids-web -> Contains the Web app
    orion/applications/rapids/rapids-web/WEB-INF/lib/rapids-util.jar -> A
jar
    file my web application and my EJB need

    Somewhere in my web applications, a call to WebFacade (One of my EJBs)
is
    done. In this call WebFacade must use a class from rapids-util.jar
(class
    ubiquity.rapids.ejb.util.HomeFactory) but here is the exception I catch
:

    <snip>

    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled
back:
    java.lang.NoClassDefFoundError: ubiquity/rapids/ejb/util/HomeFactory
     at
WebFacade_StatelessSessionBeanWrapper9.getPublicSatellites(WebFacade_Statele
ssSessionBeanWrapper9.java:311)
     at
/pri/choosesatellite.jsp._jspService(/pri/choosesatellite.jsp.java:75)(JSP
page line 28)
     at com.orionserver.http.OrionHttpJspPage.service(JAX)
     at com.evermind.server.http.HttpApplication.w5(JAX)
     at com.evermind.server.http.JSPServlet.service(JAX)
     at com.evermind.server.http.d1.si(JAX)
     at com.evermind.server.http.d1.forward(JAX)
     at ubiquity.rapids.servlet.RapidsServlet.doPost(RapidsServlet.java)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at com.evermind.server.http.d1.si(JAX)
     at com.evermind.server.http.d1.forward(JAX)
     at com.evermind.server.http.ed.sp(JAX)
     at com.evermind.server.http.ed.so(JAX)
     at com.evermind.util.f.run(JAX)
     Nested exception is:
    java.lang.NoClassDefFoundError: ubiquity/rapids/ejb/util/HomeFactory
     at
ubiquity.rapids.ejb.webfacade.WebFacadeBean.getPublicSatellites(WebFacadeBea
n.java:153)
     at
WebFacade_StatelessSessionBeanWrapper9.getPublicSatellites(WebFacade_Statele
ssSessionBeanWrapper9.java:281)
     at
/pri/choosesatellite.jsp._jspService(/pri/choosesatellite.jsp.java:75)(JSP
page line 28)
     at com.orionserver.http.OrionHttpJspPage.service(JAX)
     at com.evermind.server.http.HttpApplication.w5(JAX)
     at com.evermind.server.http.JSPServlet.service(JAX)
     at com.evermind.server.http.d1.si(JAX)
     at com.evermind.server.http.d1.forward(JAX)
     at ubiquity.rapids.servlet.RapidsServlet.doPost(RapidsServlet.java)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java)
     at com.evermind.server.http.d1.si(JAX)
     at com.evermind.server.http.d1.forward(JAX)
     at com.evermind.server.http.ed.sp(JAX)
     at com.evermind.server.http.ed.so(JAX)
     at com.evermind.util.f.run(JAX)


    </snip>


    How can I tell to the EJBs where is rapids-util.jar ? Please help !!!

    Thanks

    Laurent




Reply via email to