-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: problems deploying hibernate3 in jboss3.2.5
PostPosted: Fri Dec 01, 2006 1:41 am 
Newbie

Joined: Thu Nov 23, 2006 6:21 am
Posts: 2
I am trying to deploying hibernate3 in jboss-3.2.5.

I am using following .sar structure:
myapp.sar/META-INF/jboss-service.xml
myapp.sar/hibernate.cfg.xml
myapp.sar/POJO's and mapping files


following jars kept in myapp.sar
antlr-2.7.5H3.jar
asm.jar
asm-attrs.jar
cglib-2.1.jar
hibernate-metadata.jar
jboss-hibernate.jar
hibernate.jar,odmg-3.0.jar


hibernate3 jars kept in ${jboss_home}\server\default\lib

In jboss-service.xml
<mbean code="org.jboss.hibernate.jmx.Hibernate"
name="jboss.jca:service=SessionFactory,
name=SessionFactory">

<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=hibernatePool</depends>

<attribute name="DatasourceName">java:/hibernatePool</attribute>
<attribute name="Dialect">org.hibernate.dialect.OracleDialect</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
<attribute name="CacheProviderClass">
org.hibernate.cache.HashtableCacheProvider
</attribute>

</mbean>



while running jboss i am getting following error

10:48:23,289 INFO [Server] Starting JBoss (MX MicroKernel)...
10:48:23,289 INFO [Server] Release ID: JBoss [WonderLand] 3.2.5 (build: CVSTag=JBoss_3_2_5 date=200406251954)
10:48:23,289 INFO [Server] Home Dir: F:\jboss-3.2.5
10:48:23,289 INFO [Server] Home URL: file:/F:/jboss-3.2.5/
10:48:23,289 INFO [Server] Library URL: file:/F:/jboss-3.2.5/lib/
10:48:23,289 INFO [Server] Patch URL: null
10:48:23,289 INFO [Server] Server Name: default
10:48:23,289 INFO [Server] Server Home Dir: F:\jboss-3.2.5\server\default
10:48:23,289 INFO [Server] Server Home URL: file:/F:/jboss-3.2.5/server/default/
10:48:23,289 INFO [Server] Server Data Dir: F:\jboss-3.2.5\server\default\data
10:48:23,289 INFO [Server] Server Temp Dir: F:\jboss-3.2.5\server\default\tmp
10:48:23,289 INFO [Server] Server Config URL: file:/F:/jboss-3.2.5/server/default/conf/
10:48:23,289 INFO [Server] Server Library URL: file:/F:/jboss-3.2.5/server/default/lib/
10:48:23,289 INFO [Server] Root Deployment Filename: jboss-service.xml
10:48:23,289 INFO [Server] Starting General Purpose Architecture (GPA)...
10:48:23,554 INFO [ServerInfo] Java version: 1.4.2_04,Sun Microsystems Inc.
10:48:23,554 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_04-b05,Sun Microsystems Inc.
10:48:23,570 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
10:48:23,773 INFO [Server] Core system initialized
10:48:26,960 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
10:48:27,179 INFO [WebService] Using RMI server codebase: http://client-79:8083/
10:48:27,242 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
10:48:30,085 INFO [RARMetaData] Loading JBoss Resource Adapter for JDBC 2 XA drivers
10:48:30,085 INFO [RARMetaData] Required license terms present. See deployment descriptor.
10:48:32,164 INFO [MailService] Mail Service bound to java:/Mail
10:48:32,632 INFO [Embedded] Catalina naming disabled
10:48:33,226 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
10:48:33,257 INFO [Catalina] Initialization processed in 547 ms
10:48:33,257 INFO [StandardService] Starting service jboss.web
10:48:33,257 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.26
10:48:33,273 INFO [StandardHost] XML validation disabled
10:48:33,304 INFO [Catalina] Server startup in 47 ms
10:48:33,382 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
10:48:33,429 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/F:/jboss-3.2.5/server/default/deploy/http-invoker.sar/invoker.war/
10:48:34,492 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
10:48:34,492 INFO [TomcatDeployer] deploy, ctxPath=, warUrl=file:/F:/jboss-3.2.5/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
10:48:34,695 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
10:48:34,695 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/F:/jboss-3.2.5/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
10:48:34,851 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
10:48:34,851 INFO [TomcatDeployer] deploy, ctxPath=/FMAHibernate, warUrl=file:/F:/jboss-3.2.5/server/default/deploy/FMAHibernate.sar/FMAHibernate.war/
10:48:35,054 INFO [JmsXA] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=TxCM,name=JmsXA to JNDI name 'java:/JmsXA'
10:48:35,070 INFO [DefaultDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=DefaultDS to JNDI name 'java:/DefaultDS'
10:48:35,320 INFO [A] Bound to JNDI name: queue/A
10:48:35,320 INFO [B] Bound to JNDI name: queue/B
10:48:35,335 INFO [C] Bound to JNDI name: queue/C
10:48:35,335 INFO [D] Bound to JNDI name: queue/D
10:48:35,335 INFO [ex] Bound to JNDI name: queue/ex
10:48:35,382 INFO [testTopic] Bound to JNDI name: topic/testTopic
10:48:35,382 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
10:48:35,382 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
10:48:35,398 INFO [testQueue] Bound to JNDI name: queue/testQueue
10:48:35,476 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
10:48:35,523 INFO [DLQ] Bound to JNDI name: queue/DLQ
10:48:35,539 INFO [loggerPool] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=loggerPool to JNDI name 'java:/loggerPool'
10:48:35,539 INFO [hibernatePool] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=hibernatePool to JNDI name 'java:/hibernatePool'
10:48:35,601 INFO [Environment] Hibernate 3.0rc1
10:48:35,601 INFO [Environment] hibernate.properties not found
10:48:35,617 INFO [Environment] using CGLIB reflection optimizer
10:48:35,617 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
10:48:35,632 INFO [Hibernate] Using JDBC batch size : null
10:48:35,648 ERROR [Hibernate] Starting failed jboss.jca:service=SessionFactory, name=SessionFactory
java.lang.NullPointerException
at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:595)
at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:578)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
at $Proxy17.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:367)
at org.jboss.system.ServiceController.start(ServiceController.java:389)
at org.jboss.system.ServiceController.start(ServiceController.java:389)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)


Please let me know the structure folllowed in jboss-3.2.5
for hibernate3 is correct or not and why i am getting error...........

Thanks in advance


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.