• 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Deploying a web application to Tomcat 6 through Eclipse Ganymede is not copying the .class files

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

I am trying to deploy a simple web application to Tomcat through Eclipse, but when I got the deployment folder in Tomcat, I see the Web-inf/classes/<class package-structure> but there are no class files contained within them and as such I am getting class not found exceptions. However, when Iun-pack the WAR myself, I see the .class files there. I am using the following.

Eclipse Ganymede 3.4.2
Maven 2
Tomcat 6

Any help is greatly appreciated.

Thanks,

Juan
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mean during development your class files are not copied into the embedded tomcat? Or if you publish the result of your development to your production server via maven?
 
J.C. Bustamante
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I try to deploy to the embedded tomcat, it is not copying the .class files. Is it possible that I am missing a configuration? When I build the WAR through Maven, the class files ARE a part of the WAR file, so I know that the class files are there and they are generated. It is just not copied to my embedded Tomcat.

Hope that helps clear things up,

Juan
 
Lars Vogel
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Juan,

I have no experience with Maven but during development Eclipse WTP can deploy automatically to the embedded tomcat webserver. Are you using Eclipse WTP?

Best regards, Lars
 
J.C. Bustamante
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lars,

I am deploying automatically to the embedded tomcat server through eclipse by publishing it to the server after I run the M2Eclipse (Maven for eclipse) on my project. When I publish the WAR, the class files are not getting copied over to the embedded tomcat server. I am using Eclipse Ganymede with the WTP package.

Hope this clears things up,

Thanks,

Juan
 
Lars Vogel
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Juan,

like I said I'm not using Maven. If I use standard Eclipse WTP (as described here Eclipse WTP) it works fine.

Sorry, that I cannot help.

Best regards, Lars
 
J.C. Bustamante
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Thanks for the help. I do not believe it has something to do with Maven, but with how the workspace gets published to Tomcat 6 by Eclipse. I will keep looking into it and I will let you know what I come up with.

Cheers,

Juan
 
J.C. Bustamante
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I managed to get it working. Apparantly, I had to modify my project properties to include Apache Tomcat as the target runtime. After I made that change, it started working.

Cheers,

Juan
 
The fastest and most reliable components of any system are those that are not there. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic