Hello,
I'm trying to run J2EE BMP Hibernate assisted application on jonas.
Mapping files are not found and i'm asked to give an hibernate properties file
whereas i have hibernate.cfg.xml at root of project.
How to fix it? Is stacktrace directly linked with logs got below?
Thanks a lot.
------------------------------hibernate.cfg.xml---------------------------------
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/Hyperion</property>
<property name="hibernate.connection.username">root</property>
<property name="show_sql">true</property>
<property name="connection.username"></property>
<mapping resource="/Player.hbm.xml" />
<mapping resource="/Planet.hbm.xml" />
<mapping resource="/Alliance.hbm.xml" />
<mapping resource="/War.hbm.xml" />
</session-factory>
</hibernate-configuration>
--------------------------------------- StackTrace ---------------------------------
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: Error thrown by an enterprise Bean; nested exception is:
java.lang.NoClassDefFoundError
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispatch(JUnicastServerRef.java:143)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at org.objectweb.carol.rmi.jrmp.server.JRemoteCall.executeCall(JRemoteCall.java:89)
at org.objectweb.carol.rmi.jrmp.server.JUnicastRef.invoke(JUnicastRef.java:161)
at org.objectweb.jonas_gen.org.insia.hyplite.beans.JOnASPlayerManager69981965Remote_Stub.addPlayer(Unknown Source)
at org.insia.hyplite.clients.PlayerClient.main(PlayerClient.java:47)
Caused by: java.rmi.RemoteException: Error thrown by an enterprise Bean; nested exception is:
java.lang.NoClassDefFoundError
at org.objectweb.jonas_gen.org.insia.hyplite.beans.JOnASPlayerManager69981965Remote.addPlayer(JOnASPlayerManager69981965Remote.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at org.objectweb.carol.rmi.jrmp.server.JUnicastServerRef.dispatch(JUnicastServerRef.java:143)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError
at org.insia.hyplite.beans.PlayerManagerBean.addPlayer(PlayerManagerBean.java:29)
--------------------------------------LOGS ----------------------------------
2006-04-15 17:34:53,162 : Environment.<clinit> : Hibernate 3.1
2006-04-15 17:34:53,169 : Environment.<clinit> : hibernate.properties not found
2006-04-15 17:34:53,172 : Environment.<clinit> : using CGLIB reflection optimizer
2006-04-15 17:34:53,174 : Environment.<clinit> : using JDK 1.4 java.sql.Timestamp handling
2006-04-15 17:34:53,296 : Configuration.configure : configuring from resource: /hibernate.cfg.xml
2006-04-15 17:34:53,297 : Configuration.getConfigurationInputStream : Configuration resource: /hibernate.cfg.xml
2006-04-15 17:34:53,434 : Configuration.addResource : Reading mappings from resource: /Player.hbm.xml
2006-04-15 17:34:53,436 : JFactory.postInvoke : system exception in business method:
java.lang.ExceptionInInitializerError
at org.insia.hyplite.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:29)
at org.insia.hyplite.beans.PlayerManagerBean.addPlayer(PlayerManagerBean.java:29)
at org.objectweb.jonas_gen.org.insia.hyplite.beans.JOnASPlayerManager69981965Remote.addPlayer(JOnASPlayerManager69981965Remote.java:59)
|