File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes WAR file issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WAR file issue" Watch "WAR file issue" New topic

WAR file issue


Joined: Jul 25, 2008
Posts: 1
Hello to all,

I have created web application using Struts 1.2 framework,In my Web app previously I am not using WAR deployment so I have give all the path using contextpath,but after creating WAR file I am enable to get contextpath so please help me on this issue, How to resolve the issue if I want to keep all the xml file inside the web app folder.

Milind Vijay Shah
Sandeep Murthy
Ranch Hand

Joined: Oct 05, 2005
Posts: 34
In you WAR, you can specify the classpath entries in the file:

The classpath entries are specified under "Class-Path:" in
For e.g: The manifest file content can be as follows:
Manifest-Version: 1.0
Class-Path: lib/xyz.jar lib/castor-0.9.6-xml.jar lib/log4j-1.
2.8.jar lib/xmlbinding.jar config config/xsd config/xml

The entries have to be space separated.
You can include folders and jars in classpath.

[ July 28, 2008: Message edited by: Sandeep Narasimhamurthy ]
[ July 28, 2008: Message edited by: Sandeep Narasimhamurthy ]

SCJP 1.4
I agree. Here's the link:
subject: WAR file issue
It's not a secret anymore!