请教一个问题,我用struts做了一个练习,数据库是mysql,在公司里测试时可以运行,但是拿到家里测试时,出现了问题,请教各位高手!

03-12-11 mikecaolei
请教一个问题,我用struts做了一个练习,数据库是mysql,在公司里测试时可以运行,但是拿到家里测试时,出现了问题,页面告知我:
500 No action instance for path /home could be created
服务器报错如下,请您看看,问题出在哪里?谢谢!
ERROR 2003-12-11 22:17:57 org.apache.struts.action.RequestProcessor.processActio
nCreate(RequestProcessor.java:330)
No action instance for path /home could be created
java.lang.IllegalStateException: Pool not initialized.
at com.lpi.tourism.db.util.ConnectionPool.getInstance(ConnectionPool.jav
a:28)
at com.lpi.tourism.actions.HomeAction.<init>(HomeAction.java:38)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.
java:231)
at org.apache.struts.action.RequestProcessor.processActionCreate(Request
Processor.java:326)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:268)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet
.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:312)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:1
35)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244
)
at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:
163)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:536)

dragonjdh
2003-12-12 09:06
清详细说一下配置,环境?

lyojbuilder
2003-12-12 12:13
说得很清楚了,没有为 那个path配置相应的 Action. 检查你的 action path="/..."

猜你喜欢