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.
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)
Can you log in into admin console?
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.
(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...
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
(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)?
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
Created attachment 94443 [details] 1st screen shot
Created attachment 94444 [details] 2nd screen shot
Created attachment 94445 [details] 3rd
Created attachment 94446 [details] 4th
Created attachment 94447 [details] 5th
Created attachment 94448 [details] 6th
Created attachment 94449 [details] 7th
Created attachment 94450 [details] 9th
Created attachment 94451 [details] 10th
Created attachment 94452 [details] 11th
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.
Created attachment 94468 [details] screenshot
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.