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: Hibernate factory not bound .
PostPosted: Thu Apr 27, 2006 8:01 am 
Newbie

Joined: Mon Apr 24, 2006 7:21 am
Posts: 3
Exception occur when run a testcase !!
Now i m switch to hibernate !
But when we run a testcase then this exception ocuur :

=======================================================
========================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: C:\jboss-4.0.4RC1\bin\\..
.
JAVA: C:\Program Files\Java\jdk1.5.0_05\bin\java
.
JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
.
CLASSPATH: C:\Program Files\Java\jdk1.5.0_05
\lib\tools.jar;C:\jboss-4.0.4RC1\bin\\run.jar;C:\jboss-
4.0.4RC1\bin\\..\server\default\db
.
=======================================================
========================
.
10:41:12,109 INFO [Server] Starting JBoss (MX
MicroKernel)...
10:41:12,140 INFO [Server] Release ID: JBoss [Zion]
4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1
date=200602071519)
10:41:12,156 INFO [Server] Home Dir: C:\jboss-4.0.4RC1
10:41:12,156 INFO [Server] Home URL: file:/C:/jboss-
4.0.4RC1/
10:41:12,156 INFO [Server] Patch URL: null
10:41:12,156 INFO [Server] Server Name: default
10:41:12,156 INFO [Server] Server Home Dir: C:\jboss-
4.0.4RC1\server\default
10:41:12,156 INFO [Server] Server Home URL:
file:/C:/jboss-4.0.4RC1/server/default/
10:41:12,156 INFO [Server] Server Temp Dir: C:\jboss-
4.0.4RC1\server\default\tmp
10:41:12,156 INFO [Server] Root Deployment Filename:
jboss-service.xml
10:41:13,406 INFO [ServerInfo] Java version:
1.5.0_05,Sun Microsystems Inc.
10:41:13,406 INFO [ServerInfo] Java VM: Java HotSpot
(TM) Client VM 1.5.0_05-b05,Sun Microsystems Inc.
10:41:13,406 INFO [ServerInfo] OS-System: Windows
2000 5.0,x86
10:41:14,718 INFO [Server] Core system initialized
10:41:24,406 INFO [Log4jService$URLWatchTimerTask]
Configuring from URL: resource:log4j.xml
10:41:32,484 INFO [WebService] Using RMI server
codebase: http://dheerajdhiman:8083/
10:41:32,953 WARN [EJBTimerServiceImpl] Cannot obtain
TransactionManager from JNDI, using
TxManager.getInstance():
javax.naming.NameNotFoundException: TransactionManager
not bound
10:41:36,734 INFO [MailService] Mail Service bound to
java:/Mail
10:41:37,812 INFO [NamingService] Started jndi
bootstrap jnpPort=2099, rmiPort=1098, backlog=50,
bindAddress=/0.0.0.0, Client SocketFactory=null,
Server
SocketFactory=org.jboss.net.sockets.DefaultSocketFactor
y@ad093076
10:41:38,359 INFO [HibernateServiceMBean] starting
service at JNDI name: HibernateFactory
10:41:38,359 INFO [HibernateServiceMBean] service
properties:
{hibernate.session_factory_name=HibernateFactory,
hibernate.transaction.manager_lookup_class=org.hibernat
e.transaction.JBossTransactionManagerLookup,
hibernate.transaction.factory_class=org.hibernate.trans
action.JTATransactionFactory,
hibernate.connection.datasource=java:/jdbc/sqlserver}
10:41:38,437 INFO [Environment] Hibernate 3.1.2
10:41:38,453 INFO [Environment] hibernate.properties
not found
10:41:38,468 INFO [Environment] using CGLIB
reflection optimizer
10:41:38,484 INFO [Environment] using JDK 1.4
java.sql.Timestamp handling
10:41:38,796 INFO [NamingHelper] JNDI InitialContext
properties:{}
10:41:38,796 FATAL [DatasourceConnectionProvider]
Could not find datasource: java:/jdbc/sqlserver
10:41:39,109 INFO [HibernateServiceMBean] Could not
build SessionFactory using the MBean classpath - will
try again using client classpath: Could not find
datasource
10:41:39,187 INFO [SessionFactoryObjectFactory]
Factory name: HibernateFactory
10:41:39,187 INFO [NamingHelper] JNDI InitialContext
properties:{}
10:41:39,187 INFO [SessionFactoryObjectFactory] Bound
factory to JNDI name: HibernateFactory
10:41:39,187 WARN [SessionFactoryObjectFactory]
InitialContext did not implement EventContext
10:41:40,312 INFO [Embedded] Catalina naming disabled
10:41:41,125 INFO [Http11BaseProtocol] Initializing
Coyote HTTP/1.1 on http-0.0.0.0-10000
10:41:41,140 INFO [Catalina] Initialization processed
in 703 ms
10:41:41,140 INFO [StandardService] Starting service
jboss.web
10:41:41,140 INFO [StandardEngine] Starting Servlet
Engine: Apache Tomcat/5.5.12
10:41:41,218 INFO [StandardHost] XML validation
disabled
10:41:41,281 INFO [Catalina] Server startup in 141 ms
10:41:41,578 INFO [TomcatDeployer] deploy,
ctxPath=/invoker, warUrl=.../deploy/http-
invoker.sar/invoker.war/
10:41:42,421 INFO [WebappLoader] Dual registration of
jndi stream handler: factory already defined
10:41:42,890 INFO [[/invoker]] JMXInvokerServlet: init
10:41:42,937 INFO [[/invoker]] default: init
10:41:42,937 INFO [[/invoker]] EJBInvokerServlet: init
10:41:42,968 INFO [[/invoker]] ReadOnlyJNDIFactory:
init
10:41:42,968 INFO [[/invoker]] JNDIFactory: init
10:41:42,984 INFO [[/invoker]] jsp: init
10:41:43,406 INFO [TomcatDeployer] deploy,
ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp20563jboss-
ws4ee-exp.war/
10:41:43,546 INFO [[/ws4ee]] default: init
10:41:43,546 INFO [[/ws4ee]] jsp: init
10:41:43,625 INFO [TomcatDeployer] deploy, ctxPath=/,
warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
10:41:43,828 INFO [[/]] default: init
10:41:43,843 INFO [[/]] jsp: init
10:41:43,968 INFO [TomcatDeployer] deploy,
ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-
httpil.sar/jbossmq-httpil.war/
10:41:44,125 INFO [[/jbossmq-httpil]] default: init
10:41:44,125 INFO [[/jbossmq-httpil]] jsp: init
10:41:44,250 INFO [TomcatDeployer] deploy,
ctxPath=/web-console,
warUrl=.../deploy/management/console-mgr.sar/web-
console.war/
10:41:44,500 INFO [[/web-console]] HTTP Invocation:
init
10:41:44,500 INFO [[/web-console]] Clear Monitor
Alerts: init
10:41:44,515 INFO [[/web-console]] MonitorsFolder:
init
10:41:44,531 INFO [[/web-console]] UCLs: init
10:41:44,562 INFO [[/web-console]] Acknowledge Active
Alarms: init
10:41:44,578 INFO [[/web-console]] Manage String
Threshold Monitor: init
10:41:44,593 INFO [[/web-console]] Create String
Threshold Monitor: init
10:41:44,593 INFO [[/web-console]] default: init
10:41:44,609 INFO [[/web-console]] JMS Message: init
10:41:44,625 INFO [[/web-console]] JSR77 WebModule:
init
10:41:44,640 INFO [[/web-console]] J2EEFolder: init
10:41:45,593 INFO [[/web-console]] AOPFolder: init
10:41:45,609 INFO [[/web-console]] SystemFolder: init
10:41:45,703 INFO [[/web-console]] Create Threshold
Monitor: init
10:41:45,703 INFO [[/web-console]] Manage Threshold
Monitor: init
10:41:45,734 INFO [[/web-console]] Manage Snapshot:
init
10:41:45,734 INFO [[/web-console]] MBeans: init
10:41:45,750 INFO [[/web-console]] JSR77 Domains and
Servers: init
10:41:45,750 INFO [[/web-console]] JSR77 EJBModules
and EJBs: init
10:41:45,765 INFO [[/web-console]] JSR77 J2EE Apps:
init
10:41:45,796 INFO [[/web-console]] Create Snapshot:
init
10:41:45,796 INFO [[/web-console]] jsp: init
10:41:46,328 INFO [RARDeployment] Required license
terms exist, view META-INF/ra.xml in .../deploy/jboss-
ha-local-jdbc.rar
10:41:46,453 INFO [RARDeployment] Required license
terms exist, view META-INF/ra.xml in .../deploy/jboss-
ha-xa-jdbc.rar
10:41:46,531 INFO [RARDeployment] Required license
terms exist, view META-INF/ra.xml in .../deploy/jboss-
local-jdbc.rar
10:41:46,625 INFO [RARDeployment] Required license
terms exist, view META-INF/ra.xml in .../deploy/jboss-
xa-jdbc.rar
10:41:46,718 INFO [RARDeployment] Required license
terms exist, view META-INF/ra.xml
in .../deploy/jms/jms-ra.rar
10:41:48,140 INFO [RARDeployment] Required license
terms exist, view META-INF/ra.xml
in .../deploy/kodo.rar
10:41:48,234 INFO [RARDeployment] Required license
terms exist, view META-INF/ra.xml in .../deploy/mail-
ra.rar
10:41:48,781 INFO [ConnectionFactoryBindingService]
Bound
ConnectionManager 'jboss.jca:service=DataSourceBinding,
name= jdbc/sqlserver' to JNDI
name 'java:jdbc/sqlserver'
10:41:50,140 INFO [ConnectionFactoryBindingService]
Bound
ConnectionManager 'jboss.jca:service=DataSourceBinding,
name=DefaultDS' to JNDI name 'java:DefaultDS'
10:41:50,734 INFO [A] Bound to JNDI name: queue/A
10:41:50,734 INFO [B] Bound to JNDI name: queue/B
10:41:50,734 INFO [C] Bound to JNDI name: queue/C
10:41:50,734 INFO [D] Bound to JNDI name: queue/D
10:41:50,750 INFO [ex] Bound to JNDI name: queue/ex
10:41:50,781 INFO [testTopic] Bound to JNDI name:
topic/testTopic
10:41:50,796 INFO [securedTopic] Bound to JNDI name:
topic/securedTopic
10:41:50,796 INFO [testDurableTopic] Bound to JNDI
name: topic/testDurableTopic
10:41:50,796 INFO [testQueue] Bound to JNDI name:
queue/testQueue
10:41:50,906 INFO [UILServerILService] JBossMQ UIL
service available at : /0.0.0.0:8093
10:41:51,015 INFO [DLQ] Bound to JNDI name: queue/DLQ
10:41:51,328 INFO [ConnectionFactoryBindingService]
Bound
ConnectionManager 'jboss.jca:service=ConnectionFactoryB
inding,name=JmsXA' to JNDI name 'java:JmsXA'
10:41:53,406 INFO [EjbModule] Deploying BlossomsCore
10:41:53,562 INFO [EjbModule] Deploying
BlossomsLogistics
10:41:53,796 INFO [ProxyFactory] Bound EJB
Home 'BlossomsCore' to jndi 'BlossomsCore'
10:41:53,859 INFO [ProxyFactory] Bound EJB
Home 'BlossomsLogistics' to jndi 'BlossomsLogistics'
10:41:53,859 INFO [EJBDeployer] Deployed:
file:/C:/jboss-
4.0.4RC1/server/default/deploy/BlossomsTest.jar
10:41:54,906 INFO [EjbModule] Deploying
RemoteDataBroker
10:41:54,937 INFO [EjbModule] Deploying SystemLogin
10:41:55,015 INFO [ProxyFactory] Bound EJB
Home 'RemoteDataBroker' to jndi 'RemoteDataBroker'
10:41:55,046 INFO [ProxyFactory] Bound EJB
Home 'SystemLogin' to jndi 'SystemLogin'
10:41:55,046 INFO [EJBDeployer] Deployed:
file:/C:/jboss-
4.0.4RC1/server/default/deploy/RemoteDataBroker.jar
10:41:55,203 INFO [TomcatDeployer] deploy,
ctxPath=/jmx-console, warUrl=.../deploy/jmx-
console.war/
10:41:55,406 INFO [[/jmx-console]] default: init
10:41:55,406 INFO [[/jmx-console]] jsp: init
10:41:55,406 INFO [[/jmx-console]] ClusterView: init
10:41:55,421 INFO [[/jmx-console]] DisplayOpResult:
init
10:41:55,421 INFO [[/jmx-console]] InspectMBean: init
10:41:55,421 INFO [[/jmx-console]] DisplayMBeans: init
10:41:55,593 INFO [Http11BaseProtocol] Starting
Coyote HTTP/1.1 on http-0.0.0.0-10000
10:41:55,906 INFO [ChannelSocket] JK: ajp13 listening
on /0.0.0.0:8009
10:41:55,921 INFO [JkMain] Jk running ID=0 time=0/46
config=null
10:41:55,937 INFO [Server] JBoss (MX MicroKernel)
[4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1
date=200602071519)] Started in 43s:766ms
10:42:14,796 INFO [STDOUT] Static block called
10:42:14,796 INFO [STDOUT] Debugger.D.init
>> Path to get default file is C:\Documents and
Settings\dheeraj.dhiman\Default
10:42:18,031 INFO [STDOUT]


Thread - Thread[RMI TCP Connection(3)-
169.254.182.26,5,RMI Runtime] Server Call 0> - No of
Requests: 1
Req[0] - Module: BlossomsCore, method:
createObject(java.lang.String, java.lang.String,
com_daffodil_blossoms.integration.FormEnvironment );
args: Person, person-Default, null
10:42:18,500 ERROR [LogInterceptor] EJBException in
method: public abstract
com_daffodil_blossomscore.module.BlossomsCoreFacade
com_daffodil_blossomscore.module.BlossomsCoreHome.creat
e() throws
javax.ejb.CreateException,java.rmi.RemoteException,
causedBy:
java.lang.RuntimeException: Exception while getting
PersistenceManagerFactory.
at
com_daffodil_blossoms.modules.ServiceLocator.getPersist
enceManagerFactory(ServiceLocator.java:83)
at
com_daffodil_blossoms.modules.DefaultModule.getPersiste
nceManagerFactory(DefaultModule.java:1417)
at
com_daffodil_blossoms.modules.DefaultModule.registerObj
ectGroup(DefaultModule.java:189)
at
com_daffodil_blossoms.modules.DefaultModule.registerObj
ectGroup(DefaultModule.java:185)
at
com_daffodil_blossomscore.module.BlossomsCoreModule.pop
ulateDOHelperAndDOTypes(BlossomsCoreModule.java:37)
at
com_daffodil_blossoms.modules.DefaultModule.<init>
(DefaultModule.java:159)
at
com_daffodil_blossomscore.module.BlossomsCoreModule.<in
it>(BlossomsCoreModule.java:33)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstan
ce(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance
(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.jboss.ejb.Container.createBeanClassInstance
(Container.java:599)
at
org.jboss.ejb.plugins.AbstractInstancePool.get
(AbstractInstancePool.java:183)
at
org.jboss.ejb.plugins.StatelessSessionInstanceIntercept
or.invokeHome
(StatelessSessionInstanceInterceptor.java:95)
at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome
(AbstractInterceptor.java:105)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invokeH
ome(CallValidationInterceptor.java:56)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:125)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:350)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome
(TxInterceptorCMT.java:161)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome
(SecurityInterceptor.java:145)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome
(LogInterceptor.java:135)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.inv
okeHome(ProxyFactoryFinderInterceptor.java:107)
at
org.jboss.ejb.SessionContainer.internalInvokeHome
(SessionContainer.java:632)
at org.jboss.ejb.Container.invoke
(Container.java:938)
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
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke
(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:260)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:659)
at
org.jboss.invocation.local.LocalInvoker$MBeanServerActi
on.invoke(LocalInvoker.java:169)
at
org.jboss.invocation.local.LocalInvoker.invoke
(LocalInvoker.java:118)
at
org.jboss.invocation.InvokerInterceptor.invokeLocalMars
halled(InvokerInterceptor.java:299)
at
org.jboss.invocation.MarshallingInvokerInterceptor.invo
ke(MarshallingInvokerInterceptor.java:61)
at
org.jboss.proxy.TransactionInterceptor.invoke
(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke
(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.HomeInterceptor.invoke
(HomeInterceptor.java:184)
at org.jboss.proxy.ClientContainer.invoke
(ClientContainer.java:100)
at $Proxy66.create(Unknown Source)
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
com_daffodil_commons.BeansUtilities.invokeMethod
(BeansUtilities.java:323)
at
com_daffodil_commons.BeansUtilities.invokeMethod
(BeansUtilities.java:301)
at
com_daffodil_commons.BeansUtilities.invokeMethod
(BeansUtilities.java:270)
at
com_daffodil_blossoms.queuerequestprocessor.RemoteDataB
rokerImpl.executeRequest(RemoteDataBrokerImpl.java:402)
at
com_daffodil_blossoms.queuerequestprocessor.RemoteDataB
rokerImpl.executeRequests
(RemoteDataBrokerImpl.java:282)
at
com_daffodil_blossoms.queuerequestprocessor.RemoteDataB
rokerImpl.executeRequests
(RemoteDataBrokerImpl.java:343)
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 org.jboss.invocation.Invocation.performCall
(Invocation.java:359)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterc
eptor.invoke(StatelessSessionContainer.java:228)
at
org.jboss.resource.connectionmanager.CachedConnectionIn
terceptor.invoke(CachedConnectionInterceptor.java:158)
at
org.jboss.ejb.plugins.StatelessSessionInstanceIntercept
or.invoke(StatelessSessionInstanceInterceptor.java:169)
at
org.jboss.webservice.server.ServiceEndpointInterceptor.
invoke(ServiceEndpointInterceptor.java:71)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke
(CallValidationInterceptor.java:63)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:121)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:378)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:181)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke
(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:206)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.inv
oke(ProxyFactoryFinderInterceptor.java:136)
at
org.jboss.ejb.SessionContainer.internalInvoke
(SessionContainer.java:643)
at org.jboss.ejb.Container.invoke
(Container.java:917)
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
org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke
(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:260)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:659)
at
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServe
rAction.invoke(JRMPInvoker.java:819)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke
(JRMPInvoker.java:420)
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 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.ru
n(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException:
javax.naming.NameNotFoundException: HibernateFactory
not bound
at
com_daffodil_blossoms.modules.ServiceLocator.lookUpPers
istenceManagerFactory(ServiceLocator.java:60)
at
com_daffodil_blossoms.modules.ServiceLocator.getPersist
enceManagerFactory(ServiceLocator.java:79)
... 93 more
Caused by: javax.naming.NameNotFoundException:
HibernateFactory not bound
at org.jnp.server.NamingServer.getBinding
(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding
(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject
(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup
(NamingServer.java:296)
at org.jnp.interfaces.NamingContext.lookup
(NamingContext.java:625)
at org.jnp.interfaces.NamingContext.lookup
(NamingContext.java:587)
at javax.naming.InitialContext.lookup
(InitialContext.java:351)

... 94 more
10:42:18,609 INFO [STDOUT]

Thread - Thread[RMI TCP Connection(3)-
169.254.182.26,5,RMI Runtime] End of Server Call 0> -
Total Time: 0ms, SQLTime: 0ms, Server Time: 0ms
Req[0] - Total Time: 0ms, SQLTime: 0ms, Server
Time: 0ms Module: BlossomsCore, method: createObject
(java.lang.String, java.lang.String,
com_daffodil_blossoms.integration.FormEnvironment );
args: Person, person-Default, null ; Result:
com_daffodil_blossoms.exceptions.BlossomsApplicationExc
eption - java.rmi.ServerException: EJBException:;
nested exception is:
javax.ejb.EJBException: Could not instantiate
bean



My hibernate-service.xml file is shown as :

<?xml version="1.0" encoding="UTF-8"?>

<server>
<mbean code="org.hibernate.jmx.HibernateService"
name="jboss.jca:service=SessionFactoryObjectFactory,nam
e=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<!--
depends>jboss.jca:service=LocalTxCM,name=jdbc/sqlserver
</depends-->
<attribute name="JndiName">HibernateFactory</attribute>
<attribute
name="Datasource">java:/jdbc/sqlserver</attribute>
<attribute
name="Dialect">org.hibernate.dialect.SQLServerDialect</
attribute>
<attribute
name="TransactionStrategy">org.hibernate.transaction.JT
ATransactionFactory</attribute>
<attribute
name="TransactionManagerLookupStrategy">org.hibernate.t
ransaction.JBossTransactionManagerLookup</attribute>

</mbean>
</server>


Now i m using J-Boss 4.0.4RC1 , Hibernate 3.1.2 !
Pls guide me what i m doing wrong in this case .
why i cant found hibernatefactory on server in jboss.
Pls solve this problem as early as possible .


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.