• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

war file deployment problem

 
Gopu Akraju
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get to see this from catalina.out



How do I fix this problem? Thanks.
 
Yuval Goldstein
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Gooduck,
Yuval.
 
Gopu Akraju
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic