This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Tomcat bootstrap recognize references of projects dependences dynamically
 
It's not a secret anymore!