WAS 6 部署WAR包报错

小沈QQ 发布于 2012/07/05 12:21
阅读 2K+
收藏 0

阿里云2020上云采购季,爆款产品,低至0.6折,点击抢购!>>>

我的WAR包里有struts1,spring2.0的包,在JDK1.4 TOMCAT5下运行正常。但在WAS下直接报找不到struts1的ActionServlet!请大侠帮帮看看。这是什么问题。我第一次用WAS!

 

Error 404: SRVE0203E: Servlet [action]:找到 org.apache.struts.action.ActionServlet,但缺少另一个必需类。 SRVE0206E: 此错误通常意味着 servlet 最初是用服务器无法找到的类来编译的。 SRVE0187E: 检查您的类路径,以确保 servlet 需要的所有类都存在。SRVE0210I: 通过仅使用应用程序的运行时类路径中的类重新编译 servlet,可以调试此问题 SRVE0234I: 应用程序类路径=[C:\IBM\WebSphere\AppServer\java\lib;C:\IBM\WebSphere\AppServer\java\lib\dt.jar;C:\IBM\WebSphere\AppServer\java\lib\htmlconverter.jar;C:\IBM\WebSphere\AppServer\java\lib\tools.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\classes;C:\IBM\WebSphere\AppServer\lib;C:\IBM\WebSphere\AppServer\lib\AMJACCProvider.jar;C:\IBM\WebSphere\AppServer\lib\DDParser5.jar;C:\IBM\WebSphere\AppServer\lib\EJBCommandTarget.jar;C:\IBM\WebSphere\AppServer\lib\IVTClient.jar;C:\IBM\WebSphere\AppServer\lib\PDWASAuthzManager.jar;C:\IBM\WebSphere\AppServer\lib\UDDICloudscapeCreate.jar;C:\IBM\WebSphere\AppServer\lib\UDDIValueSetTools.jar;C:\IBM\WebSphere\AppServer\lib\WebSealTAIwas6.jar;C:\IBM\WebSphere\AppServer\lib\activation-impl.jar;C:\IBM\WebSphere\AppServer\lib\activity.jar;C:\IBM\WebSphere\AppServer\lib\activityImpl.jar;C:\IBM\WebSphere\AppServer\lib\activitySession.jar;C:\IBM\WebSphere\AppServer\lib\activitySessionPrivate.jar;C:\IBM\WebSphere\AppServer\lib\activitySvrImpl.jar;C:\IBM\WebSphere\AppServer\lib\acwa.jar;C:\IBM\WebSphere\AppServer\lib\admin.jar;C:\IBM\WebSphere\AppServer\lib\adminJms.jar;C:\IBM\WebSphere\AppServer\lib\adminPorts.jar;C:\IBM\WebSphere\AppServer\lib\als.jar;C:\IBM\WebSphere\AppServer\lib\analysisEngine.jar;C:\IBM\WebSphere\AppServer\lib\ant.jar;C:\IBM\WebSphere\AppServer\lib\appprofile-impl.jar;C:\IBM\WebSphere\AppServer\lib\appprofile.jar;C:\IBM\WebSphere\AppServer\lib\aspectjrt.jar;C:\IBM\WebSphere\AppServer\lib\asynchbeans.jar;C:\IBM\WebSphere\AppServer\lib\asynchbeansImpl.jar;C:\IBM\WebSphere\AppServer\lib\base.jar;C:\IBM\WebSphere\AppServer\lib\bootstrap.jar;C:\IBM\WebSphere\AppServer\lib\bsf.jar;C:\IBM\WebSphere\AppServer\lib\ccf.jar;C:\IBM\WebSphere\AppServer\lib\ccf2.jar;C:\IBM\WebSphere\AppServer\lib\channelfw.jar;C:\IBM\WebSphere\AppServer\lib\chart.jar;C:\IBM\WebSphere\AppServer\lib\classloader.jar;C:\IBM\WebSphere\AppServer\lib\client.jar;C:\IBM\WebSphere\AppServer\lib\cluster.jar;C:\IBM\WebSphere\AppServer\lib\clusteradapter.jar;C:\IBM\WebSphere\AppServer\lib\clusterctrl.jar;C:\IBM\WebSphere\AppServer\lib\clusterprop.jar;C:\IBM\WebSphere\AppServer\lib\clusterrouter.jar;C:\IBM\WebSphere\AppServer\lib\clustertopo.jar;C:\IBM\WebSphere\AppServer\lib\cm.jar;C:\IBM\WebSphere\AppServer\lib\cmImpl.jar;C:\IBM\WebSphere\AppServer\lib\cmInt.jar;C:\IBM\WebSphere\AppServer\lib\collector.jar;C:\IBM\WebSphere\AppServer\lib\com.ibm.mq.pcf.jar;C:\IBM\WebSphere\AppServer\lib\commonj-twm.jar;C:\IBM\WebSphere\AppServer\lib\commons-discovery.jar;C:\IBM\WebSphere\AppServer\lib\commons-el.jar;C:\IBM\WebSphere\AppServer\lib\commons-logging-api.jar;C:\IBM\WebSphere\AppServer\lib\configmanager.jar;C:\IBM\WebSphere\AppServer\lib\coregroup.bridge.admin.jar;C:\IBM\WebSphere\AppServer\lib\coregroupbridge.jar;C:\IBM\WebSphere\AppServer\lib\cscope.jar;C:\IBM\WebSphere\AppServer\lib\cscopeImpl.jar;C:\IBM\WebSphere\AppServer\lib\databeans.jar;C:\IBM\WebSphere\AppServer\lib\db2Interfaces.jar;C:\IBM\WebSphere\AppServer\lib\dcs.jar;C:\IBM\WebSphere\AppServer\lib\debug.jar;C:\IBM\WebSphere\AppServer\lib\deployutils.jar;C:\IBM\WebSphere\AppServer\lib\distexcep.jar;C:\IBM\WebSphere\AppServer\lib\drs.jar;C:\IBM\WebSphere\AppServer\lib\dwlmclient.jar;C:\IBM\WebSphere\AppServer\lib\dynacache.jar;C:\IBM\WebSphere\AppServer\lib\eablib.jar;C:\IBM\WebSphere\AppServer\lib\ecutils.jar;C:\IBM\WebSphere\AppServer\lib\ejbcontainer.jar;C:\IBM\WebSphere\AppServer\lib\ejbcontainerImpl.jar;C:\IBM\WebSphere\AppServer\lib\ejbportable.jar;C:\IBM\WebSphere\AppServer\lib\emf.jar;C:\IBM\WebSphere\AppServer\lib\epm.jar;C:\IBM\WebSphere\AppServer\lib\esi.jar;C:\IBM\WebSphere\AppServer\lib\extensions.jar;C:\IBM\WebSphere\AppServer\lib\exthelper.jar;C:\IBM\WebSphere\AppServer\lib\exthelperimpl.jar;C:\IBM\WebSphere\AppServer\lib\featurereg.jar;C:\IBM\WebSphere\AppServer\lib\ffdc.jar;C:\IBM\WebSphere\AppServer\lib\ffdcSupport.jar;C:\IBM\WebSphere\AppServer\lib\filetransfer.jar;C:\IBM\WebSphere\AppServer\lib\hamanager.jar;C:\IBM\WebSphere\AppServer\lib\hamanageradmin.jar;C:\IBM\WebSphere\AppServer\lib\hamanagerimpl.jar;C:\IBM\WebSphere\AppServer\lib\handlerfw.jar;C:\IBM\WebSphere\AppServer\lib\handlerfwimpl.jar;C:\IBM\WebSphere\AppServer\lib\handlerfwservice.jar;C:\IBM\WebSphere\AppServer\lib\htmlshell.jar;C:\IBM\WebSphere\AppServer\lib\httplogging.jar;C:\IBM\WebSphere\AppServer\lib\httpsession.jar;C:\IBM\WebSphere\AppServer\lib\httpsessiondb.jar;C:\IBM\WebSphere\AppServer\lib\httpsessionmtm.jar;C:\IBM\WebSphere\AppServer\lib\i18nctx.jar;C:\IBM\WebSphere\AppServer\lib\icu4j_3_2.jar;C:\IBM\WebSphere\AppServer\lib\idl.jar;C:\IBM\WebSphere\AppServer\lib\installver.jar;C:\IBM\WebSphere\AppServer\lib\iscdeploy.jar;C:\IBM\WebSphere\AppServer\lib\ivblogbr.jar;C:\IBM\WebSphere\AppServer\lib\ivjbase.jar;C:\IBM\WebSphere\AppServer\lib\ivjejb35.jar;C:\IBM\WebSphere\AppServer\lib\iwsorb.jar;C:\IBM\WebSphere\AppServer\lib\j2c.jar;C:\IBM\WebSphere\AppServer\lib\j2cImpl.jar;C:\IBM\WebSphere\AppServer\lib\j2cIntf.jar;C:\IBM\WebSphere\AppServer\lib\j2ee.jar;C:\IBM\WebSphere\AppServer\lib\jaaslogin.jar;C:\IBM\WebSphere\AppServer\lib\jacl.jar;C:\IBM\WebSphere\AppServer\lib\jaxruddi.jar;C:\IBM\WebSphere\AppServer\lib\jdbcmediator.jar;C:\IBM\WebSphere\AppServer\lib\jdom.jar;C:\IBM\WebSphere\AppServer\lib\jrom.jar;C:\IBM\WebSphere\AppServer\lib\js.jar;C:\IBM\WebSphere\AppServer\lib\jsf-api.jar;C:\IBM\WebSphere\AppServer\lib\jspcore.jar;C:\IBM\WebSphere\AppServer\lib\jspruntime.jar;C:\IBM\WebSphere\AppServer\lib\jsptranslation.jar;C:\IBM\WebSphere\AppServer\lib\jspvisitor.jar;C:\IBM\WebSphere\AppServer\lib\jstl.jar;C:\IBM\WebSphere\AppServer\lib\jtaPrivate.jar;C:\IBM\WebSphere\AppServer\lib\jtsPrivate.jar;C:\IBM\WebSphere\AppServer\lib\lhttpchannel.jar;C:\IBM\WebSphere\AppServer\lib\lhttpchannelimpl.jar;C:\IBM\WebSphere\AppServer\lib\lmproxy.jar;C:\IBM\WebSphere\AppServer\lib\logbrjface.jar;C:\IBM\WebSphere\AppServer\lib\logutil.jar;C:\IBM\WebSphere\AppServer\lib\ltext.jar;C:\IBM\WebSphere\AppServer\lib\mail-impl.jar;C:\IBM\WebSphere\AppServer\lib\management.jar;C:\IBM\WebSphere\AppServer\lib\marshall.jar;C:\IBM\WebSphere\AppServer\lib\mejb.jar;C:\IBM\WebSphere\AppServer\lib\messaging.jar;C:\IBM\WebSphere\AppServer\lib\messagingClient.jar;C:\IBM\WebSphere\AppServer\lib\messagingImpl.jar;C:\IBM\WebSphere\AppServer\lib\migrate.jar;C:\IBM\WebSphere\AppServer\lib\naming.jar;C:\IBM\WebSphere\AppServer\lib\namingclient.jar;C:\IBM\WebSphere\AppServer\lib\namingserver.jar;C:\IBM\WebSphere\AppServer\lib\nls.jar;C:\IBM\WebSphere\AppServer\lib\nlsres.jar;C:\IBM\WebSphere\AppServer\lib\notifications.jar;C:\IBM\WebSphere\AppServer\lib\objectpool.jar;C:\IBM\WebSphere\AppServer\lib\objectpoolimpl.jar;C:\IBM\WebSphere\AppServer\lib\odc.jar;C:\IBM\WebSphere\AppServer\lib\optional.jar;C:\IBM\WebSphere\AppServer\lib\pagelist.jar;C:\IBM\WebSphere\AppServer\lib\perftuning.jar;C:\IBM\WebSphere\AppServer\lib\physicalrep.jar;C:\IBM\WebSphere\AppServer\lib\pluginconfig.jar;C:\IBM\WebSphere\AppServer\lib\pm.jar;C:\IBM\WebSphere\AppServer\lib\pmi.jar;C:\IBM\WebSphere\AppServer\lib\pmiclient.jar;C:\IBM\WebSphere\AppServer\lib\pmij2ee.jar;C:\IBM\WebSphere\AppServer\lib\pmimpl.jar;C:\IBM\WebSphere\AppServer\lib\pmirm-sib.jar;C:\IBM\WebSphere\AppServer\lib\pmirm.jar;C:\IBM\WebSphere\AppServer\lib\processintf.jar;C:\IBM\WebSphere\AppServer\lib\processmgmt.jar;C:\IBM\WebSphere\AppServer\lib\proxy.admin.jar;C:\IBM\WebSphere\AppServer\lib\proxy.jar;C:\IBM\WebSphere\AppServer\lib\proxyimpl.jar;C:\IBM\WebSphere\AppServer\lib\proxyserver.jar;C:\IBM\WebSphere\AppServer\lib\proxyucf.jar;C:\IBM\WebSphere\AppServer\lib\qryclient.jar;C:\IBM\WebSphere\AppServer\lib\query.jar;C:\IBM\WebSphere\AppServer\lib\querymd.jar;C:\IBM\WebSphere\AppServer\lib\queryws.jar;C:\IBM\WebSphere\AppServer\lib\ras.jar;C:\IBM\WebSphere\AppServer\lib\rbpf.jar;C:\IBM\WebSphere\AppServer\lib\recjava.jar;C:\IBM\WebSphere\AppServer\lib\reclog.jar;C:\IBM\WebSphere\AppServer\lib\reclogImpl.jar;C:\IBM\WebSphere\AppServer\lib\rmm-pgm.jar;C:\IBM\WebSphere\AppServer\lib\rsadaptercci.jar;C:\IBM\WebSphere\AppServer\lib\rsadapterspi.jar;C:\IBM\WebSphere\AppServer\lib\rsaexternal

加载中
0
红薯
红薯
估计缺少了 struts 需要的某个 jar 包, 这个包可能在 tomcat 中是自带的,因此在 tomcat 中没问题,这需要你认真检查下了
0
情天大圣
情天大圣

给项目或者WAS加入tomcat目录lib下的这2个jar包试下:

  1. jsp-api.jar
  2. servlet-api.jar

红薯
红薯
不可能是这两个啊,这两个 was 里也有
0
小沈QQ
小沈QQ

大侠么看看我的WAR包中的JAR

情天大圣
情天大圣
从你的异常信息来看,你的类路径中都没有这些包,jar有,但不一定编译就能找到,仔细查看你WAS的项目配置吧!
0
小沈QQ
小沈QQ
j2c.jar;C:\IBM\WebSphere\AppServer\lib\wsif.jar;C:\IBM\WebSphere\AppServer\lib\wsprofile.jar;C:\IBM\WebSphere\AppServer\lib\wssec.jar;C:\IBM\WebSphere\AppServer\lib\wssoap.jar;C:\IBM\WebSphere\AppServer\lib\wstp.jar;C:\IBM\WebSphere\AppServer\lib\xdi.jar;C:\IBM\WebSphere\AppServer\lib\xmlsecurity.jar;C:\IBM\WebSphere\AppServer\installedChannels;C:\IBM\WebSphere\AppServer\installedChannels\channel.hamanager.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.http.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.httptunnel.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.jfap.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.mqfap.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.proxy.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.soap.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.ssl.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.tcp.jar;C:\IBM\WebSphere\AppServer\installedChannels\channel.webcontainer.jar;C:\IBM\WebSphere\AppServer\web\help;C:\IBM\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime;C:\IBM\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime\batch.jar;C:\IBM\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime\ejbdeploy.jar;C:\IBM\WebSphere\AppServer\deploytool\itp\plugins\com.ibm.etools.ejbdeploy\runtime\ejbmapvalidate.jar;C:\IBM\WebSphere\AppServer\lib\WMQ\java\lib;C:\IBM\WebSphere\AppServer\lib\WMQ\java\lib\com.ibm.mq.jar;C:\IBM\WebSphere\AppServer\lib\WMQ\java\lib\com.ibm.mqjms.jar;C:\IBM\WebSphere\AppServer\lib\rsadapter.rar;C:\IBM\WebSphere\AppServer\cloudscape\lib\db2j.jar;C:\IBM\WebSphere\AppServer\installedConnectors\sib.api.jmsra.rar;C:\IBM\WebSphere\AppServer/profiles/AppSrv01/properties;C:\IBM\WebSphere\AppServer/properties;C:\IBM\WebSphere\AppServer/lib/bootstrap.jar;C:\IBM\WebSphere\AppServer/lib/j2ee.jar;C:\IBM\WebSphere\AppServer/lib/lmproxy.jar;C:\IBM\WebSphere\AppServer/lib/urlprotocols.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\classes;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\bcprov-jdk14-147.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\classes12.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\commons-beanutils.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\commons-digester.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\commons-fileupload.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\commons-logging-1.1.1.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\commons-validator.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\dom4j-1.6.1.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\ibatis-2.3.0.677.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\jakarta-oro.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\log4j-1.2.15.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\proxool-0.9.0RC2.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\rsaverify.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\servlet-api.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\spring.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war\WEB-INF\lib\struts.jar;C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\DZQD-WINDOWS02Node01Cell\zhengqi2_war.ear\zhengqi2.war]
0
小沈QQ
小沈QQ

这些包应该都有了

0
小沈QQ
小沈QQ
不知道还缺什么包,很郁闷
0
ajavaloser
ajavaloser
servlet-api和WAS的重了?或者在源码里使用was的这个jar来编译然后打包时去掉
ajavaloser
ajavaloser
我记得was可以设定load的优先级的,一般要设成load自己的jar包优先
0
小沈QQ
小沈QQ
怎么设,有没有捷图或者在线学习地址
0
小沈QQ
小沈QQ

我试了下把WAS下的另一下项目所有的包都拿到我这来就行了,所以应该是少包

0
小沈QQ
小沈QQ

很奇怪,哪为什么TOMCAT可以运行

返回顶部
顶部