At the time of undeploying an application in Oracle Application Server 10.1.2 it is fiving the following error
Error
An error occured while undeploying the application. Base Exception:
No ApplicationInfo is associated with application named: Sth
Resolution:
You have to manually undeploy the application if you are not able to do so from dcm.
1. Shut down the HTTP server of the OAS
2. Shut down all the OC4J instances in the OAS
-bash-3.2$ cd /u01/10G_AS/Midd/
-bash-3.2$ ./opmn/bin/opmnctl status
Processes in Instance: midd.tcs186246.tcskolkata.co.in
-------------------+--------------------+---------+---------
ias-component
process-type
pid
status
-------------------+--------------------+---------+---------
DSA
DSA
N/A
Down
LogLoader
logloaderd
N/A
Down
dcm-daemon
dcm-daemon
17680
Alive
OC4J
home
17521
Alive
OC4J
OC4J_Portal
N/A
Down
WebCache
WebCache
17488
Alive
WebCache
WebCacheAdmin
17477
Alive
HTTP_Server
HTTP_Server
17479
Alive
-bash-3.2$ ./opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...
3. Run dcmctl getState -v -d and check if you are in synch or not
-bash-3.2$ ./dcm/bin/dcmctl getState -v -d
Current State for Instance:midd.tcs186246.tcskolkata.co.in
Component Type Up Status In Sync Status
================================================================================
1 HTTP_Server HTTP_Server Down True
2 OC4J_Portal OC4J Down True
3 home OC4J Down True
4. Goto the following path
-bash-3.2$ cd ./j2ee/OC4J_Portal/config
5. Take the Backup of server.xml and default-web-site.xml file.
-bash-3.2$ cp server.xml server.xml_bkp
-bash-3.2$ cp default-web-site.xml default-web-site.xml_bkp
6. Edit both files to delete the entries respective to the application, which you want to delete.
-bash-3.2$ vi server.xml
-bash-3.2$ vi default-web-site.xml
-bash-3.2$ vi server.xml
7. Go to the following directory and remove the ear and the directories of the specified applications.
-bash-3.2$ cd ../applications
-bash-3.2$ ls -lrt
total 17864
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 portalHelp2
-rw-rw---- 1 oracletrg dba 2687627 Feb 1 12:59 jpdk.ear
drwxrwx--- 5 oracletrg dba 4096 Feb 1 12:59 jpdk
drwxrwx--- 7 oracletrg dba 4096 Feb 1 12:59 UltrasearchQuery
drwxrwx--- 6 oracletrg dba 4096 Feb 1 12:59 UltrasearchAdmin
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 orauddi
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 portalHelp
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 UltrasearchPortlet
drwxrwx--- 8 oracletrg dba 4096 Feb 1 12:59 portalTools
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 portal
drwxrwx--- 5 oracletrg dba 4096 Feb 1 12:59 oraudrepl
-rw-r--r-- 1 oracletrg dba 5441117 Feb 11 18:15 SimpleStruts2.ear
drwxr-xr-x 4 oracletrg dba 4096 Feb 11 18:15 SimpleStruts2
-rw-r--r-- 1 oracletrg dba 10075940 Feb 14 10:58 Sth.ear
drwxr-xr-x 4 oracletrg dba 4096 Feb 14 10:58 Sth
-bash-3.2$ rm -rf SimpleStruts2.ear SimpleStruts2 Sth.ear Sth
8. Go to the following directory and remove the directories of the specified applications.
-bash-3.2$ cd ../application-deployments/
-bash-3.2$ ls -lrt
total 52
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:58 default
drwxrwx--- 6 oracletrg dba 4096 Feb 1 12:59 oraudrepl
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 orauddi
drwxrwx--- 5 oracletrg dba 4096 Feb 10 15:28 UltrasearchQuery
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 UltrasearchPortlet
drwxrwx--- 6 oracletrg dba 4096 Feb 10 15:28 UltrasearchAdmin
drwxrwx--- 8 oracletrg dba 4096 Feb 10 15:28 portalTools
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 portalHelp2
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 portalHelp
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 portal
drwxrwx--- 5 oracletrg dba 4096 Feb 10 15:28 jpdk
drwxr-xr-x 4 oracletrg dba 4096 Feb 11 18:15 SimpleStruts2
drwxr-xr-x 4 oracletrg dba 4096 Feb 14 10:58 Sth
-bash-3.2$ rm -rf SimpleStruts2 Sth
9. Go to $ORACLE_HOME(MID)/Apache/Apache/conf/
-bash-3.2$ cd ../../../Apache/Apache/conf/
10. Take a backup of mod_oc4j.conf file.
-bash-3.2$ cp mod_oc4j.conf mod_oc4j.conf_bkp
11. Edit the mod_oc4j.conf file to remove the entries regarding the applications.
-bash-3.2$ vi mod_oc4j.conf
12. Goto $ORACLE_HOME(MID)/dcm/bin/ and update the configuration
-bash-3.2$ cd dcm/bin/
-bash-3.2$ ./dcmctl updateConfig -v -d
13. Start the opmnctl
-bash-3.2$ ./../../opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...
14. Check the status of the opmnctl
-bash-3.2$ ./../../opmn/bin/opmnctl status
Processes in Instance: midd.tcs186246.tcskolkata.co.in
-------------------+--------------------+---------+---------
ias-component process-type pid status
-------------------+--------------------+---------+---------
DSA DSA N/A Down
LogLoader LogLoader N/A Down
dcm-daemon dcm-daemon 14784 Alive
OC4J home 15646 Alive
OC4J OC4J_Portal 15645 Alive
WebCache WebCache 15618 Alive
WebCache WebCacheAdmin 15607 Alive
HTTP_Server HTTP_Server 15609 Alive
Error
An error occured while undeploying the application. Base Exception:
No ApplicationInfo is associated with application named: Sth
Resolution:
You have to manually undeploy the application if you are not able to do so from dcm.
1. Shut down the HTTP server of the OAS
2. Shut down all the OC4J instances in the OAS
-bash-3.2$ cd /u01/10G_AS/Midd/
-bash-3.2$ ./opmn/bin/opmnctl status
Processes in Instance: midd.tcs186246.tcskolkata.co.in
-------------------+--------------------+---------+---------
ias-component
process-type
pid
status
-------------------+--------------------+---------+---------
DSA
DSA
N/A
Down
LogLoader
logloaderd
N/A
Down
dcm-daemon
dcm-daemon
17680
Alive
OC4J
home
17521
Alive
OC4J
OC4J_Portal
N/A
Down
WebCache
WebCache
17488
Alive
WebCache
WebCacheAdmin
17477
Alive
HTTP_Server
HTTP_Server
17479
Alive
-bash-3.2$ ./opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...
3. Run dcmctl getState -v -d and check if you are in synch or not
-bash-3.2$ ./dcm/bin/dcmctl getState -v -d
Current State for Instance:midd.tcs186246.tcskolkata.co.in
Component Type Up Status In Sync Status
================================================================================
1 HTTP_Server HTTP_Server Down True
2 OC4J_Portal OC4J Down True
3 home OC4J Down True
4. Goto the following path
-bash-3.2$ cd ./j2ee/OC4J_Portal/config
5. Take the Backup of server.xml and default-web-site.xml file.
-bash-3.2$ cp server.xml server.xml_bkp
-bash-3.2$ cp default-web-site.xml default-web-site.xml_bkp
6. Edit both files to delete the entries respective to the application, which you want to delete.
-bash-3.2$ vi server.xml
-bash-3.2$ vi default-web-site.xml
-bash-3.2$ vi server.xml
7. Go to the following directory and remove the ear and the directories of the specified applications.
-bash-3.2$ cd ../applications
-bash-3.2$ ls -lrt
total 17864
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 portalHelp2
-rw-rw---- 1 oracletrg dba 2687627 Feb 1 12:59 jpdk.ear
drwxrwx--- 5 oracletrg dba 4096 Feb 1 12:59 jpdk
drwxrwx--- 7 oracletrg dba 4096 Feb 1 12:59 UltrasearchQuery
drwxrwx--- 6 oracletrg dba 4096 Feb 1 12:59 UltrasearchAdmin
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 orauddi
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 portalHelp
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 UltrasearchPortlet
drwxrwx--- 8 oracletrg dba 4096 Feb 1 12:59 portalTools
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 portal
drwxrwx--- 5 oracletrg dba 4096 Feb 1 12:59 oraudrepl
-rw-r--r-- 1 oracletrg dba 5441117 Feb 11 18:15 SimpleStruts2.ear
drwxr-xr-x 4 oracletrg dba 4096 Feb 11 18:15 SimpleStruts2
-rw-r--r-- 1 oracletrg dba 10075940 Feb 14 10:58 Sth.ear
drwxr-xr-x 4 oracletrg dba 4096 Feb 14 10:58 Sth
-bash-3.2$ rm -rf SimpleStruts2.ear SimpleStruts2 Sth.ear Sth
8. Go to the following directory and remove the directories of the specified applications.
-bash-3.2$ cd ../application-deployments/
-bash-3.2$ ls -lrt
total 52
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:58 default
drwxrwx--- 6 oracletrg dba 4096 Feb 1 12:59 oraudrepl
drwxrwx--- 4 oracletrg dba 4096 Feb 1 12:59 orauddi
drwxrwx--- 5 oracletrg dba 4096 Feb 10 15:28 UltrasearchQuery
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 UltrasearchPortlet
drwxrwx--- 6 oracletrg dba 4096 Feb 10 15:28 UltrasearchAdmin
drwxrwx--- 8 oracletrg dba 4096 Feb 10 15:28 portalTools
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 portalHelp2
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 portalHelp
drwxrwx--- 4 oracletrg dba 4096 Feb 10 15:28 portal
drwxrwx--- 5 oracletrg dba 4096 Feb 10 15:28 jpdk
drwxr-xr-x 4 oracletrg dba 4096 Feb 11 18:15 SimpleStruts2
drwxr-xr-x 4 oracletrg dba 4096 Feb 14 10:58 Sth
-bash-3.2$ rm -rf SimpleStruts2 Sth
9. Go to $ORACLE_HOME(MID)/Apache/Apache/conf/
-bash-3.2$ cd ../../../Apache/Apache/conf/
10. Take a backup of mod_oc4j.conf file.
-bash-3.2$ cp mod_oc4j.conf mod_oc4j.conf_bkp
11. Edit the mod_oc4j.conf file to remove the entries regarding the applications.
-bash-3.2$ vi mod_oc4j.conf
12. Goto $ORACLE_HOME(MID)/dcm/bin/ and update the configuration
-bash-3.2$ cd dcm/bin/
-bash-3.2$ ./dcmctl updateConfig -v -d
13. Start the opmnctl
-bash-3.2$ ./../../opmn/bin/opmnctl startall
opmnctl: starting opmn and all managed processes...
14. Check the status of the opmnctl
-bash-3.2$ ./../../opmn/bin/opmnctl status
Processes in Instance: midd.tcs186246.tcskolkata.co.in
-------------------+--------------------+---------+---------
ias-component process-type pid status
-------------------+--------------------+---------+---------
DSA DSA N/A Down
LogLoader LogLoader N/A Down
dcm-daemon dcm-daemon 14784 Alive
OC4J home 15646 Alive
OC4J OC4J_Portal 15645 Alive
WebCache WebCache 15618 Alive
WebCache WebCacheAdmin 15607 Alive
HTTP_Server HTTP_Server 15609 Alive
No comments:
Post a Comment