1 Reply Latest reply on Mar 1, 2007 4:10 AM by tfennelly

    Unable to run the Launcher.java through Eclipse3.2

    pikumishra

      Dear Developers,

      I wish you a very Good Evening from India. I have started working the Jboss ESB. As per the sample example ie quickstart, I am able to run the application using predefined Apache Ant script. I also able send the message. I have configured the application in Eclipse 3.2, I have also put all the required jar files in the Eclipse build path, but I am unable to run the class ie Launcher.java. I am unable to figure it out.
      Could please help me in this regard. While running through Eclipse I getting the following Exception. I furnish below the exception.

      I hope that you will not dissappoint me in this regard.

      //**************************************** Below is the Exception **********************************************************
      log4j: Parsing for [root] with value=[WARN, LOGFILE].

      log4j: Level token is [WARN].

      log4j: Category root set to WARN

      log4j: Parsing appender named "LOGFILE".

      log4j: Parsing layout options for "LOGFILE".

      log4j: Setting property [dateFormat] to [ISO8601].

      log4j: Setting property [contextPrinting] to [true].

      log4j: End of parsing for "LOGFILE".

      log4j: Setting property [maxBackupIndex] to [3].

      log4j: Setting property [maxFileSize] to [10MB].

      log4j: Setting property [file] to [scout.log].

      log4j: setFile called: scout.log, true

      log4j: setFile ended

      log4j: Parsed "LOGFILE" options.

      log4j: Parsing for [org.apache.axis.enterprise] with value=[FATAL, CONSOLE].

      log4j: Level token is [FATAL].

      log4j: Category org.apache.axis.enterprise set to FATAL

      log4j: Parsing appender named "CONSOLE".

      log4j: Parsing layout options for "CONSOLE".

      log4j: Setting property [conversionPattern] to [- %m%n].

      log4j: End of parsing for "CONSOLE".

      log4j: Setting property [threshold] to [INFO].

      log4j: Parsed "CONSOLE" options.

      log4j: Handling log4j.additivity.org.apache.axis.enterprise=[null]

      log4j: Finished configuring.

      ************************ Thread Started Successfully ********************

      [Server@167d940]: [Thread[main,5,main]]: checkRunning(false) entered

      [Server@167d940]: [Thread[main,5,main]]: checkRunning(false) exited

      [Server@167d940]: Startup sequence initiated from main() method

      [Server@167d940]: Loaded properties from [D:\MyWorkarea\helloworld_embedded_reg_\server.properties]

      [Server@167d940]: Initiating startup sequence...

      [Server@167d940]: Server socket opened successfully in 15 ms.

      [Server@167d940]: Database [index=0, id=0, db=file:build/hsqldb, alias=jbossesb] opened sucessfully in 438 ms.

      [Server@167d940]: Startup sequence completed in 453 ms.

      [Server@167d940]: 2007-03-01 11:46:23.789 HSQLDB server 1.8.0 is online

      [Server@167d940]: To close normally, connect and execute SHUTDOWN SQL

      [Server@167d940]: From command line, use [Ctrl]+[C] to abort abruptly

      Dropping the message store schema if exists...

      Creating the message store schema...

      Dropping the registry schema if exists...

      creating the registry schema...

      inserting registry publishers...

      *************** Calling StandAloneBootStrapper ***************

      java.lang.reflect.InvocationTargetException

      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:65)

      at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:273)

      at org.apache.ws.scout.registry.RegistryImpl.findService(RegistryImpl.java:736)

      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findServices(BusinessQueryManagerImpl.java:638)

      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:441)

      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.registerEPR(JAXRRegistryImpl.java:173)

      at org.jboss.internal.soa.esb.listeners.DefaultListenerManager.register(DefaultListenerManager.java:701)

      at org.jboss.soa.esb.listeners.AbstractManagedListener.registerProcess(AbstractManagedListener.java:125)

      at org.jboss.soa.esb.listeners.message.MessageAwareListener.initializeRun(MessageAwareListener.java:98)

      at org.jboss.soa.esb.listeners.AbstractManagedListener.run(AbstractManagedListener.java:210)

      at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:61)

      ... 10 more

      Caused by: javax.xml.registry.RegistryException: faultCode=null, faultString=null, faultActor=null, errno=null, errCode=null, errText=null

      at org.apache.juddi.registry.local.AbstractService.handleRequest(AbstractService.java:270)

      at org.apache.juddi.registry.local.InquiryService.inquire(InquiryService.java:77)

      ... 15 more

      java.lang.reflect.InvocationTargetException

      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:65)

      at org.apache.ws.scout.registry.RegistryImpl.execute(RegistryImpl.java:273)

      at org.apache.ws.scout.registry.RegistryImpl.findService(RegistryImpl.java:736)

      at org.apache.ws.scout.registry.BusinessQueryManagerImpl.findServices(BusinessQueryManagerImpl.java:638)

      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.findService(JAXRRegistryImpl.java:441)

      at org.jboss.internal.soa.esb.services.registry.JAXRRegistryImpl.registerEPR(JAXRRegistryImpl.java:173)

      at org.jboss.internal.soa.esb.listeners.DefaultListenerManager.register(DefaultListenerManager.java:701)

      at org.jboss.soa.esb.listeners.AbstractManagedListener.registerProcess(AbstractManagedListener.java:125)

      at org.jboss.soa.esb.listeners.message.MessageAwareListener.initializeRun(MessageAwareListener.java:98)

      at org.jboss.soa.esb.listeners.AbstractManagedListener.run(AbstractManagedListener.java:210)

      at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.apache.ws.scout.transport.LocalTransport.send(LocalTransport.java:61)

      ... 10 more

      Caused by: javax.xml.registry.RegistryException: faultCode=null, faultString=null, faultActor=null, errno=null, errCode=null, errText=null

      at org.apache.juddi.registry.local.AbstractService.handleRequest(AbstractService.java:270)

      at org.apache.juddi.registry.local.InquiryService.inquire(InquiryService.java:77)

      ... 15 more



      --
      Piku Mishra
      Senior System Engineer,
      Bangalore .

        • 1. Re: Unable to run the Launcher.java through Eclipse3.2
          tfennelly

          Hi Piku.

          If you look at the classpath setup in all the quickstarts, you should see the inclusion of a folder that contains the jbossesb.xml and jbossesb-properties.xml files. My guess is that, for some reasson, eclipse is not adding this folder to the classpath. As an example, see the "exec-classpath" in any of the "transform_*" quickstarts (base-build.xml).

          Tom.