• 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

Error deploying a project on Tomcat

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

I developed a web application on my computer using Eclipse and Tomcat. The app runs fine and I wanna now deploy it on a different machine.
So I installed tomcat and it's running fine with the basic configuration.

In eclipse I said export the dynamic web project as WAR file and I put it into tomcat webapps directory.
But as soon as I start the server now it gives me the following error:



Any ideas on that?
I use tomcat 7.0.37 and Java 7

edit: it looks like it directs to an error in the web.xml.. but I can't seem to find any:

 
Saloon Keeper
Posts: 27807
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Leo! You have in fact made 2 separate definitions for the addTreeServlet. They're both wrong, also. The servlet definition needs to be supplied with the fully-qualified classname of the servlet, not its simple name. So, in other words:


For example.
 
Looky! I'm being abducted by space aliens! Me and this 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