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 206798 - Disable FastSwap by default
Summary: Disable FastSwap by default
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 00:42 UTC by arungupta
Modified: 2012-03-26 11:53 UTC (History)
4 users (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 arungupta 2011-12-30 00:42:47 UTC
weblogic.xml has FastSwap enabled by default but it is generally causing the following exception with the first deployment of any Java EE 6 project.


<Dec 29, 2011 4:37:52 PM PST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
java.lang.NoClassDefFoundError: Could not initialize class com.bea.wls.redef.ClassRedefinerFactory
	at weblogic.servlet.internal.WebAppModule.loadFastSwapClassloader(WebAppModule.java:1928)
	at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:267)
	at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:636)
	at weblogic.application.internal.flow.ScopedModuleDriver.init(ScopedModuleDriver.java:162)
	at weblogic.application.internal.ExtensibleModuleWrapper.init(ExtensibleModuleWrapper.java:74)
	Truncated. see log file for complete stacktrace

Please change

<enabled>true</enabled>

to

<enabled>false</enabled>

for a a better OOTB experience.
Comment 1 Petr Jiricka 2012-01-02 16:59:58 UTC
Does it happen for *any* Java EE 6 project? I was under the impression that FastSwap mostly works, and it only causes problems in some corner case situations. But you seem to be saying that it is much less reliable than I thought :-(
Comment 2 Petr Hejl 2012-01-03 15:28:39 UTC
(In reply to comment #0)
> weblogic.xml has FastSwap enabled by default but it is generally causing the
> following exception with the first deployment of any Java EE 6 project.
I've just tested it and it works ok. It might be something in domain/server configuration.

Please provide some more details about the configuration and full log as mentioned in the message.

Does it happen when WL is started from command line?
Comment 3 arungupta 2012-01-04 00:50:02 UTC
Saw this error consistently on my machine during fresh project ceation but cannot reproducible it now.

Will try some more and update the bug.
Comment 4 Petr Jiricka 2012-01-19 09:07:05 UTC
Just got information that the WebLogic team uncovered some FastSwap-related issues themselves - these problems manifest themselves especially in conjunction with the new Java EE 6 specs. So we may want to turn off FastSwap by default after all for NB 7.1.1. Marking as a 71patch-candidate.
Comment 5 Petr Hejl 2012-01-20 14:42:18 UTC
Fixed in web-main 84759848956a.
Comment 6 Quality Engineering 2012-01-25 16:32:26 UTC
Integrated into 'main-golden', will be available in build *201201250600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/84759848956a
User: Petr Hejl <phejl@netbeans.org>
Log: #206798 Disable FastSwap by default
Comment 7 Petr Hejl 2012-02-07 16:49:41 UTC
Please verify so we can put it to the patch.
Comment 8 Quality Engineering 2012-02-09 02:39:33 UTC
Integrated into 'releases', will be available in build *201202082200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/da1808e981f4
User: Petr Hejl <phejl@netbeans.org>
Log: #206798 Disable FastSwap by default
(transplanted from 84759848956ac3c23231b7a23c8e170fc6fa3336)
Comment 9 Jiri Skrivanek 2012-02-14 10:26:38 UTC
Verified. Please, increase module spec. version.
Comment 10 Petr Hejl 2012-03-26 11:53:57 UTC
*** Bug 206593 has been marked as a duplicate of this bug. ***