Tag Archives: Fuse ESB

Bug in Fuse ESB 4.4.1

It causes the org.apache.servicemix.nmr.api.ServiceMixException: Unable to register service servicemix-wsn2005 with properties {NAME=servicemix-wsn2005, objectClass=[Ljava.lang.String;@694d91, service.id=454, TYPE=service-engine} message to be issued on startup.

http://fusesource.com/issues/browse/ESB-1593

Advertisements

Configuring Routes with Property Files in Fuse ESB 4.4.1

sample.cfg

key=value

beans.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:camel="http://camel.apache.org/schema/spring" xmlns:context="http://www.springframework.org/schema/context" xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">
  <osgix:cm-properties id="config" persistent-id="sample" />
  <context:property-placeholder properties-ref="config" />
  <bean id="routeBuilder" class="br.eti.fernandoribeiro.sample.SampleRouteBuilder">
    <property name="property" value="${key}" />
  </bean>
  <camel:camelContext>
    <camel:routeBuilder ref="routeBuilder" />
  </camel:camelContext>
</beans>

Issue with Fuse ESB 4.1.0.2

The camel-freemarker feature is missing.

http://fusesource.com/forums/thread.jspa?threadID=2372

The workaround is adding the component manually to the \system\org\apache\servicemix\camel\org.apache.servicemix.camel.features\4.1.0.2-fuse\org.apache.servicemix.camel.features.xml file:

<feature name="camel-freemarker" version="1.6.1.0-fuse">
  <feature version="1.6.1.0-fuse">camel-spring</feature>
  <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker/2.3.15_2-fuse</bundle>
  <bundle>mvn:org.apache.camel/camel-freemarker/1.6.1.0-fuse</bundle>
</feature>

Issue with Fuse ESB 4.1.0.2

The camel-restlet feature is mis-packaged as a JAR.

http://fusesource.com/forums/thread.jspa?threadID=2370

You can workaround by building it with an alternate POM:

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-parent</artifactId>
    <version>1.6.1.0-fuse</version>
  </parent>
  <artifactId>camel-restlet</artifactId>
  <packaging>bundle</packaging>
  <name>Camel :: Restlet</name>
  <description>Camel REST (Restlet based) Component</description>
  <properties>
    <camel.osgi.export.pkg>org.apache.camel.component.restlet.*</camel.osgi.export.pkg>
  </properties>
  <repositories>
    <repository>
      <id>maven-restlet</id>
      <name>Public online Restlet repository</name>
      <url>http://maven.restlet.org</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.restlet</groupId>
      <artifactId>org.restlet</artifactId>
      <version>1.1.1</version>
    </dependency>
    <!-- test artifacts -->
    <dependency>
      <groupId>com.noelios.restlet</groupId>
      <artifactId>com.noelios.restlet</artifactId>
      <version>1.1.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-spring</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-spring</artifactId>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>3.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

Issue with Fuse ESB 4.1.0.2

The camel-restlet feature is missing.

http://fusesource.com/forums/thread.jspa?threadID=2369

The workaround is adding the component manually to the \system\org\apache\servicemix\camel\org.apache.servicemix.camel.features\4.1.0.2-fuse\org.apache.servicemix.camel.features.xml file:

<feature name="camel-restlet" version="1.6.1.0-fuse">
  <feature version="1.6.1.0-fuse">camel-core</feature>
  <bundle>mvn:org.apache.camel/camel-restlet/1.6.1.0-fuse</bundle>
  <bundle>mvn:http://maven.restlet.org!org.restlet/org.restlet/1.1.1</bundle>
  <bundle>mvn:http://maven.restlet.org!com.noelios.restlet/com.noelios.restlet/1.1.1</bundle>
  <feature version="1.6.1.0-fuse">camel-http</feature>
</feature>

Issue with Fuse ESB 4.2

If you get the javax.xml.bind.JAXBException: Unable to create context - with linked exception: java.lang.NoSuchMethodException: com.sun.xml.bind.v2.ContextFactory.createContext(java.lang.String, java.lang.ClassLoader) message, you are dealing with FELIX-2675 (vote for it!) and ESB-1117 (vote for it!), already fixed as SMX4-580 in Apache ServiceMix.

You can work around it deploying from Maven, not files.