본문 바로가기

Server

[Weblogic] Failed to initialize the application "_auto_generated_ear_-1" due to error weblogic.management.DeploymentException

 Weblogic을 STS, IntelliJ에 Setup해서 사용하다가 다음과 같은 에러가 계속 발생하였다.

 

<2020. 7. 7 오후 5시 43분 05,019초 KST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application "_auto_generated_ear_-1" due to error weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\workspace\BOK\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\base_domain\_auto_generated_ear_" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, consult the WebLogic Server documentation.
weblogic.management.DeploymentException: [J2EE:160177]The application at "D:\workspace\BOK\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\base_domain\_auto_generated_ear_" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, consult the WebLogic Server documentation.
	at weblogic.application.internal.DeploymentManagerImpl.createDeployment(DeploymentManagerImpl.java:188)
	at weblogic.application.internal.DeploymentManagerImpl.access$800(DeploymentManagerImpl.java:61)
	at weblogic.application.internal.DeploymentManagerImpl$DeploymentCreatorImpl.createDeployment(DeploymentManagerImpl.java:628)
	at weblogic.deploy.internal.targetserver.BasicDeployment.createDeployment(BasicDeployment.java:240)
	at weblogic.deploy.internal.targetserver.AppDeployment.prepare(AppDeployment.java:135)
	Truncated. see log file for complete stacktrace

 따로 구동하는데 문제는 없지만 가동 시마다 에러가 쌓이다보니, 해결 방법을 찾아보았다.

 

 Weblogic이 설치된 경로에 config 폴더를 찾아보니

"C:\Oracle\wls12213\user_projects\domains\base_domain\config"

 

 config.xml 파일을 찾았다.

 

 해당 파일을 열어보니, 위 오류의 경로가 다음과 같이 들어가 있었다.

 

<app-deployment>
    <name>_auto_generated_ear_-1</name>
    <target>AdminServer</target>
    <module-type>ear</module-type>
    <source-path>D:\workspace\BOK\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\base_domain\_auto_generated_ear_</source-path>
    <security-dd-model>DDOnly</security-dd-model>
    <staging-mode xsi:nil="true"></staging-mode>
    <plan-staging-mode xsi:nil="true"></plan-staging-mode>
    <cache-in-app-directory>false</cache-in-app-directory>
  </app-deployment>

 따라서 해당 내용을 주석처리 <!-- /내용/ --> 진행하여서 재기동하였다.

 

 잉~