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 207575 - Can not deploy WAR with CDI on WebLogic 12c
Summary: Can not deploy WAR with CDI on WebLogic 12c
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL: https://bug.oraclecorp.com/pls/bug/we...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-20 15:36 UTC by ender01
Modified: 2012-03-30 08:46 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample app (3.65 KB, application/x-gzip)
2012-01-20 15:36 UTC, ender01
Details
error on deploy (2.86 KB, text/plain)
2012-01-20 15:43 UTC, ender01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ender01 2012-01-20 15:36:19 UTC
Created attachment 115127 [details]
Sample app

Have a simple maven project that will not deploy through Netbeans as a standalone war. Deploy as an EAR it works fine, and deploying through the WebLogic console works fine, but if I deploy through NetBeans I get an error (from weblogic).

The error has to do with a RequestScoped CDI bean being included in the project and weblogic is complaining about public scoped fields, even though there are not any public fields defined. 

See attached for sample project and exceptions.
Comment 1 ender01 2012-01-20 15:43:58 UTC
Created attachment 115128 [details]
error on deploy
Comment 2 Martin Janicek 2012-01-23 14:01:42 UTC
CCing to Denis and Petr. 
Guys do you have any idea what could be the problem here? Issue 207623 might be somehow related.
Comment 3 Denis Anisimov 2012-01-23 14:11:54 UTC
No, it doesn't relate to the issue #207623  at all ( I've reassign the latter issue to the CDI and close it as duplicate ).
This issue is actually duplicate of issue #207078 and it is not maven specific.

It looks like WebLogic deployment bug. On the other hand the reporter says that 
deployment works fine via WebLogic console.
This is not mine area so probably PetrH knows smth about it.
The problem is purely runtime issue and CDI support in NB has no any runtime
support. So this is not a NB CDI area problem.
Comment 4 Martin Janicek 2012-01-23 15:16:13 UTC
Thanks for fast response Denis. Reassigning to Petr for evaluation.
Comment 5 ender01 2012-01-24 15:21:36 UTC
Some more details, this does happen on both Windows and Linux, and obviously only on WebLogic 12c, as CDI is involved. And yes, the war file does deploy through the WL Console just fine, and the EAR will deploy from both Netbeans and the Console.

Also, we figured this might be an issue with WL itself, so we have opened an oracle support ticket concerning this issue, and will keep this ticket updated if we hear anything from that side.
Comment 6 arungupta 2012-02-29 23:13:34 UTC
Can you provide link to the ticket opened for WebLogic ?
Comment 7 arungupta 2012-03-01 00:11:55 UTC
Setting FastSwap to false did the trick for me:

Change weblogic.xml from

  <fast-swap>
    <enabled>true</enabled>
  </fast-swap>


to


  <fast-swap>
    <enabled>false</enabled>
  </fast-swap>

Also found the internal bug number at:

https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=13572166
Comment 8 Petr Hejl 2012-03-30 08:46:08 UTC
Not a netbeans bug. Anyway fastswap is now disabled by default.