5 Replies Latest reply on Aug 3, 2009 3:56 AM by Daniel Bevenius

    JBoss ESB with JBoss Tools

    Anushree Khandalkar Newbie

      Hi,
      I have been working with Open ESB for quite some time and have just started exploring JBoss ESB.
      I downloaded JBoss tools plugins and tried out a simple project: JBossESB Service capable of processing JMS/ESB messages

      I am getting the following exception while server startup:

      ERROR [MainDeployer] Could not create deployment: file:/home/anushree/workspace5/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_ESB_4.4_Server/deploy/ESBJMSApp.esb
      org.jboss.deployment.DeploymentException: Error during create of ESB Module: file:/home/anushree/workspace5/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_ESB_4.4_Server/deploy/ESBJMSApp.esb; - nested throwable: (javax.management.MalformedObjectNameException: Invalid character '\n' in key part of property)
      at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:411)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      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: javax.management.MalformedObjectNameException: Invalid character '\n' in key part of property
      at javax.management.ObjectName.construct(ObjectName.java:535)
      at javax.management.ObjectName.(ObjectName.java:1403)
      at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:340)
      ... 21 more


      but when i run the HelloWorld sample that comes along with jbossesb in console, everything works fine.
      please help me identify the problem..

        • 1. Re: JBoss ESB with JBoss Tools
          Daniel Bevenius Master

          Hi,

          I downloaded JBoss tools plugins and tried out a simple project: JBossESB Service capable of processing JMS/ESB messages

          Could you tell us what version of JBoss Tools you downloaded. I just downloaded the latest developers update and I can't see the example that you mention. I also tried an old version but did not find it in there either :(

          Is there a deployment.xml in the example that you have (esbcontent/META-INF/deployment.xml). If so could you post it.

          Thanks,

          /Daniel

          • 2. Re: JBoss ESB with JBoss Tools
            Anushree Khandalkar Newbie

            Hi i have downloaded JBoss Tools 3.0.1 GA Stable Release.
            I am using it with Eclipse 3.4.2 and JBossESB 4.5(standalone)
            And i am trying out the example from a book named "JBoss Tools 3 Developer's Guide"
            by Anghel Leonard.
            In brief abt what the proj does:
            the service contains two ESB Listeners (one ESB Aware and the other one, ESB Unaware), two ESB Buses based on two JMS Queues, and two ESB Actions (a Pipeline Action with a pre-defined Action and with a user-defined Action). Also a Service Registry based on JAXR API using Scout as its implementation, jUDDI as the registry, and RMI as the transport protocol.

            Thanks for your help...

            • 3. Re: JBoss ESB with JBoss Tools
              Daniel Bevenius Master

               

              And i am trying out the example from a book named "JBoss Tools 3 Developer's Guide" by Anghel Leonard.

              I'm not familar with that book's example. Could you send it to me and I'll take a look at it.

              Did you look at the deployment.xml file by the way?

              Regards,

              /Daniel

              • 4. Re: JBoss ESB with JBoss Tools
                Anushree Khandalkar Newbie

                Hi
                I think i have started off on a wrong foot with JBoss ESB.
                I have read the Getting Started guide and i am currently reading the Programmer's Guide(after discarding the above mentioned book)
                Is it necessary to use JBoss Tools??
                Please advice me as to how i should proceed in exploring JBoss ESB.. I have previously worked with OpenESB and it had extensive Netbeans tooling...


                Thanks
                Anushree

                • 5. Re: JBoss ESB with JBoss Tools
                  Daniel Bevenius Master

                  Hi,

                  Is it necessary to use JBoss Tools??

                  No, it is not necessary to use JBoss Tools. All the quickstarts use Ant so you can get by with just using a command line tool.

                  But JBoss Tools does have some nice example projects that can be created using a wizards.
                  In Eclipse you can choose :
                  File -> New -> Other -> JBoss Tools -> Project Examples.

                  There you can find a list of example ESB projects that will be runnable from JBoss Tools.

                  Regards,

                  /Daniel