润乾报表在weblogic部署问题
问题:
润乾报表在部署到weblogic服务器启动发现以下问题Caused by: java.lang.NullPointerException
at com.runqian.report4.view.ReportServlet._$1(Unknown Source:369)
at com.runqian.report4.view.ReportServlet._$1(Unknown Source:351)
at com.runqian.report4.view.ReportServlet.init(Unknown Source:172)
at com.runqian.util.webutil.SetContextServlet.init(SetContextServlet.java:16)
at javax.servlet.GenericServlet.init(GenericServlet.java:258) at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1094)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:970)
… 18 more
问题解决:
weblogic版本为weblogic8.1,数据源配置有问题,<config> <name>dataSource</name> <value>PpcDS</value> </config>
修改为:<config> <name>dataSource</name> <value>PpcDS,oracle,gbk</value> </config>
将将润乾报表应用中的web.xml文件中:<servlet-class>com.runqian.util.webutil.SetContextServlet</servlet-class>
修改为:<servlet-class>com.runqian.report4.view.ReportServlet</servlet-class>解决.