*
The moose likes Ant, Maven and Other Build Tools and the fly likes difference between war deploy and eclipse deploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "difference between war deploy and eclipse deploy" Watch "difference between war deploy and eclipse deploy" New topic
Author

difference between war deploy and eclipse deploy

roel croonenberghs
Greenhorn

Joined: May 28, 2009
Posts: 10
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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

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.)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
wood burning stoves
 
subject: difference between war deploy and eclipse deploy
 
Similar Threads
Ant Undeploy Problem
Ant script not finding my build.properties file
Buildfile: build.xml does not exist! Build failed
directly deploying the project into tomcat
Struts Blank WAR error