在控制台中部署war包时,出线以下的一场:
异常: Exception:weblogic.management.ApplicationException: start() failed. Module: zoyeoa Error: weblogic.management.DeploymentException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.PropertyNotFoundException: Could not find a getter for userid in class com.zoye.oa.model.hr.Employees - with nested exception: [org.hibernate.PropertyNotFoundException: Could not find a getter for userid in class com.zoye.oa.model.hr.Employees]  
  在执行此任务时出现的异常。搞了半天都不知道什么原因。大家来帮忙啊()  

解决方案 »

  1.   

    Could not find a getter for userid in class com.zoye.oa.model.hr.Employees不是说的这么清楚了吗,Employees类中userid没get方法。请检查!!!!
      

  2.   

    这个肯定有的
    我在tomcat中一直运行着的项目
      

  3.   

    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" 
    xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
       <display-name>Struts 2.0 test xp1204</display-name>
       <filter>
    <filter-name>changestring</filter-name>
    <filter-class>com.zoye.oa.tool.CharsetFilter</filter-class>
      <init-param>
              <param-name>charset</param-name>
              <param-value>GBK</param-value>
          </init-param>
    </filter>
    <filter-mapping>
            <filter-name>changestring</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
       <filter>
        <filter-name>struts2</filter-name>       
          <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        </filter>
      <filter-mapping>
          <filter-name>struts2</filter-name>
          <url-pattern>/*</url-pattern>
       </filter-mapping>
       <context-param>  
            <param-name>contextConfigLocation</param-name>
            <param-value>
                /WEB-INF/applicationContext.xml
            </param-value>
        </context-param>  
        <listener>
         <listener-class>
             org.springframework.web.context.ContextLoaderListener
         </listener-class>
        </listener>
        <servlet>
            <servlet-name>dwr</servlet-name>
            <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
            <init-param>
                <param-name>debug</param-name>
                <param-value>true</param-value>
            </init-param>
        </servlet>
        <servlet-mapping>
            <servlet-name>dwr</servlet-name>
            <url-pattern>/dwr/*</url-pattern>
        </servlet-mapping>
     </web-app>部署项目zoyeoa(该项目在tomcat下能正常运行)。
    访问url http://localhost:7001/zoyeoa/ 报错
    Error 404--Not Found 
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.