当前位置: 代码迷 >> WebSphere >> websphere6.1 不用创建sessionfactory,请高手帮忙,该如何处理
  详细解决方案

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

热度:6712   发布时间:2013-02-26 00:00:00.0
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
  相关解决方案