I'm having very similar problem here. Here's my mbean config in jboss-service.xml:
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory, name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:name=PostgresDS, service=LocalTxCM</depends>
<attribute name="MapResources">
test/web/project/beans/Event.hbm.xml, test/web/project/beans/User.hbm.xml
</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:PostgresDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.PostgreSQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
</mbean>
And my postgres-ds.xml:
<datasources>
<local-tx-datasource>
<jndi-name>PostgresDS</jndi-name> <connection-url>jdbc:postgresql://localhost:5432/cspdb1</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>csp</user-name>
<password>csp</password>
<metadata>
<type-mapping>PostgreSQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
And here's the error log:
erver/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
20:07:03,609 INFO [ContextConfig] WARNING: Security role name durpublisher used in an <auth-constraint> without being defined in a <security-role>
20:07:03,610 INFO [ContextConfig] WARNING: Security role name publisher used in an <auth-constraint> without being defined in a <security-role>
20:07:03,610 INFO [ContextConfig] WARNING: Security role name guest used in an <auth-constraint> without being defined in a <security-role>
20:07:03,611 INFO [ContextConfig] WARNING: Security role name j2ee used in an <auth-constraint> without being defined in a <security-role>
20:07:03,612 INFO [ContextConfig] WARNING: Security role name subscriber used in an <auth-constraint> without being defined in a <security-role>
20:07:12,202 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/home/csp/jboss-4.0.0/server/default/deploy/jms/jms-ra.rar
20:07:12,533 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/home/csp/jboss-4.0.0/server/default/deploy/jboss-local-jdbc.rar
20:07:13,716 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/home/csp/jboss-4.0.0/server/default/deploy/jboss-xa-jdbc.rar
20:07:16,965 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding to JNDI name 'java:JmsXA'
20:07:17,194 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding to JNDI name 'java:DefaultDS'
20:07:17,930 INFO [A] Bound to JNDI name: queue/A
20:07:17,998 INFO [B] Bound to JNDI name: queue/B
20:07:18,065 INFO [C] Bound to JNDI name: queue/C
20:07:18,131 INFO [D] Bound to JNDI name: queue/D
20:07:18,196 INFO [ex] Bound to JNDI name: queue/ex
20:07:18,319 INFO [testTopic] Bound to JNDI name: topic/testTopic
20:07:18,384 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
20:07:18,449 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
20:07:18,515 INFO [testQueue] Bound to JNDI name: queue/testQueue
20:07:19,058 INFO [OILServerILService] JBossMQ OIL service available at : /0.0.0.0:8090
20:07:19,144 INFO [OIL2ServerILService] JBossMQ OIL2 service available at : /0.0.0.0:8092
20:07:19,309 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
20:07:19,449 INFO [DLQ] Bound to JNDI name: queue/DLQ
20:07:19,722 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=PostgresDS,service=DataSourceBinding to JNDI name 'java:PostgresDS'
20:07:21,898 INFO [MailService] Mail Service bound to java:/Mail
20:07:23,530 INFO [EjbModule] Deploying MEJB
20:07:24,415 INFO [EJBDeployer] Deployed: file:/home/csp/jboss-4.0.0/server/default/deploy/management/ejb-management.jar
20:07:24,573 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/home/csp/jboss-4.0.0/server/default/deploy/jmx-console.war/
20:07:25,188 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/home/csp/jboss-4.0.0/server/default/deploy/management/web-console.war/
20:07:26,532 INFO [EARDeployer] Init J2EE application: file:/home/csp/jboss-4.0.0/server/default/deploy/MyApp.ear
20:07:27,298 INFO [EjbModule] Deploying TestSession
20:07:27,629 INFO [EJBDeployer] Deployed: file:/home/csp/jboss-4.0.0/server/default/tmp/deploy/tmp24861MyApp.ear-contents/myBean.jar
20:07:27,663 INFO [TomcatDeployer] deploy, ctxPath=/myapp, warUrl=file:/home/csp/jboss-4.0.0/server/default/tmp/deploy/tmp24861MyApp.ear-contents/myapp-exp.war/
20:07:28,389 INFO [EARDeployer] Started J2EE application: file:/home/csp/jboss-4.0.0/server/default/deploy/MyApp.ear
20:07:28,390 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss.jca: name=HibernateFactory,service=HibernateFactory
state: CONFIGURED
I Depend On: jboss.jca:service=RARDeployer
jboss.jca: service=LocalTxCM,name=PostgresDS
Depends On Me:
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.jca: service=LocalTxCM,name=PostgresDS
state: NOTYETINSTALLED
I Depend On:
Depends On Me: jboss.jca: name=HibernateFactory,service=HibernateFactory
20:07:28,600 ERROR [Server] Root deployment has missing dependencies; continuing
Incomplete Deployment listing:
MBeans waiting for other MBeans:
ObjectName: jboss.jca: name=HibernateFactory,service=HibernateFactory
state: CONFIGURED
I Depend On: jboss.jca:service=RARDeployer
jboss.jca: service=LocalTxCM,name=PostgresDS
Depends On Me:
MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.jca: service=LocalTxCM,name=PostgresDS
state: NOTYETINSTALLED
I Depend On:
Depends On Me: jboss.jca: name=HibernateFactory,service=HibernateFactory
at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1255)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:712)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
20:07:28,696 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
20:07:38,074 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
20:07:38,083 INFO [JkMain] Jk running ID=0 time=1/4098 config=null
Funny thing is, I can remove the line
<depends>jboss.jca:name=PostgresDS, service=LocalTxCM</depends>
from the mbean configuration, and it works. But the book "Hibernate In Action" said that it depends on these two services.
Without this line, I'm having other problems, which will be the description of another thread.
|