在WAS7.0中部署Birt报表会出现error.CannotStartupOSGIPlatform错误,通常需要这样修改
1.依次打开Applications->WebSphere enterprise applications->点击需要部署报表的应用->
点击Modules下的Manage Modules->点击表格中Module列下面的属性->Class loader order 改为“父节点最后”,如下图:
2.如果出现
java.lang.ClassCastException: org.apache.xerces.jaxp.validation.XMLSchemaFactory incompatible with javax.xml.validation.SchemaFactory错误,
则需要移除应用lib下面的类似**xerces**.jar的包(如xerces-2.9.0.jar、org.apache.xerces_2.9.0.v201101211617.jar等)
3.WAS如果在installedApps修改web.xml,需要以下命令才能更新web.xml
进入**/profiles/AppSvr01/bin(或者类似的目录)进行如下操作(注意命令中的xxx替换为实际路径):
wsadmin -connType SOAP -port 8880 -user xxx -password xxx
$AdminApp update tmi_web_war file {-operation update -contents D:\IBM_WebSphere\profiles\AppSrv01\installedApps\A-PCNode01Cell\xxx_war.ear\xxx.war\WEB-INF\web.xml -contenturi xxx.war/WEB-INF/web.xml}
$AdminConfig save
exit