Hi, I'm trying to run stripes with winstone servlet container
(http://winstone.sourceforge.net/)
but I'm running into errors.
I think I've got all the jar files needed. However, when I run it, I
get an error (see below) in the
console. It looks like it has something to do with commons-logging
jar. winstone uses jasper,
which requires commons-logging. I'm using 4.0.6 for it, the file size
of which is 23.6KB. I
notice that stripes also includes a commons-logging.jar, which is
59.4KB. I guess it means
it's a different version. I'm not sure if this has anything to do with
the error I'm getting.
I'm not sure why I'm also "supporting file upload library is not
present on the classpath",
either. Isn't cos.jar for this?
10:38:28,953 DEBUG DefaultMultipartWrapperFactory:78 -
DefaultMultipartWrapperFactory not using net.
sourceforge.stripes.controller.multipart.CommonsMultipartWrapper
because it failed to load. This lik
ely means the supporting file upload library is not present on the classpath.
10:38:28,953 INFO DefaultMultipartWrapperFactory:91 - Using
net.sourceforge.stripes.controller.mult
ipart.CosMultipartWrapper as MultipartWrapper implementation.
10:38:28,968 DEBUG DefaultConfiguration:441 - Configuring interceptor
'BeforeAfterMethodInterceptor'
, for lifecycle stages: [RequestInit, ActionBeanResolution,
HandlerResolution, BindingAndValidation,
CustomValidation, EventHandling, ResolutionExecution, RequestComplete]
10:38:28,968 DEBUG DefaultConfiguration:441 - Configuring interceptor
'HttpCacheInterceptor', for li
fecycle stages: [ResolutionExecution]
10:38:28,968 INFO StripesFilter:132 - Stripes Initialization
Complete. Version: 1.5.1, Build: 1102
[Winstone 2009/05/02 10:38:28] - Error initializing web application:
prefix [/stripes-examples]
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException: org.apache.commo
ns.logging.impl.LogFactoryImpl cannot be cast to
org.apache.commons.logging.LogFactory
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:506)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:340)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at org.apache.jasper.servlet.JspServlet.<init>(JspServlet.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm
pl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
winstone.ServletConfiguration.ensureInitialization(ServletConfiguration.java:178)
at winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:918)
at winstone.HostConfiguration.initWebApp(HostConfiguration.java:131)
at
winstone.HostConfiguration.initMultiWebappDir(HostConfiguration.java:317)
at winstone.HostConfiguration.<init>(HostConfiguration.java:80)
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.ClassCastException:
org.apache.commons.logging.impl.LogFactoryImpl cannot be ca
st to org.apache.commons.logging.LogFactory
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:504)
... 18 more
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users