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 12344 - Tomcat's conf directory isn't created
Summary: Tomcat's conf directory isn't created
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-22 16:39 UTC by L Martinek
Modified: 2001-07-20 20:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exceptions (9.27 KB, patch)
2001-05-22 16:43 UTC, L Martinek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description L Martinek 2001-05-22 16:42:21 UTC
If jsp modules are in user modules directory (this is the case of installing 
modules via autoupdate) then it causes that system/tomcat/conf directory isn't 
created and exceptions are thrown with every execution.

Probably due to this bug there are problems with deployment descriptor. Some 
properties are read-only on contain NoSuchMethodError or NoClassDefFoundError in 
value place.

If I use fix from Milan Kuchtiak then all above problems disappear.
Comment 1 L Martinek 2001-05-22 16:43:20 UTC
Created attachment 1404 [details]
exceptions
Comment 2 Milan Kuchtiak 2001-05-22 17:56:23 UTC
Filesystems API works differently whether tomcat-plugin is installed at the 
beginning or added through the update center. This is due to different 
behaviour of createFolder() method.

Possible fix :
change layer.xml file and TomcatServerExecution file in Tomcat-plugin
Comment 3 Petr Jiricka 2001-05-22 19:20:15 UTC
The workaround is to create the tomcat/conf directory manually.
Comment 4 L Martinek 2001-05-23 11:05:02 UTC
The deployment descriptor problem is not related with this bug. It's caused by 
using not compatible j2eelib.jar so I am descreasing priority to P2.
Comment 5 Milan Kuchtiak 2001-05-24 09:34:56 UTC
Changed layer.xml file from :

<filesystem>
  <folder name="tomcat">
    <folder name="conf">
      <file name="server.xml" 
            url = "defaultserver.xml" />
    </folder>
  </folder>
</filesystem>

to

<filesystem>
  <folder name="tomcat">
      <file name="server.xml" 
            url = "defaultserver.xml" />
  </folder>
</filesystem>

previous version caused sometimes that createFolder() method didn't create 
tomcat/conf directory, because it was already found in XMLFileSystem.
Comment 6 L Martinek 2001-06-14 09:48:18 UTC
verified in 010611_2