File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes cant deploy my application,please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "cant deploy my application,please help" Watch "cant deploy my application,please help" New topic
Author

cant deploy my application,please help

Khalid Al-Foaim
Greenhorn

Joined: Jan 24, 2010
Posts: 2
hey guys
I have developed a web application by netbeans and when I run it it runs perfectly on the local netbeans glassfish server
but the problem is I could not deploy it on my web server
1st try:
I built it and uploaded the war file "HW6_Build3.war and went to tomcat admin page tried to make a new context and I got a message that the document base doesn`t exist or is not a readable directory
2nd try:
I tried unpacking the war file myself and copying it to the webapps folder but when I try to access the main page I get a 404
3rd try:
I copied the war file to the webapps folder and made a HW6_Build3.xml file ,that didn`t work either.

You might need these:
content of:
1-web.xml


2-faces-config.xml



What is wrong? , please help me the home work is due in two days and I am a good java programer but the stupidest man in the deployment stuff

One final thing:
I have deployed other applications before and they run perfectly but there is a difference which is they are only a couple of servlets but this one has some visual jsp pages that I made
by the visual jsp plug in for netbeans

Thank you
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16020
    
  20


1st try:
I built it and uploaded the war file "HW6_Build3.war and went to tomcat admin page tried to make a new context and I got a message that the document base doesn`t exist or is not a readable directory
2nd try:
I tried unpacking the war file myself and copying it to the webapps folder but when I try to access the main page I get a 404
3rd try:
I copied the war file to the webapps folder and made a HW6_Build3.xml file ,that didn`t work either.


Make sure there aren't any errors in the log file (catalina.out).

I'm not sure how you uploaded, but if you use the installer in the Tomcat admin webapp, you can select and upload a WAR and supply a context name at the same time. They don't mention, however, that you need a "/" in the front of the context name.

If you install directly into TOMCAT_HOME/webapps (unpacked or otherwise), the context name will default to the name of the file/directory that you installed. In the case of an unexploded WAR, that excludes the ".war" part. It's case-sensitive, by the way.

You didn't include the HW6_Build3.xml file, so I don't know if it was defective. You should have installed it in TOMCAT_HOME/conf/Catalina/localhost/.

But mostly you need to check the Tomcat logs. If the WAR itself is defective, it won't deploy. You don't get "half a WAR".


Customer surveys are for companies who didn't pay proper attention to begin with.
Khalid Al-Foaim
Greenhorn

Joined: Jan 24, 2010
Posts: 2
Thanks for the reply tim
anyway I have solved my problem by installing glass fish on my server
I dont know why Tomcat didn`t deploy my application
Thank you
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: cant deploy my application,please help