File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes war file deployment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "war file deployment problem" Watch "war file deployment problem" New topic

war file deployment problem

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
I have a JSF application with web.xml as follows:

I used netbeans to create this applicationa and when i run this on localhost, it doesn't through any exception and I am able to see the application.

But when I deployed the test.war file into tomacat of a server, when I try to access through web, http://XXX:8080/test, it throws an exception as below:

How do I rectify this problem? Thanks.
Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
I get to see this from catalina.out

How do I fix this problem? Thanks.
Yuval Goldstein

Joined: Dec 27, 2006
Posts: 18
It seems you compiled your code with a different JDK version than the one you are using to run the code with.

In your application server startup script put something like "ECHO %JAVA_HOME%" to see which jdk you are using.

Gopu Akraju
Ranch Hand

Joined: Jan 13, 2008
Posts: 242
Ok. Thanks for the info. My application is developed under 1.5 and server contains 1.6. That explains.

How do I dupm my source code (including java, jsp.xml etc.. entire set of files as it is a web application) into server with jdk1.6 and compile it in the server. Please let me know. I want to try this instead of deploying war file.

I agree. Here's the link:
subject: war file deployment problem
It's not a secret anymore!