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.
Summary: | Cannot work with tomcat shared server instance when http con. port is not set to the default value 8080 | ||
---|---|---|---|
Product: | serverplugins | Reporter: | Marek Fukala <mfukala> |
Component: | Tomcat | Assignee: | Sherold Dev <sherold> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | ckutler, pkeegan |
Priority: | P2 | Keywords: | RELNOTE |
Version: | 3.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Marek Fukala
2004-04-01 12:56:10 UTC
Here is a summary of evaluation that was done off-line: We expect that most users who use external tomcat will not use shared server installation. If so they will likely have the CATALINA_BASE already pre populated. The issue needs to be fixed in promoD but given that we consider this to be a corner case (in combination with port different then 8080) I am asking for waiver for 3.6 release. RELNOTE Entry: Problem: You must follow the "Adding a Tomcat Server" instructions in the online help when you add a shared-installation server using the Add New Server action. In particular, the base directory MUST have the following subdirectories: o conf o logs o webapps In addition, the conf directory must have a server.xml file. If try to use an empty base directory, and if you try to assign a server port other than 8080, you will not be able to use the server from the IDE. For example, you will not be able to execute web apps on that server from the IDE. Workaround: Restart the IDE. Right-click the server instance and choose Properties from the contextual menu. Change the server port property to the correct server port. I would change the text of the last two paragraphs to following text: If you try to add a shared server instance with an empty catalina base directory together with having http connector port set to a value other than 8080 in you catalina home, you will not be able to use the server from the IDE. For example, you will not be able to execute web apps on that server from the IDE. Workaround: After adding the shared server instance restart the IDE. Then the http connector port is supposed to be set to the right value and the server can be used for deployment. just a slight massage to Marek's wording of the last two paragraphs. Please make sure I haven't distorted any meaning: "If you try to add a shared server instance with an empty Catalina base directory and you have an HTTP connector port set to a value other than 8080 in your Catalina home, you will not be able to use the server from the IDE. For example, you will not be able to execute web apps on that server from the IDE. Workaround: After adding the shared server instance, restart the IDE. Then the HTTP connector port should be set to the right value and the server can be used for deployment. If people have not read any Tomcat docs, they might not know what Catalina means (it is a code word). So, here is a suggested rewrite: SUGGESTED RELNOTE: Problem: You must follow the "Adding a Tomcat Server" instructions in the online help when you add a shared-installation server using the Add New Server action. In particular, the base directory MUST have the following subdirectories: o conf o logs o webapps In addition, the conf directory must have a server.xml file. If, when you use the wizard to add a server instance, you do all of the following you will not be able to use the server from the IDE. For example, you will not be able to execute web apps on that server from the IDE. Invalid configuration in Add New Server wizard: o Shared Installation check box selected o Base Directory path pointing to an empty directory o Server Port set to a value other than 8080, Workaround: If you have already created a server instance with this configuration. Restart the IDE. Right-click the server instance, choose Properties from the contextual menu, and make sure the server port is set correctly. Another attempt. Marek, can you confirm that the server.xml entry is the right one? Description: If you try to add a shared server instance with an empty Tomcat base directory and the server.xml file in the Tomcat home directory sets the server port to a value other than 8080, you will not be able to use the server from the IDE. For example, you will not be able to execute web apps on that server from the IDE. Here is an example of the server port being set to a value other than 8080: <Connector acceptCount="100" connectionTimeout="20000" debug="0" disableUploadTimeout="true" enableLookups="false" maxSpareThreads="75" maxThreads="150" minSpareThreads="25" port="8081" redirectPort="8443"/> Workaround: If you have already created a server instance with this configuration, restart the IDE. Right-click the server instance, choose Properties from the contextual menu, and make sure the server port is set correctly. Thanks Chris, now the description of the workaround is OK. Thank you for your effort very much! I wanted to write, that the description of the problem and workaround is fine. I am sorry. *** Issue 46117 has been marked as a duplicate of this issue. *** Commit log: Checking in TomcatInstall.java; 1/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/ide/TomcatInstall.java,v <-- TomcatInstall.java new revision: 1.21; previous revision: 1.20 done Build: 20040802 |