Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] JNDI: Can't find "org.eclipse.jetty.plus.webapp.EnvConfiguration"

Will,

With jetty-7, you need to specify what extra jars, over and above the minimum,
will be put on the classpath.

In your case, you need the jars that are part of the "plus" module, so you do:

java -DOPTIONS=plus,ext,default -jar start.jar

If you want absolutely everything then:

java -DOPTIONS=All -jar start.jar

There is a README that is put in the /contexts directory with the example test-jndi
webapp, and test-annotation webapp that explains how to run them, but I think they were commented out of the build for 7.0.0.M2.

cheers
Jan

Will Brown wrote:
Just switching over to Jetty from Tomcat by way of bleeding edge jetty-7.0.0.M2.

In general it is looking good, but in the process of setting up
database connection pooling I'm trying to get JNDI to work.
But it won't work.

The simplest way to reproduce the issue is to do the following

tar zxvf jetty-distribution-7.0.0.M2.tar.gz
cd jetty-distribution-7.0.0.M2
enable webapps-plus by editing etc/jetty-plus.xml and uncommenting the <Call name="addLifeCycle"> element
mv contexts/*.xml contexts-available/
mkdir webapps-plus
mv webapps/test.war webapps-plus
java -jar start.jar etc/jetty.xml etc/jetty-plus.xml

This produces the following error:
java.lang.ClassNotFoundException: org.eclipse.jetty.plus.webapp.EnvConfiguration

The jar file in the lib directory is there and the EnvConfiguration is
inside it, but this error appears anyway.

What is wrong?
_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-dev

--
Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx | http://www.webtide.com


Back to the top