GlassFish(ver.3)でJSF(2.1)アプリケーション(JavaEE5)を開発しました。 2 JPA 2.0)。 WebLogic Server(10.xまたは11)にアプリケーションをインストールする必要があります。 Weblogics Webインターフェイスにアプリケーションをインストールしようとすると、大きなエラーメッセージが表示されます アプリケーションをあるアプリケーションサーバーから別のアプリケーションサーバーに移動するにはどうすればいいですか? IDE Netbeansの7.0 JSF 2.1 primefacesライブラリがGlassFish 3からWeblogic 10.xまたは11へのJSF 2.1アプリケーションの移行
エラーメッセージがこの
Message icon - Error Exception in AppMerge flows' progression
Message icon - Error Exception in AppMerge flows' progression
Message icon - Error Error loading the persistence descriptor WEB-INF/classes/META-INF/persistence.xml from the module Lee5.war.
See the following stack trace for nested errors:
weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND D:\bea\user_projects\domains\base_domain\[email protected]
finder: [email protected]
annotation: \WEB-INF\classes\META-INF\persistence.xml:2:3:2:3:
problem: cvc-attribute.4: The value '2.0' does not equal the fixed value '1.0' of attribute 'version':<[email protected]
finder: [email protected] annotation: /WEB-INF/classes/META-INF/persistence.xml:2:3>
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:155)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:411)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:177)
at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:101)
私は良い答えはありませんが、問題はWebLogicクラスローダーのように見えます。 WebLogicは他のアプリケーションサーバーと同様に、独自のクラスローダーと独自の組み込みライブラリバンドルを備えており、クラスローダーが優先処理を行います。 JBoss 5クラスローダーがWEB-INF/lib内にあるJSF 2.0の代わりにバンドルされたJSF 1.2のバージョンをロードしていたという点でTomcatからJBossに移行するときも同様の問題がありました。 –
Tomcat 7でアプリケーションを実行してください。ライブラリにはバンドルされていないライブラリがあり、そのクラスローダーはまずJARファイルに対して 'WEB-INF/lib'を探します。これにより、問題を絞り込むのに役立ちます。 Tomcat上で動作する場合、WebLogicでロードされるJSFとJPAのバージョンを把握する必要があります。 –