2016-08-02 24 views
1

私はEclipseでWAS Liberty 8.5を使用し始めました。アプリケーションをデプロイしようとするとこのエラーが発生します。原因:WAS Libertyのjava.lang.NoClassDefFoundError:com/ibm/CORBA/iiop/ORB

Caused by: java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ORB 

私はにその原因はサーバがインストールWASで提供するランタイムジャーibmorb.jarであることがわかりました。

WAS Libertyプロファイルの設定方法はわかりません。すべての手がかり。

でも、私はライブラリパスで言及しましたが、まだエラーが発生しています。

<variable name="DRIVER_PATH" value="C:\NovemberR2\DMS\deploy\lib"/> 
<library id="db2Lib"> 
      <fileset dir="${DRIVER_PATH}" includes="com.ibm.ws.orb_8.5.0.jar classes12.jar oracleJDBC.jar ojdbc6.jar ojdbc14.jar ibmorbapi.jar ibmorb.jar"/> 
</library> 

スタックトレースが--->ヒントについて

here is the stack trace. ...` 61 more 
Caused by: java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ORB 
    at java.lang.Class.getDeclaredMethods0(Native Method) 
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) 
    at java.lang.Class.getMethod0(Class.java:2685) 
    at java.lang.Class.getMethod(Class.java:1620) 
    at com.ibm.ws.naming.util.Helpers.getInitORBMethodForNonApplet(Helpers.java:411) 
    at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:390) 
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:462) 
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128) 
    orSourcesPropertyResolver.java:84) 
    at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:60) 
    at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:511) 
    at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:135) 
    at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:132) 
    at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:84) 
    at org.springframework.core.env.PropertySourcesPropertyResolver.getPropertyAsRawString(PropertySourcesPropertyResolver.java:70) 
    at org.springframework.core.env.AbstractPropertyResolver$1.resolvePlaceholder(AbstractPropertyResolver.java:207) 
    at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:147) 
    at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126) 
    at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:204) 
    at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:178) 
    at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$2.resolveStringValue(PropertySourcesPlaceholderConfigurer.java:175) 
    at org.springframework.beans.factory.support.AbstractBeanFactory.resolveEmbeddedValue(AbstractBeanFactory.java:801) 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:962) 
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949) 
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) 
    ... 63 more 

おかげで、私は中にも、このアプリケーションを実行するために使用さは8.0 WASサーバーとIBMはJDK WAS建てで提供し、私はへの移行を開始しましたそれを実験したリバティー・プロファイルの考え方を使って、WAS 8.5。

+0

例外のスタックトレースは何ですか?それは、何をロードしようとしているのかを教えてくれるでしょう。 –

+0

スタックトレースで質問を編集しました。 –

+0

WAS JREはサポートされていないと思います。 –

答えて

0

ここで問題となっているのは、WASで提供されているJDKを使用してLibertyサーバーを実行しているようです。

従来のWASに付属しているJDKは、従来のWAS(プラグイン可能なJDKはサポートしていません)で実行するための特別なものがあります。

代わりに
Libertyサーバーを実行するには、標準のJDKを使用します。 IBM(標準的なWASに付属のものではない)、Oracle、またはOpenJDKから標準のJDKを入手できます。

0

この問題は、アプリケーションがWAS 8.0で正しく機能していることを示しています。 WAS 8.5では、Libertyプロファイルで同じアプリケーションを実行しようとしています。 Libertyプロファイルは、従来のWASプロファイル(現在は「フル・プロファイル」と呼ばれています)の機能のサブセットをサポートしています。

答えたユーザー@aguibertは、LibertyプロファイルにJavaランタイム環境を提供する必要があります。これは、Java SE 6/7/8 JRE/JDK *に準拠することができます。完全なプロファイルの場合は、別のJDKが必要です。これはインストールパッケージにバンドルされています。このWebSphere JDKには、ibmorb.jarファイルが含まれている必要があります。

したがって、WAS 8.5のフル・プロファイルを使用してアプリケーションを実行してみてください。これで問題は解決します。 v9.0であるWASの最新バージョンに移行することも検討できます。

IBMナレッジセンターの追加リソース:Liberty profile overview

* minimum supported Java levelsの対象となります。

0

この回答が遅すぎる可能性があるため、この回答が他の人に役立つことを願っています。 com.ibm.ws.orb_8.5.0.jarをクラスパスに追加してみてください。この瓶は<WAS_HOME>\AppServer\runtimesで入手できます。これで問題は解決します。

関連する問題