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 66600 - [50cat] Server.xml is corrupted
Summary: [50cat] Server.xml is corrupted
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 13:03 UTC by cezariusz
Modified: 2006-06-01 15:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
server.xml (1.85 KB, text/xml)
2005-10-12 13:04 UTC, cezariusz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2005-10-12 13:03:21 UTC
[ BUILD # : 200510100858 ]
[ JDK VERSION : 1.5.0 ]

I'm trying to add my standalone Tomcat 5.0 server, but server manages says, that server.xml configuration file seems to be corrupted. I'll attach the file.
Comment 1 cezariusz 2005-10-12 13:04:04 UTC
Created attachment 25862 [details]
server.xml
Comment 2 Sherold Dev 2005-10-12 13:55:14 UTC
Please refer to 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/server.html.

I see for example that the server element is missing its required attributes.
Comment 3 cezariusz 2005-10-13 08:03:01 UTC
1. Tomcat works fine with that config file, why NetBeans cannot?
2. AFAIR, I didn't change anything in that file, except for adding a new 
connector, so it will pretty default config for Tomcat 5.0.27 users.
So it would be better to either support default out-of-the-box configuration, 
or drop Tomcat 5.0 support at all. What do you think?
Comment 4 cezariusz 2005-11-10 12:30:56 UTC
Could you please tell me which required attributes do I miss?
Comment 5 Sherold Dev 2005-11-11 08:44:19 UTC
I didn't check everything but for example the Server element is missing: port
and shutdown attributes.
Comment 6 cezariusz 2005-11-15 18:21:57 UTC
Yes, adding port and shutdown attributes solves the problem. But, are they 
really necessary, since Tomcat works without them?
Anyway, I've filled the issue #68759 to tell the user what's missing.
Comment 7 Sherold Dev 2006-01-05 17:36:46 UTC
F.

Checking in src/org/netbeans/modules/tomcat5/resources/tomcat5_server.dtd;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/resources/tomcat5_server.dtd,v
 <--  tomcat5_server.dtd
new revision: 1.7; previous revision: 1.6
done
Checking in src/org/netbeans/modules/tomcat5/util/TomcatInstallUtil.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/util/TomcatInstallUtil.java,v
 <--  TomcatInstallUtil.java
new revision: 1.17; previous revision: 1.16
done
Checking in src/org/netbeans/modules/tomcat5/util/TomcatProperties.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/util/TomcatProperties.java,v
 <--  TomcatProperties.java
new revision: 1.10; previous revision: 1.9
done
Checking in src/org/netbeans/modules/tomcat5/wizard/InstallPanelVisual.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/wizard/InstallPanelVisual.java,v
 <--  InstallPanelVisual.java
new revision: 1.6; previous revision: 1.5
done
RCS file: /cvs/tomcatint/tomcat5/test/unit/data/conf/invalid/server_0.xml,v
done
Checking in test/unit/data/conf/invalid/server_0.xml;
/cvs/tomcatint/tomcat5/test/unit/data/conf/invalid/server_0.xml,v  <--  server_0.xml
initial revision: 1.1
done
RCS file: /cvs/tomcatint/tomcat5/test/unit/data/conf/invalid/server_1.xml,v
done
Checking in test/unit/data/conf/invalid/server_1.xml;
/cvs/tomcatint/tomcat5/test/unit/data/conf/invalid/server_1.xml,v  <--  server_1.xml
initial revision: 1.1
done
RCS file: /cvs/tomcatint/tomcat5/test/unit/data/conf/valid/server_0.xml,v
done
Checking in test/unit/data/conf/valid/server_0.xml;
/cvs/tomcatint/tomcat5/test/unit/data/conf/valid/server_0.xml,v  <--  server_0.xml
initial revision: 1.1
done
RCS file: /cvs/tomcatint/tomcat5/test/unit/data/conf/valid/server_1.xml,v
done
Checking in test/unit/data/conf/valid/server_1.xml;
/cvs/tomcatint/tomcat5/test/unit/data/conf/valid/server_1.xml,v  <--  server_1.xml
initial revision: 1.1
done
RCS file:
/cvs/tomcatint/tomcat5/test/unit/src/org/netbeans/modules/tomcat5/wizard/InstallPanelVisualTest.java,v
done
Checking in
test/unit/src/org/netbeans/modules/tomcat5/wizard/InstallPanelVisualTest.java;
/cvs/tomcatint/tomcat5/test/unit/src/org/netbeans/modules/tomcat5/wizard/InstallPanelVisualTest.java,v
 <--  InstallPanelVisualTest.java
initial revision: 1.1
done
Comment 8 Jaroslav Pospisil 2006-01-18 15:08:47 UTC
cezariusz, could you please verify the fix?
Comment 9 cezariusz 2006-01-18 17:55:41 UTC
The fix hasn't been integrated into 5.0 RC1, has it? Seems I'll have to 
download a daily.
Comment 10 Sherold Dev 2006-01-25 15:27:41 UTC
No, it has not been intergrated into the 5.0 release, it was too late for it.
Comment 11 Jaroslav Pospisil 2006-06-01 15:34:26 UTC
VERIFIED