急问!!!!!!!!!

kevinfield
05-04-19 0 108

我用的环境搭配如下:
JBuilder2005
Struts1.1
Tomcat 5.0.27
JDK 5.0

我在配置数据源的时候老出问题,在编译执行的时候老出现下面的异常:
严重: Initializing application data source org.apache.struts.action.DATA_SOURCE

java.sql.SQLException: open: java.lang.NullPointerException

at org.apache.struts.legacy.GenericDataSource.open(GenericDataSource.java:735)

at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1085)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)

at org.apache.catalina.core.StandardService.start(StandardService.java:480)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

at org.apache.catalina.startup.Catalina.start(Catalina.java:556)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:582)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

可是我已经在struts-config.xml中正确配置的了相关的参数了,但是用这些参数我用传统JDK直接连接的方法已经测试能正确连接.

请大家帮助看一下!!!!!!!!!!谢谢了!!!!!!!!!!!!!1