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 222924 - Run/Debug EAR with WebLogic (wldeploy) missing dependencies
Summary: Run/Debug EAR with WebLogic (wldeploy) missing dependencies
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
: 224318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-28 20:31 UTC by ddlucas
Modified: 2013-01-21 11:23 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
j2eeserver patch (2.06 KB, patch)
2012-11-29 14:11 UTC, Petr Hejl
Details | Diff
Patch fixing the problem (5.15 KB, patch)
2012-12-03 11:07 UTC, Martin Janicek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ddlucas 2012-11-28 20:31:18 UTC
When deploying a maven project that has an EAR via Run or Debug mode to Weblogic 10.3.5 the server starts processing the deployment but fails to find dependencies during the deployment.

Looking at the steps in the deployment the following step appears to be the one dropping the dependencies:

Initial deploying XXX-ear to C:\XXX\XXX-ear\target\wldeploy\XXX_XXX-ear_ear_1.0.2-SNAPSHOT
Completed initial distribution of XXX-ear

[Note: replaced client specific info with XXX]

In the wldeploy artifact directory only the web and ejb projects show up (as folders).  There are no dependency jars.

This problem goes away if I revert back to daily build 20121013. When I go back to that version the wldeploy directory has my web and ejb project directories as well as all the maven dependency jars loaded in the directory so the EAR has all the required dependencies during the deployment.

It also appears to be broken in daily build 20121119 and 20121127.

I just loaded the NetBeans 7.3 Beta 2 and gave it a try.  It has the same problem.  I am now trying to identify the module that changed so I can revert back so I can continue using the latest release (minus the offending module) with WebLogic.

I ended up copying the enterprise module jars from 20121013 to the latest version to get it to work.  Looking at the plugins check updates, it looks like the following are showing they were updated.  Here is my list of versions and the internal updates that would have happened if I followed the Check for Updates suggestions.

RichFaces: 1.19 
  Internal Updates
    J2EE DD API [1.27.0.2->1.28.0.2]
    Maven Java EE [1.29->1.30]

Oracle Cloud: 1.3.0.1.1
  Internal Updates
    J2EE Deployment and Management APIs [1.25->1.26]
    Java EE Core APIs [1.14->1.15]
    Java EE Specifications Support [1.9->1.10] 

Java EE Base: 1.18
  Internal Updates
    Bean Validation [1.9->1.10]
    EjbJar APIs [1.28->1.29]
    Generic J2EE Server Plugin [1.23->1.24]
    J2EE Server Ant Tasks [1.26.0.1->1.27.0.1]
    J2EE Support Utilities [1.73->1.74]
    JBoss Application Server [1.28->1.29]
    Java EE 6 API Library [1.13->1.14]
    Java EE Deployment Descriptor Loaders [1.25.0.2->1.26.0.2]
    Java Enterprise Samples [1.20->1.21]
    Oracle WebLogic Server [1.28.0.1->1.29.0.1] 

GlassFish v1, v2.x: 1.13.0.1 
  Internal Updates
    GlassFish Application Server Common APIs [1.24.0.1->1.25.0.1]
    sun-* DD API [1.25.0.1->1.26.0.1]
    sun-* DD GUI Editors [1.26.0.1.1->1.27.0.1.1]

Entity Relationship Diagram Support: 1.4
  Internal Updates
    Java EE Server Registry [1.93.0.1->1.95.0.1] 

EJB and EAR:  1.17
  Internal Updates
    Application Client (CAR) Module Projects [1.28.0.1->1.29.0.1]
    EJB Refactoring [1.17->1.18]
    EJB Verification [1.19->1.20]
    Enterprise Applications (EAR) Projects [1.32->1.33]
    Enterprise JavaBeans (EJB) Module Projects [1.36->1.37]
    Enterprise JavaBeans Core [1.31->1.32]
    Java EE Documentation [1.23->1.24] 

CSS Source Model: 1.12
  Internal Updates
    Web Services Deployment Descriptor API [1.23->1.24]

One of them is forcing the inclusion of the offending jar.

I hope this can be resolved prior to next beta or release candidate.  :-)

Thanks,
Dave
Comment 1 David Konecny 2012-11-29 01:16:28 UTC
ddlucas, thanks for narrowing this problem down to NetBeans build numbers in which this is broken. That's very helpful. Thanks.

Martin, any idea whether this could be caused by any of your recent changes? I run 

  hg log -d "2012-10-13 to 2012-11-19" -M maven.j2ee

and it shows lots of changes but non of them looks directly related. Issue 199096 maybe?

I'm CCing Petr Hejl too just in case this is serverplugins or weblogic issues.
Comment 2 Martin Janicek 2012-11-29 13:35:09 UTC
(In reply to comment #1)
> ddlucas, thanks for narrowing this problem down to NetBeans build numbers in
> which this is broken. That's very helpful. Thanks.
> 
> Martin, any idea whether this could be caused by any of your recent changes? I
> run 
> 
>   hg log -d "2012-10-13 to 2012-11-19" -M maven.j2ee
> 
> and it shows lots of changes but non of them looks directly related. Issue
> 199096 maybe?

Yes, if the problem is that we don't create web/ejb jars in wldeploy than it's
definitely caused by this changeset. Actually we have done this for purpose but
I can't remember the reason :)
I'll take a look at it..
Comment 3 Petr Hejl 2012-11-29 14:11:22 UTC
Created attachment 128583 [details]
j2eeserver patch

I think this way maven (and possibly other projects as well) could tell what to ignore on directory deployment. It is just a sketch it needs api versioning and testing in both ant and maven with at least GF and WL.
Comment 4 Martin Janicek 2012-12-03 11:07:14 UTC
Created attachment 128763 [details]
Patch fixing the problem

InitialServerFileDistributor now collects all the children module names (typically .jar and .war files corresponding to the deployed exploded directories) and skipping them during the deployment (the current code was skipping everything ending with .jar and .war). Petre, could you please take a look at the patch as the changes are only in Java EE Server Registry module?
Comment 5 Petr Hejl 2012-12-03 14:09:20 UTC
Patch seems to be ok.
Comment 6 Martin Janicek 2012-12-03 16:18:09 UTC
Fixed in: web-main #1a2bfb88b486
Comment 7 Quality Engineering 2012-12-07 02:43:42 UTC
Integrated into 'main-golden', will be available in build *201212070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1a2bfb88b486
User: Martin Janicek <mjanicek@netbeans.org>
Log: #222924 - Run/Debug EAR with WebLogic (wldeploy) missing dependencies
Comment 8 TomasKraus 2013-01-04 10:07:02 UTC
*** Bug 224318 has been marked as a duplicate of this bug. ***