On Wed, Jul 30, 2014 at 3:43 AM, Aaron Lewis <[email protected]> wrote:
> Hi, > > I'm trying to build a minimal JSP container, just like winstone > http://winstone.sourceforge.net/#commandLine > > But with tc 7.0.55 it doesn't seem to work, so I had to find my own > ways around the Jasper class: > Error initializing web application: prefix [] > java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory > Not sure that I follow what you're trying to do here, but it seems like you're missing the JAR file for JULI, the logging library used by Tomcat. Maybe if you add that to your class path it'll help? It's in the "bin" directory of a normal Tomcat install (tomcat-juli.jar). Dan > at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:68) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > at java.lang.Class.newInstance(Class.java:374) > at > winstone.ServletConfiguration.ensureInitialization(ServletConfiguration.java:178) > at > winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:918) > at > winstone.HostConfiguration.initWebApp(HostConfiguration.java:131) > at winstone.HostConfiguration.<init>(HostConfiguration.java:73) > at winstone.HostGroup.initHost(HostGroup.java:85) > at winstone.HostGroup.<init>(HostGroup.java:45) > at winstone.Launcher.<init>(Launcher.java:196) > at winstone.Launcher.main(Launcher.java:391) > Caused by: java.lang.ClassNotFoundException: > org.apache.juli.logging.LogFactory > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > > So, is there any example code with Jasper class? > > > -- > Best Regards, > Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/ > Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
