• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

difference between war deploy and eclipse deploy

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a JSF project and when I test it under eclipse with tomcat-6.0.18 it all works fine. But when I make a war file with ant, deploy it to my tomcat-6.0.18 server manually (using Tomcat Web Application Manager), and then access the same page, I get an error

the code is

wich calls

Any suggestions on why it compiles and runs under eclipse, but not when I build it with ant?

I'm using tomcat-6.0.18 with java jdk 1.6.0
eclipse-3.5
ant-1.6.5

Roel
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

roel croonenberghs wrote:Any suggestions on why it compiles and runs under eclipse, but not when I build it with ant?Roel


Welcome to JavaRanch!

The two most common causes for this error are:
1) You are compiling with Java 1.4 or earlier. (You can have Ant spit out the version of Java it is using to be sure.)
2) You have an old jar lying around with a different signature. (You can check this by looking at the classpath.)
 
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic