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 111998 - Exception switching from Tomcat to Glassfish
Summary: Exception switching from Tomcat to Glassfish
Status: RESOLVED DUPLICATE of bug 111571
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-05 04:51 UTC by _ tboudreau
Modified: 2007-08-06 20:57 UTC (History)
0 users

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 _ tboudreau 2007-08-05 04:51:36 UTC
Build 0700728.  I switched my project to run in glassfish after using Tomcat 6 for a while.  Upon closing the project properties dialog, the following 
exception was thrown and at the same time I got a dialog saying my sun-web.xml file was corrupted and needed to be overwritten.

java.lang.IllegalStateException: WARNING: Going from readAccess to writeAccess, see #10778: http://www.netbeans.org/issues/show_bug.cgi?id=10778 
	at org.openide.util.Mutex.enterImpl(Mutex.java:573)
	at org.openide.util.Mutex.enter(Mutex.java:538)
	at org.openide.util.Mutex.writeEnter(Mutex.java:516)
	at org.openide.util.Mutex.writeAccess(Mutex.java:382)
	at org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl$StaticBuildExtensionListener.reactToInstanceChange
(ModuleConfigurationImpl.java:385)
	at org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl$StaticBuildExtensionListener.instanceAdded(ModuleConfigurationImpl.java:377)
	at org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl.<init>(ModuleConfigurationImpl.java:116)
	at org.netbeans.modules.j2ee.sun.ide.j2ee.ModConFactory.create(ModConFactory.java:41)
	at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getModuleConfiguration(ConfigSupportImpl.java:673)
	at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.ensureConfigurationReady(ConfigSupportImpl.java:195)
[catch] at org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeModuleProvider.fireServerChange(J2eeModuleProvider.java:700)
	at org.netbeans.modules.web.project.ProjectWebModule.propertyChange(ProjectWebModule.java:496)
	at org.netbeans.spi.project.support.ant.PropertyUtils$SequentialPropertyEvaluator.stateChanged(PropertyUtils.java:857)
	at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:297)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:101)
	at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:87)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP$2.run(ProjectProperties.java:310)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP$2.run(ProjectProperties.java:309)
	at org.openide.util.Mutex.readAccess(Mutex.java:230)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP.fireChange(ProjectProperties.java:316)
	at org.netbeans.spi.project.support.ant.ProjectProperties$PP.put(ProjectProperties.java:188)
	at org.netbeans.spi.project.support.ant.ProjectProperties.putProperties(ProjectProperties.java:101)
	at org.netbeans.spi.project.support.ant.AntProjectHelper$8.run(AntProjectHelper.java:650)
	at org.netbeans.spi.project.support.ant.AntProjectHelper$8.run(AntProjectHelper.java:649)
	at org.openide.util.Mutex.writeAccess(Mutex.java:321)
	at org.netbeans.spi.project.support.ant.AntProjectHelper.putProperties(AntProjectHelper.java:648)
	at org.netbeans.modules.web.project.UpdateHelper$2.run(UpdateHelper.java:127)
	at org.openide.util.Mutex.writeAccess(Mutex.java:385)
	at org.netbeans.modules.web.project.UpdateHelper.putProperties(UpdateHelper.java:124)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.storeProperties(WebProjectProperties.java:529)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.access$100(WebProjectProperties.java:81)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$2.run(WebProjectProperties.java:362)
	at org.openide.util.Mutex.writeAccess(Mutex.java:357)
	at org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.save(WebProjectProperties.java:360)
	at org.netbeans.modules.web.project.ui.customizer.CustomizerProviderImpl$OptionListener.actionPerformed(CustomizerProviderImpl.java:138)
	at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener$1.run(CustomizerDialog.java:182)
	at org.openide.util.Mutex.writeAccess(Mutex.java:321)
	at org.netbeans.modules.project.uiapi.CustomizerDialog$OptionListener.actionPerformed(CustomizerDialog.java:180)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at java.awt.Component.processMouseEvent(Component.java:5554)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5319)
	at java.awt.Container.processEvent(Container.java:2010)
	at java.awt.Component.dispatchEventImpl(Component.java:4021)
	at java.awt.Container.dispatchEventImpl(Container.java:2068)
	at java.awt.Component.dispatchEvent(Component.java:3869)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
	at java.awt.Container.dispatchEventImpl(Container.java:2054)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3869)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Sherold Dev 2007-08-06 08:29:27 UTC
-> sunappserv
Comment 2 Nitya Doraisamy 2007-08-06 20:57:06 UTC

*** This issue has been marked as a duplicate of 111571 ***