Websphereへのプロジェクトのデプロイメントを開始しようとしていますが、次のエラートレイルが表示されます。(短縮)
ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'birtView' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'birtEngine' while setting bean property 'birtEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'birtEngine': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: Could not start the Birt engine!
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'birtEngine': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: Could not start the Birt engine!
Caused by: java.lang.RuntimeException: Could not start the Birt engine!
Caused by: org.eclipse.birt.core.exception.BirtException: error.CannotStartupOSGIPlatform
Caused by: org.eclipse.birt.core.framework.FrameworkException: Cant register the ExtensionRegistry classpath
Caused by: org.eclipse.core.runtime.CoreException: Extension registry provider is already set.
オンラインで見つけた下から3番目のエラーの解決策は、次のコード行を削除することでした。
config.setEngineHome("C:/birt-runtime-3_7_0/ReportEngine");
ただし、これは存在せず、セットアップには不要です。これ(使用されるBIRT固有のコード)は、オンラインのこの例と非常によく似ています。
http://www.springsource.org/BusinessIntelligenceWithSpringAndBIRT
BirtViewとBirtEngineFactoryは、私のプロジェクトに関連する唯一の部分です。このバグページとフォーラムエントリにアクセスして、コードの追加を試しました。それは動かなかった。プロジェクトが起動し、Tomcat6xで問題なく動作します。
http://www.eclipse.org/forums/index.php/m/727929/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351052
WebSphereのクラスローダーの順序を「アプリケーションクラスローダーで最初にロードされたクラス」に設定しています。以下のリンクの例のように。
http://wiki.eclipse.org/BirtPOJO_Viewer_WebSphere_Deployment
それでも同じエラーが発生し、他に何をすべきかわかりません。コードを投稿せずにこれを尋ねるのは少し難しいことは知っていますが、誰かが私が何を探すべきかについて考えを持っているでしょうか?ありがとう。