掲示板

Conflict with Liferay using Spring 3.0 on WebLogic 10.3.0

13年前 に Jean-Philippe Cattoor によって更新されました。

Conflict with Liferay using Spring 3.0 on WebLogic 10.3.0

New Member 投稿: 3 参加年月日: 10/04/23 最新の投稿
Dear Forum,

We currently have issues deploying portlets using Spring 3.0 on Liferay with WebLogic (final destination plateform). This issue we do not have with Tomcat but this is essentially a development platform.

The exception is the following:

<Unable to load descriptor /home/user/Oracle/Middleware10/user_projects/domains/esco/servers/AdminServer/stage/_appsdir_esco_war/esco.war/WEB-INF/web.xml of module esco.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND problem: cvc-enumeration-valid: string value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null> 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) ---
weblogic.application.ModuleException: VALIDATION PROBLEMS WERE FOUND

problem: cvc-enumeration-valid: string value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>
at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:1511)
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1247)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:346)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
Truncated. see log file for complete stacktrace

Caused By: weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-enumeration-valid: string value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>
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)
Truncated. see log file for complete stacktrace
"

Blocking issue at deployment moment when deploying an application WAR using Spring 3.0 to Liferay 5.2.3 running on Weblogic 10 server.

Liferay is running using 'liferay-with-dependencies.war'. Once deployed, we want to load the .war file that holds our portlets. At load, the liferay stops working (see exception above).

The problem is that the libraries in the war file are not loaded since it uses Spring 3.0.1 and Liferay does uses Spring 2.x.

Solutions already tried but failed were

tried & failed:
* replace spring libraries in the liferay war (spring 2.5 -> spring 3)
* add spring libraries in the liferay war (spring 2.5 + spring 3)
* because the error is 'validation error: 3.0' we tried changing the 3.0 value in the web.xml file to 2.0 & 2.5


Can-you help us indicating if you have a solution on weblogic to solve this.

Thank-you
thumbnail
12年前 に Vu Dinh Tu によって更新されました。

RE: Conflict with Liferay using Spring 3.0 on WebLogic 10.3.0

New Member 投稿: 7 参加年月日: 11/12/26 最新の投稿
I'm gotting the same probelm. Is there any idea to resolve it?