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 180755 - Failed to deploy a simple web app to the WebLogic Server 11gr1
Summary: Failed to deploy a simple web app to the WebLogic Server 11gr1
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 6.x
Hardware: PC Other
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 18:40 UTC by davisn
Modified: 2010-02-24 19:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log file (109.53 KB, text/plain)
2010-02-15 18:40 UTC, davisn
Details
1st screen shot (33.55 KB, image/png)
2010-02-23 19:56 UTC, davisn
Details
2nd screen shot (14.21 KB, image/png)
2010-02-23 19:57 UTC, davisn
Details
3rd (15.37 KB, image/png)
2010-02-23 19:57 UTC, davisn
Details
4th (13.63 KB, image/png)
2010-02-23 19:58 UTC, davisn
Details
5th (14.16 KB, image/png)
2010-02-23 19:58 UTC, davisn
Details
6th (21.33 KB, image/png)
2010-02-23 19:58 UTC, davisn
Details
7th (14.95 KB, image/png)
2010-02-23 19:59 UTC, davisn
Details
9th (15.56 KB, image/png)
2010-02-23 20:00 UTC, davisn
Details
10th (15.15 KB, image/png)
2010-02-23 20:00 UTC, davisn
Details
11th (21.15 KB, image/png)
2010-02-23 20:01 UTC, davisn
Details
screenshot (40.58 KB, image/jpeg)
2010-02-24 05:23 UTC, Petr Hejl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2010-02-15 18:40:33 UTC
Created attachment 94178 [details]
messages.log file

javax.naming.AuthenticationException occurs when deploy a web application to the WebLogic Server 11gR1 version

Steps To Reproduce
1. Download the Oracle WebLogic Server 11gR1 (10.3.2) + OEPE - Package Installer
from http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html
2. Install the Weblogic with user name/password (eg, weblogic/j2eetest)
3. Start NB 6.8 IDE, register the Weblogic Server
4. Right-click the Oracle Welogic node, select Start menu to start the server
5. Create a web app project -> select the Weblogic as runtime server
6. Select to run the webapp with Weblogic
BUG:
   Created dir: E:\sun\Netbeans\projects\WebApplication1\dist
Building jar: E:\sun\Netbeans\projects\WebApplication1\dist\WebApplication1.war
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
        at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:121)
        at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
        at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:446)
        at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:464)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.modules.j2ee.weblogic9.olddeploy.WLOldDeploymentManager.getVendorDeploymentManager(WLOldDeploymentManager.java:129)
        at org.netbeans.modules.j2ee.weblogic9.olddeploy.WLOldDeploymentManager.getDeploymentManager(WLOldDeploymentManager.java:187)
        at org.netbeans.modules.j2ee.weblogic9.olddeploy.WLOldDeploymentManager.getTargets(WLOldDeploymentManager.java:355)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargetMap(ServerInstance.java:543)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargets(ServerInstance.java:501)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._retrieveTarget(ServerInstance.java:1692)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isSuspended(ServerInstance.java:875)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1242)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1106)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:983)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:505)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:162)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        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:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: weblogic.deploy.api.spi.exceptions.ServerConnectionException
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:140)
        at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
        at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
        ... 35 more
Caused by: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: weblogic, failed to be authenticated.]
        at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
        at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
        at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:677)
        at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:468)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:375)
        at weblogic.jndi.Environment.getContext(Environment.java:315)
        at weblogic.jndi.Environment.getContext(Environment.java:285)
        at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
        at weblogic.jndi.Environment.getInitialContext(Environment.java:192)
        at weblogic.jndi.Environment.getInitialContext(Environment.java:170)
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:327)
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:299)
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:138)
        ... 37 more
Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
        at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
        at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
        at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
        at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
        at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
        at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
        at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:121)
        at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
        at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:446)
        at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:464)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.netbeans.modules.j2ee.weblogic9.olddeploy.WLOldDeploymentManager.getVendorDeploymentManager(WLOldDeploymentManager.java:129)
        at org.netbeans.modules.j2ee.weblogic9.olddeploy.WLOldDeploymentManager.getDeploymentManager(WLOldDeploymentManager.java:187)
        at org.netbeans.modules.j2ee.weblogic9.olddeploy.WLOldDeploymentManager.getTargets(WLOldDeploymentManager.java:355)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargetMap(ServerInstance.java:543)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargets(ServerInstance.java:501)
        at org.netbeans.modules.j2ee.deployment.impl.ServerString.getTargets(ServerString.java:114)
        at org.netbeans.modules.j2ee.deployment.impl.ServerString.toTargets(ServerString.java:152)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:509)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:162)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        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:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: weblogic.deploy.api.spi.exceptions.ServerConnectionException
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:140)
        at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
        at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
        ... 32 more
Caused by: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: weblogic, failed to be authenticated.]
        at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
        at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
        at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:677)
        at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:468)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:375)
        at weblogic.jndi.Environment.getContext(Environment.java:315)
        at weblogic.jndi.Environment.getContext(Environment.java:285)
        at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
        at weblogic.jndi.Environment.getInitialContext(Environment.java:192)
        at weblogic.jndi.Environment.getInitialContext(Environment.java:170)
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:327)
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:299)
        at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:138)
        ... 34 more
Caused by: java.lang.SecurityException: User: weblogic, failed to be authenticated.
        at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
        at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke(Unknown Source)
        at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
        at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
        at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
        at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
E:\sun\Netbeans\projects\WebApplication1\nbproject\build-impl.xml:577: The module has not been deployed.
BUILD FAILED (total time: 0 seconds)
Comment 1 Petr Hejl 2010-02-16 06:18:37 UTC
Can you log in into admin console?
Comment 2 davisn 2010-02-16 12:38:23 UTC
Yes, I was able to login the Admin Console and even deploy a simple app from the console.
It looks like NB plugin does not know the userName/password of the Weblogic server. We were asked to deploy GlassFish v3/v2 SDK samples to the Weblogic 11gR2 server.  All the samples were built with NB IDE so it's better to have NB working with Weblogic.
Comment 3 Petr Hejl 2010-02-17 03:11:08 UTC
(In reply to comment #2)
> It looks like NB plugin does not know the userName/password of the Weblogic
> server.
Are you sure you provided correct username/password during registration in the IDE?

How did you create the domain? There was no configuration dialog in my case. I could only choose installation with or without example domain. Please provide exact steps.

Looks like you are using 6.8. You should use dev build anyway...
Comment 4 davisn 2010-02-17 18:28:36 UTC
I used the default installtion to create domain (base_domain) port 7001. 
The is an urgent need to have Netbean working with the Weblogic latest version. Please help to fix this issues asap. 
Thanks-davis
Comment 5 Petr Hejl 2010-02-17 22:51:36 UTC
(In reply to comment #4)
> Please help to fix this issues asap. 

I'm trying, but I need this from you (already requested in comment 3):
- Provide _exact_ steps on creating the domain with username/password.
- Use _dev_ build as issue may be fixed with recent changes.
- Are you sure you provided correct username/password during registration in the
IDE (not just next-next with defaults)?
Comment 6 davisn 2010-02-23 19:55:37 UTC
Here is the steps I used to created, configured and started the default base_domain (attached is the screen shot for every steps). Sorry I was so busy recently that I couldn't update the bug. I don't understand why you couldn't reproduce it? 

-Download the bits from
http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html
-Double click on the file to install the Weblogic
-From Quick Start Wizard, click "Getting started with Weblogic Server 10.3.3" -> create a new Weblogic domain -> 
-> Generate a domain configured automatically ....
-> Next (to select the default base_domain) 
-> enter userName: weblogic, password: j2eetest
-> use the default Available JDK on the system (jdk1.6.0_17)
-> Check All Optional Configuration (Administration Server, JMS,....RDBMS Security Store)
-> click Next
-> click Next (Configure Managed Services)
-> click Next to complete to create base_domain

-Start NB (Development version), register the Weblogic Server
-Right-click the Oracle Welogic node, select Start menu to start the server
-Create a web app project -> select the Weblogic as runtime server
-Select to run the webapp with Weblogic
Comment 7 davisn 2010-02-23 19:56:45 UTC
Created attachment 94443 [details]
1st screen shot
Comment 8 davisn 2010-02-23 19:57:15 UTC
Created attachment 94444 [details]
2nd screen shot
Comment 9 davisn 2010-02-23 19:57:40 UTC
Created attachment 94445 [details]
3rd
Comment 10 davisn 2010-02-23 19:58:03 UTC
Created attachment 94446 [details]
4th
Comment 11 davisn 2010-02-23 19:58:23 UTC
Created attachment 94447 [details]
5th
Comment 12 davisn 2010-02-23 19:58:43 UTC
Created attachment 94448 [details]
6th
Comment 13 davisn 2010-02-23 19:59:33 UTC
Created attachment 94449 [details]
7th
Comment 14 davisn 2010-02-23 20:00:00 UTC
Created attachment 94450 [details]
9th
Comment 15 davisn 2010-02-23 20:00:28 UTC
Created attachment 94451 [details]
10th
Comment 16 davisn 2010-02-23 20:01:00 UTC
Created attachment 94452 [details]
11th
Comment 17 Petr Hejl 2010-02-24 05:13:20 UTC
I'm still not able to reproduce. Dev IDE 100224.

Are you 100% sure you properly configured "j2eetest" as password while registering the server in NetBeans? There is a "weblogic" default in the wizard so you have to go to the password field, delete content and type "j2eetest". You can't just click next.

As I said - works quite fine for me.
Comment 18 Petr Hejl 2010-02-24 05:23:57 UTC
Created attachment 94468 [details]
screenshot
Comment 19 davisn 2010-02-24 19:44:37 UTC
Hi Petr, 
It's my mistake that I didn't specify the WLS password when registered it. It's working fine now. Thanks a lot for your patient and help.