tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aryeh Friedman <aryeh.fried...@gmail.com>
Subject Fwd: help using JspC from the command line in 7
Date Fri, 17 Aug 2012 21:39:19 GMT
---------- Forwarded message ----------
From: Aryeh Friedman <aryeh.friedman@gmail.com>
Date: Fri, Aug 17, 2012 at 5:33 PM
Subject: help using JspC from the command line in 7
To: tomcat-user@tomcat.apache.org


I have figured out most of how to compile JSP from the command line
but I am now stuck on this:

% java -cp /usr/local/apache-tomcat-7.0/lib/jasper.jar:/usr/local/share/java/apache-ant/lib/ant.jar:/usr/local/apache-tomcat-7.0/lib/servlet-api.jar
org.apache.jasper.JspC foo.jsp
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/juli/logging/LogFactory
        at org.apache.jasper.JspC.<clinit>(JspC.java:101)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
        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)
        ... 1 more
Could not find the main class: org.apache.jasper.JspC. Program will exit.

Any ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message