Removing Applications from your Integrated WebLogic Server in JDeveloper

JDeveloper has an integrated WebLogic Server now - and when you deploy the applications to it, it behaves a little different then in the old days of OC4J. For example you can have multiple applications deployed and running at the same time on the server.
However, sometimes one of those application might still be around when you don't need it anymore. This can happen for example if you had your WLS running and killed it with the task manager.

This might cause an error when you try and run the application again - saying that the application is already up there.

The nice thing in JDeveloper is that you can actually undeploy that application directly from inside JDeveloper. Here is how:

From the View menu choose Application Server Navigator
Expend the IntegratedWLSConnection to look at the applications that are available.
(By the way, you should see there all the ADF libraries, DO NOT UNDEPLOY THEM)


wls001.jpg




Next you can locate your application, right click it and undeploy it.
wls002.jpg


That's it.
You should now be able to redploy it.

Comments:

I tried to make what you did but when i began to expand + symbol of the deployments, a message appeared and it is as follows: the connection couldn't be established :S help me in this thanks regards, Mahmoud

Posted by Mahmoud on April 13, 2010 at 06:30 PM PDT #

Make sure that you have started the embedded server before you try and edit it.

Posted by shay.shmeltzer on April 14, 2010 at 01:57 AM PDT #

I do as you say and it tells me that undeployment has failed. It does not say why or give a specific error message. My main problem is that I can not launch any application. I tried creating a jspx. page but when i clicked deploy it gave me a remote deploy failed error. After a lot of searching it led me to here and to trying to undeploy my older apps in the hope it will do something but I can not even undeploy them. Any help would be greatly appreciated as I am new to Jdeveloper (actually I was working through one of your tutorials when the error occured)

Posted by Dino Kantardzic on April 27, 2010 at 07:32 PM PDT #

Dino, I'm not exactly sure what the problem is - but one thing that usually works is removing the instance of the integrated server - by removing the directory: C:\Documents and Settings\username\Application Data\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain Then restarting JDeveloper - JDeveloper will just recreate a clean WebLogic Server for you.

Posted by shay.shmeltzer on April 28, 2010 at 08:04 AM PDT #

Thanks a lot for the great info. I faced the exact situation and did as you said and it is working absolutely fine now. Whoa!!

Posted by Ravi Nuka on May 31, 2011 at 07:42 AM PDT #

After 4 hours of trying to figure out how to remove a deployment this worked like a charm... I even tried from the weblogic console and no luck.

Thanks!

Posted by guest on August 12, 2011 at 04:14 AM PDT #

excellent hint!

Posted by guest on February 11, 2012 at 04:06 AM PST #

Great this worked out for me too

Posted by guest on December 02, 2012 at 09:05 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Java Development Tools.
Follow me:
Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today