Hi folks - digging this out from the "EAR creation in Roo" thread as it's off topic for that one. Has anyone been able to successfully deploy a roo project on Weblogic 10.3.x? I am getting the following error:
Any suggestions - I'm a roo newb. I tried adding a weblogic.xml file to web-inf dir with the following:Code:Caused By: weblogic.deployment.EnvironmentException: Error loading the persisten ce descriptor WEB-INF/lib/_wl_cls_gen.jar!/META-INF/persistence.xml from the mod ule rooperson.war. See the following stack trace for nested errors: weblogic.de scriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND C:\Oracle\Middleware\user_projects\domains\base_domain\weblogic.utils.classloa ders.GenericClassLoader@1fc840d finder: weblogic.utils.classloaders.CodeGenClass Finder@12dd375 annotation: _appsdir_rooperson_war@\WEB-INF\lib\_wl_cls_gen.jar!\ 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.classloa ders.GenericClassLoader@1fc840d finder: weblogic.utils.classloaders.CodeGenClass Finder@12dd375 annotation: _appsdir_rooperson_war@/WEB-INF/lib/_wl_cls_gen.jar!/ META-INF/persistence.xml:2:3> at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(Mars hallerFactory.java:245) at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(Mars hallerFactory.java:231) at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(Mar shallerFactory.java:155) at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDesc riptorManager.java:323) at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript orBeanFromReader(AbstractDescriptorLoader2.java:788) at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescr iptorBean(AbstractDescriptorLoader2.java:411) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip torBeanWithoutPlan(AbstractDescriptorLoader2.java:759) at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip torBean(AbstractDescriptorLoader2.java:768) at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDe scriptor(AbstractPersistenceUnitRegistry.java:177) at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDe scriptors(AbstractPersistenceUnitRegistry.java:101)
All I'm trying is a simple one-entity roo project with hibernate persistence. OpenJPA produced different errors.Code:<?xml version="1.0" encoding="UTF-8"?> <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd"> <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> </weblogic-web-app>


Reply With Quote