This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 42555 - Netbeans deploys example application contexts
Summary: Netbeans deploys example application contexts
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 11:44 UTC by thomasv
Modified: 2004-08-13 12:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thomasv 2004-04-28 11:44:48 UTC
It is totally impossible to work with the 
netbeans 3.6 tomcat integration.

Every time i start tomcat, netbeans copies jsp-
examples.xml, servlet-examples.xml and ROOT.xml 
to the catalina conf directory.

How am i supposed to deploy my own application 
in to root then?!.. and why should i run example 
applications when developing?

I didn't have these problems with 3.6 beta.

Also i can't seem to login to the admin or 
manager part of tomcat!
Comment 1 Pavel Buzek 2004-05-01 05:04:18 UTC
The modules are being redeployed because they are in server.xml in
catalina_base (which is in userdir), the modules themselves are in
catalina_home that is in homedir. There is a workaround - undeploy the
modules and remove them from server.xml in catalina_base.
Lowering to P2 because workaround exists.

As for why they are on development tomcat: I think it is natural that
some users (especially beginners) may want to browse or test examples.
I have not heard complaint about that. But I agree that removing them
permanently should be easier.
Comment 2 Pavel Buzek 2004-05-01 05:59:15 UTC
I forgot to add that the same problem exists in beta.
Comment 3 Pavel Buzek 2004-06-22 11:43:25 UTC
I will need to add test if the app is in server.xml and remove it from
there when undeploying.
Comment 4 Martin Grebac 2004-06-29 08:12:09 UTC
Not directly connected to the cause of the bug, but if we have the
jsp/servlet examples packed with IDE, I think it's reasonable to
remove them from the bundled tomcat completely.
Comment 5 Pavel Buzek 2004-07-01 12:44:20 UTC
Stepan is already working on this.. (thanks)
Comment 6 Sherold Dev 2004-07-02 09:43:34 UTC
Undeploying fixed. Context is now being removed from server.xml, when
it is needed. JSP and Servlets examples removed (not completely from
the bundled tomcat but are not being automatically deployed anymore).

---
Checking in src/org/netbeans/modules/tomcat5/Bundle.properties;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.15; previous revision: 1.14
done
Checking in src/org/netbeans/modules/tomcat5/TomcatManager.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/TomcatManager.java,v
 <--  TomcatManager.java
new revision: 1.45; previous revision: 1.44
done
Checking in src/org/netbeans/modules/tomcat5/TomcatManagerImpl.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/TomcatManagerImpl.java,v
 <--  TomcatManagerImpl.java
new revision: 1.34; previous revision: 1.33
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/tomcat5/nodes/TomcatWebModule.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/nodes/TomcatWebModule.java,v
 <--  TomcatWebModule.java
new revision: 1.5; previous revision: 1.4
done
Checking in
src/org/netbeans/modules/tomcat5/nodes/TomcatWebModuleNode.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/nodes/TomcatWebModuleNode.java,v
 <--  TomcatWebModuleNode.java
new revision: 1.3; previous revision: 1.2
done
Comment 7 Petr Blaha 2004-08-04 15:07:07 UTC
Verified