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

Summary: Tomcat's conf directory isn't created
Product: javaee Reporter: L Martinek <lmartinek>
Component: CodeAssignee: Milan Kuchtiak <mkuchtiak>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P2    
Version: -FFJ-   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: exceptions

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