java.lang.ClassNotFoundException: com.xxx.ProcesssConnectorWorkaround

MuleSoft JIRA | Scott Clasen | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Using mule/spring based configuration, I am attempting to workaround MULE-3241 by subclassing ProcessConnector. I placed the jar with this connector in $MULE_HOME/lib/user When attempting to use the <custom-connector> tag to configure the connector... <custom-connector name="jbpmConnector" class="com.xxx.ProcesssConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </custom-connector> I get RROR 2008-07-15 13:55:07,379 [WrapperListener_start_runner] org.mule.config.spring.parsers.generic.MuleOrphanDefinitionParser: could not load class: com.xxx.ProcesssConnectorWorkaround java.lang.ClassNotFoundException: com.xxx.ProcesssConnectorWorkaround at org.mule.util.ClassUtils.loadClass(ClassUtils.java:271) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getBeanClassFromAttribute(AbstractMuleBeanDefinitionParser.java:356) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getClassInternal(AbstractMuleBeanDefinitionParser.java:318) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:253) If I configure a spring bean that loads the connector like so... <spring:bean id="workaround" class="com.xxx.ProcessConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </spring:bean> The class is loaded properly, but I get the following since the connector doesnt seem to participate in the proper lifecycle using this configuration method... .ProcessConnectorWorkaround: Registering listener: fromBPMS on endpointUri: bpm://* ERROR 2008-07-15 13:58:58,902 [WrapperListener_start_runner] org.mule.MuleServer: ******************************************************************************** Message : Failed to register listener fromBPMS on endpoint bpm://* Type : org.mule.api.model.ModelException Code : MULE_ERROR-101047 JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html ******************************************************************************** Exception stack is: 1. This connector has not yet been initialised: workaround (java.lang.IllegalStateException) org.mule.transport.AbstractConnector:2040 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html) 2. Failed to register listener fromBPMS on endpoint bpm://* (org.mule.api.model.ModelException) org.mule.service.AbstractService:616 (http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html) ******************************************************************************** Root Exception stack trace: java.lang.IllegalStateException: This connector has not yet been initialised: workaround at org.mule.transport.AbstractConnector.getServiceDescriptor(AbstractConnector.java:2040)

    MuleSoft JIRA | 9 years ago | Scott Clasen
    java.lang.ClassNotFoundException: com.xxx.ProcesssConnectorWorkaround
  2. 0

    Using mule/spring based configuration, I am attempting to workaround MULE-3241 by subclassing ProcessConnector. I placed the jar with this connector in $MULE_HOME/lib/user When attempting to use the <custom-connector> tag to configure the connector... <custom-connector name="jbpmConnector" class="com.xxx.ProcesssConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </custom-connector> I get RROR 2008-07-15 13:55:07,379 [WrapperListener_start_runner] org.mule.config.spring.parsers.generic.MuleOrphanDefinitionParser: could not load class: com.xxx.ProcesssConnectorWorkaround java.lang.ClassNotFoundException: com.xxx.ProcesssConnectorWorkaround at org.mule.util.ClassUtils.loadClass(ClassUtils.java:271) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getBeanClassFromAttribute(AbstractMuleBeanDefinitionParser.java:356) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getClassInternal(AbstractMuleBeanDefinitionParser.java:318) at org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:253) If I configure a spring bean that loads the connector like so... <spring:bean id="workaround" class="com.xxx.ProcessConnectorWorkaround"> <spring:property name="bpms" ref="jbpm"/> </spring:bean> The class is loaded properly, but I get the following since the connector doesnt seem to participate in the proper lifecycle using this configuration method... .ProcessConnectorWorkaround: Registering listener: fromBPMS on endpointUri: bpm://* ERROR 2008-07-15 13:58:58,902 [WrapperListener_start_runner] org.mule.MuleServer: ******************************************************************************** Message : Failed to register listener fromBPMS on endpoint bpm://* Type : org.mule.api.model.ModelException Code : MULE_ERROR-101047 JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html ******************************************************************************** Exception stack is: 1. This connector has not yet been initialised: workaround (java.lang.IllegalStateException) org.mule.transport.AbstractConnector:2040 (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html) 2. Failed to register listener fromBPMS on endpoint bpm://* (org.mule.api.model.ModelException) org.mule.service.AbstractService:616 (http://mule.mulesource.org/docs/apidocs/org/mule/api/model/ModelException.html) ******************************************************************************** Root Exception stack trace: java.lang.IllegalStateException: This connector has not yet been initialised: workaround at org.mule.transport.AbstractConnector.getServiceDescriptor(AbstractConnector.java:2040)

    MuleSoft JIRA | 9 years ago | Scott Clasen
    java.lang.ClassNotFoundException: com.xxx.ProcesssConnectorWorkaround
  3. 0

    Mule Custom Transformer: No class for element custom-transformer

    Stack Overflow | 3 years ago | user2583109
    java.lang.ClassNotFoundException: myPackage.MyClass
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [mule-user] EJB Context Questions

    Google Groups | 10 years ago | Tom Purcell
    java.lang.ClassNotFoundException: ejb.EmployeeManagerSessionBeanRemoteHome

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      com.xxx.ProcesssConnectorWorkaround

      at org.mule.util.ClassUtils.loadClass()
    2. Mule Core
      ClassUtils.loadClass
      1. org.mule.util.ClassUtils.loadClass(ClassUtils.java:271)
      1 frame
    3. Spring Config
      AbstractMuleBeanDefinitionParser.parseInternal
      1. org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getBeanClassFromAttribute(AbstractMuleBeanDefinitionParser.java:356)
      2. org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.getClassInternal(AbstractMuleBeanDefinitionParser.java:318)
      3. org.mule.config.spring.parsers.AbstractMuleBeanDefinitionParser.parseInternal(AbstractMuleBeanDefinitionParser.java:253)
      3 frames