• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding web.xml Help needed

 
chintan ramavat
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

I am getting this error while deploying .jsp
"
"Trying to upload an illegal war archive. Make sure the archive file contains the descriptor file web.xml. ", I have installed SUN J2EE AppSer

I don't the what is the solution, may be to create web.xml manually, or how to make sure the deployment descriptor is correct or not ?

I would really appreciate if any could help me out with this .
Thank you,

CHI
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a web.xml in the WEB-INF folder of the war file?
 
chintan ramavat
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I don't think so. In fact I made the .war file using JAR command assumed that it will make WAR.INF by default. So now what i have to do in order to check / make / update (if somewhere), WAR.INF folder.

Thanks Bear,
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no WAR.INF.

The spelling and case of these things is important.
In order to be a valid web application there must be a folder named "WEB-INF"
in the root directory of the application.

Your deployment descriptor (web.xml) goes in the WEB-INF directory.

If you want a valid war file to examine, I have some on my site.
http://simple.souther.us
Look for SimpleServlet.

You can unpack the war file with winzip to see the directory structure.
 
chintan ramavat
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

using WINZIP self Extractor i am not able to open the .WAR file which is up on your website. What would be done in order to see the directory structure of WEB-INF folder.

- Thank you
- CHI
 
chintan ramavat
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben very much,

I got it, it was a typo as i saved it .WAR and was trying to open up with ZIP. It's all done thanks.

- CHI
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!