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 149068 - Server resources are not deployed
Summary: Server resources are not deployed
Status: NEW
Alias: None
Product: soa
Classification: Unclassified
Component: Composite Application (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ gmpatil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-03 14:21 UTC by pkaczyns
Modified: 2008-11-25 03:26 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pkaczyns 2008-10-03 14:21:38 UTC
When you create compapp including EJB module with server resources included, these resources are not registered during 
deployment of the composite application. I also cannot add any resources to the compapp project, so the only workaround 
is deploying EJB module (which registers resources) then undeploying it (luckily it doesn't unregister resources) and 
then deploying compapp.

This woorkaround is troublesome and time consuming...
Comment 1 _ gmpatil 2008-10-06 22:15:52 UTC
EJB project no longer packages sun-resources.xml into EJB jar, probably it is intentional. 

Comp app was overriding sun-resource.xml if one exists with empty file. 
Below change set makes it retain the file if one exists.
http://hg.netbeans.org/soa-dev/rev/2c5463638483  (GF ESB)
http://hg.netbeans.org/main/rev/58149b4f6f33     (6.5 main)

Work around is to copy 'sun-resources.xml' from "Server Resource" folder to "Configuration files".

Assigning to EJB/Server plug-ins module for further analysis.
Comment 2 Vince Kraemer 2008-10-06 22:49:51 UTC
correct. the use of embedded sun-resources.xml was not fully supported by the server team, so we had to remove that
usage from the plugin.

Since this has a work-around, this is not a P1 DEFECT.

what method(s) from the org.netbeans.modules.j2ee.sun.ide.* package hierarchy are being used to deploy the compapp?
Comment 3 Vince Kraemer 2008-10-06 23:09:52 UTC
it looks like compapp doesn't use any of the methods in org.netbeans.modules.j2ee.deployment.devmodules.*...

That would indicate that it is not using the plugin to do the deployment through the expected methods.

I also notice that it looks like compapp projects are not calling code in org.netbeans.modules.j2ee.sun.ide.* directly,
which would be a questionable practice....

Based on this, I have to assign the bug back to enterprise and/or compapp... since it looks like the server plugin code
is not being called.

Comment 4 _ gmpatil 2008-10-06 23:34:17 UTC
Comp App uses any of "org.netbeans.modules.j2ee.sun.ide.*" classes directly.
Comp App invokes "dist" target on the EJB project and packages the generated EJB jar into Service Assembly.

Comp App uses JBI Admin API's to deploy the Service assembly and can not use "org.netbeans.modules.j2ee.sun.ide.*" to
deploy Service Assembly.

Marking as enhancement since Comp app depends on embedded "sun-resources.xml" to register resources.
Comment 5 Quality Engineering 2008-10-07 06:03:39 UTC
Integrated into 'main-golden', will be available in build *200810070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/58149b4f6f33
User: Girish Patil<gmpatil@netbeans.org>
Log: #149068 Do not overwrite sun-resources.xml with dummy file.
Comment 6 schmandt 2008-11-25 03:26:33 UTC
please help me understand this --- sure looks like this was fixed
but i'm not sure if this fix was integrated into gfesb 6.1 release
so:

   if this was fixed, then why is the status still 'new'?

   also if this was fixed is the fix supposed to be in the gfesb release?
    
Also please explain exactly what steps to verify the fix
even better if you can attach a project which will demonstrate
success iff the fix works.