日期:2014-05-20  浏览次数:20719 次

前台jsp调用EJB client报错。求指点。。。

quotationaction.jsp访问client代码如下:
try{
if (!client.getInitialized()) {
msg="QuotationClient.getInitialized 错误";
}else{
if(flag.equals("0")){//新增保存
System.out.println("新增保存开始。。。");
stmsg=client.initialSave(request,parammap);//去掉这一句加载jsp不会有问题。
msg = "生产报价单号:"+stmsg;
urlNav="/quotation/QuotationDirectView?PMODE=0";
}
}
}catch(Exception ex){
msg = "错误信息:" + ex.getMessage().toString();
}finally{
client.removeObj();
}
报错信息如下:(使用的是weblogic容器)

<[ServletContext(id=10730286,name=cibs.war,context-path=)] Root cause of ServletException.
weblogic.servlet.jsp.CompilationException: Compilation of D:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_cibs_cibs.war\jsp_servlet\_quotation\__quotationaction.java failed.
D:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_cibs_cibs.war\jsp_servlet\_quotation\__quotationaction.java:269: cannot resolve symbolsymbol : method initialSave (javax.servlet.http.HttpServletRequest,java.util.HashMap)
location: class ies3.quotation.QuotationClient
  stmsg=client.initialSave(request,parammap); //[ /quotation/quotationaction.jsp; Line: 52]

------解决方案--------------------
没有打印 应该是servlet出错了
所以可能是servlet里这个方法
 initialSave(request,parammap)出错了