dev@glassfish.java.net

Re: Redeploying a web app from IntelliJ throws exception

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Wed, 09 Jul 2008 12:27:20 -0700

I believe this to be an Intellij plugin bug. It's not calling redeploy sequence,
apparently.

-Kedar

Arun Gupta wrote:
> Deploying a Web application from IntelliJ on GlassFish works fine. But
> re-deploying always gives the following error:
>
> [#|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)
>
>
> If the application is explicitly undeployed and deployed, then
> everything works.
>
> Any clues before I file an issue in IntelliJ's JIRA ?
>
> -Arun