1,EAR ファイルが破壊されているか、不完全の可能性があります。
AppDeploymentException: [null] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: IWAE0022E Exception occurred loading deployment descriptor for module "jsa.war" in EAR file
I am trying to deploy my application on WebSphere6.1. But while deploying .war file, WebSphere is throwing exception 。
By looking into log file, I concluded that the problem is in web.xml file
log file site : E:/WebSphere/AppServer/profiles/AppSrv01/logs/server1
Header of web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
alert web.xml file.
Because web.xml file include <jsp-config> tag that can't be identifid in "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" . <jsp-config> tag in web-app_2_2.dtd .
So we must delete <jsp-config> tag . OKです。
2,在java代码中访问不到 websphere 的数据源
由于web.xml的版本和websphere 的数据源的版本不兼容会出现这样的问题。
我们用的是websphere6.0,
解决办法把web-app_2_2.dtd 版本改为web-app_2_4.dtd版本。