是不是有的jar包没有打进去阿,自己查查
解决方案 »
- spring 3.1与hibernate4.1的错误求大神帮忙解决
- struts hidden的问题
- filter拦截jsp页面的请求问题
- 抽象类是个什么东东啊,谁能用文字帮我解释一下啊,为什么需要抽象类?
- 求解药:struts2中用<s:set标签进行付值后怎么取不到值呢?
- 如何用java向sqlserver中存入大文件
- 给点建议吧:打算用java3D生成三维JPG图片,怎么做?
- 高分求助:报表开发
- 宠物店!!!!!!!!!!!!!
- Eclipse开发web时,build path的问题。。。。
- 使用tomcat 开发struts ,改动java文件,自动reload出错
- java encoding 转换字符集
但在xml中进行了相应的配置,在tomcat下可以正常运行,但在weblogic下却不能我问题没有解决呀
<?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那就检查 定义和应用的名字是否一样
设置weblogic的全局变量,或使用war自身的jar包,这个写weblogic.xml。