3 Replies Latest reply on Jul 11, 2007 4:39 PM by Mark Little

    HelloWorld exceptions

    Greg Zoller Newbie

      Hello,

      I'm trying to get the HellowWorld quickstart running on AS 4.2.0.GA and ESB 4.2 MR2.

      I first tried step-by-step from the Getting Started Guide. The ant deploy-jms-dests reported no errors, but when I ran just 'ant' to start the ESB I got this:

      
      C:\Documents and Settings\gzoller\My Documents\libs\JBoss ESB 4.2\samples\quickstarts\helloworld>ant
      Buildfile: build.xml
      
      qslib-dependencies:
      
      non-qslib-dependencies:
      
      dependencies:
      
      compile:
      
      config:
      
      run:
       [echo] Launching Quickstart in standalone mode...
       [java] +----------------------------------------------------------+
       [java] | |
       [java] | Starting JBossESB... |
       [java] | |
       [java] +----------------------------------------------------------+
       [java] Reading config from C:\Documents and Settings\gzoller\My Documents\libs\JBoss ESB 4.2\samples\quickstarts\helloworld\jboss-esb.xml
       [java] 10:31:42,332 ERROR [main][ConfigurationController] The current versions of the jbossesb-listener.xml and/or jbossesb-gateway.xml are kept
      in place until the error is resolved: Failed to serialize ESB Configuration Document instance.
       [java] org.jboss.soa.esb.ConfigurationException: Failed to serialize ESB Configuration Document instance.
       [java] at org.jboss.soa.esb.dom.YADOMUtil.serialize(YADOMUtil.java:214)
       [java] Exception in thread "main" org.jboss.soa.esb.ConfigurationException: Unable to generate gateway and listener configurations
       [java] at org.jboss.soa.esb.dom.YADOMUtil.serialize(YADOMUtil.java:190)
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.initiateController(StandAloneBootStrapper.java:205)
       [java] at org.jboss.soa.esb.dom.YADOMUtil.serialize(YADOMUtil.java:176)
       [java] at org.jboss.soa.esb.listeners.config.Generator.generate(Generator.java:162)
       [java] at org.jboss.soa.esb.listeners.config.ConfigurationController.processConfiguration(ConfigurationController.java:306)
       [java] at org.jboss.soa.esb.listeners.config.ConfigurationController.<init>(ConfigurationController.java:122)
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.initiateController(StandAloneBootStrapper.java:197)
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(StandAloneBootStrapper.java:132)
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(StandAloneBootStrapper.java:108)
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.main(StandAloneBootStrapper.java:77)
       [java] Caused by: javax.xml.transform.TransformerException: java.io.FileNotFoundException: C:\Documents%20and%20Settings\gzoller\My%20Documents\l
      ibs\JBoss%20ESB%204.2\samples\quickstarts\helloworld\jbossesb-listener.xml (The system cannot find the path specified)
       [java] at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:296)
       [java] at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:329)
       [java] at org.jboss.soa.esb.dom.YADOMUtil.serialize(YADOMUtil.java:212)
       [java] ... 9 more
       [java] Caused by: java.io.FileNotFoundException: C:\Documents%20and%20Settings\gzoller\My%20Documents\libs\JBoss%20ESB%204.2\samples\quickstarts\
      helloworld\jbossesb-listener.xml (The system cannot find the path specified)
       [java] at java.io.FileOutputStream.open(Native Method)
       [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
       [java] at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
       [java] at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:286)
       [java] ... 11 more
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(StandAloneBootStrapper.java:132)
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.<init>(StandAloneBootStrapper.java:108)
       [java] at org.jboss.soa.esb.listeners.StandAloneBootStrapper.main(StandAloneBootStrapper.java:77)
      


      I also tried the AS-deployed mode by running 'ant deploy'. The ant script ran fine but my AS console window showed this exception:

      10:24:38,424 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp10553Quickstart_helloworld.esb-contents/jbm-queue-service.xml
      org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
       at org.jboss.system.ServiceController.install(ServiceController.java:226)
       at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy4.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1204)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:193)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
       ... 34 more
      


      Any ideas what I'm doing wrong?
      Thanks,
      Greg