Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Cannot get FDS+JOTM+Hibernate to work

Avatar

Level 1
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(JUnicastRemoteObject.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.java: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(Http11BaseProtocol.java:664)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java: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(JUnicastRemoteObject.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.java: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(Http11BaseProtocol.java:664)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java: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



1 Reply

Avatar

Level 2
> Java 5, Tomcat 5.5.20, and JOTM 2.0.10



I just successfully tested this configuration again with the
installation instructions on the web site last week -




http://www.adobe.com/support/documentation/en/flex/2/install.html#tomcat



And, you may also check out this tech note which includes an
issue commonly encountered by users of FDS and Tomcat -
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6b82874f



If you choose to reference the external site for
instructions, it is not necessary to test, configuration or use any
of the db stuff -
http://static.raibledesigns.com/downloads/howto-tomcat-jotm.html




Highly recommend that you verify the configuration using the
JSP in the tech note -


http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6b82874f



If you're still having issues, please reference the following
forum thread last week that dealt with the same issue -


http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=583&threadid=1210688

Avatar

Level 1
Hi Cathy,



thank you for your help. It turned out that the problem was a
duplicate jar in common/lib and WEB-INF/lib - MyEclipse put the jar
there when adding the Hibernate nature. Everything works fine now.



Regards,

Markus