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.
Installed NetBeans 5.5 with Sun Java Application Server PE 9 using Java 1.5.0_06. Straight installation, no clusters or additional tweaks. Created an EJB module with Web Service bean (stateless session bean) using Sun Java Application Server PE 9 and successfully deployed it to the app server. Happens with both J2EE 1.4 and 1.5 On change to the the implementation of the Web Service bean, I looked for a re- deploy option or undeploy option. They were not present, so I assumed that deploy would intuitively take care of that. To my surprise, it throws an error and fails to re-deploy. Output of build.xml run is: init: deps-jar: wscompile-init: NewWebService_wscompile: command line: wscompile C:\Java\jdk1.5.0_06\jre\bin\java.exe -classpath C:\Java\jdk1.5.0_06\lib\tools.jar;C:\Java\SunAppServer9 \lib\j2ee.jar;C:\Java\SunAppServer9\lib\appserv-ws.jar;C:\Projects\Trial1 \EJBModule1\build\jar com.sun.xml.rpc.tools.wscompile.Main -d C:\Projects\Trial1\EJBModule1\build\generated\wsbinary -define - features:documentliteral,strict,useonewayoperations -keep -mapping C:\Projects\Trial1\EJBModule1\build\jar\META-INF\NewWebService-mapping.xml -nd C:\Projects\Trial1\EJBModule1\build\jar\META-INF\wsdl -s C:\Projects\Trial1 \EJBModule1\build\generated\wsservice -verbose -Xprintstacktrace C:\Projects\Trial1\EJBModule1\src\java\newpackage\NewWebService-config.xml [creating model: NewWebService] [creating service: NewWebService] [creating port: newpackage.NewWebServiceSEI] [creating operation: addOperation] compile: library-inclusion-in-archive: Building jar: C:\Projects\Trial1\EJBModule1\dist\EJBModule1.jar dist: Distributing C:\Projects\Trial1\EJBModule1\dist\EJBModule1.jar to [localhost:4949_server] Start registering the project's server resources Finished registering server resources deployment started : 0% deployment finished : 100% Deploying application in domain completed successfully Rollback failed Trying to create reference for application in target server failed; Application reference EJBModule1 already exists in server instance server. C:\Projects\Trial1\EJBModule1\nbproject\build-impl.xml:330: Deployment error: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 2 seconds) Output of Sun Java System Application Server is ADM1064:The upload file at [C:\Documents and Settings\syellamaraju\Local Settings\Temp\s1astempdomain1server1604784362\EJBModule1.jar] exists and will be overwritten. ADM1006:Uploading the file to:[C:\Documents and Settings\syellamaraju\Local Settings\Temp\s1astempdomain1server1604784362\EJBModule1.jar] DPL5306:EJB Web Service Endpoint [NewWebService] listening at address [http://myserver.obsglobal.com:9090/webservice/NewWebService] deployed with moduleid = EJBModule1 ADM1082:Creating the application reference failed - Detailed Message: com.sun.enterprise.deployment.backend.IASDeploymentException: Application reference EJBModule1 already exists in server instance server. at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.getAndValidateDepl oymentTarget(DeploymentServiceUtils.java:1024) at com.sun.enterprise.deployment.phasing.PEDeploymentService.associate (PEDeploymentService.java:402) at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.createApplicationRefere nce(ApplicationsConfigMBean.java:668) 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:585) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean (MBeanHelper.java:353) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean (MBeanHelper.java:336) at com.sun.enterprise.admin.config.BaseConfigMBean.invoke (BaseConfigMBean.java:448) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke (DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke (DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke (JmxMBeanServer.java:784) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke (ProxyClass.java:77) at $Proxy1.invoke(Unknown Source) at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke (SunoneInterceptor.java:297) at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call (InvokeCaller.java:56) at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle (MBeanServerRequestHandler.java:142) at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.pr ocessRequest(RemoteJmxConnectorServlet.java:109) at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.do Post(RemoteJmxConnectorServlet.java:180) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.servletService (ApplicationFilterChain.java:397) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:278) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal (StandardContextValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke (VirtualServerPipeline.java:120) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service (CoyoteAdapter.java:231) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter (ProcessorTask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked (ProcessorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process (ProcessorTask.java:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask (ReadTask.java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask (ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run (TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run (WorkerThread.java:75) |#] Undeployment of component [EJBModule1] failed. Application EJBModule1 is referenced by server and must be referenced by no server instances or clusters.
Move to correct component.
I will take this
I have been trying to reproduce this issue, but haven't had much success... Is the module part of a larger application? Has that application been deployed? It sounds like your project is still small... Please attach it to this issue. Please provide more details about: "change to the the implementation of the Web Service bean" What kind of change did you make... add a new service operation, change code inside the service operation, etc..
The problem went away when I undeployed from app server admin console and then deployed thru IDE. So I went ahead with other tasks. So I am not able to reproduce the problems nor can I give out files now (they are different). Sorry, and request to close the issue. Will re-open with source & config files, if I can reproduce the problem in future. I deployed initially with no methods, then I added a method to service and added a two line implementation of the service method in the bean. It was a standalone EJB module. Thanks!
Thanks for the additional info... I will take another swing at this to see if I can reproduce the issue, based on what you have added.
I could not duplicate this issue, even with the additional info. Note: I could not get a JAX-WS ejb based service without an operation to deploy as part of the initial "step" for duplicating this issue with JAX-WS. JAX-RPC did not seem to have issues with an operation-free web service...
Created attachment 31138 [details] The module that was generated and placed in C:\Documents and Settings\Suresh Yellamaraju\Local Settings\Temp\s1astempdomain1server1604784362
Created attachment 31139 [details] The zip file of the entire module
I tried it with J2EE 1.5 and ran into this issue straight away, not even a redeploy done. Createad EJBModule2, newpackage and newwebservice. Had the instance of AppServer9, default, running. Reached the adminconsole and verified there was no prior EJBmodule of similar name. Attached below is the build.xml console output and Sun Application Server 9 console output. init: deps-jar: Created dir: C:\Projects\SCEA\Trial1\EJBModule2\build\jar Created dir: C:\Projects\SCEA\Trial1\EJBModule2\build\ear-module Copying 2 files to C:\Projects\SCEA\Trial1\EJBModule2\build\jar\META-INF Compiling 1 source file to C:\Projects\SCEA\Trial1\EJBModule2\build\jar compile: library-inclusion-in-archive: Created dir: C:\Projects\SCEA\Trial1\EJBModule2\dist Building jar: C:\Projects\SCEA\Trial1\EJBModule2\dist\EJBModule2.jar dist: Distributing C:\Projects\SCEA\Trial1\EJBModule2\dist\EJBModule2.jar to [localhost:4949_server] Start registering the project's server resources Finished registering server resources deployment started : 0% Deploying application in domain failed; WSGEN FAILED C:\Projects\SCEA\Trial1\EJBModule2\nbproject\build-impl.xml:325: Deployment error: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 2 seconds) ADM1064:The upload file at [C:\Documents and Settings\Suresh Yellamaraju\Local Settings\Temp\s1astempdomain1server1604784362\EJBModule2.jar] exists and will be overwritten. ADM1006:Uploading the file to:[C:\Documents and Settings\Suresh Yellamaraju\Local Settings\Temp\s1astempdomain1server1604784362\EJBModule2.jar] The web service defined by the class newpackage.NewWebService does not contain any valid WebMethods.|#] The web service defined by the class newpackage.NewWebService does not contain any valid WebMethods. at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel (RuntimeModeler.java:251) at com.sun.tools.ws.wscompile.CompileTool.buildModel (CompileTool.java:631) at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536) at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54) at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen (WSToolsObjectFactoryImpl.java:42) at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1740) at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2004) at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors (ModuleDeployer.java:396) at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy (EjbModuleDeployer.java:138) at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish (ModuleDeployer.java:160) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase (J2EECPhase.java:169) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase (DeploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases (PEDeploymentService.java:871) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:266) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:739) at com.sun.enterprise.management.deploy.DeployThread.deploy (DeployThread.java:174) at com.sun.enterprise.management.deploy.DeployThread.run (DeployThread.java:210) |#] Exception occured in J2EEC Phase com.sun.enterprise.deployment.backend.IASDeploymentException: WSGEN FAILED at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2008) at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors (ModuleDeployer.java:396) at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy (EjbModuleDeployer.java:138) at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish (ModuleDeployer.java:160) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase (J2EECPhase.java:169) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase (DeploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases (PEDeploymentService.java:871) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:266) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:739) at com.sun.enterprise.management.deploy.DeployThread.deploy (DeployThread.java:174) at com.sun.enterprise.management.deploy.DeployThread.run (DeployThread.java:210) |#] ADM1064:The upload file at [C:\Documents and Settings\Suresh Yellamaraju\Local Settings\Temp\s1astempdomain1server1604784362\EJBModule2.jar] exists and will be overwritten. ADM1006:Uploading the file to:[C:\Documents and Settings\Suresh Yellamaraju\Local Settings\Temp\s1astempdomain1server1604784362\EJBModule2.jar] The web service defined by the class newpackage.NewWebService does not contain any valid WebMethods.|#] The web service defined by the class newpackage.NewWebService does not contain any valid WebMethods. at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel (RuntimeModeler.java:251) at com.sun.tools.ws.wscompile.CompileTool.buildModel (CompileTool.java:631) at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536) at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54) at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen (WSToolsObjectFactoryImpl.java:42) at com.sun.enterprise.webservice.WsUtil.runWsGen(WsUtil.java:1740) at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2004) at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors (ModuleDeployer.java:396) at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy (EjbModuleDeployer.java:138) at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish (ModuleDeployer.java:160) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase (J2EECPhase.java:169) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase (DeploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases (PEDeploymentService.java:871) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:266) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:739) at com.sun.enterprise.management.deploy.DeployThread.deploy (DeployThread.java:174) at com.sun.enterprise.management.deploy.DeployThread.run (DeployThread.java:210) |#] Exception occured in J2EEC Phase com.sun.enterprise.deployment.backend.IASDeploymentException: WSGEN FAILED at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2008) at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors (ModuleDeployer.java:396) at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy (EjbModuleDeployer.java:138) at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish (ModuleDeployer.java:160) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase (J2EECPhase.java:169) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase (DeploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases (PEDeploymentService.java:871) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:266) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy (PEDeploymentService.java:739) at com.sun.enterprise.management.deploy.DeployThread.deploy (DeployThread.java:174) at com.sun.enterprise.management.deploy.DeployThread.run (DeployThread.java:210) |#]