logo       

Re: Jetty 4.2.3 on Insignia Jeode VM: msg#00170

java.jetty.support

Subject: Re: Jetty 4.2.3 on Insignia Jeode VM

OK, I'm working on that right now. So far, I'm finding a few things which
aren't part of the JDK 1.2.2 that I'm compiling with.

First, line 240 of org.mortbay.servlet.CGI.java uses the method
Runtime.getRuntime().exec(String, String[], File), which only exists since
1.3.

Second, line 398 of org.mortbay.util.URI.java wants to return
Collections.EMPTY_MAP, which also only exists since 1.3.

Right now I'm trying to get around the use of WeakHashMap in
org.mortbay.http.HttpServer, also only since 1.3. If I'm successful, I'll
send you the sources I changed and the tarball/ipk I use on my Zaurus. Thanks
for pointing me in the right direction.

Kevin

> If that is the case - I suggest you recompile with a different
> version of Version.java. It is a very simple class, which you could just
> hard code.
>
> It will get you past this problem and then we can look at the next one :-)
>
> cheers
>
>
> luvmyzaurus wrote:> I am attempting to create a "mini Jetty" package for
> the Sharp
>
> > Zaurus. I chose Jetty because it claims to be developed against the
> > Java 1.2 SDK, and Jeode implements Sun's PersonalJava which is also
> > Java 1.2 with a trimmed-down AWT. I wrote a small script to run the
> > server:
> >
> > #!/bin/bash
> > export JETTY_HOME=/mnt/cf/miniJetty
> > export CLASSPATH=$JETTY_HOME/lib/org.mortbay.jetty-jdk1.2.jar:\
> > $JETTY_HOME/lib/javax.servlet.jar:\
> > $JETTY_HOME/lib/javax.xml.jaxp.jar:\
> > $JETTY_HOME/lib/crimson.jar
> > evm -cp $CLASSPATH org.mortbay.jetty.Server \
> > $JETTY_HOME/etc/jetty.xml
> >
> > I keep getting the following error, which makes no sense:
> >
> > java.lang.NoSuchMethodError:
> > java/lang/Class.getPackage()Ljava/lang/Package;
> > at org.mortbay.http.Version.<clinit> (bytecode 67)
> > at org.mortbay.http.HttpServer.<clinit> (bytecode 0)
> >
> > Anyone?
> >
> >
> >
> > 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/


------------------------ 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>
Google Custom Search

News | FAQ | advertise