Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Struts
Erreur chargement java.lang.ClassNotFoundException
Thony Ng
Greenhorn
Posts: 5
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I'm learning Struts2, I had all struts2 libraries in WebInf/lib
here yu get my web.xml :
<display-name>GestionDeveloppeur</display-name> <filter> <filter-name>struts2</filter-name> <filter-class> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app>
The Struts.xml file
<struts> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> <constant name="struts.devMode" value="false" /> <package name="com.developpez.actions" namespace="/" extends="struts-default"> <!-- Action de l'action de réference --> <default-action-ref name="saisir_Developpeur" /> <action name="saisir_Developpeur"> <result>/jsp/saisir_Developpeur.jsp</result> </action> </package> </struts>
I get this error and don't
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:269) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Help?
Thony Ng
Greenhorn
Posts: 5
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Help Please !!!
Shankar Tanikella
Ranch Hand
Posts: 329
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is it WEB-INF/lib or WebInf/lib you are using?
Is struts2-core-2.x library added in class path?
Have Fun with Java
little,little.. little by little makes a lot..
Thony Ng
Greenhorn
Posts: 5
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Thanks for answering!!
Is struts2-core-2.x library added in class path?
there weren't, i did it. This is my new error :
- Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/Workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/GestionDeveloppeur/WEB-INF/lib/struts2-gxp-plugin-2.3.3.jar!/struts-plugin.xml:8:162 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
Now, I don't know how fix this struts-plugin.xml problem? any issues?? !!
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Exception in Struts2
Exception starting filter struts2
struts2-maven File not found exception problem
Error filterStart ... Struts2
[ASK] Error org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
More...