首页上一页 1 下一页尾页 1 条记录 1/1页
jsp项目开发全程实录第一章出现错误
发表在JavaWeb图书答疑
2008-12-22
是否精华
是
否
版块置顶:
是
否
(1)我的操作系统是windows Server 2003。
(2)在操作数据库时,登录数据库的用户名是sa ,密码为空(什么也没填写)。
(3)下载了你们的jar包解压后是一个lib文件夹,并把该文件夹下的jar文件拷贝到WEB-INF/lib下。注意:不是拷贝解压后的lib文件夹。
(4)我把源文件拷贝到Tomcat 6.0\webapps文件夹下。
(5)在IE浏览器中输入http://localhost:8080/01/的时候就报以下错误:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling
this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
root cause
java.lang.NoClassDefFoundError
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:123)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)
com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:113)
com.opensymphony.xwork2.DefaultActionInvocation.createAction
(DefaultActionInvocation.java:275)
com.opensymphony.xwork2.DefaultActionInvocation.init
(DefaultActionInvocation.java:365)
com.opensymphony.xwork2.DefaultActionInvocation.access$000
(DefaultActionInvocation.java:38)
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling
(DefaultActionInvocation.java:83)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile
(UtilTimerStack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.<init>
(DefaultActionInvocation.java:74)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy
(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.16
(2)在操作数据库时,登录数据库的用户名是sa ,密码为空(什么也没填写)。
(3)下载了你们的jar包解压后是一个lib文件夹,并把该文件夹下的jar文件拷贝到WEB-INF/lib下。注意:不是拷贝解压后的lib文件夹。
(4)我把源文件拷贝到Tomcat 6.0\webapps文件夹下。
(5)在IE浏览器中输入http://localhost:8080/01/的时候就报以下错误:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling
this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
root cause
java.lang.NoClassDefFoundError
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:123)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:143)
com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:113)
com.opensymphony.xwork2.DefaultActionInvocation.createAction
(DefaultActionInvocation.java:275)
com.opensymphony.xwork2.DefaultActionInvocation.init
(DefaultActionInvocation.java:365)
com.opensymphony.xwork2.DefaultActionInvocation.access$000
(DefaultActionInvocation.java:38)
com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling
(DefaultActionInvocation.java:83)
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile
(UtilTimerStack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.<init>
(DefaultActionInvocation.java:74)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy
(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
--------------------------------------------------------------------------------
Apache Tomcat/6.0.16