struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johana pin <johnpin2...@yahoo.com>
Subject [s2 on J4] Error Message: Filter [struts2]: could not be initialized
Date Wed, 06 Jun 2007 10:09:11 GMT
I am new to struts 2 (previously work with struts 1) and I try to build an application with
spring on java 1.4 (websphere 6.0). I got this error when I try to access the deployed application:

Error Message: Filter [struts2]: could not be initialized
Error Code: 500
Target Servlet: null
Error Stack: 
com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException:
No mapping found for dependency [type=java.lang.String, name='struts.devMode'] in public static
void org.apache.struts2.dispatcher.Dispatcher.setDevMode(java.lang.String). 
     at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:157)

     at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(ContainerImpl.java:126)

     at com.opensymphony.xwork2.inject.ContainerImpl.injectStatics(ContainerImpl.java:111)

     at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:494)

     at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:145)

     at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)

     at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)

     at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455) 
     at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) 
     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:109)

     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:328)

...............................
Caused by: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping
found for dependency [type=java.lang.String, name='struts.devMode'] in public static void
org.apache.struts2.dispatcher.Dispatcher.setDevMode(java.lang.String). 
     at com.opensymphony.xwork2.inject.ContainerImpl.createParameterInjector(ContainerImpl.java:239)

     at com.opensymphony.xwork2.inject.ContainerImpl.getParametersInjectors(ContainerImpl.java:229)

     at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.<init>(ContainerImpl.java:282)

...............................


I tryed in struts.xml with and without 'struts.devMode' but I have the same error.

Can you provide some help, please ?
Thank you very much.


 
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message