Dears, Finally , I was able to deploy Camel/cxf/spring/axis1.4 project inside OSGi container as bundle using fliex plugin to generate the bundle , the bundle is started and it is up and running and is tested as well.
The whole integration project has been deployed on ServiceMix latest Fuse release after struggling with javax.xml.namespace.QName (Axis and SMX internal libs) , javax.xml.namespace.QName coming from axis libs did the whole conflict and link error . I need to know mainly what is the advantages between running your routes using mvn camel:run and deploying it on OSGi Container on Fuse ServiceMix , Is it only admin and monitoring and management of it ? what is mainly advantages and what is disadvantages ? I really appreciate quick feedback . Thanks, Omar Atia From: Omar Atia Sent: Saturday, November 12, 2011 12:23 PM To: Omar Atia; '[email protected]'; [email protected]; '[email protected]' Subject: RE: Error while deploying Camel routers on ServiceMix... Dears, Adding to below e-mail when ignoring some packages , I had the following : karaf@root> Exception in thread "SpringOsgiExtenderThread-8" org.springframework .beans.factory.BeanCreationException: Error creating bean with name 'INunified': Initialization of bean failed; nested exception is java.lang.LinkageError: load er constraint violation in interface itable initialization: when resolving metho d "org.apache.cxf.wsdl11.SchemaSerializer.marshall(Ljava/lang/Class;Ljavax/xml/n amespace/QName;Ljavax/wsdl/extensions/ExtensibilityElement;Ljava/io/PrintWriter; Ljavax/wsdl/Definition;Ljavax/wsdl/extensions/ExtensionRegistry;)V" the class lo ader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) of the current class, org/apache/cxf/wsdl11/SchemaSerializer, and the class load er (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) fo r interface javax/wsdl/extensions/ExtensionSerializer have different Class objec ts for the type javax/xml/namespace/QName used in the signature the INUnified bean is <cxf:cxfEndpoint address="http://127.0.0.1:8899/cxf/services" id="INunified" serviceClass="com.nsn.ossbss.charge_once.wsdl.entity.tis.wsdl._1.TisInterface" wsdlURL="etc/NSN.wsdl"> <cxf:inInterceptors> <ref bean="logginginInterceptor"/> </cxf:inInterceptors > <cxf:outInterceptors> <ref bean="loggingOutInterceptor"/> <ref bean="wss4jOutInterceptor"/> </cxf:outInterceptors> <!-- address="https://10.100.184.193:8080/axis/services/ScfPccSoapServiceEndpointPort"--> </cxf:cxfEndpoint> Headers for the bundle : Tool = Bnd-0.0.357 Built-By = omar Embed-Dependency = *;scope=compile|runtime;inline=false Implementation-Version = 2.8.0 Build-Jdk = 1.6.0_21 Implementation-Title = Apache Camel Created-By = Apache Maven Bundle Plugin Bundle-Vendor = The Apache Software Foundation Bundle-Name = Fuse-router Bundle-DocURL = http://www.apache.org/ Bundle-Description = An Implmentation of pcrf Huawei N.E integration Bundle-SymbolicName = Fuse-router Bundle-Version = 2.8.0 Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt Bundle-ManifestVersion = 2 Bundle-ClassPath = .,cxf-rt-frontend-jaxws-2.4.1.jar,log4j-1.2.16.jar,camel-mina -2.8.0.jar,camel-core-2.8.0.jar,bsh-1.3.0.jar,cxf-common-utilities-2.1.4.jar,axi s-jaxrpc-1.4.jar,camel-velocity-2.8.0.jar,org.apache.servicemix.bundles.cxf-2.0. 5-4.0-m1.jar,commons-httpclient-3.1.jar,cxf-rt-transports-http-jetty-2.4.1.jar,c amel-cxf-2.8.0.jar,camel-mail-2.8.0.jar,axis-1.4.jar,slf4j-log4j12-1.6.1.jar,min a-core-1.1.7.jar,camel-jaxb-2.4.0.jar,camel-spring-2.8.0.jar,hessian-3.1.5.jar,c amel-http-2.8.0.jar,cxf-rt-core-2.4.1.jar,jaxrpc-api-1.1.jar,cxf-rt-ws-security- 2.4.1.jar,cxf-rt-transports-http-2.4.1.jar Ignore-Package = com.sun.codemodel, com.sun.jdmk.comm, com.sun.jimi.core, org.springframework.web.servlet, com.sun.tools.xjc, javanet.staxutils, org.codehaus.jra, org.apache.ws.commons.schema.extensions, org.apache.commons.codec.binary, sun.security.provider, org.apache.commons.net.pop3, com.sun.xml.bind.v2.runtime, com.sun.net.ssl.internal.ssl, junit.framework, org.springframework.web.servlet.handler, org.apache.commons.codec.net, org.apache.bsf, org.apache.commons.discovery.resource.names, com.ibm.uvm.tools, org.apache.neethi, org.springframework.web.context, org.apache.ws.commons.schema.constants, org.junit, org.osgi.service.event, org.apache.commons.discovery.resource.classes, org.apache.commons.lang.builder, com.sun.codemodel.writer, org.springframework.web.context.support, org.springframework.web.context.support, com.sun.net.ssl, javax.jmdns, org.apache.commons.logging, org.apache.commons.codec, org.apache.commons.collections, com.sun.tools.xjc.model, org.apache.commons.net.smtp, org.exolab.castor.xml, org.apache.commons.lang, com.sun.tools.xjc.outline, com.sun.tools.xjc.util, com.sun.xml.xsom, sun.awt.image.codec, org.apache.commons.discovery.resource, org.apache.ws.commons.schema, org.apache.bsf.util, com.sun.xml.bind.v2.util, org.apache.commons.discovery.tools, org.apache.ws.commons.schema.resolver, com.sun.xml.fastinfoset.stax, com.sun.tools.xjc.api.impl.s2j, com.sun.tools.xjc.api, org.apache.commons.discovery, org.springframework.web.servlet.mvc, org.apache.neethi.builders, com.sun.xml.bind.marshaller, com.sun.xml.bind.v2, org.apache.ws.commons.schema.utils Import-Package = INUnified.NSN, RIM, RIM.BlackBerry, camel.pcrf, com.ctc.wstx.sax;version="[4.0,5)", com.ibm.wsdl.extensions.schema;version="[1.6,2)", com.ibm.wsdl.extensions.soap;version="[1.6,2)", com.nsn.ossbss.charge_once.wsdl.entity.tis.wsdl._1, com.nsn.ossbss.charge_once.wsdl.entity.tis.xsd._1, generated.RIM, generated.pcrf, javax.activation, javax.annotation;version="[1.0,2)", javax.crypto, javax.crypto.spec, javax.imageio, javax.imageio.metadata, javax.imageio.stream, javax.jms, javax.jws, javax.jws.soap, javax.mail;version="[1.4,2)", javax.mail.internet;version="[1.4,2)", javax.mail.search;version="[1.4,2)", javax.mail.util;version="[1.4,2)", javax.management, javax.management.modelmbean, javax.management.remote, javax.naming, javax.naming.spi, javax.net, javax.net, javax.net.ssl, javax.rmi, javax.security.auth, javax.security.auth.callback, javax.security.auth.login, javax.security.auth.x500, javax.servlet;version="[2.6,3)", javax.servlet.http;version="[2.6,3)", javax.swing, javax.swing.border, javax.swing.event, javax.swing.plaf.basic, javax.swing.table, javax.swing.text, javax.swing.tree, javax.ws.rs;version="[1.1,2)", javax.ws.rs.core;version="[1.1,2)", javax.wsdl;version="[1.2,2)", javax.wsdl.extensions;version="[1.2,2)", javax.wsdl.extensions.http;version="[1.2,2)", javax.wsdl.extensions.mime;version="[1.2,2)", javax.wsdl.extensions.schema;version="[1.2,2)", javax.wsdl.extensions.soap;version="[1.2,2)", javax.wsdl.extensions.soap12;version="[1.2,2)", javax.wsdl.factory;version="[1.2,2)", javax.wsdl.xml;version="[1.2,2)", javax.xml.bind;version="[2.0,3)", javax.xml.bind.annotation;version="[2.0,3)", javax.xml.bind.annotation.adapters;version="[2.0,3)", javax.xml.bind.attachment;version="[2.0,3)", javax.xml.bind.util;version="[2.0,3)", javax.xml.datatype, javax.xml.parsers, javax.xml.soap;version="[1.3,2)", javax.xml.stream;version="[1.0,2)", javax.xml.stream.events;version="[1.0,2)", javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stream, javax.xml.validation, javax.xml.ws;version="[2.0,3)", javax.xml.ws.handler;version="[2.0,3)", javax.xml.ws.handler.soap;version="[2.0,3)", javax.xml.ws.http;version="[2.0,3)", javax.xml.ws.soap;version="[2.0,3)", javax.xml.ws.spi;version="[2.0,3)", javax.xml.ws.spi.http, javax.xml.ws.wsaddressing, javax.xml.xpath, org.apache.aries.blueprint;version="[0.3,1)", org.apache.aries.blueprint.container;version="[0.3,1)", org.apache.aries.blueprint.di;version="[0.3,1)", org.apache.aries.blueprint.mutable;version="[0.3,1)", org.apache.aries.blueprint.utils;version="[0.3,1)", org.apache.camel.blueprint;version="[2.8,3)", org.apache.cxf.annotations, org.apache.cxf.common, org.apache.cxf.common.security, org.apache.cxf.continuations, org.apache.cxf.continuations, org.apache.cxf.frontend.blueprint, org.apache.cxf.jaxrs, org.apache.cxf.jaxrs.client, org.apache.cxf.jaxrs.impl, org.apache.cxf.jaxrs.model, org.apache.cxf.jaxrs.utils, org.apache.cxf.staxutils.transform, org.apache.cxf.wsdl.http, org.apache.tools.ant, org.apache.tools.ant.types, org.apache.velocity, org.apache.velocity.app, org.apache.velocity.context, org.apache.velocity.exception, org.apache.velocity.runtime, org.apache.velocity.runtime.log, org.apache.velocity.runtime.resource.loader, org.apache.ws.security;version="[1.6,2)", org.apache.ws.security.action;version="[1.6,2)", org.apache.ws.security.components.crypto;version="[1.6,2)", org.apache.ws.security.conversation;version="[1.6,2)", org.apache.ws.security.conversation.dkalgo;version="[1.6,2)", org.apache.ws.security.handler;version="[1.6,2)", org.apache.ws.security.message;version="[1.6,2)", org.apache.ws.security.message.token;version="[1.6,2)", org.apache.ws.security.processor;version="[1.6,2)", org.apache.ws.security.saml;version="[1.6,2)", org.apache.ws.security.saml.ext;version="[1.6,2)", org.apache.ws.security.util;version="[1.6,2)", org.apache.ws.security.validate;version="[1.6,2)", org.apache.xml.resolver;version="[1.2,2)", org.apache.xml.resolver.helpers;version="[1.2,2)", org.apache.xml.resolver.tools;version="[1.2,2)", org.apache.xml.security.keys.content, org.apache.xml.security.keys.content.keyvalues, org.apache.xmlbeans, org.eclipse.jetty.continuation;version="[7.4,8)", org.eclipse.jetty.http;version="[7.4,8)", org.eclipse.jetty.http.ssl;version="[7.4,8)", org.eclipse.jetty.security;version="[7.4,8)", org.eclipse.jetty.server;version="[7.4,8)", org.eclipse.jetty.server.handler;version="[7.4,8)", org.eclipse.jetty.server.nio;version="[7.4,8)", org.eclipse.jetty.server.session;version="[7.4,8)", org.eclipse.jetty.server.ssl;version="[7.4,8)", org.eclipse.jetty.util.component;version="[7.4,8)", org.eclipse.jetty.util.thread;version="[7.4,8)", org.fusesource.commons.management;version="[1.0,2)", org.fusesource.commons.management.basic;version="[1.0,2)", org.ietf.jgss, org.jdom, org.jdom.input, org.jdom.output, org.jdom.xpath, org.mortbay.jetty, org.mortbay.jetty.handler, org.mortbay.jetty.nio, org.mortbay.jetty.security, org.mortbay.jetty.servlet, org.mortbay.thread, org.mortbay.thread, org.mozilla.javascript, org.objectweb.asm, org.omg.CORBA, org.omg.CosNaming, org.opensaml.common, org.opensaml.saml1.core, org.opensaml.saml2.core, org.osgi.framework, org.osgi.service.blueprint.container;version="[1.0,2)", org.osgi.service.blueprint.reflect;version="[1.0,2)", org.osgi.util.tracker, org.slf4j;version="[1.6,2)", org.slf4j.helpers;version="[1.6,2)", org.slf4j.spi;version="[1.6,2)", org.springframework.aop;version="[3.0,4)", org.springframework.aop.framework;version="[3.0,4)", org.springframework.aop.support;version="[3.0,4)", org.springframework.beans;version="[3.0,4)", org.springframework.beans.factory;version="[3.0,4)", org.springframework.beans.factory.config;version="[3.0,4)", org.springframework.beans.factory.parsing;version="[3.0,4)", org.springframework.beans.factory.support;version="[3.0,4)", org.springframework.beans.factory.wiring;version="[3.0,4)", org.springframework.beans.factory.xml;version="[3.0,4)", org.springframework.context;version="[3.0,4)", org.springframework.context.event;version="[3.0,4)", org.springframework.context.expression;version="[3.0,4)", org.springframework.context.support;version="[3.0,4)", org.springframework.core;version="[3.0,4)", org.springframework.core.io;version="[3.0,4)", org.springframework.core.io.support;version="[3.0,4)", org.springframework.expression;version="[3.0,4)", org.springframework.expression.common;version="[3.0,4)", org.springframework.expression.spel.standard;version="[3.0,4)", org.springframework.expression.spel.support;version="[3.0,4)", org.springframework.jmx.export.annotation;version="[3.0,4)", org.springframework.jmx.export.assembler;version="[3.0,4)", org.springframework.jmx.export.metadata;version="[3.0,4)", org.springframework.mail.javamail;version="[3.0,4)", org.springframework.osgi.context, org.springframework.remoting.support;version="[3.0,4)", org.springframework.transaction;version="[3.0,4)", org.springframework.transaction.support;version="[3.0,4)", org.springframework.util;version="[3.0,4)", org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.ls, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, pcrf.soap, rm.type Export-Package = camel.pcrf;uses:="generated.pcrf,rm.type,pcrf.soap", INUnified.NSN; uses:="com.nsn.ossbss.charge_once.wsdl.entity.tis.wsdl._1, com.nsn.ossbss.charge_once.wsdl.entity.tis.xsd._1, javax.xml.ws, javax.security.auth.callback, org.apache.ws.security", RIM;uses:=org.xml.sax, RIM.BlackBerry;uses:="RIM,generated.RIM", generated.pcrf;uses:="javax.xml.bind.annotation,javax.xml.bind", generated.RIM;uses:="javax.xml.bind.annotation,javax.xml.bind", com.nsn.ossbss.charge_once.wsdl.entity.tis.wsdl._1; uses:="com.nsn.ossbss.charge_once.wsdl.entity.tis.xsd._1, javax.xml.ws, javax.jws.soap, javax.jws, javax.xml.bind.annotation", com.nsn.ossbss.charge_once.wsdl.entity.tis.xsd._1; uses:="javax.xml.bind.annotation, javax.xml.bind.annotation.adapters, javax.xml.datatype", pcrf.soap; uses:="javax.jws.soap, javax.jws, javax.xml.bind.annotation, rm.type, javax.xml.ws", rm.type;uses:=javax.xml.bind.annotation I'm afraid that there is conflicts between Jar files loaded ... Please let me know ... Thanks, Omar Atia Can you please tell me what is wrong ? Thanks, Omar Atia From: Omar Atia Sent: Saturday, November 12, 2011 8:44 AM To: '[email protected]' Subject: Error while deploying Camel routers on ServiceMix... Dears,,, I just have question , why servicemix is asking for more dependencies than the one in the local repository which I can use mvn camel:run and it runs successfully . 2nd I need to know how to add local repository successfully under etc/org.ops4j.pax.url.mvn.cfg , how to write the paths for settings.xml and local rep on windows machine on the cfg file. I'm using JDK 1.6 , I have removed the code that call the below package. C:\pcrf\Servicemix\apache-servicemix-4.4.1-fuse-01-06\bin>java -version java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b07) Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing) 3rd , I'm getting a lot of missing packages shall I install one by one , I'm really going crazy. I have made the plugin to export all packages and service mix is still saying missing packages. plugin in pom.xml as follows : <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <configuration> <manifestLocation>target/META-INF</manifestLocation> <instructions> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Export-Package>*</Export-Package> <Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency> <Import-Package>*</Import-Package> </instructions> </configuration> </plugin> Note that I have created packging as bundle and run mvn install to generate the bundle and either copy the jar file into deploy folder or install osgi bundle as follows : osgi:install -s mvn:org.apache.camel/Fuse-router/2.8.0.... if you can help me deploy the camel routers on servicemix it would be really appreciated but I need really to know how to troubleshoot it and what is the trick to deploy all package without going to fix missing package each time. Appreciate your feedback,, Thanks, Omar Atia -----Original Message----- From: Jean-Baptiste Onofré [mailto:[email protected]] Sent: Saturday, November 12, 2011 12:53 AM To: [email protected]: Subject: Re: Error while deploying Camel on ServiceMix... Hi Omar, could you check the JDK that you use (sure to use JDK 1.6 ? not OpenJDK or Java 7 ?) ? Thanks Regards JB On 11/11/2011 10:03 PM, Omar Atia wrote: > Dears, > > While deploying camel application as bundle on servicemix , I got the > following : > > karaf@root> osgi:install -s mvn:org.apache.camel/Fuse-router/2.8.0 > Error executing command: Unresolved constraint in bundle Fuse-router [243]: > Unable to resolve 243.0: missing requirement [243.0] package; > (package=com.sun.net.ssl.internal.ssl) > > I have added com.sun.net.ssl.internal.ssl in jre.proporties in etc/ > jre.properties as follows in servicemix4.4.1: > > com.sun.org.apache.xerces.internal.xni, \ > com.sun.jndi.ldap, \ > com.sun.net.ssl.internal.ssl, \ > javax.accessibility, \ > > and it didn't work I already have JDK 1.6 installed in the system ! > > Hope someone can help me !? > > Thanks, > Omar Atia > -- Jean-Baptiste Onofré [email protected]<mailto:[email protected]> http://blog.nanthrax.net Talend - http://www.talend.com
