• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Struts Project Server Deploy Problem

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing a web project using eclipse ide with struts2, spring and hibernate and maven.
I am adding necessary jar files to pom file and using i them.
However, when I am starting the server, I am getting ClassNotFoundException
So I am also putting jar files to tomcat/lib folder.

Is it true or should I do something to automatically publish jar files to tomcat server lib folder when server is starting?
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not very familiar with Maven so can't say what you are doing wrong. Your struts jars should be deployed with your application and not under tomcat/lib directory. Also it would be easier for people to answer your question if you tell us more details. Which class is creating the ClassNotFoundException?? Also can you post the relevant parts of the pom.xml where you've configured the jars in your project...
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please post the exception stack to see exactly what's the problem? it maybe a dependency you are using in the POM.xml required another dependency. Or maybe a mis-configuration in the POM file leads to that error.
 
Our first order of business must be this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic