0 Replies Latest reply on Jan 26, 2006 8:02 AM by Mennen

    Jboss deployment : no classloaders found

    Mennen Newbie

      I'm using the jboss included under JBPM starter's kit, and i just changed the database to use mysql DB (instead of hypersonic DB)

      It seems to work fine with hibernate after i did the necessary changes.. but now i can't start up my server!!

      It seems to be a classloaders problem.. only i am new with Jboss.. any suggestions?

      Here is part of the message I get :

      [startjboss] 11:57:30,532 ERROR [MainDeployer] Could not create deployment: file:/C:/downloads/JBPM/jbpm-starters-kit-3.0.2/jbpm-starters-kit-3.0.2/jbpm-server/server/jbpm/conf/jboss-service.xml
      [startjboss] org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain)
      [startjboss] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
      [startjboss] at org.jboss.system.ServiceController.install(ServiceController.java:215)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [startjboss] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [startjboss] at java.lang.reflect.Method.invoke(Method.java:324)

      Here is my jboss-service.xml :
      <?xml version="1.0" encoding="UTF-8"?>

      < server>
      < mbean code="org.jbpm.db.jmx.JbpmService"
      name="jboss.jbpm:name=DefaultJbpm,service=JbpmService"
      description="Default jBPM Service">
      < attribute name="JndiName">java:/jbpm/JbpmSessionFactory
      <!--depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends -->
      < depends>jboss.jca:service=DataSourceBinding,name=LocalMySqlDS

      < /mbean>
      < /server>
      Here is my jbpm.hibernate.properties :

      #hibernate.dialect=org.hibernate.dialect.HSQLDialect
      hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect
      #hibernate.connection.datasource=java:/DefaultDS
      hibernate.connection.datasource=java:/LocalMySqlDS


      Here is my mysql-ds.xml (i don't know if i should put it in server/jbpm/deploy or just leave it in jbpm-starters-kit-3.0.2\jbpm-server\docs\examples\jca )

      < datasources>
      < local-tx-datasource>
      < jndi-name>MySqlDS< /jndi-name>
      < connection-url>jdbc:mysql://mysql-hostname:3306/jbossdb< /connection-url>
      < driver-class>com.mysql.jdbc.Driver< /driver-class>
      < user-name>x< /user-name>
      < password>y< /password>
      < exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter< /exception-sorter-class-name>
      <!-- sql to call when connection is created
      < new-connection-sql>some arbitrary sql</new-connection-sql>
      -->
      <!-- sql to call on an existing pooled connection when it is obtained from pool
      < check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
      -->

      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
      < metadata>
      < type-mapping>mySQL< /type-mapping>
      < /metadata>
      < /local-tx-datasource>
      < /datasources>




      I am using Eclipse, and the JBPM starter's kit..
      OS: Windows XP

      Thanks in advance,

      Mennen



      _____________________________________________________________________________

      Here is the whole log of Jboss:

      [startjboss] starting 'C:/downloads/JBPM/jbpm-starters-kit-3.0.2/jbpm-starters-kit-3.0.2/jbpm-server\bin\run.bat -c jbpm'...
      [startjboss] ===============================================================================
      [startjboss] .
      [startjboss] JBoss Bootstrap Environment
      [startjboss] .
      [startjboss] JBOSS_HOME: C:\downloads\JBPM\jbpm-starters-kit-3.0.2\jbpm-starters-kit-3.0.2\jbpm-server\bin\\..
      [startjboss] .
      [startjboss] JAVA: C:\j2sdk1.4.2_05\bin\java
      [startjboss] .
      [startjboss] JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
      [startjboss] .
      [startjboss] CLASSPATH: C:\j2sdk1.4.2_05\lib\tools.jar;C:\downloads\JBPM\jbpm-starters-kit-3.0.2\jbpm-starters-kit-3.0.2\jbpm-server\bin\\run.jar
      [startjboss] .
      [startjboss] ===============================================================================
      [startjboss] .
      [startjboss] 11:57:25,365 INFO [Server] Starting JBoss (MX MicroKernel)...
      [startjboss] 11:57:25,365 INFO [Server] Release ID: JBoss [Zion] 4.0.3 (build: CVSTag=JBoss_4_0_3 date=200510042324)
      [startjboss] 11:57:25,365 INFO [Server] Home Dir: C:\downloads\JBPM\jbpm-starters-kit-3.0.2\jbpm-starters-kit-3.0.2\jbpm-server
      [startjboss] 11:57:25,365 INFO [Server] Home URL: file:/C:/downloads/JBPM/jbpm-starters-kit-3.0.2/jbpm-starters-kit-3.0.2/jbpm-server/
      [startjboss] 11:57:25,365 INFO [Server] Patch URL: null
      [startjboss] 11:57:25,365 INFO [Server] Server Name: jbpm
      [startjboss] 11:57:25,375 INFO [Server] Server Home Dir: C:\downloads\JBPM\jbpm-starters-kit-3.0.2\jbpm-starters-kit-3.0.2\jbpm-server\server\jbpm
      [startjboss] 11:57:25,375 INFO [Server] Server Home URL: file:/C:/downloads/JBPM/jbpm-starters-kit-3.0.2/jbpm-starters-kit-3.0.2/jbpm-server/server/jbpm/
      [startjboss] 11:57:25,375 INFO [Server] Server Temp Dir: C:\downloads\JBPM\jbpm-starters-kit-3.0.2\jbpm-starters-kit-3.0.2\jbpm-server\server\jbpm\tmp
      [startjboss] 11:57:25,375 INFO [Server] Root Deployment Filename: jboss-service.xml
      [startjboss] 11:57:25,846 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
      [startjboss] 11:57:25,846 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_05-b04,Sun Microsystems Inc.
      [startjboss] 11:57:25,846 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      [startjboss] 11:57:26,096 INFO [Server] Core system initialized
      [startjboss] 11:57:30,532 ERROR [MainDeployer] Could not create deployment: file:/C:/downloads/JBPM/jbpm-starters-kit-3.0.2/jbpm-starters-kit-3.0.2/jbpm-server/server/jbpm/conf/jboss-service.xml
      [startjboss] org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain)
      [startjboss] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
      [startjboss] at org.jboss.system.ServiceController.install(ServiceController.java:215)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [startjboss] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [startjboss] at java.lang.reflect.Method.invoke(Method.java:324)
      [startjboss] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      [startjboss] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      [startjboss] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      [startjboss] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      [startjboss] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      [startjboss] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      [startjboss] at $Proxy4.install(Unknown Source)
      [startjboss] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
      [startjboss] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
      [startjboss] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
      [startjboss] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      [startjboss] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [startjboss] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [startjboss] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [startjboss] at java.lang.reflect.Method.invoke(Method.java:324)
      [startjboss] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      [startjboss] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      [startjboss] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      [startjboss] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      [startjboss] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      [startjboss] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      [startjboss] at $Proxy5.deploy(Unknown Source)
      [startjboss] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
      [startjboss] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
      [startjboss] at org.jboss.Main.boot(Main.java:187)
      [startjboss] at org.jboss.Main$1.run(Main.java:438)
      [startjboss] at java.lang.Thread.run(Thread.java:534)
      [startjboss] Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.management.j2ee.LocalJBossServerDomain
      [startjboss] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
      [startjboss] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
      [startjboss] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      [startjboss] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      [startjboss] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1189)
      [startjboss] at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:271)
      [startjboss] at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:329)
      [startjboss] at org.jboss.system.ServiceCreator.install(ServiceCreator.java:124)
      [startjboss] at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:431)
      [startjboss] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
      [startjboss] ... 33 more