• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

.WAR files

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there,

Can anyone plz tell me how to create .war files from class files.

I want to autodeploy .war files from sun application server 8.1

Thanks
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From a command line at the root of your expanded WAR directory structure:

[ September 22, 2005: Message edited by: Paul Sturrock ]
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see that I am not the only person who uses "jar" to create war files. My colleagues like to use "zip", because "jar" creates an extra manifest file and directory, that is not needed. Personally, it doesn't bother me.

Henry
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"sindhu"

Welcome to JavaRanch. We don't have many rules around here, but the one that we do have is our JavaRanch Naming Policy. Please take a moment to read it, and then please change your display name to comply. (We are looking for a first and last name.

Thank you very much,
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I see that I am not the only person who uses "jar" to create war files. My colleagues like to use "zip", because "jar" creates an extra manifest file and directory, that is not needed. Personally, it doesn't bother me.



can we use "zip" files instead of "war"
then,do all servers support "zip" format.?
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. But you can use zip to create wars.
 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manikanta,

WARs and JARs are just zip files. You can create and view the contents of a ?ARs with any zip program. When you create a ?ar file using a zip program, just change the zip extension to the appropiate one.

As was previously pointed out, you need to add a manifest manually when building a JAR using a zip program.

Cheers,
 
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Henry Wong:
I see that I am not the only person who uses "jar" to create war files. My colleagues like to use "zip", because "jar" creates an extra manifest file and directory, that is not needed. Personally, it doesn't bother me.

Henry



Point your colleagues to the -M option.


-M do not create a manifest file for the entries


Better still, use Apache Ant.
If I could have a dollar for each time I've seen a EAR/WAR/JAR refuse to function because it was archived using some arbitrary tool...
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic