You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/12/08 13:53:52 UTC

[jira] Created: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Get camel-example-etl to work with OSGi (ServiceMix Karaf)
----------------------------------------------------------

                 Key: CAMEL-2267
                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
             Project: Apache Camel
          Issue Type: Improvement
          Components: examples
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 2.2.0


Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56323#action_56323 ] 

Willem Jiang edited comment on CAMEL-2267 at 12/10/09 5:29 AM:
---------------------------------------------------------------

I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has an issue to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

This error can be resolved by modify the spring-orm bundle's manifest file, you need to add Dynamic-Import: * to spring-orm manifest.



      was (Author: njiang):
    I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has an issue to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

And Charles got this [error|https://issues.apache.org/activemq/browse/CAMEL-2266] on windows.

It looks this an issue of equinox

  
> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56323#action_56323 ] 

Willem Jiang commented on CAMEL-2267:
-------------------------------------

I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has an issue to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

And Charles got this [error|https://issues.apache.org/activemq/browse/CAMEL-2266] on windows.


> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56353#action_56353 ] 

Willem Jiang edited comment on CAMEL-2267 at 12/10/09 5:34 AM:
---------------------------------------------------------------

With the help of Charles, we finally can deploy the camel-example-etl in to Karaf with eclipse link.
You need to install the below bundles after you uninstall the servicemix.jpa bundle.
{code}
osgi:install -s wrap:mvn:hsqldb/hsqldb/1.8.0.7 
osgi:install -s mvn:org.eclipse.persistence/javax.persistence/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.asm/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.core/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/1.2.0
{code}

      was (Author: njiang):
    With the help of Charles, we finally can deploy the camel-example-etl in to Karaf with eclipse link.
You need to install the below bundles after you uninstall the servicemix.jpa bundle.
{code}
osgi:install -s mvn:org.eclipse.persistence/javax.persistence/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.asm/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.core/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/1.2.0
{code}
  
> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56324#action_56324 ] 

Willem Jiang commented on CAMEL-2267:
-------------------------------------

To create the bundle which using hibernate,  using  mvn clean install or mvn clean install -Phibernate.
To create the bundle which using openjpa,  using mvn clean install -Popenjpa.

> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57120#action_57120 ] 

Freeman Fang commented on CAMEL-2267:
-------------------------------------

Hi Willem,

For the spring orm optional import org.hibernate.ejb problem, we needn't hack spring orm jar to add Dynamic-Import: * 
Just use
osgi:refresh spring orm bunde id 
after you install hibernate bundle jar, so that the optional import could be resolved now as the needed package is already there.

Best Regards
Freeman

> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56354#action_56354 ] 

Willem Jiang commented on CAMEL-2267:
-------------------------------------

To deploy the camel-example-etl hibernation version into karaf you need to install below bundle, 
after you install camel-spirng-osgi, camel-jaxb, camel-jpa, camel-juel features
{code}
osgi:install -s wrap:mvn:hsqldb/hsqldb/1.8.0.7 
osgi:install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_2
osgi:install -s mvn:org.antlr/com.springsource.antlr/2.7.7
osgi:install -s mvn:org.jgroups/com.springsource.org.jgroups/2.5.1
osgi:install -s mvn:org.objectweb.asm/com.springsource.org.objectweb.asm/1.5.3
osgi:install -s mvn:net.sourceforge.cglib/com.springsource.net.sf.cglib/2.2.0
osgi:install -s mvn:org.jboss.javassist/com.springsource.javassist/3.9.0.GA
osgi:install -s mvn:org.hibernate/com.springsource.org.hibernate.annotations.common/3.3.0.GA
osgi:install -s mvn:org.hibernate/com.springsource.org.hibernate.annotations/3.4.0.GA
osgi:install -s mvn:org.hibernate/com.springsource.org.hibernate.ejb/3.4.0.GA
osgi:install -s mvn:org.hibernate/com.springsource.org.hibernate/3.3.2.GA
{code}



> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56353#action_56353 ] 

Willem Jiang commented on CAMEL-2267:
-------------------------------------

With the help of Charles, we finally can deploy the camel-example-etl in to Karaf with eclipse link.
You need to install the below bundles after you uninstall the servicemix.jpa bundle.
{code}
osgi:install -s mvn:org.eclipse.persistence/javax.persistence/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.asm/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.core/1.2.0
osgi:install -s mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/1.2.0
{code}

> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56323#action_56323 ] 

Willem Jiang edited comment on CAMEL-2267 at 12/8/09 5:39 AM:
--------------------------------------------------------------

I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has an issue to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

And Charles got this [error|https://issues.apache.org/activemq/browse/CAMEL-2266] on windows.

It looks this an issue of equinox


      was (Author: njiang):
    I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has an issue to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

And Charles got this [error|https://issues.apache.org/activemq/browse/CAMEL-2266] on windows.

  
> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-2267.
---------------------------------

    Resolution: Fixed

> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56323#action_56323 ] 

Willem Jiang edited comment on CAMEL-2267 at 12/15/09 12:39 AM:
----------------------------------------------------------------

I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has [an issue|https://issues.apache.org/jira/browse/FELIX-1919] to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

This error can be resolved by modify the spring-orm bundle's manifest file, you need to add Dynamic-Import: * to spring-orm manifest.



      was (Author: njiang):
    I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has an issue to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

This error can be resolved by modify the spring-orm bundle's manifest file, you need to add Dynamic-Import: * to spring-orm manifest.


  
> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (CAMEL-2267) Get camel-example-etl to work with OSGi (ServiceMix Karaf)

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56323#action_56323 ] 

Willem Jiang edited comment on CAMEL-2267 at 12/16/09 5:17 PM:
---------------------------------------------------------------

I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has [an issue|https://issues.apache.org/jira/browse/FELIX-1919] to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

This error can be resolved by modify the spring-orm bundle's manifest file, you need to add Dynamic-Import: * to spring-orm manifest as a walk around of this [Spring orm issue|https://issuetracker.springsource.com/browse/DMS-1114] 



      was (Author: njiang):
    I and Charles tested the camel-example-etl bundle on Karaf 1.1.0-SNAPSHOT and Karaf 1.2.0.

Current the camel-example-etl openjpa bundle can work perfectly within Kara-felix.
As Felix has [an issue|https://issues.apache.org/jira/browse/FELIX-1919] to load the fragment bundle  of hibernate, so we doesn't test it.

When we switch the Karaf to use equinox as the OSGi kernel,  
I Got this error on Mac with JDK 1.5.0
{code}
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory not found from bundle [org.apache.camel.camel-example-etl]
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:103)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.loadClass(BundleDelegatingClassLoader.java:156)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:247)
	at org.apache.openjpa.kernel.Bootstrap.getFactoryClass(Bootstrap.java:157)
	... 41 more
Caused by: java.lang.ClassNotFoundException: org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:494)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:398)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:326)
	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
	at org.springframework.osgi.util.BundleDelegatingClassLoader.findClass(BundleDelegatingClassLoader.java:99)
	... 47 more
{code}

This error can be resolved by modify the spring-orm bundle's manifest file, you need to add Dynamic-Import: * to spring-orm manifest.


  
> Get camel-example-etl to work with OSGi (ServiceMix Karaf)
> ----------------------------------------------------------
>
>                 Key: CAMEL-2267
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2267
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: examples
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.2.0
>
>
> Support the generate different bundles with different profile ( using hibernate,  openjpa).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.