Weblogic自动部署与手动部署 异常记录与解决方法

weblogic在控制台部署项目时提示:
The application ‘mycim2Ejb’ was autodeployed and may only be redeployed by touching REDEPLOY file in the domain autodeploy directory for respected application.
在这里插入图片描述
1.排查思路:
检查项目是否属于自动部署的目录:domain_home/autodeploy
属于autodeploy则不能手动部署,想要变更为手动部署,则新建一个stage目录,将项目放在stage目录下,重新install,重新deploy即可访问。
重新部署后的目录:domain_home/stage
在这里插入图片描述
2.手动部署时,自动部署的项目仍然存在,
导致报错:[EJB:011055]Error deploying the EJB ‘AlmSetupManagerSL(Application: mycim2Ejb, EJBComponent: almEjb2.0.jar)’, the JNDI name ‘statelessSession.AlmSetupManager’ is already in use. You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB before it can be deployed.
解决思路:
1.删除自动部署项目,保留手动部署项目
2.删除手动部署项目,保留自动部署项目
在这里插入图片描述
1.删除自动部署项目,操作:
去domain_home/config/config.xml文件中查看,将设置为autodeploy路径下的项目删除,
更改配置文件后,重启weblogic服务即可
在这里插入图片描述
2.删除手动部署项目:
在这里插入图片描述
在这里插入图片描述 参考文章: https://blog.csdn.net/yangschfly/article/details/81216363