File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Application Deployment

 
Gautam Verma
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic