Reputation: 31
i developed a JSF(2.1) Application (JavaEE5) in GlassFish(ver.3) Application server with primefaces (ver 2.x) and Eclipse Link( ver 2 JPA 2.0). now i need to install the application in WebLogic Server(10.x or11 ). when i try to install application on Weblogics web interface it shows a big error message How i can mive my application from one application server to another? IDE Netbeans 7.0 JSF 2.1 primefaces libraries included in lib of the project
Error message starts like this
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\weblogic.utils.classloaders.GenericClassLoader@1702c48
finder: weblogic.utils.classloaders.CodeGenClassFinder@44757a
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':<weblogic.utils.classloaders.GenericClassLoader@1702c48
finder: weblogic.utils.classloaders.CodeGenClassFinder@44757a 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)
Upvotes: 0
Views: 2149
Reputation: 1109715
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':<weblogic.utils.classloaders.GenericClassLoader@1702c48
This particular problem is caused because the webapp is supplying a persistence.xml
which is written for JPA 2.0 while Weblogic 10.3.x only supports JPA 1.0. You need to read the following developer guide how to get JPA 2.0 to run on Weblogic 10.3.x: Running JPA 2.0 API on WebLogic 10.3.
Once you fix this, you'll however hit a new problem as already hinted by Spauny: JSF 2.1 requires Servlet 3.0 and this can only be solved by upgrading Weblogic 10.3 to Weblogic 11. You need to downgrade to JSF 2.0. JSF 2.0 is supported out the box in Weblogic 10.3.3 and newer. For older versions I'm not sure how to upgrade it. See also Steps to deploy latest JSF version in weblogic 10.3.
Upvotes: 2
Reputation: 5116
You could look at this Eclipse bug, very close with your problem, also please note that WebLogic 10.3 has Java EE 5 and Servlets 2.5 and JSF 2.1 requires Servlets 3.0
.\
Also you could see this topic which points to the types differences of schemaLocation: http://dev.eclipse.org/mhonarc/lists/eclipselink-users/msg05639.html
You should look carefully at a migration guide!
Edit: This post could also be of help: http://blog.eisele.net/2011/01/weblogic-10340-oepe-maven-primefaces.html
Upvotes: 0