Redploying an application on GlassFish v2 UR2 throws an exception:
[#|2008-07-09T12:15:56.499-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=18;_ThreadName=httpWorkerThread-4848-1;_RequestID=0d06f54e-b551-45e6-be37-4ec7b65a9136;|ADM1082:Creating
the application reference failed - Detailed Message:
com.sun.enterprise.deployment.backend.IASDeploymentException:
Application reference GlassFishWSWeb already exists in server instance
server.
at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.getAndValidateDeploymentTarget(DeploymentServiceUtils.java:1212)
at
com.sun.enterprise.deployment.phasing.PEDeploymentService.associate(PEDeploymentService.java:452)
at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.createApplicationReference(ApplicationsConfigMBean.java:693)
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
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
It seems the right deploy sequence is not being called. More details/discussion at:
https://glassfish.dev.java.net/servlets/ReadMsg?list=dev&msgNo=7572