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 66983 - [50cat] Debug WS: Application [appname] is already deployed on other targets...
Summary: [50cat] Debug WS: Application [appname] is already deployed on other targets...
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ ludo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 18:18 UTC by clever
Modified: 2005-11-23 05:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description clever 2005-10-17 18:18:39 UTC
[ BUILD # : 200510131600 ]
[ JDK VERSION : 1.4.2_xx ]

Hi,

I have successfully deployed (run) my seb service against SJS. I then try to 'debug' the webapp, and I get this in the console (and a modal error):

In-place deployment at C:\Data\Projects\[proj-folder]\build\web
Start registering the project's server resources
Finished registering server resources
Application [proj-name]-war is already deployed on other targets. Please use create-application-ref command to create reference to the specified target; requested operation cannot be completed
C:\Data\Projects\[proj-folder]\nbproject\build-impl.xml:431: Deployment failed.
BUILD FAILED (total time: 3 seconds)

I see nothing on the server viewer. When I look at the SJS admin console,  I see my webapp, but the admin interface shows an error:

A "com.sun.enterprise.tools.guiframework.exception.FrameworkError" was caught. The message from the exception: "Unable to get View for ViewDescriptor 'webApplications'"

The root cause is "com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered"

See the HTML source for more detailed (stack trace) information.
...
-----

AFter manually modifying the instance config files and deleting some backup data, the instance seems back to normal.

Bottom line issue, seems to be debugging with 'folder deployment' enabled.
Comment 1 Sherold Dev 2005-10-18 14:17:17 UTC
-> sunappserv
Comment 2 _ ludo 2005-11-03 17:06:28 UTC
Please, please please...
Can you attach the server log file for analysis?

This is anyway a server deploy backend bug. Only workaround is:
 stop the server, hand-edit the domain.xml to remove the remaining element
(application-ref I think) , and restart the server. 

I'll see if this can be addressed in AS 8.2, but we need the server  log.
I guess you are using 8.1 U2? Any previous version would have much more this
random behaviour :
when a locked file prevents a complete undeployment or redeployment.  After a
clean undeployment or redeployment the domain.xml should have both the
web-module element and the application-ref element, but after a failed attempt
it would have only one (I can't remember which)...

Comment 3 clever 2005-11-04 03:36:54 UTC
Sorry for the delay. I'll try to get the log or repoduce the error tomorrow!
Cheers!
-Sean
Comment 4 _ ludo 2005-11-23 05:18:01 UTC
In any case, if there is a fix, it can only come from the app server backend,
not the netbeans plugin.
when you can reproduce the bug, try to file it on the app server side, or reopen
this one. 
AS 8.2 has done real progress in this area.