weblogic10.3 Load STATUS2 Error Unable to attain a urlclassloader-[unknown Location]__web

Source: Internet
Author: User

Tomcat application container for WebLogic The pit encountered by the application container:

Caused by:error loading configuration file Struts.xml-[unknown location]
at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (Xmlconfigurationprovider.java : 147)
at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init ( xmlconfigurationprovider.java:110)
at Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (defaultconfiguration.java:168)
at Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:55)
... More
caused By:unable to attain a urlclassloader-[unknown location]
at Com.opensymphony.xwork2.util.ClassPat Hfinder.findmatches (classpathfinder.java:80)
at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles ( xmlconfigurationprovider.java:940)
at Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (Xmlconfigurationprovider.java : 143)

The reason is Struts.xml configuration file include wildcard characters *
How many files are there to include, and do not use wildcard characters.
Because I tracked the code, I found that the error in the Xwork Classpathfinder.findmatches method to obtain the current ClassLoader way is classloader loader = Thread.CurrentThread (). Getcontextclassloader ();
A URLClassLoader instance is taken in the tomcat environment, and underneath the WebLogic is Weblogic.utils.classloaders.ChangeAwareClassLoader, WebLogic has its own classloader mechanism, which leads to errors.

I think to solve such problems unless weblogic themselves to solve, such as inheriting URLClassLoader and so on.
If you try to solve it yourself, even if you solve it, there may be problems like that. Therefore, in the most common way, honestly put all of the files are one of the include in the bar.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.