• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

war file deployment problem

 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get to see this from catalina.out



How do I fix this problem? Thanks.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic