0 Replies Latest reply on Mar 22, 2006 6:02 AM by Sébastien Helbert

    Custom server base path / Classloader not found

    Sébastien Helbert Newbie

      Hi,

      I'm trying to run JBOSS 4.0.3 with a custom server base path using :

      -Djboss.server.base.url=file://C:/java/workspaces/local/server
      -Djboss.server.base.dir=C:/java/workspaces/local/server

      but the server boot fails with a DeploymentException "No ClassLoaders found for: org.jboss.logging.Log4jService"

      The Log4jService class file is located in jboss.jar and if I look at the boot.log, I see that this jar file is deployed by the SARDeployer, but next, when configuring the log4j service, the class is not found .... (note that if I remove the service configuration the problem occurs with the next one)

      11:43:38,311 INFO [Server] Server Home Dir: C:\java\workspaces\local\server\default
      11:43:38,311 INFO [Server] Server Home URL: file://C:/java/workspaces/local/server/default/
      11:43:38,311 DEBUG [Server] Server Data Dir: C:\java\workspaces\local\server\default\data
      11:43:38,311 INFO [Server] Server Temp Dir: C:\java\workspaces\local\server\default\tmp
      11:43:38,311 DEBUG [Server] Server Config URL: file://C:/java/workspaces/local/server/default/conf/
      11:43:38,311 DEBUG [Server] Server Library URL: file://C:/java/workspaces/local/server/default/lib/
      11:43:38,311 INFO [Server] Root Deployment Filename: jboss-service.xml
      [...]
      11:43:42,909 DEBUG [MainDeployer] Starting deployment of package: file://C:/java/workspaces/local/server/default/conf/jboss-service.xml
      11:43:42,909 DEBUG [MainDeployer] Starting deployment (init step) of package at: file://C:/java/workspaces/local/server/default/conf/jboss-service.xml
      11:43:42,909 DEBUG [MainDeployer] Copying file://C:/java/workspaces/local/server/default/conf/jboss-service.xml -> C:\java\workspaces\local\server\default\tmp\deploy\tmp39290jboss-service.xml
      11:43:42,909 DEBUG [MainDeployer] using deployer org.jboss.deployment.SARDeployer@ad8659
      11:43:43,003 DEBUG [SARDeployer] Found classpath element: [classpath: null]
      11:43:43,003 DEBUG [SARDeployer] codebase URL is file://C:/java/workspaces/local/server/default/lib/
      [...]
      11:43:43,018 DEBUG [SARDeployer] deployed classes for file://C:/java/workspaces/local/server/default/lib/jboss.jar
      [...]
      11:43:43,844 DEBUG [RepositoryClassLoader] Added url: file://C:/java/workspaces/local/server/default/lib/jboss.jar, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@11e0c13{ url=file:/C:/java/workspaces/local/server/default/tmp/deploy/tmp39290jboss-service.xml ,addedOrder=2}
      [...]
      11:43:48,894 DEBUG [SARDeployer] create operation failed for package file://C:/java/workspaces/local/server/default/conf/jboss-service.xml
      org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.logging.Log4jService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.logging.Log4jService)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
       at org.jboss.system.ServiceController.install(ServiceController.java:215)
       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:1


      Any idea?

      Thanks

      Seb.