java项目部署到weblogic问题总结_weblogic部署项目
java项目部署到weblogic问题总结由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“weblogic部署项目”。
Two days to deploy h(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 claloader 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 ClaNotFoundException org.hibernate.FlushMode
weblogic cla loading order iues, 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
SeionFactory not find this bean, with the first configuration is certainly good, but I could not find, gue 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
clapath *: / applicationContext *.xml
However, you must write in weblogic
contextConfigLocation
clapath: / applicationContext.xml
clapath: / applicationContext-wecurity.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 fromhttp://aaa5131421.javaeye.com/said 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 iue 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:
As the weblogic security iues, the following error may occur...invalid subject..principles [weblogic, Administrators], so the configuration according to the following wording:
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory java.naming.provider.url = t3: / / yourhost: yourport java.naming.security.principal = yourprincipal java.naming.security.credentials = yourcredentials
Also need to set in setDomainEnv.sh WLS_JDBC_REMOTE_ENABLED = “-Dweblogic.jdbc.remoteEnabled = true”, the default value is false
cxf deployed to weblogic, I spent the most time to solve the problem, and some very strange errors.Although the solution did not thoroughly understand why it happened.Mentioned earlier version, because I am a little wrong when deployed in weblogic10.3.0 no, 10.3.2 and 10.3.3 to deploy to a bunch of errors.cxf official also said how to deploy to weblogic described, but unfortunately it only validates weblogic9.2, at least I am according to its configuration, there is no little effect.1, java.lang.LinkageError: loader constraints violated when linking javax / xml / namespace / QName cla Search
I find item that contains the QName cla jar, jaxrpc.jar, to which the QName cla delete(do not seem very good)2,org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid cla loader hierarchy.You have more than one version of 'org.apache.commons.logging.Log 'visible, which is not allowed.This error is very amazing, I do it more than a day, I always thought the use of commons-logging version and not the same as used in weblogic, it appears this error, then search the weblogic directory of all the versions of commons-logging are changed to try one in my project, not all, searched the streets of the foreign forum is not a result, then carefully review the exception stack, which actually contains a spring.orm information thrown, I deployed cxf just a very simple project, does not contain any orm framework, the configuration is checked again, not with too orm things, why an exception will be thrown this
iue
for
a
long
time
to
solve inspiredhttp://www.daodoc.component annotation @ Autowired and to automatically inject the cause, but still do not understand, I am only into a plain JavaBean, Why @ Autowired and @ Component, anomalies appear in the orm , and then I throw spring-orm-2.5.6.jar lib, once deployed, the commons-logging of the error disappeared.Really amazing error.(Dripping)
3, java.lang.NoSuchMethodException: oracle.J2ee.Ws.Wsdl.Extensions.Soap.SOAPBindingImpl.GetElementType()
This error can also search for a long time, did not find a direct solution, and finally their own way to solve, cxf to use the wsdl4j.jar, then I installed the weblogic webcenter in middleware, the following will be more then a oracle_common MW_HOME directory, a subdirectory under this directory will be inside a jar called orawsdl.jar have described above that oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl cla, the solution is to edit startWeblogic.sh file, the wsdl4j.jar added to the CLASSPATH of weblogic in front of their own, will not appear on this error.After doing a weblogic cluster, seion replication problem
The Internet has a lot of description, but it seems that for most of the old version of weblogic, popular online writing:
In weblogic.xml, add the following configuration:
PersistentStoreType
replicated
weblogic11g following was written:
replicated true
This should be related with the different versions of the DTD
Any need for sustained attention to the contents of the seion must all implement the java.io.Serializable interface, or can not be copied.Different resources in the weblogic remote query and security iues
The problem is to solve, but can also cause other problems in my project, I have three weblogic, a a deployed oracle bpm10g,The other two clusters b and c make the deployment of oracle webcenter11g, b contains the cluster management server, webcenter bpm project needs the remote to find the topic, if not ADF Security, then no error, but with the words of ADF Security , there will be...invalid subject..principles [xxxxx, xxxxx] wrong, now I am currently in weblogic by enabling global trust in this feature, a temporary solution to the problem of long-range search,But the emergence of new problems, the problem is very strange, after enabling global trust, b the management server does not know when it will read a, domain information, once this occurs, if I want to change the configuration of domain b, must restart b, the management server, log in again before they can.I do not understand this iue, and does not know when it will happen, and sometimes read is correct, sometimes incorrect.There is no solution.