• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

WAR file issue

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic