色胃康胶囊 发表于 2017-2-16 06:18:19

Hibernate3.X使用weblogic布署相关问题解决

  前几天一直困扰我一个问题,项目从tomcat上移植到weblogic上怎么也布署不了.在tomcat、glassfish上运行都没有问题的,因为在tomcat和glassfish下面线程丢失严重、内存溢出,两天会死一次服务,所以想到用weblogic部署.今天下载了weblogic12c终于解决了hibernate3.x在weblogic上布署的问题,但需要在项目下加入weblogic对应版本的配置文件.就解决的方法步骤分享给大家.
  1.下载weblogic12c.
  2.项目WEB_INF中新建weblogic.xml

<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
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.4/weblogic-web-app.xsd">
<wls:weblogic-version>12.1.1.0</wls:weblogic-version>
<wls:context-root>dltaxoa</wls:context-root>
<wls:charset-params>
<wls:input-charset>
<wls:resource-path>/*</wls:resource-path>
<wls:java-charset-name>UTF-8</wls:java-charset-name>
</wls:input-charset>
</wls:charset-params>
<wls:container-descriptor>
<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>
<wls:jsp-descriptor>
<wls:keepgenerated>true</wls:keepgenerated>
<wls:precompile>true</wls:precompile>
<wls:print-nulls>false</wls:print-nulls>
</wls:jsp-descriptor>
</wls:weblogic-web-app>

   参考资料:weblogic.xml 部署描述符元素http://edocs.weblogicfans.net/wls/docs92/webapp/weblogic_xml.html#wp1062822
页: [1]
查看完整版本: Hibernate3.X使用weblogic布署相关问题解决