是不是有的jar包没有打进去阿,自己查查

解决方案 »

  1.   

    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)这条语句不是说明了问题吗,这说明你可能在OncePerRequestFilter的doFilter方法里调用了spring 的bean.而这个bean没在xml文件里配置的问题.我猜应该是这样.
      

  2.   

    首先要搞清楚,不打成war包能不能正常运行?
      

  3.   

    谢谢大家,上面说的  bean没在xml文件里配置的问题
    但在xml中进行了相应的配置,在tomcat下可以正常运行,但在weblogic下却不能我问题没有解决呀
      

  4.   

    sessionFactory 这个bean没有在你的配置文件里定义,检查spring的配置文件
    <?xml version="1.0" encoding="UTF-8"?>
    <beans
    xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="mappingResources">
    <list>
    </list>
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
    <prop key="jdbc.use_scrollable_resultset">true</prop>
    <prop key="hibernate.max_fetch_depth">1</prop>
    <prop key="hibernate.show_sql">false</prop>
    <prop key="hibernate.format_sql">false</prop>
    <prop key="jdbc.fetch_size">10</prop><!-- 一次读的数据库记录数 -->
    <prop key="jdbc.batch_size">50</prop><!-- 设定对数据库进行批量删除 -->
    <!--  >prop key="connection.useUnicode">true</prop-->
       <!--  prop key="connection.characterEncoding">gb2312</prop-->   
    <prop key="hibernate.query.substitutions">true 1, false 0</prop>
                    <prop key="hibernate.cache.use_query_cache">true</prop>
                    <prop key="hibernate.cache.use_second_level_cache">true</prop>
    <!--  prop key="hibernate.cache.provider_class">com.opensymphony.oscache.hibernate.OSCacheProvider</prop-->
    <prop key="hibernate.cglib.use_reflection_optimizer">false</prop>
    <prop key="hibernate.connection.release_mode">after_statement</prop>
    <prop key="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</prop>
    </props>
    </property>
    <property name="dataSource">
    <ref bean="IMDataSource" />
    </property>
    </bean>
    </beans>红色的表示你注册了这个bean,如果你注册了bean那就检查 定义和应用的名字是否一样
      

  5.   

    weblogic是比较“贱”的。
    设置weblogic的全局变量,或使用war自身的jar包,这个写weblogic.xml。