Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat bootstrap recognize references of projects dependences dynamically

 
Carlos Renato Domingos da Silva
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Hi Guys,

Some help please!

I have two projects : SpringProj and StrutsProj configured in the same workspace from my eclipse helios.


Scenary: The project StrutsProj recognizes the SpringProj because I had configured it in eclipse classpath. But, when I start my Tomcat the error appear to me: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

Alternative resolution: put all the libs from "SpringProj/lib" to "StrutsProj/Web-INF/lib" and only restart the tomcat .... its OK works!!!

But I wish have 2 projects: One for spring classes and other for my struts views actions (2 projects separateds);

Note 1 : I already try to add the SpringProj project in bootstrap of eclipse tomcat server configuration (Tomcat v7.0 Server at localhost > Open Lauch configuration > classpath > Bootstrap entries), but I did not have success... The errors continues the same : java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener ...

Note 2: I do not wish generate the jar, for exemple, SpringProj.jar and put it on the StrutsProj/Web-INF/lib.

Any suggestions?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic