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 188882 - Bad server plugin: cannot locate layer filesystem J2EE/DeploymentPlugins/Tomcat5
Summary: Bad server plugin: cannot locate layer filesystem J2EE/DeploymentPlugins/Tomcat5
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 7.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-22 20:23 UTC by Jesse Glick
Modified: 2010-11-02 10:57 UTC (History)
1 user (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 Jesse Glick 2010-07-22 20:23:30 UTC
Dev build, but long broken. Build cluster.config=basic. Then build maven.j2ee, so a subset of the enterprise cluster is also built. Run IDE and open a war-packaging project. You get on console:

INFO [org.netbeans.modules.j2ee.deployment.impl.ServerRegistry]
java.lang.IllegalStateException: Bad server plugin: cannot locate layer filesystem MultiFileObject@b688e1[J2EE/DeploymentPlugins/Tomcat5]
        at org.netbeans.modules.j2ee.deployment.impl.Server.<init>(Server.java:113)
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addPlugin(ServerRegistry.java:185)
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.init(ServerRegistry.java:133)
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.instancesMap(ServerRegistry.java:171)
        at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getServerInstance(ServerRegistry.java:300)
        at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.<init>(ConfigSupportImpl.java:135)
        at org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeModuleProvider.getConfigSupport(J2eeModuleProvider.java:134)
        at org.netbeans.modules.j2ee.common.ui.BrokenServerLibrarySupport.getDependencies(BrokenServerLibrarySupport.java:193)
        at org.netbeans.modules.j2ee.common.ui.BrokenServerLibrarySupport.getMissingServerLibraries(BrokenServerLibrarySupport.java:153)
        at org.netbeans.modules.maven.j2ee.POHImpl.refreshAppServerAssignment(POHImpl.java:212)
        at org.netbeans.modules.maven.j2ee.POHImpl.projectOpened(POHImpl.java:119)

If there is a hard dependency on some other module, it should be expressed formally in module metadata. If there is not, no exception should be printed.
Comment 1 Jesse Glick 2010-10-28 16:25:31 UTC
This is now thrown on *every startup* using cluster.config=maven.
Comment 2 Jesse Glick 2010-11-01 16:13:46 UTC
core-main #eba7beeeb6c4
Comment 3 Quality Engineering 2010-11-02 03:59:38 UTC
Integrated into 'main-golden', will be available in build *201011020000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/eba7beeeb6c4
User: Jesse Glick <jglick@netbeans.org>
Log: #188882: Bad server plugin: cannot locate layer filesystem J2EE/DeploymentPlugins/Tomcat5
Comment 4 Jesse Glick 2010-11-02 06:45:36 UTC
Please review fix.
Comment 5 Petr Hejl 2010-11-02 10:57:10 UTC
Looks good. Thanks Jesse.