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.
When I try to run a web application [JPA 2, JSF 2 CRUD] on WebLogic 10.3.4 or 10.3.5, the project builds and deploys ok but I get the following exception when clicking a link in the browser after deploying the application. This happens when fast-swap is enabled in weblogic.xml [this is enabled by default in NetBeans IDE 7.0.1. If I disable fast-swap, the application functions correctly without error. java.lang.NoClassDefFoundError: web/CustomerJpaController$beaVersion0_50 at web.CustomerJpaController.findCustomerEntities(CustomerJpaController.java) at web.CustomerController$1$beaVersion0_55.createPageDataModel(CustomerController.java:67) at web.CustomerController$1.createPageDataModel(CustomerController.java) at web.CustomerController$beaVersion0_45.getItems(CustomerController.java:166) at web.CustomerController.getItems(CustomerController.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.el.BeanELResolver.getValue(BeanELResolver.java:261) at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173) at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200) at com.sun.el.parser.AstValue.getValue(Unknown Source) at com.sun.el.parser.AstEqual.getValue(Unknown Source) at com.sun.el.ValueExpressionImpl.getValue(Unknown Source) at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:106) at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190) at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:417) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1642) at javax.faces.render.Renderer.encodeChildren(Renderer.java:164) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1648) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1651) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1651) at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:395) at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.utils.FastSwapFilter.doFilter(FastSwapFilter.java:66) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:176) Caused by: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'web.CustomerJpaController$beaVersion0_50' at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:276) at com.bea.wls.redef.RedefiningClassLoader.findClass(RedefiningClassLoader.java:106) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) ... 48 more Caused by: java.lang.ClassFormatError: LVTT entry for 'rt' in class file web/CustomerJpaController$beaVersion0_50 does not match any LVT entry at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:302) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) ... 52 more
This does not seem to be reproducible for me anymore. Is this still valid?
I cannot reproduce this error in recent builds
OK, closing. Feel free to reopen.
Reopening because I am seeing this again when deploying to WebLogic 10.3.5 and using 7.1. Product Version: NetBeans IDE 7.1 (Build 201112071828) Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402 System: Mac OS X version 10.6.8 running on x86_64; MacRoman; en_US (nb)
It is strange that with 10.3.5 I was unable to reproduce it and now I can. Deploying to 12c seems to work fine.
The fast swap still has its issues, so it has been disabled by default for 7.1.1. Closing this.