|
CLASSPATH difficulties: msg#00080java.jetty.support
I'm migrating my existing Jetty 4.0.rc1 into 4.2.3 and trying to use the start.jar mechanism. My classes (shared across several webapps) are currently in an open directory structure, not in a jar. My console log is: admin@d0:/opt/jetty> echo $CLASSPATH /home/admin/classes admin@d0:/opt/jetty>java -DDEBUG -jar start.jar etc/jetty.xml 2>debug.txt debug.txt looks like ----------------------------------------------------- T jetty.home=. ! exists $(jetty.home)/lib/org.mortbay.jetty.jar jetty.home=. F jetty.home=.. ! exists $(jetty.home)/lib/org.mortbay.jetty.jar F jetty.home=/home/jetty ! exists $(jetty.home)/lib/org.mortbay.jetty.jar F jetty.home=/C:/jetty ! exists $(jetty.home)/lib/org.mortbay.jetty.jar F jetty.home=. ! exists $(jetty.home)/lib/org.mortbay.jetty.jar T org.mortbay.jetty.Server.class CLASS=org.mortbay.jetty.Server F $(jetty.home)/etc/admin.xml nargs == 0 F $(jetty.home)/etc/demo.xml nargs == 0 T $(jetty.home)/lib/org.mortbay.jetty.jar java >= 1.4 CLASSPATH+=/opt/jetty/Jetty-4.2.3/lib/org.mortbay.jetty.jar F $(jetty.home)/lib/org.mortbay.jetty-jdk1.2.jar java < 1.4 AND java >= 1.2 T $(jetty.home)/lib/javax.servlet.jar CLASSPATH+=/opt/jetty/Jetty-4.2.3/lib/javax.servlet.jar lines omitted JETTY_HOME=. TEMPDIR=/tmp CLASSPATH=/opt/jetty/Jetty-4.2.3/start.jar: /opt/jetty/Jetty-4.2.3/lib/org.mortbay.jetty.jar: /opt/jetty/Jetty-4.2.3/lib/javax.servlet.jar: /opt/jetty/Jetty-4.2.3/lib/org.mortbay.jmx.jar: /opt/jetty/Jetty-4.2.3/ext/ant.jar: /opt/jetty/Jetty-4.2.3/ext/jasper-runtime.jar: /opt/jetty/Jetty-4.2.3/ext/jasper-compiler.jar: /opt/jetty/Jetty-4.2.3/ext/javax.xml.jaxp.jar: /opt/jetty/Jetty-4.2.3/ext/crimson.jar: /opt/jetty/Jetty-4.2.3/ext/com.sun.net.ssl.jar: /opt/jetty/Jetty-4.2.3/ext/jmxri.jar: /opt/jetty/Jetty-4.2.3/ext/jmxtools.jar (long line split for e-mail) --------------------------- /home/admin/classes _does_ exist as a directory. I have three questions: 1) Why doesn't the constructed CLASSPATH start with (or otherwise contain) my directory? 2) Why _does_ it start with opt/jetty/Jetty-4.2.3/start.jar when there is no CLASSPATH+= debug entry for it? 3) Are the two related? I've looked through the source code of ..start/Main (neat work Jan!) and at Classpath, and can't see why it does not find my class. I've even yanked some of Jan's code to compose a test program (attached). It _does_ find my directory! ----------------------- admin@d0:/opt/jetty> java TestClassPath System Property: /home/admin/classes elements: [/home/admin/classes] ------------------------------------ Help! Chris Haynes ------------------------ Yahoo! Groups Sponsor ---------------------~--> Get 128 Bit SSL Encryption! http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM ---------------------------------------------------------------------~-> For the latest information about Jetty, please see http://jetty.mortbay.org Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: jetty servlet security model: are there any extensions?, ayudichev <alexey@xxxxxxxxxxxxx> |
|---|---|
| Next by Date: | File - Jetty Support FAQ, jetty-support |
| Previous by Thread: | jetty servlet security model: are there any extensions?, ayudichev <alexey@xxxxxxxxxxxxx> |
| Next by Thread: | Re: CLASSPATH difficulties, Jan Bartel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |