当尝试在Weblogic服务器12C上运行带有axis2扩展名的已部署war文件时,我遇到了错误,其中warfile在Tomcat 7上可以正常工作
这是用于从tomcat Apache服务器迁移到群集Web逻辑服务器
import com.syriatel.request.CheckGsmRequest;
import com.syriatel.request.AddPrizeRequest;
import com.syriatel.response.CheckGsmResponse;
import com.syriatel.response.AddPrizeResponse;
import com.syriatel.response.ChargingResponse;
import com.syriatel.request.ChargingRequest;
public class GoalEpediaModule extends CommandsGateway {
public GoalEpediaModule() {
super();
}
public CheckGsmResponse checkGSM(CheckGsmRequest request) {
return super.checkGSM(request);
}
public AddPrizeResponse addPrize(AddPrizeRequest request) {
return super.addPrize(request);
}
public ChargingResponse charging(ChargingRequest request) {
return super.charging(request);
}
}
public class AddPrizeRequest extends Request {
private String gsm;
private int prizeId;
public AddPrizeRequest() {
}
public AddPrizeRequest(String username,
String password, String gsm, int prizeId
) {
super(username, password);
setGsm(gsm);
setPrizeId(prizeId);
}
public int getPrizeId() {
return prizeId;
}
public void setPrizeId(int prizeId) {
this.prizeId = prizeId;
}
public void setGsm(String gsm) {
this.gsm = gsm;
}
public String getGsm() {
return gsm;
}
}
public class AddPrizeResponse extends Response {
public AddPrizeResponse() {
}
public AddPrizeResponse(String errorCode,String errorDesc) {
super(errorCode,errorDesc);
}
}
当我在Tomcat上部署war文件时,它可以正常工作,但是在Web逻辑12c上,不是第一个问题是无法访问用AdminServlet拒绝的Mbean访问,然后以admin身份登录后,它已解决,但新错误是: java.lang.NoSuchMethodError:org.apache.neethi.Constants.isPolicyElement(Ljavax / xml / namespace / QName;)
即使我使用的是neethi jar文件3.0.3的最新版本