在weblogic+ofbiz中事务处理配置错误

03-08-26 cwbcom
使用ofbiz默认的jotm启动事务处理时会出现无法创建connection,不知道该如何处理。请高手帮忙指点一下,谢谢!

cwbcom
2003-08-27 13:25
<transaction-factory class="org.ofbiz.core.entity.transaction.JNDIFactory">
<user-transaction-jndi jndi-server-name="localweblogic" jndi-name="OracleJNDI"/>
<transaction-manager-jndi jndi-server-name="localweblogic" jndi-name="OracleJNDI"/>
</transaction-factory>
启动weblogic的时候没有错误,但是发出http请求后就出现下列错误,有哪位高手知道应该如何配置吗
java.lang.ClassCastException
at org.ofbiz.core.entity.transaction.JNDIFactory.getUserTransaction(JNDIFactory.java:109)
at org.ofbiz.core.entity.TransactionFactory.getUserTransaction(TransactionFactory.java:91)
at org.ofbiz.core.entity.TransactionUtil.getStatus(TransactionUtil.java:78)
at org.ofbiz.core.entity.jdbc.SQLProcessor.getConnection(SQLProcessor.java:244)
at org.ofbiz.core.entity.GenericDAO.select(GenericDAO.java:454)
at org.ofbiz.core.entity.GenericHelperDAO.findByPrimaryKey(GenericHelperDAO.java:77)
at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKey(GenericDelegator.java:524)
at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKeyCache(GenericDelegator.java:544)
at org.ofbiz.core.entity.GenericDelegator.findByPrimaryKeyCache(GenericDelegator.java:568)
at org.ofbiz.core.stats.ServerHitBin.saveHit(ServerHitBin.java:603)
at org.ofbiz.core.stats.ServerHitBin.countHit(ServerHitBin.java:206)
at org.ofbiz.core.stats.ServerHitBin.countHit(ServerHitBin.java:83)
at org.ofbiz.core.stats.ServerHitBin.countRequest(ServerHitBin.java:56)
at org.ofbiz.core.control.ControlServlet.doGet(ControlServlet.java:250)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at org.ofbiz.core.control.ContextSecurityFilter.doFilter(ContextSecurityFilter.java:158)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6297)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3575)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2573)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)

liu_ruyan
2003-08-31 22:05
你这里使用的是配置于JNDI的事务管理器,

你需要修改的配置文件jdniservers.xml