This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts Application Deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Application Deployment" Watch "Struts Application Deployment" New topic
Author

Struts Application Deployment

Gautam Verma
Greenhorn

Joined: Dec 15, 2010
Posts: 4

I have made a project using eclipse IDE, compiling it using Ant and deplying it on tomcat. ( by put the host tag in the servlet configuration file. )
The structure of the project is
- classes ( it contains the compiled java classes. )
- build.xml ( it is the build script used by the Ant. )
- src ( the Source folder. )
- WebContent
- JSP ( it contains all the JSP files. )
- WEB-INF
- lib ( it has subfolders which contains jar file, like struts folder has all struts jar files and servlet folder has all servlet files.)
- struts-config.xml
- web.xml


I am compiling it using Ant and it compiling fine , but when i am deploying it on tomcat it is not able to find the struts jar files.
P.S - I can give more detailed information if asked, but please help me out to run it.

How to provide all information to web-app at runtime?
Gautam Verma
Greenhorn

Joined: Dec 15, 2010
Posts: 4

The directory Structure has messed up. Actually it is,

The structure of the project is
  • classes ( it contains the compiled java classes. )
  • build.xml ( it is the build script used by the Ant. )
  • src ( the Source folder. )
  • WebContent
    ----------- JSP ( it contains all the JSP files. )
    ----------- WEB-INF
    ------------------------------- lib ( it has subfolders which contains jar file, like struts folder has all struts jar files and servlet folder has all servlet files.)
    ------------------------------- struts-config.xml
    ------------------------------- web.xml


  • --- -> to indicate these are contained in the above folder.
    Now can anybody help me out. How actually to deploy so that they can find jar files.
     
    jQuery in Action, 2nd edition
     
    subject: Struts Application Deployment