java项目部署到weblogic问题总结

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Two days to deploy ssh (struts2.1.8 + spring2.5 + hibernate3) + springside3.2 + cxf2.2 to weblogic, I did not expect to migrate to the weblogic is so difficult, but 90% of the whole problem is due to classloader problems in order caused even this painting for a long time to get it.

I would also like to say a few words here to use the weblogic version is 10.3.3, that version is because

some errors will appear in a specific version, but for a version of the solution may not be applicable to all versions.

∙After deployment, said ClassNotFoundException org.hibernate.FlushMode

weblogic class loading order issues, the pain, because I do not know in the end to put out what jar files to load at bootup, which do not. Being the first set in weblogic.xml

true

This means to let the weblogic first load the following web-inf lib below the jar

∙SessionFactory not find this bean, with the first configuration is certainly good, but I could not find, guess spring is not read the configuration file, google a bit, the original web.xml weblogic does not support wildcards in the wording such as:

Can be deployed to tomcat like this

contextConfigLocation

classpath *: / applicationContext *. xml

However, you must write in weblogic

contextConfigLocation classpath: / applicationContext.xml

classpath: / applicationContext-wssecurity.xml

∙struts2 + convention plugin always said no action found error, can not find the action, then the default rules coc directly into the jsp, the solution comes

from/blog/558463

This requires the following steps to resolve:

1, update to the latest version of struts2, I is 2.1.8

2, adding the project src directory META-INF folder, if you do not join directly in the war in the folder, for example: in the eclipse to join the project src folder, you need to make the folder containing the file, any file can, so that export war, when will export meta-inf folder, will be effective.

3, the configuration struts.xml add the following attributes:

∙Deployment error ng.ClassCastException:

weblogic.xml.jaxp.RegistrySAXTransformerFactory cannot be cast to

javax.xml.transform.TransformerFactory

There are several mistakes in this argument, the Post said a foreigner, it is necessary to remove a jar xml parsing

* XercesImpl-2.9.1.jar

* Xml-apis-1.3.04.jar

* XmlParserAPIs-2.0.2.jar

Also found a post /zhoushugen/blog/item/27e1caf71bbc0024730eecdc.htmlsaid to download the latest official apache xalan package replaces some of the following packages you lib.

I use the second method to solve.

∙dbcp error, this issue is rather silly, starting with a tomcat in the running, so the database connection pool used dbcp, weblogic changed after forgetting dubbed the jndi. The solution is simple, with spring's jndi datasource can find, such as:

相关文档
最新文档