I'm running jetty 3 in the same vm as jboss 2. I've got a bunch of ejbs that
load ok, and I've got a custom MBean that does some initialization that loads
ok. My problem is that I'm trying to load a servlet:
1. If I put the .jar with the servlet and a bunch of other classes in the
classpath, Jetty can find it, but jboss can't find the other classes in the jar
when ejbs need them.
2. If I don't put the .jar with the servlet in the classpath, jetty can't find
it, but all the ejbs and other files can. (It's in lib/ext/foo.jar)
I've noticed that jboss.conf can have:
<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/">
<ARG TYPE="java.lang.String" VALUE="../../../Jetty-3.0.0/lib/">
<ARG TYPE="java.lang.String" VALUE="Jetty">
</MLET>
and run.bat can have:
set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\lib
set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\lib\com.microstar.xml.jar
set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\lib\com.mortbay.jetty.jar
set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\lib\com.sun.net.ssl.jar
set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\lib\javax.servlet.jar
set CLASSPATH=%CLASSPATH%;%JETTY_HOME%\lib\org.apache.jasper.jar
with no problems at all during runtime. When I try it with my stuff, I get
problem 1 and if I comment the CLASSPATH stuff out of run.bat, I get problem 2.
Thanks,
Jamie Orchard-Hays
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]