Hi All,
i m trying to deploye my hibernate application on Jboss4.0.2 , i follow the folder structure mentioned in
http://docs.jboss.org/jbossas/jboss4gui ... /ch13.html
as a hibernate.har in exploded form but jboss is not deploying it at all,
when i create a archive file and renamed as hibernate.har jboss console shows following error ...
F:\jboss-4.0.2\bin>run
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: F:\jboss-4.0.2\bin\\..
.
JAVA: C:\j2sdk1.4.2_03\bin\java
.
JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
.
CLASSPATH: C:\j2sdk1.4.2_03\lib\tools.jar;F:\jboss-4.0.2\server\default\lib\hibernate3.jar;F:\jboss-4.0.2\server\default\lib\log4j-1.2.11.jar;F:\jboss-4.0.2\server\default\lib\dom4j-1.6.1.jar;;F:\jboss-4.0.2\bin\\run.jar
.
===============================================================================
.
14:50:03,561 INFO [Server] Starting JBoss (MX MicroKernel)...
14:50:03,561 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
14:50:03,561 INFO [Server] Home Dir: F:\jboss-4.0.2
14:50:03,577 INFO [Server] Home URL: file:/F:/jboss-4.0.2/
14:50:03,577 INFO [Server] Library URL: file:/F:/jboss-4.0.2/lib/
14:50:03,577 INFO [Server] Patch URL: null
14:50:03,577 INFO [Server] Server Name: default
14:50:03,577 INFO [Server] Server Home Dir: F:\jboss-4.0.2\server\default
14:50:03,577 INFO [Server] Server Home URL: file:/F:/jboss-4.0.2/server/default/
14:50:03,577 INFO [Server] Server Data Dir: F:\jboss-4.0.2\server\default\data
14:50:03,577 INFO [Server] Server Temp Dir: F:\jboss-4.0.2\server\default\tmp
14:50:03,577 INFO [Server] Server Config URL: file:/F:/jboss-4.0.2/server/default/conf/
14:50:03,577 INFO [Server] Server Library URL: file:/F:/jboss-4.0.2/server/default/lib/
14:50:03,577 INFO [Server] Root Deployment Filename: jboss-service.xml
14:50:03,577 INFO [Server] Starting General Purpose Architecture (GPA)...
14:50:04,015 INFO [ServerInfo] Java version: 1.4.2_03,Sun Microsystems Inc.
14:50:04,015 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_03-b02,Sun Microsystems Inc.
14:50:04,015 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
14:50:04,468 INFO [Server] Core system initialized
14:50:07,077 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
14:50:07,171 INFO [WebService] Using RMI server codebase:
http://client-40:8083/
14:50:07,311 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
14:50:12,061 INFO [Embedded] Catalina naming disabled
14:50:12,546 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
14:50:12,546 INFO [Catalina] Initialization processed in 406 ms
14:50:12,546 INFO [StandardService] Starting service jboss.web
14:50:12,546 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9
14:50:12,608 INFO [StandardHost] XML validation disabled
14:50:12,640 INFO [Catalina] Server startup in 94 ms
14:50:12,780 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/F:/jboss-4.0.2/server/default/deploy/http-invoker.sar/invoker.war/
14:50:13,155 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
14:50:13,733 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/F:/jboss-4.0.2/server/default/tmp/deploy/tmp50632jboss-ws4ee-exp.war/
14:50:13,874 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/F:/jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
14:50:14,108 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/F:/jboss-4.0.2/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
14:50:16,265 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/F:/jboss-4.0.2/server/default/deploy/management/console-mgr.sar/web-console.war/
14:50:17,077 INFO [MailService] Mail Service bound to java:/Mail
14:50:17,640 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/jboss-4.0.2/server/default/deploy/jboss-ha-local-jdbc.rar
14:50:17,796 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/jboss-4.0.2/server/default/deploy/jboss-ha-xa-jdbc.rar
14:50:17,983 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/jboss-4.0.2/server/default/deploy/jboss-local-jdbc.rar
14:50:18,093 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/jboss-4.0.2/server/default/deploy/jboss-xa-jdbc.rar
14:50:18,202 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/jboss-4.0.2/server/default/deploy/jms/jms-ra.rar
14:50:18,311 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/F:/jboss-4.0.2/server/default/deploy/mail-ra.rar
14:50:19,546 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding to JNDI name 'java:DefaultDS'
14:50:19,983 INFO [A] Bound to JNDI name: queue/A
14:50:19,983 INFO
Bound to JNDI name: queue/B
14:50:19,983 INFO [C] Bound to JNDI name: queue/C
14:50:19,983 INFO [D] Bound to JNDI name: queue/D
14:50:19,983 INFO [ex] Bound to JNDI name: queue/ex
14:50:20,015 INFO [testTopic] Bound to JNDI name: topic/testTopic
14:50:20,015 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
14:50:20,015 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
14:50:20,030 INFO [testQueue] Bound to JNDI name: queue/testQueue
14:50:20,093 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
14:50:20,155 INFO [DLQ] Bound to JNDI name: queue/DLQ
14:50:20,374 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding to JNDI name 'java:JmsXA'
14:50:20,561 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=loggerPool,service=DataSourceBinding to JNDI name 'java:loggerPool'
14:50:20,624 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=FamilyCenterPool,service=DataSourceBinding to JNDI name 'java:FamilyCenterPool'
14:50:22,999 WARN [ServiceController] Problem starting service jboss.har:service=Hibernate
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)
at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:592)
at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:578)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
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.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:418)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
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.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
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:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
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.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:418)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
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.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
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:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:534)
14:50:23,046 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/F:/jboss-4.0.2/server/default/deploy/jmx-console.war/
14:50:23,249 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.har:service=Hibernate
State: FAILED
Reason: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.har:service=Hibernate
State: FAILED
Reason: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
14:50:23,390 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
14:50:23,483 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
14:50:23,499 INFO [JkMain] Jk running ID=0 time=0/47 config=null
14:50:23,515 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 19s:938ms
does any body have any idea ... what's wrong ..
dheeraj
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html