Problem
you may get “Application already exists in the configuration repository” error while trying to deploy a application to websphere application server.
This error can come under following conditions:
- Deploying an application and it already exists
- Re-Deploying an application whose deployment failed before for some reason
- undeployment failed but there is no reference of the application in admin console
For example, you are deploying a large application using wsadmin and got a soap timeout or out of memory before application is saved. Then you change the timeout/heap and try to deploy your applciation… in this case above error can come.
Solution:
- Stop the target JVM
- Delete all the contents of temp and wstempfolder.
- Go to WAS_INSTALL_DIR\profiles\<profileName>\config\cells\<cellName>\nodes\<nodeName>\
- Edit the file serverindex.xml for an entry for our application within the tag<deployedApplications>xxx.ear</deployedApplications> (delete this line)
- Do a search for your ear file in the file system and delete all the occurrences of the XXX.earfolder
- Restart WAS
- deploy the application
Hello,
We followed all the steps and are not able to deploy the application.
Is there anything more that we can do.
Thanks
Dilip
Me too… I have followed these steps and still am getting this error when trying to deploy.
Thanks Bob
Hi All,
I have removed the files from wstemp, then it is working fine for me.
Shyam.
Use find command to search the particlar application..
find -name “Applicationname.ear” and remove all the instance..For me I have to remove it from .
./WebSphere/AppServer/profiles/Dmgr01/wstemp/0/workspace/cells/WAS8Cell01/applications/
and
./profiles/Dmgr01/config/cells/WAS8Cell01/applications/
This helped me. Thanks a lot!