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 156913 - Configuration does not read server.xml from CATALINA_BASE
Summary: Configuration does not read server.xml from CATALINA_BASE
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All Unix
: P2 blocker with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-15 19:53 UTC by fordfrog
Modified: 2009-10-07 15:19 UTC (History)
3 users (show)

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 fordfrog 2009-01-15 19:53:56 UTC
When adding new Tomcat 6.0 server with separate CATALINA_HOME and CATALINA_BASE (Use Private Configuration Folder
checkbox), the code tries to find CATALINA_HOME/conf/server.xml instead of CATALINA_BASE/conf/server.xml.
Comment 1 amyroh 2009-02-02 22:03:00 UTC
FYI, the same issue has been reported in Web Stack (default CATALINA_BASE is different from CATALINA_HOME in order to
put log/conf files in different locations).  Hence, this problem has been reported when adding Apache Tomcat provided
through SWS in RHEL 5.2. In RHEL, the CATALINA_HOME is /opt/sun/webstack/tomcat/5.5 and CATALINA_BASE is
/var/opt/sun/webstack/tomcat/5.5. When try to add a server in NB 6.5 and point to the SWS CATALINA_HOME, the error
displays CATALINA_HOME/conf/server.xml can't be read and cannot configure Tomcat with NB.
Comment 2 petrs 2009-02-03 10:29:20 UTC
The same issue is with Solaris/OpenSolairs bundled Tomcat and NetBeans. The issue is quite high call generator therfore
I'm increasing priority. 

See related thread at webstack-discuss:

http://www.opensolaris.org/jive/thread.jspa?threadID=87923&tstart=30
Comment 3 Petr Hejl 2009-02-05 21:16:55 UTC
Fixed in main fbc513dcb336. Have to check how to handle server-minimal.xml on solaris.
Comment 4 Quality Engineering 2009-02-06 07:52:51 UTC
Integrated into 'main-golden', will be available in build *200902060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fbc513dcb336
User: phejl@netbeans.org
Log: #156913 Configuration does not read server.xml from CATALINA_BASE
Comment 5 Petr Hejl 2009-02-16 11:24:02 UTC
This has been fixed.
Comment 6 rajan_chandi 2009-08-18 09:04:28 UTC
I tried to do this using Ubuntu 9.04, Netbeans 6.5.1 and Tomcat6.
The Tomcat6 was installed using Synaptic Package Manager.
I am facing this issue. Please correct this for Ubuntu Jaunty.

Regards,
Rajan
Comment 7 Petr Jiricka 2009-08-18 10:11:07 UTC
You are right that this issue is not fixed in 6.5.1, which is the version you are using. It is fixed in 6.7.x, which
will be included in the next Ubuntu. You can get the fix by downloading NetBeans 6.7.1 from netbeans.org and installing
it using the installer. Changing back to FIXED. 
Comment 8 omone 2009-10-07 15:19:40 UTC
My configuration is
Ubuntu 8.04 Server with Tomcat 6.7.1, and I was still facing this issue until I gave server.xml read permission to any
with the command

sudo chmod a+r CATALINA_HOME/conf/server.xml

The default installation of LAMP Ubuntu leave this file rw permission to root only (unless I had done something wrong).

Hope this helps.