aspose file tools*
The moose likes Struts and the fly likes Dispatcher initialization failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dispatcher initialization failed" Watch "Dispatcher initialization failed" New topic
Author

Dispatcher initialization failed

Arun Bansal
Greenhorn

Joined: Jun 01, 2010
Posts: 11
I'm trying to create helloworld in struts2 but it is giving me error that is


SEVERE: Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/C:/Documents%20and%20Settings/a.bansal/workspace1/.metadata/.plugins/com.genuitec.eclipse.easie.tomcat.myeclipse/tomcat/webapps/Hello/WEB-INF/lib/struts2-gxp-plugin-2.3.7.jar!/struts-plugin.xml:8:162


I want to know why is this error coming. I first tried with minimal number of jars as specified in many tutorials but after that I downloaded and paste latest versio of jars in my lib folder.
Also please tell me what is the use of struts2-gxp-plugin-2.3.7.jar.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

Google GXP is a replacement for JSP's that provides compile-time type safety.
Struts is attempting to load the plugin and apparently failing.
What is the contents of your WEB-INF/lib directory? When you updated the libraries, did you update Eclipse's build path configuration?

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Arun Bansal
Greenhorn

Joined: Jun 01, 2010
Posts: 11
commons-logging
freemarker
ognl
struts2-core
xwork
these are the jarsin my Lib folder and yes i updated buildpath
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8708
    
    6

When you download Struts, you should get some sample applications in the apps directory. The struts2-blank application is a good starting place for creating a new app and it contains the following JAR files:

asm-3.3.jar
asm-commons-3.3.jar
asm-tree-3.3.jar
commons-fileupload-1.2.2.jar
commons-io-2.0.1.jar
commons-lang3-3.1.jar
freemarker-2.3.19.jar
javassist-3.11.0.GA.jar
ognl-3.0.5.jar
struts2-core-2.3.7.jar
xwork-core-2.3.7.jar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dispatcher initialization failed
 
Similar Threads
Struts2 with JDK1.4.2_19 & Tomcat 5.0.28
Erreur chargement java.lang.ClassNotFoundException
struts2 jasperreports showing garbage in browser
Exception in Struts2
Struts2