This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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.
     
    I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
     
    subject: Struts Application Deployment
     
    Similar Threads
    Error in Servlet compilation
    Setting up contexts somewhere other than webapps
    Cant compile the struts application withEclispse 3.4
    problem with struts in weblogic
    location of class file