jpa - Issue with weblogic.xml in weblogic 10.3.2 while deploying war file (struts2 and hibernate 4.1) -


i made web application using struts2 , hibernate , created war of it.

it working fine in tomcat there issue weblogic since load jpa 1.0 created weblogic.xml given below

 <?xml version="1.0" encoding="utf-8"?> <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">      <container-descriptor>         <prefer-web-inf-classes>false</prefer-web-inf-classes>         <prefer-application-packages>             <package-name>antlr.*</package-name>             <package-name>javax.persistence.*</package-name>         </prefer-application-packages>     </container-descriptor>  </weblogic-web-app> 

this solved issue , working fine weblogic 10.3.3 when deployed same war above weblogic.xml in weblogic 10.3.2 giving below error

validation problems found problem: cvc-complex-type.2.4a: expected elements 'default-mime-type@http://xmlns.oracle.com/weblogic/weblogic-web-app client-cert-proxy-enabled@http://xmlns.oracle.com/weblogic/weblogic-web-app relogin-enabled@http://xmlns.oracle.com/weblogic/weblogic-web-app allow-all-roles@http://xmlns.oracle.com/weblogic/weblogic-web-app native-io-enabled@http://xmlns.oracle.com/weblogic/weblogic-web-app minimum-native-file-size@http://xmlns.oracle.com/weblogic/weblogic-web-app disable-implicit-servlet-mappings@http://xmlns.oracle.com/weblogic/weblogic-web-app temp-dir@http://xmlns.oracle.com/weblogic/weblogic-web-app optimistic-serialization@http://xmlns.oracle.com/weblogic/weblogic-web-app retain-original-url@http://xmlns.oracle.com/weblogic/weblogic-web-app show-archived-real-path-enabled@http://xmlns.oracle.com/weblogic/weblogic-web-app require-admin-traffic@http://xmlns.oracle.com/weblogic/weblogic-web-app access-logging-disabled@http://xmlns.oracle.com/weblogic/weblogic-web-app' instead of 'prefer-application-packages@http://xmlns.oracle.com/weblogic/weblogic-web-app' here in element container-descriptor@http://xmlns.oracle.com/weblogic/weblogic-web-app:

i found <prefer-application-packages> used in weblogic.xml not supported in 10.3.2

so changed weblogic.xml given below

<weblogic-web-app     xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd" >      <container-descriptor>         <prefer-web-inf-classes>true</prefer-web-inf-classes>     </container-descriptor>  </weblogic-web-app> 

but above weblogic.xml not loading hibernate jpa2.0

can provide me exact configuration running hibernate in weblogic 10.3.2

i want done using weblogic.xml , not other mean changing startup script or including jars in weblogic module folder

weblogic 10.3.4 first version supports jpa2.0. weblogic 10.3.0 , 10.3.2 mention don't support jpa2.0. need upgrade weblogic version if need jpa2, or otherwise use jpa1.0.

some versions of weblogic require weblogic-application.xml , weblogic.xml uses xml tags wls:tag use <wls:container-root> , <wls:container-description> may validation error coming from.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -