[opencms-dev] NoClassDefFoundError on cmsshell.sh
Christian Steinert
christian_steinert at web.de
Thu Feb 9 17:25:03 CET 2012
On 09.02.2012 12:38, Christoph P. Kukulies wrote:
> 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
Please check the path to the SERVLET_API jar. I had the same problem as long as the shell could not find tomcat's jar with the servlet API.
Kind regards
Christian
More information about the opencms-dev
mailing list