1. sqlserver 2000 如何修改sa登陆密码?
    操作步骤如下:
  1)打开企业管理器,依次展开服务器组,然后展开服务器。
  2)打开“安全性”文件夹,单击“登录”,然后用右键单击“Sa”,执行“属性”命令。
  3)弹出“SQL Server登录属性”对话框,在“SQL Server身份验证”密码栏,输入最新密码。
  4)单击“确定”按钮,弹出“确认密码”对话框,再输一遍登录密码。
  5)单击“确定”按钮,完成对Sa登录密码的修改。
2. 修改配置文件需要将项目redeploy
3. 重新发布工程,出现The web application [/login] registered the JDBC driver [com.microsoft.jdbc.sqlserver.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered
    原因:tomcat版本问题,换个低版本的。
4. The requested resource (/s2sh/find) is not available,即不到对应的action
    原因:将<form action=”find”>修改为<form action=”find.action”>,必须加后缀,而且是在form中加,而不要跑到l中加。另外还与可能时间的问题,等一会访问。
5. java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
    原因:SQL SERVER服务器没开启
6. javax.servlet.ServletException: hibernate3.HibernateQueryException: Student is not mapped. [from Student as s where s.number=?]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: Student is not mapped.
    原因:hql语句写错了,实体类时Students而不是Student
7. javax.servlet.ServletException: hibernate3.HibernateQueryException: could not resolve property: number of: com.school.domain.Students [from com.school.domain.Students as s where s.number=?]; nested exception is org.hibernate.QueryException: could not resolve property: number of: com.school.domain.Students [from com.school.domain.Students as s where s.number=?]
    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)
    org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)
    原因:number是属性,这里将属性写错了,在Students实体类中属性被定义为snumber。
8. javax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /results.jsp at line 25 failed to lazily initialize a collection of role: com.school.domain.Students.scoreses, no session or session was closed原因:一对多关联出问题了,将lazy=”true改成lazy=”false,除此之外,在set那个地方也必须设置lazy=”false”
9. 严重: Servlet.service() for servlet default threw exception
    java.lang.NullPointerException
    ava.lang.NullPointerException
    org.hibernate.ateProxy(AbstractEntityTuplizer.java:372)
    原因:也是表关联出现问题,将关联的几个表都改为lazy=”false
10. <value>./l</value>这里的./代表什么含义?表示哪个目录?
11. 严重: Exception sending context initialized event to listener instance of class org.t.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/l]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
    原因:没导入commons-pool-1.3的jar包
12. 严重: Exception sending context initialized event to listener instance of class org.t.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/l]: Invocation of init method failed; nested exception is org.hibernate.MappingException: entity class not found: Student
    Caused by: org.hibernate.MappingException: entity class not found: Student
    原因:生成的l中<class name=”Student”  >改成<class name=”Student类的完整路径”>
13. 严重: Exception sending context initialized event to listener instance of class org.t.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/l]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: Score
    Caused by: org.hibernate.MappingException: Association references unmapped class: Score
    原因:除了修改13问题位置的类路径外,many-to-one这样地方路径也需要改变。
14. Exception starting filter Struts2Filter
    Action class [queryScoreAciton] not found - action - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/s2sh/WEB-INF/l:11:60
    原因:queryScoreAciton应该写成queryScoreAction;或者struts2倒错jar包了,要用spring+struts包。
15. 严重: Servlet.service() for servlet default threw exception
    java.lang.ClassCastException: com.s2sh.domain.Student
    at String(StringType.java:44)
    原因:不是配置文件错了,而是编写的代码有错误。
    public List findStudentBySnumber(Student student){
        return studentDAO.Snumber());
session数据错误是什么意思    }
    public List findBySnumber(Object snumber) { //snumber希望得到的是学号字符串,而真正传给它的是student对象。
        return findByProperty(SNUMBER, snumber);

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。