Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] setuid ClassCastException in Jetty 7.1.6

Via Hudson on a production machine, we are attempting to deploy Jetty
7.1.6.v20100715 to the mid-tier, however, unlike the prior version,
Jetty does not start because of a class cast exception in the setuid
library (see below).

The shared object library is deployed to $JETTY_HOME/lib/ext and creates
a jar by the name of jetty-setuid-java-7.1.6.v20100715.jar.
libsetuid.so appears to be of the correct ELF type (a problem that we
had in a prior version), so I'm not quite sure what's going on.

Jetty is launched the same as before, and if I revert to the previous
version of jetty-7.0.2.v20100331 everything works as expected.

Jetty's command line argument looks like this:

java \
-Xmx256m -Xms40m \
-Duser.home=$RUNAS_HOME \
-Djava.library.path=$JETTY_HOME/lib/ext \
-Dconfig.home=$CONTAINER \
-Djetty.home=$JETTY_HOME \
-Djetty.port=$PORT \
-Djetty.logs=$CONTAINER/logs \
-DSTOP.PORT=$STOP_PORT \
-DSTOP.KEY=$STOP_KEY \
-DCLASSPATH= \
-jar $JETTY_HOME/start.jar \
$CONTAINER/etc/jetty-setuid.xml \
$CONTAINER/etc/jetty-ssl.xml \
$CONTAINER/etc/jetty.xml

Java version is:
% java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)

The exception goes as follows(the process dies after this):
java.lang.ClassCastException: class org.mortbay.setuid.SetUIDServer
        at
org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:218)
        at org.eclipse.jetty.xml.XmlConfiguration
$1.run(XmlConfiguration.java:1007)
        at java.security.AccessController.doPrivileged(Native Method)
        at
org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:983)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:490)
        at org.eclipse.jetty.start.Main.start(Main.java:631)
        at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:280)
        at org.eclipse.jetty.start.Main.main(Main.java:82)

Thank you in advance.

Best, Vincent



Back to the top