[opencms-dev] NoClassDefFoundError on cmsshell.sh
Christoph P. Kukulies
kuku at physik.rwth-aachen.de
Thu Feb 9 12:38:00 CET 2012
While trying out cmsshell.sh I'm getting
root at kukulies:/var/lib/tomcat6/webapps/ROOT/WEB-INF# ./cmsshell.sh
java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
at org.opencms.main.CmsShell.<init>(CmsShell.java:411)
at org.opencms.main.CmsShell.main(CmsShell.java:548)
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletRequest
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 2 more
${user}@${project}:${siteroot}|${uri}>
${user}@${project}:${siteroot}|${uri}>quit
java.lang.NullPointerException
at org.opencms.main.CmsShell.executeCommand(CmsShell.java:760)
at org.opencms.main.CmsShell.executeCommands(CmsShell.java:835)
at org.opencms.main.CmsShell.start(CmsShell.java:663)
at org.opencms.main.CmsShell.main(CmsShell.java:554)
root at kukulies:/var/lib/tomcat6/webapps/ROOT/WEB-INF#
I have this in cmsshell.sh:
SERVLET_API=/usr/share/tomcat6/lib/servlet-api.jar
JSP_API=/usr/share/maven-repo/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar
root at kukulies:/var/lib/tomcat6/webapps/ROOT/WEB-INF# java -version
java version "1.6.0_23"
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b23~pre11-0ubuntu1.11.10.1)
OpenJDK Client VM (build 20.0-b11, mixed mode, sharing)
Any ideas?
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
More information about the opencms-dev
mailing list