aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "WAR file issue" Watch "WAR file issue" New topic
Author

WAR file issue

AMATYA CHANAKYA
Greenhorn

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.

Thanks
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:
WAR/META-INF/MANIFEST.MF

The classpath entries are specified under "Class-Path:" in manifest.mf.
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: http://aspose.com/file-tools
 
subject: WAR file issue
 
Similar Threads
Tomcat not reading context.xml on deployment
using log4j in a servlet
classpath issues
maven: the war directory structure
web app deployment