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 258470 - Deploying a EE6 project created with NetBeans 8.01 fails
Summary: Deploying a EE6 project created with NetBeans 8.01 fails
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-21 15:33 UTC by alibaba88
Modified: 2016-03-22 09:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (90.07 KB, text/plain)
2016-03-21 15:33 UTC, alibaba88
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alibaba88 2016-03-21 15:33:34 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b18

Reproducibility: Happens every time

I have a EE6 ear application built on JDK1.7 with NetBeans 8.01. It consists a a war module and a single enterprise bean. 
When building it with NetBeans 8.01 for WebLogic 12.1.2 it builds fine and deploys fine on my local WebLogc, as well as when deploying the ear to prod environment on solaris.

When I use NetBeans 8.1 running on JDK1.8 and clean/build all components, local deploy to WebLogic fails with java.io.IOException on the enterprise bean component.
The errormessage refers to the server log for details but the deploy never leavs NetBeans, nothing is found in the server log.

The errormessage says:
dist-directory-deploy:
pre-run-deploy:
Incrementally deploying eCMSClusterSyncEJBNb.jar
Error during incremental deploy: java.io.IOException: C:/Users/andlil/Desktop/DeskDocs/NetBeansProjects/eCMSTop/eCMSNb/dist/wldeploy/eCMSNb/eCMSClusterSyncEJBNb.jar/com
C:\Users\andlil\Desktop\DeskDocs\NetBeansProjects\eCMSTop\eCMSNb\nbproject\build-impl.xml:307: Deployment error: Error during incremental deploy: java.io.IOException: C:/Users/andlil/Desktop/DeskDocs/NetBeansProjects/eCMSTop/eCMSNb/dist/wldeploy/eCMSNb/eCMSClusterSyncEJBNb.jar/com
See the server log for details.
BUILD FAILED (total time: 2 seconds)


Under the ....dist/wldeploy....eCMSClusterSyncEJBNb.jar/com folder referred to in the error message the class files exist on subfolders of the classes namespace, ie com.mycompany.ems.core  etc,
and the ....dist/wldeploy folders content is used directly when deploying to a local WebLogic instans - not the ear file.


STEPS:
  * Rebuild a EE6 project with a enterprise bean created in NetBeans 8.01 using NetBeans 8.1 aimed for WebLogic server
  * Click on run or deploy of the ee project

ACTUAL:
  deploy fails with java.io.IOException on enterprise bean module

EXPECTED:
  deploy should succeed to local WebLo
Comment 1 alibaba88 2016-03-21 15:33:40 UTC
Created attachment 158956 [details]
IDE log
Comment 2 alibaba88 2016-03-22 09:21:05 UTC
Correction: Menu command "Deploy" works ok, menu command "Run" performing an incremental deploy do not work and gives the error described.

The same thing (incremental deploy with Run command) happens when targeting a local WebLogic 12.2.1 instans.