Staring servicemix and getting this error :

ERROR - GeronimoLog.error(102) | failed to process packet:
java.net.SocketExcept
ion: socket closed
17:44:42,140 ERROR [MulticastDiscoveryAgent] failed to process packet:
java.net.
SocketException: socket closed
Caught: org.springframework.beans.factory.BeanCreationException: Error
creating
bean with name 'jbi' defined in file
[C:\servicemix\revolution\servicemix.xml]:
Initialization of bean failed; nested exception is javax.jbi.JBIException:
Error
 calling init
org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'jbi' defined in file [C:\servicemix\revolution\servicemix.xml]:
Initiali
zation of bean failed; nested exception is javax.jbi.JBIException: Error
calling
 init
javax.jbi.JBIException: Error calling init
        at
org.apache.servicemix.common.BaseLifeCycle.init(BaseLifeCycle.java:10
8)
        at
org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(Component
MBeanImpl.java:192)
        at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JB
IContainer.java:995)
        at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JB
IContainer.java:957)
        at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JB
IContainer.java:916)
        at
org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JB
IContainer.java:864)
        at
org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertie
sSet(SpringJBIContainer.java:67)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:363)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:226)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:147)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java:275)
        at
org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:320)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init
>(FileSystemXmlApplicationContext.java:149)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.<init
>(FileSystemXmlApplicationContext.java:48)
        at org.apache.servicemix.Main.main(Main.java:74)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

And my servicemix.xml file is :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";
       xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";
       xmlns:http="http://servicemix.apache.org/http/1.0";
       xmlns:my="http://servicemix.apache.org/demo/";>
    
  <!-- the JBI container -->
  <sm:container id="jbi"
                useMBeanServer="true"
                createMBeanServer="true"
                dumpStats="true"
            rmiPort="2222"
                statsInterval="10"
                transactionManager="#transactionManager">
                
        <sm:activationSpecs>
        
        <!-- Subscribe to a JMS destination -->
                <sm:activationSpec componentName="inputReceiver"        
                                                   service="my:inputReceiver"
                                                   
destinationService="my:outputSender">
                  <sm:component>
                    <bean
class="org.apache.servicemix.components.jms.JmsInUsingJCABinding">
        <property name="jcaContainer" ref="jencks"/>
        <property name="activationSpec">
          <bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
            <property name="destination"
value="demo.org.servicemix.source"/>
            <property name="destinationType" value="javax.jms.Topic"/>
          </bean>
        </property>
                    </bean>
                  </sm:component>
                </sm:activationSpec>
                
      <!-- Publish the result to a JMS destination -->
                <sm:activationSpec componentName="outputSender"         
                                                   service="my:outputSender">
                  <sm:component>
                    <bean
class="org.apache.servicemix.components.jms.JmsSenderComponent">
        <property name="template">
          <bean class="org.springframework.jms.core.JmsTemplate">
            <property name="connectionFactory">
              <ref local="jmsFactory"/>
            </property>
            <property name="defaultDestinationName"
value="demo.org.servicemix.result"/>
            <property name="pubSubDomain" value="true"/>
          </bean>
        </property>
                    </bean>
                  </sm:component>
                </sm:activationSpec>

     
      <sm:activationSpec>
       <sm:component>
         <jsr181:component>
           <jsr181:endpoints>
             <jsr181:endpoint
pojoClass="com.rhg.infrastructure.webservices.HelloService"
annotations="none" service="demo:Hello" endpoint="helloService"/>
           </jsr181:endpoints>
         </jsr181:component>
       </sm:component>
       </sm:activationSpec>

      
       <sm:activationSpec>
       <sm:component>
        <http:component>
        <http:endpoints>
            <http:endpoint service="demo:Hello"
                                         endpoint="helloService"
                       role="consumer" 
                     defaultOperation="pingHello"
                       locationURI="http://localhost:8194/Service/";
                       defaultMep="http://www.w3.org/2004/08/wsdl/in-out"; 
                 soap="true" />
         </http:endpoints>
         </http:component>
         
        </sm:component>
       </sm:activationSpec> 


                
        </sm:activationSpecs>
  </sm:container>


  <!-- the JCA container -->
  <bean id="jencks" class="org.jencks.JCAContainer" singleton="true">

    <!-- lets use the default configuration of work manager and transaction
manager-->
    <property name="bootstrapContext">
      <bean class="org.jencks.factory.BootstrapContextFactoryBean">
        <property name="threadPoolSize" value="25"/>
      </bean>
    </property>

    <!-- the JCA Resource Adapter -->
    <property name="resourceAdapter">
      <bean id="activeMQResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter" singleton="true">
        <property name="serverUrl" value="tcp://localhost:61616"/>
      </bean>
    </property>
  </bean>

  <!-- message broker -->
  <bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">
     <property name="config" value="classpath:activemq.xml"/>
   </bean>

        <bean id="transactionContextManager"
class="org.jencks.factory.TransactionContextManagerFactoryBean"/>
        <bean id="transactionManager"
class="org.jencks.factory.GeronimoTransactionManagerFactoryBean" />

  <bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory">
    <property name="connectionFactory">
      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL">
          <value>tcp://localhost:61616</value>
        </property>
      </bean>
    </property>
  </bean>

</beans>

--
View this message in context: 
http://www.nabble.com/starting-servicemix-with-http-endpoint-t1570609.html#a4273426
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to