7 Replies Latest reply: Jun 5, 2012 3:11 PM by Muhammadirfan Razzak (MIR) RSS

    JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class

    kalirathinam Pachiappan Newbie

      Hi,

       

      I have just started to exploring jboss esb , I have downloaded jboss soa 5.x platform on Windows 7 machine with Developer studio 4.1 and started with samples provided by jboss quickstarts.

      When I deploy helloworld on App server, it gives this error.

      Caused by: java.lang.RuntimeException: Failed to find action class 'org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction'.

       

      I see two runtime 1. JBoss ESB runtime ( which has the jbossesb-rosetta.jar" ) and 2. Jboss EAP 5.x runtime ( it does not have jbossesb-rosetta.jar")

      I have also added in the external jar file as well, but no luck.. Can you guys let me know I am missing to run the sample?

       

      appriciated your help..

       

      Thanks

      Kali

        • 1. Re: JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class
          Len DiMaggio Apprentice

          Hi! Tell me - how are you deploying the quickstart? Are you deploying it in Developer studio or from a command window?

           

          -- Len

          • 2. Re: JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class
            kalirathinam Pachiappan Newbie

            Hi Len,

             

            i'm deploying it from developer studio..

            "

            just one more info: I get to see "Source not found - the jar has no source attachment" When I click on the "org.jboss.soa.esb.action.AbstracActionLifeCycle" class  under jbossesb-rosetta.jar

             

            thanks in advance for your help..

             

            -kali

            • 3. Re: JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class
              Len DiMaggio Apprentice

              Are you using the quickstarts distributed with JBoss ESB? Or, are you using the quickstarts that you install into Developer Studio with Help->Project Examples?

              • 4. Re: JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class
                kalirathinam Pachiappan Newbie

                I'm using quickstart distributed with JBoss SOA Platform 5.1 ( hellowworld esb).

                 

                regards

                kali

                • 5. Re: JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class
                  Len DiMaggio Apprentice

                  The directory structure is different in the quickstarts as distributed the SOA Platform and JBoss Developer Sutdio. If you want to deploy/run the quickstarts in JBoss Studio, you should install the quickstarts from Help->Project Examples.

                   

                  Try this and see what happens!  ;-)

                  • 6. Re: JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class
                    Muhammadirfan Razzak (MIR) Newbie

                    I am facing a similar issues when created a Custom Action "MyJMSListenerAction.java"

                     

                    15:22:47,078 INFO  [EsbDeployment] Starting ESB Deployment 'jboss-esb.xml'
                    15:22:47,110 ERROR [AbstractKernelController] Error installing to Start: name=jboss.esb.vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/helloworld/esbcontent/META-INF/jboss-esb.xml state=Create
                    java.lang.RuntimeException: java.lang.RuntimeException: Failed to find action class 'org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction'.
                    at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:185)
                    at org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment.start(EsbDeployment.java:231)
                    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:597)
                    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                    at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
                    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
                    at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                    at org.jboss.system.ServiceController.start(ServiceController.java:460)
                    at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                    at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:597)
                    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                    at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                    at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                    at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                    at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                    at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)
                    at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                    at org.jboss.system.ServiceController.start(ServiceController.java:460)
                    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                    at org.jboss.Main.boot(Main.java:221)
                    at org.jboss.Main$1.run(Main.java:556)
                    at java.lang.Thread.run(Thread.java:662)
                    Caused by: java.lang.RuntimeException: Failed to find action class 'org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction'.
                    at org.jboss.soa.esb.listeners.config.mappers.XMLBeansModel.getContractPublisher(XMLBeansModel.java:379)
                    at org.jboss.soa.esb.listeners.config.mappers.XMLBeansModel.getServicePublishers(XMLBeansModel.java:352)
                    at org.jboss.soa.esb.listeners.config.model.Model101SchemaParser$Model101Adapter.getServicePublishers(Model101SchemaParser.java:117)
                    at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:164)
                    ... 82 more
                    Caused by: java.lang.ClassNotFoundException: org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction
                    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
                    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
                    at java.lang.Class.forName0(Native Method)
                    at java.lang.Class.forName(Class.java:247)
                    at org.jboss.soa.esb.util.ClassUtil.forName(ClassUtil.java:93)
                    at org.jboss.soa.esb.listeners.config.mappers.XMLBeansModel.getContractPublisher(XMLBeansModel.java:377)
                    ... 85 more
                    15:22:47,110 INFO  [EsbDeployment] Destroying 'jboss-esb.xml'

                     

                    ....

                     

                    15:23:00,581 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                     

                    DEPLOYMENTS IN ERROR:

                      Deployment "jboss.esb.vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/helloworld/esbcontent/META-INF/jboss-esb.xml" is in error due to the following reason(s): java.lang.ClassNotFoundException: org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction

                     

                    Configuration:

                    - Windows 7

                    - Building and Deploying JBDS 4.1.2.GA

                    - JBoss 5.1.0.GA - Deployment in "Default"

                    - JBoss ESB 4.10.GA

                    - JDK 1.6.0_31-b05

                     

                    jboss-esb.xml

                    ============

                    <?xml version = "1.0" encoding = "UTF-8"?>
                    <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd" parameterReloadSecs="5">

                        <providers>
                              <jms-provider name="JBossMQ" connection-factory="ConnectionFactory">
                                  <jms-bus busid="quickstartGwChannel">
                                      <jms-message-filter
                                          dest-type="QUEUE"
                                          dest-name="queue/quickstart_helloworld_Request_gw"
                                       />
                                  </jms-bus>
                                  <jms-bus busid="quickstartEsbChannel">
                                      <jms-message-filter
                                          dest-type="QUEUE"
                                          dest-name="queue/quickstart_helloworld_Request_esb"
                                      />
                                  </jms-bus>

                              </jms-provider>
                          </providers>
                         
                          <services>
                            <service
                             category="FirstServiceESB"
                             name="SimpleListener"
                             description="Hello World">
                                <listeners>
                                    <jms-listener name="JMS-Gateway"
                                        busidref="quickstartGwChannel"
                                        is-gateway="true"
                                    />
                                    <jms-listener name="helloWorld"
                                                  busidref="quickstartEsbChannel"
                                    />
                                </listeners>
                                <actions mep="OneWay">
                                       <action name="action1"
                                        class="org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction"
                                        process="displayMessage"
                                        />     
                                        <action name="action2" class="org.jboss.soa.esb.actions.SystemPrintln">
                                          <property name="printfull" value="true"/>
                                        </action>
                                        <!-- The next action is for Continuous Integration testing -->
                                        <action name="testStore" class="org.jboss.soa.esb.actions.TestMessageStore"/>
                                </actions>
                            </service>
                          </services>
                        
                    </jbossesb>

                     

                    MyJMSListenerAction.java

                    ====================

                    /*
                    * JBoss, Home of Professional Open Source
                    * Copyright 2006, JBoss Inc., and others contributors as indicated
                    * by the @authors tag. All rights reserved.
                    * See the copyright.txt in the distribution for a
                    * full listing of individual contributors.
                    * This copyrighted material is made available to anyone wishing to use,
                    * modify, copy, or redistribute it subject to the terms and conditions
                    * of the GNU Lesser General Public License, v. 2.1.
                    * This program is distributed in the hope that it will be useful, but WITHOUT A
                    * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
                    * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
                    * You should have received a copy of the GNU Lesser General Public License,
                    * v.2.1 along with this distribution; if not, write to the Free Software
                    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
                    * MA  02110-1301, USA.
                    *
                    * (C) 2005-2006,
                    * @author JBoss Inc.
                    */
                    package org.jboss.soa.esb.samples.quickstart.helloworld;

                    import org.jboss.soa.esb.actions.AbstractActionLifecycle;
                    import org.jboss.soa.esb.helpers.ConfigTree;
                    import org.jboss.soa.esb.message.Message;

                    public class MyJMSListenerAction extends AbstractActionLifecycle
                    {
                       
                      protected ConfigTree _config;
                      
                      public MyJMSListenerAction(ConfigTree config) { _config = config; }

                     
                      public Message displayMessage(Message message) throws Exception{
                     
                        System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");       
                        System.out.println("Body: " + message.getBody().get()) ;
                        System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
                        return message;
                             
                    }

                     

                    }

                    • 7. Re: JBoss ESB 5.x - helloworld quickstart deployment issues - Failed to find action class
                      Muhammadirfan Razzak (MIR) Newbie

                      Fixed it.  Deployment configuration issue...    Have these two files in your .setting folder and deploy.  It worked for me...

                       

                      .settings Folder...

                       

                      File1:  org.eclipse.wst.common.component

                      <?xml version="1.0" encoding="UTF-8"?>

                      <project-modules id="moduleCoreId" project-version="1.5.0">

                      <wb-module deploy-name="Chapter3">   (Change to your deployment name)

                      <wb-resource deploy-path="/" source-path="/src"/>

                      <wb-resource deploy-path="/" source-path="/esbcontent"/>

                      <property name="java-output-path" value="/esbcontent/build/classes/"/>

                      </wb-module>

                      </project-modules>

                       

                      File2: org.eclipse.wst.common.project.facet.core

                      <?xml version="1.0" encoding="UTF-8"?>

                      <faceted-project>

                        <runtime name="jboss-5.1.0.GA Runtime"/>

                        <fixed facet="jst.java"/>

                        <fixed facet="jst.jboss.esb"/>

                        <installed facet="jst.jboss.esb" version="4.4"/>

                        <installed facet="jst.java" version="6.0"/>

                      </faceted-project>