请高手给点意见就可以了!!!能解决最好 !!! 谢谢了!
26 个解决方案
#1
你的工程里有没有添加数据库驱动包啊
#2
错误提示
或者异常提示
或者异常提示
#3
可能是数据库没打补丁吧
#4
数据库要打补丁
#5
把代码,问题抛出异常都贴出来,好分析解决啊
#6
总结楼上
1,没有添加数据库驱动包
2,数据库没打补丁(如果是sql2000的话 spk3 ,spk4补丁)
3,还有最不可能的情况就是sql服务器没有开.
1,没有添加数据库驱动包
2,数据库没打补丁(如果是sql2000的话 spk3 ,spk4补丁)
3,还有最不可能的情况就是sql服务器没有开.
#7
基本同意6楼的意见。
此外,还有可能是数据库中的访问权限等配置问题。
麻烦楼主把错误提示发出来,看看是什么问题。
此外,还有可能是数据库中的访问权限等配置问题。
麻烦楼主把错误提示发出来,看看是什么问题。
#8
先直接操作数据库看看能不能操作;
检查你的项目中添加了相应数据库的驱动包;
检查你的连接数据库的代码写的是否正确。
检查你的项目中添加了相应数据库的驱动包;
检查你的连接数据库的代码写的是否正确。
#9
错误提示 ..............................
where?
where?
#10
把连接的代码try() catch处理,看下有没有异常之类的。
删掉缓存,可能没有重新编译
还有就是要看清楚访问的页面对不对,我曾经就犯过这个错。汗。。。
删掉缓存,可能没有重新编译
还有就是要看清楚访问的页面对不对,我曾经就犯过这个错。汗。。。
#11
没有代码
没有错误怎么解决呀
没有错误怎么解决呀
#12
#13
我的驱动包有了 打了SQL SPK3补丁
但是Connection返回的还是个空值!
但是Connection返回的还是个空值!
#14
2008-6-3 14:12:06 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_04\bin;D:\tomcat5.5.17\bin
2008-6-3 14:12:06 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:06 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 859 ms
2008-6-3 14:12:06 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-6-3 14:12:06 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.17
2008-6-3 14:12:06 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2008-6-3 14:12:07 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:07 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-6-3 14:12:07 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/78 config=null
2008-6-3 14:12:08 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2008-6-3 14:12:08 org.apache.catalina.startup.Catalina start
信息: Server startup in 1985 ms
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at bbs.dataaccess.ConFactory.getCon(ConFactory.java:25)
at bbs.dataaccess.UserDao.saveUser(UserDao.java:14)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
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:597)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:250)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:297)
... 24 more
java.lang.NullPointerException
at bbs.dataaccess.UserDao.saveUser(UserDao.java:35)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_04\bin;D:\tomcat5.5.17\bin
2008-6-3 14:12:06 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:06 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 859 ms
2008-6-3 14:12:06 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-6-3 14:12:06 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.17
2008-6-3 14:12:06 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2008-6-3 14:12:07 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:07 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-6-3 14:12:07 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/78 config=null
2008-6-3 14:12:08 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2008-6-3 14:12:08 org.apache.catalina.startup.Catalina start
信息: Server startup in 1985 ms
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at bbs.dataaccess.ConFactory.getCon(ConFactory.java:25)
at bbs.dataaccess.UserDao.saveUser(UserDao.java:14)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
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:597)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:250)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:297)
... 24 more
java.lang.NullPointerException
at bbs.dataaccess.UserDao.saveUser(UserDao.java:35)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
#15
数据库启动了吗?
#16
Connection refused: connect
1 数据库没有启动
2 防火墙
3 IP地址写错了(Host)
1 数据库没有启动
2 防火墙
3 IP地址写错了(Host)
#17
xml写错。。。
#18
∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞
力争成为中国最大的架构师群联盟,架构师技术交流群:62402336正式开放!!!
已经上传的*软件产品的架构分析,本群资料仅供研究学习,不得商用!!!
google 、
eBay、
Youtube、
淘宝等
......
技术文章包括:
《自己动手写操作系统》
《搜索引擎-原理、技术与系统》
《企业应用架构模式》
......
重要的RUP实例
设计模式精解
......
资料陆续上传中
∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞
#19
大虾能不能确切点啊`
` ` `你说的对象范围可是很大哦``
` ` `你说的对象范围可是很大哦``
#20
驱动,或者连接的url问题
#21
呵呵'''' 有可能你的数据库服务的tcp/ip协议没打开!!
#22
把连接的代码也给出来看看
可能是语法上的错误啊
可能是语法上的错误啊
#23
代码在其他机器上用过 没错 !
Could Not Accept Changes
The currently displayed page contains invalid values.
这个是Tomcat 5.x报的错
Value must be an existing directory
这个是Tomcat 5.x报的错
Could Not Accept Changes
The currently displayed page contains invalid values.
这个是Tomcat 5.x报的错
Value must be an existing directory
这个是Tomcat 5.x报的错
#24
看异常是数据库没打补丁
打一个SP4补丁就OK了
打一个SP4补丁就OK了
#25
#26
可能是数据库没有打补丁,打一个SP4补丁就OK了!
#1
你的工程里有没有添加数据库驱动包啊
#2
错误提示
或者异常提示
或者异常提示
#3
可能是数据库没打补丁吧
#4
数据库要打补丁
#5
把代码,问题抛出异常都贴出来,好分析解决啊
#6
总结楼上
1,没有添加数据库驱动包
2,数据库没打补丁(如果是sql2000的话 spk3 ,spk4补丁)
3,还有最不可能的情况就是sql服务器没有开.
1,没有添加数据库驱动包
2,数据库没打补丁(如果是sql2000的话 spk3 ,spk4补丁)
3,还有最不可能的情况就是sql服务器没有开.
#7
基本同意6楼的意见。
此外,还有可能是数据库中的访问权限等配置问题。
麻烦楼主把错误提示发出来,看看是什么问题。
此外,还有可能是数据库中的访问权限等配置问题。
麻烦楼主把错误提示发出来,看看是什么问题。
#8
先直接操作数据库看看能不能操作;
检查你的项目中添加了相应数据库的驱动包;
检查你的连接数据库的代码写的是否正确。
检查你的项目中添加了相应数据库的驱动包;
检查你的连接数据库的代码写的是否正确。
#9
错误提示 ..............................
where?
where?
#10
把连接的代码try() catch处理,看下有没有异常之类的。
删掉缓存,可能没有重新编译
还有就是要看清楚访问的页面对不对,我曾经就犯过这个错。汗。。。
删掉缓存,可能没有重新编译
还有就是要看清楚访问的页面对不对,我曾经就犯过这个错。汗。。。
#11
没有代码
没有错误怎么解决呀
没有错误怎么解决呀
#12
#13
我的驱动包有了 打了SQL SPK3补丁
但是Connection返回的还是个空值!
但是Connection返回的还是个空值!
#14
2008-6-3 14:12:06 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_04\bin;D:\tomcat5.5.17\bin
2008-6-3 14:12:06 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:06 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 859 ms
2008-6-3 14:12:06 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-6-3 14:12:06 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.17
2008-6-3 14:12:06 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2008-6-3 14:12:07 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:07 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-6-3 14:12:07 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/78 config=null
2008-6-3 14:12:08 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2008-6-3 14:12:08 org.apache.catalina.startup.Catalina start
信息: Server startup in 1985 ms
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at bbs.dataaccess.ConFactory.getCon(ConFactory.java:25)
at bbs.dataaccess.UserDao.saveUser(UserDao.java:14)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
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:597)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:250)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:297)
... 24 more
java.lang.NullPointerException
at bbs.dataaccess.UserDao.saveUser(UserDao.java:35)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk1.6.0_04\bin;D:\tomcat5.5.17\bin
2008-6-3 14:12:06 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:06 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 859 ms
2008-6-3 14:12:06 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-6-3 14:12:06 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.17
2008-6-3 14:12:06 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2008-6-3 14:12:07 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2008-6-3 14:12:07 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2008-6-3 14:12:07 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/78 config=null
2008-6-3 14:12:08 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2008-6-3 14:12:08 org.apache.catalina.startup.Catalina start
信息: Server startup in 1985 ms
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at bbs.dataaccess.ConFactory.getCon(ConFactory.java:25)
at bbs.dataaccess.UserDao.saveUser(UserDao.java:14)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
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:597)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:250)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:297)
... 24 more
java.lang.NullPointerException
at bbs.dataaccess.UserDao.saveUser(UserDao.java:35)
at bbs.servlet.UserServlet.doGet(UserServlet.java:51)
at bbs.servlet.UserServlet.doPost(UserServlet.java:67)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:619)
#15
数据库启动了吗?
#16
Connection refused: connect
1 数据库没有启动
2 防火墙
3 IP地址写错了(Host)
1 数据库没有启动
2 防火墙
3 IP地址写错了(Host)
#17
xml写错。。。
#18
∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞
力争成为中国最大的架构师群联盟,架构师技术交流群:62402336正式开放!!!
已经上传的*软件产品的架构分析,本群资料仅供研究学习,不得商用!!!
google 、
eBay、
Youtube、
淘宝等
......
技术文章包括:
《自己动手写操作系统》
《搜索引擎-原理、技术与系统》
《企业应用架构模式》
......
重要的RUP实例
设计模式精解
......
资料陆续上传中
∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞∽∝∞
#19
大虾能不能确切点啊`
` ` `你说的对象范围可是很大哦``
` ` `你说的对象范围可是很大哦``
#20
驱动,或者连接的url问题
#21
呵呵'''' 有可能你的数据库服务的tcp/ip协议没打开!!
#22
把连接的代码也给出来看看
可能是语法上的错误啊
可能是语法上的错误啊
#23
代码在其他机器上用过 没错 !
Could Not Accept Changes
The currently displayed page contains invalid values.
这个是Tomcat 5.x报的错
Value must be an existing directory
这个是Tomcat 5.x报的错
Could Not Accept Changes
The currently displayed page contains invalid values.
这个是Tomcat 5.x报的错
Value must be an existing directory
这个是Tomcat 5.x报的错
#24
看异常是数据库没打补丁
打一个SP4补丁就OK了
打一个SP4补丁就OK了
#25
#26
可能是数据库没有打补丁,打一个SP4补丁就OK了!