File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes integrating struts and spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "integrating struts and spring" Watch "integrating struts and spring" New topic
Author

integrating struts and spring

shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
hi,

i am getting error mentioned below,i included all the required jars,i am using eclipse helios,server is jboss

Error configuring application listener of class org.springframework.web.context.ContextLoaderListener: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

same program works in NetBeans 6.9
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

You are missing the JAR file that contains that class.

If you need more help than that, consider providing more information about your application. TellTheDetails


JBoss In Action
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
Peter Johnson wrote:You are missing the JAR file that contains that class.

If you need more help than that, consider providing more information about your application. TellTheDetails



hi,

apart from jre system library (jdk),i am referencing following jars



my strutsconfig.xml is as follows


my applicationcontext.xml is as follows



my web.xml is as follows



thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Post the full stack trace, and post the contents of your WAR (use "jar -tf xxx.war" where xxx.war is the path to your war file)
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
Peter Johnson wrote:Post the full stack trace, and post the contents of your WAR (use "jar -tf xxx.war" where xxx.war is the path to your war file)


full stack trace is




strutstag.war file content is



Actually Reference Libraries (ie External Jars)



already i have shown web.xml,struts-config.xml,applicationcontext.xml

thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

None of the Spring JARs are in WEB-INF/lib, and it is a Spring class that is missing.

What do you mean by "Actually Reference Libraries (ie External Jars)"? Exactly where are those JARs located?
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
Peter Johnson wrote:None of the Spring JARs are in WEB-INF/lib, and it is a Spring class that is missing.

What do you mean by "Actually Reference Libraries (ie External Jars)"? Exactly where are those JARs located?


Reference Librarires means i am adding all the jars from C:\Documents and Settings\admin\Desktop\strutsspringintegrate

i did following and now its working

i created a user library and included all the jars from C:\Documents and Settings\admin\Desktop\strutsspringintegrate
After that i added that user library to Project,Properties,Deployment Assembly

thanks


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Glad you are up and running That's what we are here for.
 
Don't get me started about those stupid light bulbs.
 
subject: integrating struts and spring