0 Replies Latest reply on Oct 19, 2005 1:42 AM by Amit Sanon

    desperate for help..

    Amit Sanon Newbie

      hi,
      i am having a trouble with deploying .har in jBoss4.0.3. i am using hibernate3 and Postgres8.0.4 as database. my directory structure is as follows

      testHiber.har
      |--META-INF
      | |-jboss-service.xml (i also tried renamin it to "hibernate-service.xml")
      | |-MANIFEST.MF
      |
      |-testHiber.war
      |-META-INF
      | |-MANIFEST.MF
      |-WEB-INF
      | |
      | |-classes
      | | |-hiber
      | | | |-Event.class
      | | | |-Event.hbm.xml
      | | | |-HibernateUtil.class (Session Factory)
      | | |-servlet
      | | |-ListData.class
      | | |-StoreData.class
      | |-lib
      | | |-(jar files)
      | |-web.xml
      |-list.jsp
      |-store.jsp
      |-index.html

      when i deploy this in the deploy folder .. i get an error --
      ClassNotFoundException : No ClassLoaders found for hiber.Event

      my jboss-service.xml looks like



      java:/PostgresDS
      org.hibernate.dialect.PostgreSQLDialect
      java:/hiber/HibernateUtil
      true




      the stacktrace from jboss server.log is

      2005-10-19 10:57:53,582 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042324)] Started in 1m:1s:891ms
      2005-10-19 11:01:48,384 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,384 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,384 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@1171b26
      2005-10-19 11:01:48,394 DEBUG [org.jboss.deployment.SARDeployer] Updated watch URL to: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/META-INF/hibernate-service.xml
      2005-10-19 11:01:48,394 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
      2005-10-19 11:01:48,394 DEBUG [org.jboss.deployment.SARDeployer] looking for nested deployments in : file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,404 DEBUG [org.jboss.deployment.SARDeployer] nested deployment: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,404 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
      2005-10-19 11:01:48,404 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,404 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@10a2d64, cl=org.jboss.mx.loading.UnifiedClassLoader3@933cba{ url=file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/ ,addedOrder=0}
      2005-10-19 11:01:48,404 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@10a2d64, cl=org.jboss.mx.loading.UnifiedClassLoader3@933cba{ url=file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/ ,addedOrder=0}
      2005-10-19 11:01:48,404 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@933cba{ url=file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/ ,addedOrder=0}
      2005-10-19 11:01:48,424 DEBUG [org.jboss.deployment.MainDeployer] found 1 subpackages of file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,424 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,424 DEBUG [org.jboss.deployment.MainDeployer] using deployer MBeanProxyExt[jboss.web:service=WebServer]
      2005-10-19 11:01:48,424 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Begin init
      2005-10-19 11:01:48,434 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] webContext: null
      2005-10-19 11:01:48,434 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] warURL: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,464 DEBUG [org.jboss.webservice.ServiceDeployer] handleNotification: org.jboss.deployment.SubDeployer.init,testHiber.war
      2005-10-19 11:01:48,464 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] End init
      2005-10-19 11:01:48,464 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Added url: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@933cba{ url=file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/ ,addedOrder=41}
      2005-10-19 11:01:48,464 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,464 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,474 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,474 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,474 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,484 DEBUG [org.jboss.system.ServiceController] Creating service jboss.web.deployment:war=testHiber.war,id=1960194125
      2005-10-19 11:01:48,484 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
      2005-10-19 11:01:48,484 DEBUG [org.jboss.web.WebModule] Creating jboss.web.deployment:war=testHiber.war,id=1960194125
      2005-10-19 11:01:48,484 DEBUG [org.jboss.web.WebModule] Created jboss.web.deployment:war=testHiber.war,id=1960194125
      2005-10-19 11:01:48,484 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.web.deployment:war=testHiber.war,id=1960194125 dependents are: []
      2005-10-19 11:01:48,484 DEBUG [org.jboss.webservice.ServiceDeployer] handleNotification: org.jboss.deployment.SubDeployer.create,testHiber.war
      2005-10-19 11:01:48,484 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying testHiber.war
      2005-10-19 11:01:48,484 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,484 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=933cba
      2005-10-19 11:01:48,494 DEBUG [org.jboss.system.ServiceCreator] About to create bean: hiber:name=HibernateUtil with code: org.jboss.hibernate.jmx.Hibernate
      2005-10-19 11:01:48,604 DEBUG [org.jboss.system.ServiceCreator] Created bean: hiber:name=HibernateUtil
      2005-10-19 11:01:48,614 DEBUG [org.jboss.system.ServiceConfigurator] DatasourceName set to java:/PostgresDS in hiber:name=HibernateUtil
      2005-10-19 11:01:48,614 DEBUG [org.jboss.system.ServiceConfigurator] Dialect set to org.hibernate.dialect.PostgreSQLDialect in hiber:name=HibernateUtil
      2005-10-19 11:01:48,624 DEBUG [org.jboss.system.ServiceConfigurator] SessionFactoryName set to java:/hiber/HibernateUtil in hiber:name=HibernateUtil
      2005-10-19 11:01:48,634 DEBUG [org.jboss.system.ServiceConfigurator] ShowSqlEnabled set to true in hiber:name=HibernateUtil
      2005-10-19 11:01:48,634 DEBUG [org.jboss.system.ServiceController] Creating service hiber:name=HibernateUtil
      2005-10-19 11:01:48,634 DEBUG [org.jboss.hibernate.jmx.Hibernate] Creating hiber:name=HibernateUtil
      2005-10-19 11:01:48,634 DEBUG [org.jboss.hibernate.jmx.Hibernate] Created hiber:name=HibernateUtil
      2005-10-19 11:01:48,634 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: hiber:name=HibernateUtil dependents are: []
      2005-10-19 11:01:48,634 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying testHiber1.har
      2005-10-19 11:01:48,634 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:48,634 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,634 DEBUG [org.jboss.system.ServiceController] starting service jboss.web.deployment:war=testHiber.war,id=1960194125
      2005-10-19 11:01:48,634 DEBUG [org.jboss.web.WebModule] Starting jboss.web.deployment:war=testHiber.war,id=1960194125
      2005-10-19 11:01:48,634 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] webContext: null
      2005-10-19 11:01:48,634 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] warURL: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,634 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] webAppParser: org.jboss.web.AbstractWebDeployer$DescriptorParser@10c29fe
      2005-10-19 11:01:48,634 DEBUG [org.jboss.web.WebPermissionMapping] Qualified url patterns: {/=PatternInfo[pattern=/,type=3,isOverriden=false,qualifiers=[]]}
      2005-10-19 11:01:48,654 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] deploy, ctxPath=/testHiber, warUrl=.../deploy/testHiber1.har/testHiber.war/
      2005-10-19 11:01:48,654 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, Begin
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Creating ENC using ClassLoader: java.net.FactoryURLClassLoader@1991ba7
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..org.jboss.mx.loading.UnifiedClassLoader3@933cba{ url=file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/ ,addedOrder=41}
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..org.jboss.system.server.NoAnnotationURLClassLoader@ab95e6
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..sun.misc.Launcher$AppClassLoader@e39a3e
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] ..sun.misc.Launcher$ExtClassLoader@a39137
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Linked java:comp/UserTransaction to JNDI name: UserTransaction
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] addEnvEntries
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkResourceEnvRefs
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkResourceRefs
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkMessageDestinationRefs
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkEjbRefs
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkEjbLocalRefs
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkServiceRefs
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] linkSecurityDomain
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] No security-domain given, using default: java:/jaas/other
      2005-10-19 11:01:48,664 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Linking security/securityMgr to JNDI name: java:/jaas/other
      2005-10-19 11:01:48,674 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] AbstractWebContainer.parseWebAppDescriptors, End
      2005-10-19 11:01:48,775 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Using session cookies default setting
      2005-10-19 11:01:49,626 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042324)/Tomcat-5.5'
      2005-10-19 11:01:49,686 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Initialized: {WebApplication: /D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/, URL: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/testHiber.war/, classLoader: java.net.FactoryURLClassLoader@1991ba7:26811303} jboss.web:j2eeType=WebModule,name=//localhost/testHiber,J2EEApplication=none,J2EEServer=none
      2005-10-19 11:01:49,686 DEBUG [org.jboss.web.WebModule] Started jboss.web.deployment:war=testHiber.war,id=1960194125
      2005-10-19 11:01:49,686 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.web.deployment:war=testHiber.war,id=1960194125 dependent components: []
      2005-10-19 11:01:49,776 DEBUG [org.jboss.webservice.ServiceDeployer] handleNotification: org.jboss.deployment.SubDeployer.start,testHiber.war
      2005-10-19 11:01:49,786 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: testHiber.war
      2005-10-19 11:01:49,786 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:49,786 DEBUG [org.jboss.system.ServiceController] starting service hiber:name=HibernateUtil
      2005-10-19 11:01:49,786 DEBUG [org.jboss.hibernate.jmx.Hibernate] Starting hiber:name=HibernateUtil
      2005-10-19 11:01:49,786 DEBUG [org.jboss.hibernate.jmx.Hibernate] Hibernate MBean starting; org.jboss.hibernate.jmx.Hibernate@1a33662 [ServiceName=hiber:name=HibernateUtil, JNDI=java:/hiber/HibernateUtil]
      2005-10-19 11:01:49,786 DEBUG [org.jboss.hibernate.jmx.Hibernate] Building SessionFactory; org.jboss.hibernate.jmx.Hibernate@1a33662 [ServiceName=hiber:name=HibernateUtil, JNDI=java:/hiber/HibernateUtil]
      2005-10-19 11:01:49,916 INFO [org.hibernate.cfg.Environment] Hibernate 3.1 beta 3
      2005-10-19 11:01:49,956 INFO [org.hibernate.cfg.Environment] hibernate.properties not found
      2005-10-19 11:01:49,956 INFO [org.hibernate.cfg.Environment] using CGLIB reflection optimizer
      2005-10-19 11:01:49,966 INFO [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling
      2005-10-19 11:01:50,347 DEBUG [org.jboss.hibernate.jmx.Hibernate] Using JDBC batch size : null
      2005-10-19 11:01:50,377 INFO [org.hibernate.cfg.Configuration] Reading mappings from file: D:\Program Files\jboss-4.0.3\server\default\deploy\testHiber1.har\testHiber.war\WEB-INF\classes\Event.hbm.xml
      2005-10-19 11:01:50,397 DEBUG [org.hibernate.util.DTDEntityResolver] trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
      2005-10-19 11:01:50,397 DEBUG [org.hibernate.util.DTDEntityResolver] found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
      2005-10-19 11:01:50,817 INFO [org.hibernate.cfg.HbmBinder] Mapping class: hiber.Event -> events
      2005-10-19 11:01:50,888 DEBUG [org.jboss.hibernate.jmx.Hibernate] Starting failed hiber:name=HibernateUtil
      org.hibernate.MappingException: Could not read mapping document from file: D:\Program Files\jboss-4.0.3\server\default\deploy\testHiber1.har\testHiber.war\WEB-INF\classes\Event.hbm.xml
      at org.hibernate.cfg.Configuration.addFile(Configuration.java:263)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:556)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:553)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:553)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:553)
      at org.jboss.hibernate.jmx.Hibernate.handleMappings(Hibernate.java:271)
      at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:189)
      at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:131)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      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: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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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: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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      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:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      Caused by: org.hibernate.MappingException: class hiber.Event not found while looking for property: id
      at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:80)
      at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276)
      at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:412)
      at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:345)
      at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:284)
      at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:155)
      at org.hibernate.cfg.Configuration.add(Configuration.java:379)
      at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:418)
      at org.hibernate.cfg.Configuration.addFile(Configuration.java:260)
      ... 53 more
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: hiber.Event
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
      at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:76)
      ... 61 more
      2005-10-19 11:01:50,908 WARN [org.jboss.system.ServiceController] Problem starting service hiber:name=HibernateUtil
      org.hibernate.MappingException: Could not read mapping document from file: D:\Program Files\jboss-4.0.3\server\default\deploy\testHiber1.har\testHiber.war\WEB-INF\classes\Event.hbm.xml
      at org.hibernate.cfg.Configuration.addFile(Configuration.java:263)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:556)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:553)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:553)
      at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:553)
      at org.jboss.hibernate.jmx.Hibernate.handleMappings(Hibernate.java:271)
      at org.jboss.hibernate.jmx.Hibernate.buildSessionFactory(Hibernate.java:189)
      at org.jboss.hibernate.jmx.Hibernate.startService(Hibernate.java:131)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      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: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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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: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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
      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:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      Caused by: org.hibernate.MappingException: class hiber.Event not found while looking for property: id
      at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:80)
      at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:276)
      at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:412)
      at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:345)
      at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:284)
      at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:155)
      at org.hibernate.cfg.Configuration.add(Configuration.java:379)
      at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:418)
      at org.hibernate.cfg.Configuration.addFile(Configuration.java:260)
      ... 53 more
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: hiber.Event
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
      at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:76)
      ... 61 more
      2005-10-19 11:01:51,008 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: testHiber1.har
      2005-10-19 11:01:51,008 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/
      2005-10-19 11:01:51,008 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/ -> file:/D:/Program Files/jboss-4.0.3/server/default/deploy/testHiber1.har/META-INF/hibernate-service.xml
      2005-10-19 11:01:51,008 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: hiber:name=HibernateUtil
      State: FAILED
      Reason: org.hibernate.MappingException: Could not read mapping document from file: D:\Program Files\jboss-4.0.3\server\default\deploy\testHiber1.har\testHiber.war\WEB-INF\classes\Event.hbm.xml

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: hiber:name=HibernateUtil
      State: FAILED
      Reason: org.hibernate.MappingException: Could not read mapping document from file: D:\Program Files\jboss-4.0.3\server\default\deploy\testHiber1.har\testHiber.war\WEB-INF\classes\Event.hbm.xml


      please do guide me ..

      thanks and rgds
      Amit