Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans runs all my projects

I'm using Netbeans 6.5.1 (tomcat 6.0.18 included)

I've developed many webapp projects on netbeans. I created a contextlistener for each webapp which prints "Hello World! this is <>" in contextInitialized method.

Whenever I click "Run main project" button (or click-right-mouse-button over a project and select "Run") I can see in tomcat's output window all my other projects are running as well.

I mean, when I run a project (any project) I can see that all my webapps call their respective context listener! the worst scenario is when a webapp uses hibernate: each webapp do all the related hibernate initialization work.

Is there any way to run only the project I want?

I already tried closing the other projects but that doesn't work.

like image 784
Enyel Avatar asked Jun 24 '09 06:06

Enyel


1 Answers

From what I recall, Netbeans does not always un-deploy your other web applications from the development tomcat server.

To remove the other projects, go to the Services (formerly Runtime) tab. Expand the Servers group. Right click the Tomcat Server instance and select Start (if it's not already running). Expand the Tomcat Server group--it should list all of the deployed application. Right click each application and select Undeploy.

I'm going from memory so please forgive me if my instructions are off...

like image 156
James Schek Avatar answered Sep 24 '22 11:09

James Schek