aspose file tools*
The moose likes Tomcat and the fly likes problem with war file created on linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "problem with war file created on linux" Watch "problem with war file created on linux" New topic
Author

problem with war file created on linux

Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
Hi..All
I have a small application on struts application which is strored on wincvs.I checkout the complete project from cvs to windows and creates a war file, using ant.It works on Tomcat which is installed on Windows. But when I checkout the same project from CVS to Linux and creates the war file using ant it doesnot work on the same Tomcat.Although the same project is checkedout from cvs to windows and linux both.I am not able to understand why the war file generated on linux is not working.Even I have compare the complete folder structure on both war file, its is identical there is no change in any file. please suggest me what could be the reason.
Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10264
    
168

When you say its not working on Linux, what exactly are you observing? Any exceptions? If yes, then post the exception stacktrace and also mention when are you seeing these exceptions.


[My Blog] [JavaRanch Journal]
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
Hi Jaikiran thanks for reply,It is showing 404 error. when I enter the given url on IE
http://10.203.143.96:8080/vccgui/index.jsp


HTTP Status 404 - /vccgui/index.jsp

--------------------------------------------------------------------------------

type Status report

message /vccgui/index.jsp

description The requested resource (/vccgui/index.jsp) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/4.1.18


Although a directory with the name of vccgui is created under /<TOMCAT_HOME>/Catalina/localhost which has nothing.

Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Look in the Tomcat logs to see if something is blowing up when your application tries to load.

Also, use the Tocmat manager application to see if the app has been deployed and started.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
Hi Ben
there is nothing in Tomcat's log dirctory.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It's empty?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

You may have a permissions problem.
Tomcat needs to be able to write to the tomcat/work and tomcat/logs directories to operate.

Also, if you want to deploy a war file, Tomcat will need to be able to write to the tomcat/webapps directory.
 
 
subject: problem with war file created on linux