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>
따라서 해당 내용을 주석처리 <!-- /내용/ --> 진행하여서 재기동하였다.
잉~
'Server' 카테고리의 다른 글
gRPC 알아보기 - 당근의 gRPC 이야기 (0) | 2024.06.24 |
---|---|
gRPC(Google Remote Procedure Call)에 대해서 알아보자 (1) | 2024.06.10 |
[CORS] ExposeHeader 설정에 대해 알아보자 (0) | 2023.01.10 |
[linux] /usr/bin/xauth: file /root/.Xauthority does not exist (0) | 2021.10.06 |
[Weblogic] Admin User Password 변경 (0) | 2020.07.28 |