お世話になっております。
Tomcatにデプロイしようとすると以下のエラーが出てデプロイに失敗します。
情報: HTMLManager: list: Listing contexts for virtual host 'localhost' [火 5 28 11:30:21 GMT+09:00 2019] 情報: Webアプリケーションアーカイブ E:\pleiades\tomcat\8\webapps\orderapp_rest.war を配備します [火 5 28 11:51:13 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/relaxng-datatype-2.3.2.jar!/] for annotations [火 5 28 11:51:13 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/xsom-2.3.2.jar!/] for annotations [火 5 28 11:51:13 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/txw2-2.3.2.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/jakarta.xml.bind-api-2.3.2.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/jaxb-xjc-2.3.2.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/istack-commons-runtime-3.0.8.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/rngom-2.3.2.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/stax-ex-1.8.1.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/jaxb-runtime-2.3.2.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/FastInfoset-1.2.16.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/istack-commons-tools-3.0.8.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/dtd-parser-1.4.1.jar!/] for annotations [火 5 28 11:51:14 GMT+09:00 2019] 重大: Unable to process Jar entry [module-info.class] from Jar [jar:file:/E:/pleiades/tomcat/8/webapps/orderapp_rest/WEB-INF/lib/codemodel-2.3.2.jar!/] for annotations [火 5 28 11:51:15 GMT+09:00 2019] 情報: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time. [火 5 28 11:51:15 GMT+09:00 2019] 情報: No Spring WebApplicationInitializer types detected on classpath [火 5 28 11:51:15 GMT+09:00 2019] 情報: Initializing Spring root WebApplicationContext [火 5 28 11:51:15 GMT+09:00 2019] 情報: Root WebApplicationContext: initialization started [火 5 28 11:51:15 GMT+09:00 2019] 情報: Refreshing Root WebApplicationContext: startup date [Tue May 28 11:51:15 GMT+09:00 2019]; root of context hierarchy [火 5 28 11:51:15 GMT+09:00 2019] 情報: Loading XML bean definitions from ServletContext resource [/WEB-INF/beans.xml] [火 5 28 11:51:15 GMT+09:00 2019] 情報: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml] [火 5 28 11:51:15 GMT+09:00 2019] 情報: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-binding.xml] [火 5 28 11:51:15 GMT+09:00 2019] 情報: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml] [火 5 28 11:51:15 GMT+09:00 2019] 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderProcess': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.common.util.ClassHelper.getRealClass(Lorg/apache/cxf/Bus;Ljava/lang/Object;)Ljava/lang/Class; [火 5 28 11:51:25 GMT+09:00 2019] 重大: Context initialization failed [火 5 28 11:51:25 GMT+09:00 2019] 重大: クラス org.springframework.web.context.ContextLoaderListener のリスナインスタンスにコンテキスト初期化イベントを送信中の例外です [火 5 28 11:51:25 GMT+09:00 2019] 重大: One or more listeners failed to start. Full details will be found in the appropriate container log file [火 5 28 11:51:25 GMT+09:00 2019] 重大: 以前のエラーのためにコンテキストの起動が失敗しました [/orderapp_rest] [火 5 28 11:51:25 GMT+09:00 2019] 情報: Closing Spring root WebApplicationContext [火 5 28 11:51:25 GMT+09:00 2019] 情報: Deployment of web application archive E:\pleiades\tomcat\8\webapps\orderapp_rest.war has finished in 11,747 ms [火 5 28 11:51:25 GMT+09:00 2019] 情報: HTMLManager: list: Listing contexts for virtual host 'localhost' [火 5 28 11:51:25 GMT+09:00 2019] 情報: HTMLManager: undeploy: Undeploying web application at '/orderapp_rest' [火 5 28 11:52:12 GMT+09:00 2019] 情報: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/orderapp_rest]] after stop() had already been called. The second call will be ignored. [火 5 28 11:52:12 GMT+09:00 2019] 情報: コンテキストパス /orderapp_rest のWebアプリケーションの配備を解除します [火 5 28 11:52:12 GMT+09:00 2019] 情報: HTMLManager: list: Listing contexts for virtual host 'localhost' [火 5 28 11:52:12 GMT+09:00 2019]
エラーになっているjarをpom.xmlに追加しても解消出来ません…
恥ずかしながら何が起こっているかも理解出来ていませんのでとりあえず何が悪いのかご教示願えませんでしょうか?
"Unable to process Jar entry"でググってはみたのですが情報が出て来ませんでした。
どうかよろしくお願いいたします。
よくよく調べてみると以下の
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderProcess': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.common.util.ClassHelper.getRealClass(Lorg/apache/cxf/Bus;Ljava/lang/Object;)Ljava/lang/Class; [火 5 28 11:51:25 GMT+09:00 2019] 重大: Context initialization failed [火 5 28 11:51:25 GMT+09:00 2019] 重大: クラス org.springframework.web.context.ContextLoaderListener のリスナインスタンスにコンテキスト初期化イベントを送信中の例外です [火 5 28 11:51:25 GMT+09:00 2019] 重大: One or more listeners failed to start. Full details will be found in the appropriate container log file [火 5 28 11:51:25 GMT+09:00 2019] 重大: 以前のエラーのためにコンテキストの起動が失敗しました [/orderapp_rest] [火 5 28 11:51:25 GMT+09:00 2019]
こちらのエラーが原因でデプロイされなかったところまでは理解出来ました。
関係ありそうなのはビーンの生成に失敗しているということでしょうか?
xml
1<?xml version="1.0" encoding="UTF-8"?> 2<beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xmlns:jaxws="http://cxf.apache.org/jaxws" 5 xsi:schemaLocation=" 6http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd 7http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> 8 9 <import resource="classpath:META-INF/cxf/cxf.xml" /> 10 <import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"/> 11 <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> 12 13 <jaxws:endpoint 14 id="orderProcess" 15 implementor="demo.order.OrderProcessImpl" 16 address="/" 17 bindingUri="http://apache.org/cxf/binding/http" > 18 <jaxws:serviceFactory> 19 <bean class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> 20 <property name="wrapped" value="false" /> 21 </bean> 22 </jaxws:serviceFactory> 23 </jaxws:endpoint> 24</beans>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。