2 Replies Latest reply on Nov 15, 2006 3:22 PM by Markus_M-51jLOY

    Cannot get FDS+JOTM+Hibernate to work

    Markus_M-51jLOY
      Hi,

      I've now tried for several hours to get Flex Data Services to talk to a mySQL database. The problem seems to be that Java 5, Tomcat 5.5.20, and JOTM 2.0.10 don't play together. Since this doesn't seem to be such an uncommon configuration I hope somebody here can help me getting this to work. Or is there a way around using JOTM when using Hibernate?
      I installed a new instance of Tomcat on Windows XP and followed the installation instructions on http://static.raibledesigns.com/downloads/howto-tomcat-jotm.html to set up JOTM. Everything in my dbtest.war looks correct but I'm getting the following error message:

      2006-11-13 17:11:51,302 [http-8080-Processor25] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/dbtest].[jsp] - Servlet.service() for servlet jsp threw exception
      java.lang.NoSuchMethodError: sun.rmi.transport.ObjectTable.getStub(Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub;
      at org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.unexportObject(JUnicastRemoteObj ect.java:138)
      at org.objectweb.carol.rmi.multi.JrmpPRODelegate.unexportObject(JrmpPRODelegate.java:107)
      at org.objectweb.carol.rmi.multi.MultiPRODelegate.unexportObject(MultiPRODelegate.java:107)
      at javax.rmi.PortableRemoteObject.unexportObject(Unknown Source)
      at org.objectweb.jotm.SubCoordinator.doAfterCompletion(SubCoordinator.java:1584)
      at org.objectweb.jotm.SubCoordinator.doRollback(SubCoordinator.java:1370)
      at org.objectweb.jotm.SubCoordinator.rollback(SubCoordinator.java:330)
      at org.objectweb.jotm.TransactionImpl.rollback(TransactionImpl.java:668)
      at org.objectweb.jotm.Current.rollback(Current.java:538)
      at foo.DBTest.init(DBTest.java:50)
      at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt p11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.ja va:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Unknown Source)
      2006-11-13 17:13:47,596 [http-8080-Processor24] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/dbtest].[jsp] - Servlet.service() for servlet jsp threw exception
      java.lang.NoSuchMethodError: sun.rmi.transport.ObjectTable.getStub(Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub;
      at org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject.unexportObject(JUnicastRemoteObj ect.java:138)
      at org.objectweb.carol.rmi.multi.JrmpPRODelegate.unexportObject(JrmpPRODelegate.java:107)
      at org.objectweb.carol.rmi.multi.MultiPRODelegate.unexportObject(MultiPRODelegate.java:107)
      at javax.rmi.PortableRemoteObject.unexportObject(Unknown Source)
      at org.objectweb.jotm.SubCoordinator.doAfterCompletion(SubCoordinator.java:1584)
      at org.objectweb.jotm.SubCoordinator.doRollback(SubCoordinator.java:1370)
      at org.objectweb.jotm.SubCoordinator.rollback(SubCoordinator.java:330)
      at org.objectweb.jotm.TransactionImpl.rollback(TransactionImpl.java:668)
      at org.objectweb.jotm.Current.rollback(Current.java:538)
      at foo.DBTest.init(DBTest.java:50)
      at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt p11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.ja va:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      at java.lang.Thread.run(Unknown Source)


      java.rmi.Remote and java.rmi.server.RemoteStub are in the classpath. Any help with this problem is greatly apprechiated.

      Markus