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 127255 - "enterprise" project will not deploy to websphere 6.1
Summary: "enterprise" project will not deploy to websphere 6.1
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebSphere (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-13 03:34 UTC by sairndain
Modified: 2008-11-28 11:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project (named "click") folder -- in zip file (87.74 KB, application/x-compressed)
2008-02-13 03:43 UTC, sairndain
Details
an ide log file found under .netbeans\dev\var -- hope this helps (26.16 KB, application/x-compressed)
2008-02-14 02:09 UTC, sairndain
Details
log entries from attempting to deploy to WAS 6.1 (574.11 KB, text/plain)
2008-03-19 22:56 UTC, sairndain
Details
fwiw - zipped "bling" project that would not deploy (same structure as others, but, different name) (53.16 KB, text/plain)
2008-03-19 23:10 UTC, sairndain
Details
another doc file show sequence of building project and deploying (1.56 MB, text/plain)
2008-04-11 20:23 UTC, sairndain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sairndain 2008-02-13 03:34:06 UTC
0. Downloaded Netbeans 6.0.1
1. Created a simple "Enterprise" project containing an "-ejb" and "-war" project.
2. added session bean to "-ejb" project
3. added javabean to "-war" project
4. Cleaned and Build
5. Added server - IBM WebSphere Application Server 6.1 (fixpak 11)
6. Undeploy and Deploy
7. get the following error:

pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
init:
deps-module-jar:
deps-ear-jar:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
do-ear-dist:
dist-ear:
pre-pre-compile:
pre-compile:
do-compile:
post-compile:
compile:
pre-dist:
do-dist-without-manifest:
do-dist-with-manifest:
post-dist:
dist:
pre-run-deploy:
Deployment error:
The module has not been deployed.
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
        ... 16 more
BUILD FAILED (total time: 0 seconds)
Comment 1 sairndain 2008-02-13 03:43:59 UTC
Created attachment 56567 [details]
project (named "click")  folder -- in zip file
Comment 2 Petr Hejl 2008-02-13 13:28:45 UTC
Do you have admin security for the profile enabled? Can you provide ide and server log?

When I was trying your example it failed with "ADMA0014E: Validation failed. ADMA0002E: A validation error occurred in
task Binding enterprise Bean to JNDI names. The Java Naming and Directory Interface (JNDI) name is not specified for
enterprise bean ClickEJBBean in module click-ejb.".
Comment 3 sairndain 2008-02-14 02:09:21 UTC
Created attachment 56648 [details]
an ide log file found under .netbeans\dev\var -- hope this helps
Comment 4 sairndain 2008-02-14 02:17:41 UTC
I added a zip containing 3 log files  ---  from .netbeans\dev\var (under "documents and settings", etc) --- these logs 
were created around the same time I was attempting to deploy.

There were no entries in the WebSphere server logs...  It appears as if the issue is mostly "contained" within the 
NetBeans 6.0.1 ide. 

--- 

Windows XP
NetBeans 6.0.1
WebSphere 6.1, fixpak 11
Comment 5 Petr Hejl 2008-02-18 09:44:05 UTC
Do you have admin security for the profile enabled?
Comment 6 Petr Hejl 2008-02-18 09:47:20 UTC
No entries in server log? Not sure what does it mean... Just start of the server generates bunch of log messages...

Can you provide server log file for your profile? Usually located in profiles/profileName/logs/serverName.
Comment 7 Petr Hejl 2008-03-05 09:29:46 UTC
No response from reporter. Closing as WORKSFORME.
Comment 8 sairndain 2008-03-13 17:49:29 UTC
Hi phjel

Sorry to get back so late... 

No, security is NOT enabled.

Please let me know if this is a requirement for NetBeans to operate with WebSphere 6.1 properly.

Thanks

sd

(I was looking at the "bug" website for dialog, instead of my own email account.   -- I understand now, and will 
monitor my email - thx, sd)


P.S.

see also related issue --- #129706 
Comment 9 Petr Hejl 2008-03-13 17:56:37 UTC
Can you provide server log file for your profile (The part relevant for unsuccessful deployment.)? Usually located in
profiles/profileName/logs/serverName.
Comment 10 sairndain 2008-03-16 03:23:33 UTC
Hi phejl

Will do. -- But, I will give this on Monday (17-march) when I am back in my office, at work.

thanks

sd
Comment 11 sairndain 2008-03-16 21:28:10 UTC
Hi Phejl

Recreated "click" project and tried to deploy...

"click(run-deploy)" messages...
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
init:
deps-jar:
deps-j2ee-archive:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
init:
deps-module-jar:
deps-ear-jar:
init:
deps-jar:
compile:
library-inclusion-in-manifest:
dist-ear:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
do-ear-dist:
dist-ear:
pre-pre-compile:
pre-compile:
do-compile:
post-compile:
compile:
pre-dist:
do-dist-without-manifest:
do-dist-with-manifest:
post-dist:
dist:
pre-run-deploy:
Deployment error:
The module has not been deployed.
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor142.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: The module has not been deployed.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
        ... 16 more
BUILD FAILED (total time: 0 seconds)


I checked the logs on the server...(i.e., "C:\opt\IBM\WebSphere\AppServerx\profiles\AppSrv01\logs\server1")... 
However, there was no entry associated with the attempted deployment. -sd

Comment 12 Petr Hejl 2008-03-18 17:43:58 UTC
This is really strange. Can you run your ide with the following parameter:
-J-Dorg.netbeans.modules.j2ee.websphere6.level=0

Then please retry the deployment and post the ide log (var/log/messages.log).

Thanks a lot.
Comment 13 sairndain 2008-03-19 22:56:34 UTC
Created attachment 58708 [details]
log entries from attempting to deploy to WAS 6.1
Comment 14 sairndain 2008-03-19 23:10:14 UTC
Created attachment 58711 [details]
fwiw - zipped "bling" project that would not deploy (same structure as others, but, different name)
Comment 15 Petr Hejl 2008-03-26 10:49:31 UTC
Looks like a problem with websphere instance itself:

[3/19/08 17:52:49:377 EDT] 00000011 DeploymentMan W   ADMJ1016E: An unexpected exception occurred while distributing
modules AppDeploymentException: [ADMA0092E: An unexpected exception occurred while preparing task
EnsureMethodProtectionFor20EJB. Check the server machine First Failure Data Capture tool (FFDC) for more information.]
java.lang.NoSuchMethodError:
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.setProtectionDomain(Ljava/security/ProtectionDomain;)Ljava/security/ProtectionDomain;
java.lang.NoSuchMethodError:
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl.setProtectionDomain(Ljava/security/ProtectionDomain;)Ljava/security/ProtectionDomain;
        at com.ibm.ws.management.application.client.util.getMethods(util.java:442)
        at
com.ibm.ws.management.application.client.EnsureMethodProtectionFor20EJBHelper.prepareTask(EnsureMethodProtectionFor20EJBHelper.java:102)
        at
com.ibm.websphere.management.application.client.AppDeploymentController.prepareTask(AppDeploymentController.java:491)
        at
com.ibm.websphere.management.application.client.AppDeploymentController.getNthTask(AppDeploymentController.java:472)
        at
com.ibm.websphere.management.application.client.AppDeploymentController.validate(AppDeploymentController.java:705)
        at com.ibm.websphere.management.application.client.AppDeploymentController.close(AppDeploymentController.java:638)
        at
com.ibm.ws.management.application.j2ee.deploy.spi.J2EEDeploymentController.saveAndClose(J2EEDeploymentController.java:278)
        at
com.ibm.ws.management.application.j2ee.deploy.spi.DeploymentManagerImpl.distributeInternal(DeploymentManagerImpl.java:585)
        at
com.ibm.ws.management.application.j2ee.deploy.spi.DeploymentManagerImpl.distribute(DeploymentManagerImpl.java:499)
        at org.netbeans.modules.j2ee.websphere6.WSDeploymentManager.distribute(WSDeploymentManager.java:595)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:517)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:148)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Comment 16 Petr Hejl 2008-03-26 10:53:36 UTC
Is the application deployable through websphere console?
Comment 17 sairndain 2008-03-28 14:15:01 UTC
Hi Phejl

Yes, the application deploys via the IBM console with no issues

sd
Comment 18 sairndain 2008-04-02 03:55:34 UTC
Hi Phejl

fyi - this issue exists on two different machines - each with its own instance of WAS61

(Question: Were you able to get the example app that I attached earlier to deploy to a WAS61 instance 
[using "Undeploy/Deploy"] curious as I have yet to be able to deploy *any* app.  --I am very anxious to be able to 
utilize this IDE at work)

Thanks again

sd
Comment 19 Petr Hejl 2008-04-02 16:09:10 UTC
Project bling seems to deploy fine to WS61 Trial. BTW I noticed that the project uploaded here was configured for 6.0.

I will investigate bit more.
Comment 20 sairndain 2008-04-11 20:21:02 UTC
one more word doc showing the sequence I am using to create and "undeploy/deploy" the project...   
(abc_enterprise_project.doc)
Comment 21 sairndain 2008-04-11 20:23:12 UTC
Created attachment 60077 [details]
another doc file show sequence of building project and deploying
Comment 22 mvanek 2008-11-28 11:25:19 UTC
feel free to reopen if you see similar issue