针对JBOSS无法转换类型的错误
2009-01-16 20:36
155 查看
更改配置:
D:\DevelopTool\jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\META-INF下的
jboss-service.xml下找到
将其改为true。就是对于web应用的类库也用jboss来加载,而不是有tomcat来加载。
D:\DevelopTool\jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\META-INF下的
jboss-service.xml下找到
<attribute name="UseJBossWebLoader">false</attribute> <!-- The list of package prefixes that should not be loaded without delegating to the parent class loader before trying the web app class loader. The packages listed here are those tha are used by the web container implementation and cannot be overriden. The format is a comma separated list of the package names. There cannot be any whitespace between the package prefixes. This setting only applies when UseJBossWebLoader=false. -->
将其改为true。就是对于web应用的类库也用jboss来加载,而不是有tomcat来加载。
相关文章推荐
- 针对JBOSS无法转换类型的错误
- 错误:无法将类型为“System.DBNull”的对象强制转换为类型“System.Byte[]”。
- 错误1无法将类型“void”隐式转换为“object”
- 保存图片控件上的图片到本地 出现错误:无法将类型为“System.Windows.Media.Imaging.BitmapFrameDecode”的对象强制转换为类型“System.Windows.Media.Imaging.BitmapImage”。
- 编译器错误信息: CS0716: 无法转换为静态类型“System.Web.SiteMap”
- 错误处理--无法将类型为 master的对象强制转换为类型 master
- 编译器错误信息: CS0030: 无法将类型“ASP.webusercontrol_treeview_ascx”转换为“System.Web.UI.WebControls.TreeView”
- 多重嵌套点击事件Error:(81, 15) 错误: 不兼容的类型: RelativeLayout无法转换为LinearLayout
- 错误 2 无法将类型“int”隐式转换为“bool”
- 错误处理--无法将类型为 master的对象强制转换为类型 master
- 无法将类型为“Excel.ApplicationClass”的 COM 对象强制转换为接口类 型“Excel._Application”。此操作失败的原因是对 IID 为“{000208D5 -0000-0000-C000-000000000046}”的接口的 COM 组件调用 QueryInterface 因以下错误而失败: 加载类型库/DLL 时出错。 (异常来 自 HRESULT:
- 无法将类型“ASP.login_aspx”转换为“System.Web.UI.WebControls.Login” 错误处理
- Java 错误: “不兼容的类型: Object无法转换为int”
- 错误 1 error C2440:“类型转换”: 无法从“void (__thiscall GameLayer::* )(cocos2d::CCObject *)”转换为“cocos2d::SEL_C
- C#与excel互操作的错误无法将类型为“Excel.ApplicationClass”的COM 对象强制转换为接口类型“Excel._Application”
- 编译器错误信息: CS0030 无法将类型“ASP.login_aspx”转换为“System.Web.UI.WebControls.Login”
- java错误:无法将Object转换为int类型
- 无法将类型为“System.Security.Principal.GenericIdentity”的对象强制转换为类型“System.Web.Security.FormsIdentity”的错误
- 无法将类型“ASP.login_aspx”转换为“System.Web.UI.WebControls.Login” 错误处理