質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Spring

Spring Framework は、Javaプラットフォーム向けのオープンソースアプリケーションフレームワークです。 Java Platform上に、 Web ベースのアプリケーションを設計するための拡張機能が数多く用意されています。

Apache Maven 2

Apache Mavenは、ソフトウェアプロジェクトの管理ツールです。

Q&A

解決済

1回答

2838閲覧

Apache CXF+Spring+Mavenで作成したアプリケーションがデプロイ出来ません

kagemaru

総合スコア12

Java

Javaは、1995年にサン・マイクロシステムズが開発したプログラミング言語です。表記法はC言語に似ていますが、既存のプログラミング言語の短所を踏まえていちから設計されており、最初からオブジェクト指向性を備えてデザインされています。セキュリティ面が強力であることや、ネットワーク環境での利用に向いていることが特徴です。Javaで作られたソフトウェアは基本的にいかなるプラットフォームでも作動します。

Spring

Spring Framework は、Javaプラットフォーム向けのオープンソースアプリケーションフレームワークです。 Java Platform上に、 Web ベースのアプリケーションを設計するための拡張機能が数多く用意されています。

Apache Maven 2

Apache Mavenは、ソフトウェアプロジェクトの管理ツールです。

0グッド

0クリップ

投稿2019/05/28 03:33

編集2019/05/28 05:16

お世話になっております。
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>

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

結論から言いますとチュートリアルのリストはデプロイ出来ませんでした。
勉強不足で申し訳ありませんが、現在自分が手がけているサービスは問題なくデプロイ出来ておりますのでこの件はクローズします。
ご迷惑をおかけしました。

投稿2019/06/13 08:49

kagemaru

総合スコア12

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問