weblogic10.3加载status2报错 unable to attain an URLClassLoader
来源:互联网 发布:马斯克人工智能 编辑:程序博客网 时间:2024/05/18 00:55
tomcat应用容器换weblogic应用容器遇到的坑:
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)
... 42 more
Caused by: unable to attain an URLClassLoader - [unknown location]
at com.opensymphony.xwork2.util.ClassPathFinder.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)
原因是struts.xml配置文件include里面的通配符*
有多少个文件就include多少个文件,不要采用通配符。
因为我跟踪了一下代码,发现报这个错误在于xwork的ClassPathFinder.findMatches方法里取得当前classloader的方式是ClassLoader loader = Thread.currentThread().getContextClassLoader();
在tomcat环境下取到的是URLClassloader的实例,而在weblogic下面却是weblogic.utils.classloaders.ChangeAwareClassLoader ,weblogic有自己的classLoader机制,因此导致了错误。
我觉得解决此类问题除非weblogic自身去解决,比如继承URLClassLoader等。
如果你自己尝试解决,即使解决了,可能也会出现这样那样的问题。因此,还是按照最普通的方式,老老实实的将所有的文件都一个一个include进来吧。
- weblogic10.3加载status2报错 unable to attain an URLClassLoader
- oracle 启动报错 unable to create an instance o
- Ubuntu加载本地磁盘报错:Unable to access ""
- Ubuntu加载移动硬盘报错: Unable to access “磁盘名”
- myeclipse报错:Unable to create this part due to an internal error.
- hibernate3 部署weblogic10.3报错
- android报错——Unable to add window -- token null is not for an application
- WEBLOGIC10.3.6启动报错
- SQL Developer 4.0 启动报错“unable to create an instance of the java virtual machine located at path”
- Dialog(四)——报错Unable to add window -- token null is not for an application
- weblogic10.3 org.hibernate.hql.ast.HqlToken报错问题
- 报错Unable to resolve target android
- unable to rename 报错解决[转]
- 【报错】Unable to load configuration
- 【报错】 Unable to open debugger port
- AS报错Unable to merge dex
- 7 Tips to Attain Peace of Mind
- Genymotion报错:unable to connect to the virtual device
- Activity 不调用 onstop
- iOS stringWithFormat 和 initWithFormat 有何不同?
- Java IO:操作系统的IO处理过程以及5种网络IO模型
- centos6.5下yum安装mysql(包含密码修改的正确路径)
- TCP协议与UDP协议的区别
- weblogic10.3加载status2报错 unable to attain an URLClassLoader
- 关于Android Studio修改包名的问题
- SPOJ MBEEWALK Bee Walk(记忆化搜索+直角坐标系转化为斜坐标系)
- ABAP中内表的几个常用的清空内表语句,及它们之间的区别
- std:ios::sync_with_stdio(false);
- 数字签名API使用
- 1.0Java缓存-Ehcache配置详解及CacheManager使用
- mysql source 命令导入大的sql文件的方法
- 分享扫描文字识别软件的操作方法