aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat bootstrap recognize references of projects dependences dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat bootstrap recognize references of projects dependences dynamically" Watch "Tomcat bootstrap recognize references of projects dependences dynamically" New topic
Author

Tomcat bootstrap recognize references of projects dependences dynamically

Carlos Renato Domingos da Silva
Greenhorn

Joined: Dec 03, 2011
Posts: 4
[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
 
jQuery in Action, 2nd edition
 
subject: Tomcat bootstrap recognize references of projects dependences dynamically