2012/8/18 Aryeh Friedman <aryeh.fried...@gmail.com>:
> ---------- Forwarded message ----------
> From: Aryeh Friedman <aryeh.fried...@gmail.com>
> Date: Fri, Aug 17, 2012 at 5:33 PM
> Subject: help using JspC from the command line in 7
> To: tomcat-u...@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?

1. org/apache/juli/logging/LogFactory is in bin/tomcat-juli.jar.
2. You certainly would need some other JARs from the lib folder as
well (notably the tomcat-util.jar one).

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

Reply via email to