Thanks guys. I copied all jars from tomcat 7.0.55 binary, libs & bin/*.jar to 'lib' folder, then I start winstone like this: %> java -jar winstone-0.9.10.jar --useJasper --commonLibFolder=lib/ --webroot=webroot/
When I access any JSP file (that works in tomcat), I got an exception, perhaps I'm missing taglib jars? java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader; at org.apache.jasper.compiler.TagPluginManager.init(TagPluginManager.java:73) at org.apache.jasper.compiler.TagPluginManager.apply(TagPluginManager.java:57) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:240) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:373) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:744) javax.servlet.ServletException: javax.servlet.ServletContext.getClassLoader()Ljava/lang/ClassLoader; at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:744) On Thu, Jul 31, 2014 at 12:05 AM, Christopher Schultz <ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Daniel, > > On 7/30/14, 8:16 AM, Daniel Mikusa wrote: >> On Wed, Jul 30, 2014 at 3:43 AM, Aaron Lewis >> <the.warl0ck.1...@gmail.com> 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). > > +1 > > Interesting that Jasper uses JULI directly instead of commons-logging. > I think that should probably change, since Jasper is something of some > usefulness outside of Tomcat, and JULI is really a Tomcat internal thing. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1 > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJT2RfPAAoJEBzwKT+lPKRY6IIQAL2kayaRosDE71R0N8n9UTW2 > p4Ht+/4ZF2YQEEaqfgoHPYvDNUhv1x1+ydr2QENjIui6ed/5phLtos4+Q5CmzU4I > OCncnMgwiY/jQJ3lzO+C3yOputnYPzphmezKwMhu4nZD1MZ1JtCOv2k4cMChcNGg > JacK9KXMjnoG+iareBEUVjLAG39mn20n26ZR/CU2m1I+TV34Ds2okhmK1xPMWst4 > r1sSoxaQXBx4qmo83tGm/L+IF0k68BHvDWMln1N4Z5fD6UXe4LrU0vq+K77NpOwS > MpauJOI3kYysDpHTlZ+i33gcEfi3Oev7WTtfMxdQtgNjn5GLEWE21aNg3rSjMvr9 > dMKNvs79zk1O4CiT43g7hDRt4g90SO9R1xfwkKLyA789xCSibzVIeCQFpyohOxA1 > KGMrloEF9KIRR/IgnBOD1k1DrBnLqgo5ihawzJut1HXpqvhn+UnfLCjBF/3BP/Iw > 6bF6jFJxv4P4+eyZRaMLlLGzCh5kkTqWeLZyYwdjNc/KexWOwlD+3cl9Np8Smm9L > rNSt52n+o0NVCkSZ4/ceTr/cYBY8DarTl+mWO2OXgWMiev4HJgdO8qDdpqHYSfTm > 8FVFnSdI0wckMZ75E1oQCeVDgYhIfwbXz+1GjXF3R89sAci/4p4IAbY6e4KDobeY > MeU6mx7xl3DzbmgnAQTV > =tjm4 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -- 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org