creating a war file using tomcat

W

wamahesimonpeter

Hi am a newbie to tomcat. I am having trouble creating a war file, any
help will do. thanks in advance
 
T

Tim Slattery

Hi am a newbie to tomcat. I am having trouble creating a war file, any
help will do. thanks in advance

You're going to have to be more specific than that. You use the
jar.exe tool to create a War. What problem are you having?
 
L

Lew

Hi am a newbie to tomcat [sic]. I am having trouble creating a war file, any
help will do. thanks in advance

Tim said:
You're going to have to be more specific than that. You use the
jar.exe [1] tool to create a War. What problem are you having?

Popular integrated development environments (IDEs) like Eclipse and NetBeans
have the ability to invoke the 'jar' command for you, as does the Ant build
tool. (Ant has a 'war' target.)

Read the documentation for the respective products.

[1] "jar.exe" is Windows only. Other OSes just call it "jar".

See:
<http://java.sun.com/javase/6/docs/technotes/guides/jar/index.html>
<http://java.sun.com/javase/6/docs/technotes/tools/solaris/jar.html>
<http://java.sun.com/javase/6/docs/technotes/tools/windows/jar.html>

To qualify as a WAR, a JAR file should have the extension ".war" and have a
specific internal structure.

Since you're using Tomcat you should read the docs at
http://tomcat.apache.org
in particular,
<http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html>

Have you?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top