首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

websphere6.1 不用创建sessionfactory,请高手帮忙,该如何处理

2012-03-18 
websphere6.1 不用创建sessionfactory,请高手帮忙客户使用的服务器是websphere6.1,所以项目要发布在websph

websphere6.1 不用创建sessionfactory,请高手帮忙
客户使用的服务器是websphere6.1,所以项目要发布在websphere上面,以前没弄过,看了下websphere的安装和配置
把项目发布到websphere6.1上面就有问题了,老报sessionFactory创建不了,但是在tomcat5.5下面没有任务问题,网上找了很多资料都没有相关问题,
请以前有websphere开发经验的高手帮帮忙,不尽感激~

错误信息如下:

Java code
[09-2-11 15:32:28:625 CST] 0000002c WebApp        E   [Servlet Error]-[action]: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sessionFactory' is defined    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:914)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:737)    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:243)    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:227)    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:171)    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:696)    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:641)    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3107)    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1425)    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:92)    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)    at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:193)    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:725)    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:847)    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)[09-2-11 16:05:28:703 CST] 00000023 SessionListen I SessionListener sessionDestroyed(HttpSessionEvent event) session with session ID=nN7hki6HM4Fi2MZdKkqV_93getting destroyed 



我是用的开源框架proxool配置的数据源
Java code
<?xml version="1.0" encoding="UTF-8"?><something-else-entirely>    <proxool>        <alias>cmy</alias>        <driver-url>            jdbc:sqlserver://localhost:1433;databasename=pubs        </driver-url>        <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>        <driver-properties>            <property name="user" value="sa" />            <property name="password" value="" />        </driver-properties>        <maximum-connection-count>100</maximum-connection-count>    </proxool></something-else-entirely>


hibernate中的配置如下:
Java code
<property name="proxool.pool_alias">cmy</property>        <property name="proxool.xml">proxool.xml</property>        <property name="dialect">            org.hibernate.dialect.SQLServerDialect        </property>


applicationContext.xml中的配置是这样的:
Java code
<bean id="sessionFactory"        class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">        <property name="configLocation"            value="classpath:hibernate.cfg.xml">        </property>    </bean>    <bean id="HibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">        <property name="sessionFactory" ref="sessionFactory"/>    </bean>


请大家赐教,谢谢了

[解决办法]
我也面临同样的问题,顶起来,请高手解决!!
急!!!!!!!!!!!!!!!

热点排行