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 242695 - weblogic deploy folder name problem on ear project while debugging and running
Summary: weblogic deploy folder name problem on ear project while debugging and running
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-08 11:41 UTC by masengul
Modified: 2014-08-01 09:29 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (388.31 KB, application/octet-stream)
2014-03-08 11:41 UTC, masengul
Details
Patch (803 bytes, patch)
2014-07-16 14:40 UTC, Martin Janicek
Details | Diff
screen shot 1 for valid deploy folder name (42.71 KB, image/png)
2014-08-01 09:28 UTC, masengul
Details
screen shot for invalid deployment name (48.16 KB, image/png)
2014-08-01 09:29 UTC, masengul
Details

Note You need to log in before you can comment on or make changes to this bug.
Description masengul 2014-03-08 11:41:57 UTC
Created attachment 145867 [details]
screen shot

First of all, i want to say, Netbeans has a great maven support. I am very pleased abuout netbeans maven support. But i have an important problem with it.

I have and maven multi module project. And also i have and ear module. When i clean install everything is ok. Netbeans produce and Policy-1.0.ear . I can deploy it to my server and everything is ok. I user remote ejb's and i call them from other machines and other ear applications like "java:global/PolicyEar-1.0/PolicyService-1.0/propertyService"

My problem debugging and running my application on netbeans. Because netbeans, creating a com.ergo.insyst_PolicyEar_ear_1.0 named folder under target/wldeploy and deploying application from this folder. creating name with groupId+"_"+artifact_Id+"_"+packaging+"_"+version automatically. 

And i couldn't change this folder name. Also i tried to chance finalName in pom.xml and a lot of thing. When netbeans deploy application from this folder, ear name is on the deployment console of weblogic is the same with this folder name.  so, ejb calls are not working. if i change ejb call string as
"java:global/com.ergo.insyst_PolicyEar_ear_1.0/PolicyService-1.0/propertyService", it is working but this is big problem. 

I tried int Ubuntu 13.10 and same problem.
I tried it in Netbeans 8 RC1 and same problem continue.

I added screen shots to explain problem.

Thanks for your help
Comment 1 Martin Janicek 2014-07-16 13:47:06 UTC
I'm able to reproduce your problem. I will take a look at it
Comment 2 Martin Janicek 2014-07-16 14:40:12 UTC
Created attachment 148087 [details]
Patch

I found the problem (attaching the patch and ccing PetrH as owner of j2ee.weblogic9).

I requested similar change long time ago also for Glassfish plugin (issue 217619) and AFAIK no future regression were found with respect to the fix, so hopefully it should be safe. Feel free to comment Petr.
Comment 3 Martin Janicek 2014-07-28 12:37:45 UTC
Fixed by change-set: web-main #1ae0a2d77abb
Comment 4 Quality Engineering 2014-07-29 02:33:20 UTC
Integrated into 'main-silver', will be available in build *201407290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1ae0a2d77abb
User: Martin Janicek <mjanicek@netbeans.org>
Log: #242695 - weblogic deploy folder name problem on ear project while debugging and running
Comment 5 masengul 2014-08-01 09:27:18 UTC
The problem is solved 50% . Sorry, it is my fault. I thougt that if we can change the deployment folder name, deploy name will change. Deploy folder name changed but deployment name didn't changed. Also i tried to set final name but problem continue. Weblogic plugin deployed the ear as groupId+"_"+artifact_Id+"_"+packaging+"_"+version

I attached 2 screen shots to explain case.
Comment 6 masengul 2014-08-01 09:28:44 UTC
Created attachment 148467 [details]
screen shot 1 for valid deploy folder name
Comment 7 masengul 2014-08-01 09:29:17 UTC
Created attachment 148468 [details]
screen shot for invalid deployment name