Quantcast

[jira] [Created] (SMX4-1142) can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Created] (SMX4-1142) can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306

JIRA jira@apache.org
minimu created SMX4-1142:
----------------------------

             Summary: can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306
                 Key: SMX4-1142
                 URL: https://issues.apache.org/jira/browse/SMX4-1142
             Project: ServiceMix 4
          Issue Type: Bug
         Environment: Win 7 X64
32bit Java JDK
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
            Reporter: minimu


I got the below error when start  ServiceMix 4.4.1-fuse0306

org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
        at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
        at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
        at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
        at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
        at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
        at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
        at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
        at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
Caused by: java.lang.RuntimeException: Could not create jaxb context
        at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
        at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
        at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
        at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
        at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
        at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
        ... 45 more
Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
        at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
        at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
        at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
        at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
        ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Commented] (SMX4-1142) can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278690#comment-13278690 ]

Freeman Fang commented on SMX4-1142:
------------------------------------

Hi,

The error here is interesting
Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class. Please make sure that you are specifying the proper ClassLoader.

Did you ever change any configuration, especially the etc/jre.properties.
We comment out the jaxb api from jdk/jre for that version
# javax.xml.bind, \
# javax.xml.bind.annotation, \
# javax.xml.bind.annotation.adapters, \
# javax.xml.bind.attachment, \
# javax.xml.bind.helpers, \
# javax.xml.bind.util, \
so should only load jaxb-api class from jaxb-api bundle but not from jdk/jre.

Btw, as you use FUSE specific version you should post your questions on fuse forum
Freeman
               

> can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306
> --------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Commented] (SMX4-1142) can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279457#comment-13279457 ]

minimu commented on SMX4-1142:
------------------------------

I have checked etc/jre.properties, found javax.xml.bind* had been comment out
I have done what you say,but it not work

Btw,apache-servicemix-4.4.1 has same error

# Standard package set.  Note that:
#   - javax.transaction* is exported with a mandatory attribute
#   - javax.activation, javax.annotation*, javax.jws*, javax.script*, javax.xml.bind*, javax.xml.soap, javax.xml.ws* packages are not exported
jre-1.6= \
 com.sun.org.apache.xalan.internal.xsltc.trax, \
 com.sun.org.apache.xerces.internal.dom, \
 com.sun.org.apache.xerces.internal.jaxp, \
 com.sun.org.apache.xerces.internal.xni, \
 com.sun.jndi.ldap, \
 javax.accessibility, \
# javax.activation, \
 javax.activity, \
 javax.annotation;version="1.1", \
 javax.annotation.processing;version="1.1", \
 javax.crypto, \
 javax.crypto.interfaces, \
 javax.crypto.spec, \
 javax.imageio, \
 javax.imageio.event, \
 javax.imageio.metadata, \
 javax.imageio.plugins.bmp, \
 javax.imageio.plugins.jpeg, \
 javax.imageio.spi, \
 javax.imageio.stream, \
# javax.jws, \
# javax.jws.soap, \
 javax.lang.model, \
 javax.lang.model.element, \
 javax.lang.model.type, \
 javax.lang.model.util, \
 javax.management, \
 javax.management.loading, \
 javax.management.modelmbean, \
 javax.management.monitor, \
 javax.management.openmbean, \
 javax.management.relation, \
 javax.management.remote, \
 javax.management.remote.rmi, \
 javax.management.timer, \
 javax.naming, \
 javax.naming.directory, \
 javax.naming.event, \
 javax.naming.ldap, \
 javax.naming.spi, \
 javax.net, \
 javax.net.ssl, \
 javax.print, \
 javax.print.attribute, \
 javax.print.attribute.standard, \
 javax.print.event, \
 javax.rmi, \
 javax.rmi.CORBA, \
 javax.rmi.ssl, \
 javax.security.auth, \
 javax.security.auth.callback, \
 javax.security.auth.kerberos, \
 javax.security.auth.login, \
 javax.security.auth.spi, \
 javax.security.auth.x500, \
 javax.security.cert, \
 javax.security.sasl, \
 javax.sound.midi, \
 javax.sound.midi.spi, \
 javax.sound.sampled, \
 javax.sound.sampled.spi, \
 javax.sql, \
 javax.sql.rowset, \
 javax.sql.rowset.serial, \
 javax.sql.rowset.spi, \
 javax.swing, \
 javax.swing.border, \
 javax.swing.colorchooser, \
 javax.swing.event, \
 javax.swing.filechooser, \
 javax.swing.plaf, \
 javax.swing.plaf.basic, \
 javax.swing.plaf.metal, \
 javax.swing.plaf.multi, \
 javax.swing.plaf.synth, \
 javax.swing.table, \
 javax.swing.text, \
 javax.swing.text.html, \
 javax.swing.text.html.parser, \
 javax.swing.text.rtf, \
 javax.swing.tree, \
 javax.swing.undo, \
 javax.tools, \
 javax.transaction; javax.transaction.xa; partial=true; mandatory:=partial, \
 javax.xml, \
# javax.xml.bind, \
# javax.xml.bind.annotation, \
# javax.xml.bind.annotation.adapters, \
# javax.xml.bind.attachment, \
# javax.xml.bind.helpers, \
# javax.xml.bind.util, \
 javax.xml.crypto, \
 javax.xml.crypto.dom, \
 javax.xml.crypto.dsig, \
 javax.xml.crypto.dsig.dom, \
 javax.xml.crypto.dsig.keyinfo, \
 javax.xml.crypto.dsig.spec, \
 javax.xml.datatype, \
 javax.xml.namespace, \
 javax.xml.parsers, \
# javax.xml.soap, \
# javax.xml.stream, \
# javax.xml.stream.events, \
# javax.xml.stream.util, \
 javax.xml.transform, \
 javax.xml.transform.dom, \
 javax.xml.transform.sax, \
 javax.xml.transform.stax, \
 javax.xml.transform.stream, \
 javax.xml.validation, \
# javax.xml.ws, \
# javax.xml.ws.handler, \
# javax.xml.ws.handler.soap, \
# javax.xml.ws.http, \
# javax.xml.ws.soap, \
# javax.xml.ws.spi, \
 javax.xml.xpath, \
 org.ietf.jgss, \
 org.omg.CORBA, \
 org.omg.CORBA_2_3, \
 org.omg.CORBA_2_3.portable, \
 org.omg.CORBA.DynAnyPackage, \
 org.omg.CORBA.ORBPackage, \
 org.omg.CORBA.portable, \
 org.omg.CORBA.TypeCodePackage, \
 org.omg.CosNaming, \
 org.omg.CosNaming.NamingContextExtPackage, \
 org.omg.CosNaming.NamingContextPackage, \
 org.omg.Dynamic, \
 org.omg.DynamicAny, \
 org.omg.DynamicAny.DynAnyFactoryPackage, \
 org.omg.DynamicAny.DynAnyPackage, \
 org.omg.IOP, \
 org.omg.IOP.CodecFactoryPackage, \
 org.omg.IOP.CodecPackage, \
 org.omg.Messaging, \
 org.omg.PortableInterceptor, \
 org.omg.PortableInterceptor.ORBInitInfoPackage, \
 org.omg.PortableServer, \
 org.omg.PortableServer.CurrentPackage, \
 org.omg.PortableServer.POAManagerPackage, \
 org.omg.PortableServer.POAPackage, \
 org.omg.PortableServer.portable, \
 org.omg.PortableServer.ServantLocatorPackage, \
 org.omg.SendingContext, \
 org.omg.stub.java.rmi, \
 org.omg.stub.javax.management.remote.rmi, \
 org.w3c.dom, \
 org.w3c.dom.bootstrap, \
 org.w3c.dom.css, \
 org.w3c.dom.events, \
 org.w3c.dom.html, \
 org.w3c.dom.ls, \
 org.w3c.dom.ranges, \
 org.w3c.dom.stylesheets, \
 org.w3c.dom.traversal, \
 org.w3c.dom.views, \
 org.w3c.dom.xpath, \
 org.xml.sax, \
 org.xml.sax.ext, \
 org.xml.sax.helpers
               

> can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306
> --------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Comment Edited] (SMX4-1142) can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279457#comment-13279457 ]

minimu edited comment on SMX4-1142 at 5/19/12 6:53 AM:
-------------------------------------------------------

Thanks.

I have checked etc/jre.properties, found javax.xml.bind* had been comment out
I have done what you say,but it not work

Btw,apache-servicemix-4.4.1 has same error

# Standard package set.  Note that:
#   - javax.transaction* is exported with a mandatory attribute
#   - javax.activation, javax.annotation*, javax.jws*, javax.script*, javax.xml.bind*, javax.xml.soap, javax.xml.ws* packages are not exported
jre-1.6= \
 com.sun.org.apache.xalan.internal.xsltc.trax, \
 com.sun.org.apache.xerces.internal.dom, \
 com.sun.org.apache.xerces.internal.jaxp, \
 com.sun.org.apache.xerces.internal.xni, \
 com.sun.jndi.ldap, \
 javax.accessibility, \
# javax.activation, \
 javax.activity, \
 javax.annotation;version="1.1", \
 javax.annotation.processing;version="1.1", \
 javax.crypto, \
 javax.crypto.interfaces, \
 javax.crypto.spec, \
 javax.imageio, \
 javax.imageio.event, \
 javax.imageio.metadata, \
 javax.imageio.plugins.bmp, \
 javax.imageio.plugins.jpeg, \
 javax.imageio.spi, \
 javax.imageio.stream, \
# javax.jws, \
# javax.jws.soap, \
 javax.lang.model, \
 javax.lang.model.element, \
 javax.lang.model.type, \
 javax.lang.model.util, \
 javax.management, \
 javax.management.loading, \
 javax.management.modelmbean, \
 javax.management.monitor, \
 javax.management.openmbean, \
 javax.management.relation, \
 javax.management.remote, \
 javax.management.remote.rmi, \
 javax.management.timer, \
 javax.naming, \
 javax.naming.directory, \
 javax.naming.event, \
 javax.naming.ldap, \
 javax.naming.spi, \
 javax.net, \
 javax.net.ssl, \
 javax.print, \
 javax.print.attribute, \
 javax.print.attribute.standard, \
 javax.print.event, \
 javax.rmi, \
 javax.rmi.CORBA, \
 javax.rmi.ssl, \
 javax.security.auth, \
 javax.security.auth.callback, \
 javax.security.auth.kerberos, \
 javax.security.auth.login, \
 javax.security.auth.spi, \
 javax.security.auth.x500, \
 javax.security.cert, \
 javax.security.sasl, \
 javax.sound.midi, \
 javax.sound.midi.spi, \
 javax.sound.sampled, \
 javax.sound.sampled.spi, \
 javax.sql, \
 javax.sql.rowset, \
 javax.sql.rowset.serial, \
 javax.sql.rowset.spi, \
 javax.swing, \
 javax.swing.border, \
 javax.swing.colorchooser, \
 javax.swing.event, \
 javax.swing.filechooser, \
 javax.swing.plaf, \
 javax.swing.plaf.basic, \
 javax.swing.plaf.metal, \
 javax.swing.plaf.multi, \
 javax.swing.plaf.synth, \
 javax.swing.table, \
 javax.swing.text, \
 javax.swing.text.html, \
 javax.swing.text.html.parser, \
 javax.swing.text.rtf, \
 javax.swing.tree, \
 javax.swing.undo, \
 javax.tools, \
 javax.transaction; javax.transaction.xa; partial=true; mandatory:=partial, \
 javax.xml, \
# javax.xml.bind, \
# javax.xml.bind.annotation, \
# javax.xml.bind.annotation.adapters, \
# javax.xml.bind.attachment, \
# javax.xml.bind.helpers, \
# javax.xml.bind.util, \
 javax.xml.crypto, \
 javax.xml.crypto.dom, \
 javax.xml.crypto.dsig, \
 javax.xml.crypto.dsig.dom, \
 javax.xml.crypto.dsig.keyinfo, \
 javax.xml.crypto.dsig.spec, \
 javax.xml.datatype, \
 javax.xml.namespace, \
 javax.xml.parsers, \
# javax.xml.soap, \
# javax.xml.stream, \
# javax.xml.stream.events, \
# javax.xml.stream.util, \
 javax.xml.transform, \
 javax.xml.transform.dom, \
 javax.xml.transform.sax, \
 javax.xml.transform.stax, \
 javax.xml.transform.stream, \
 javax.xml.validation, \
# javax.xml.ws, \
# javax.xml.ws.handler, \
# javax.xml.ws.handler.soap, \
# javax.xml.ws.http, \
# javax.xml.ws.soap, \
# javax.xml.ws.spi, \
 javax.xml.xpath, \
 org.ietf.jgss, \
 org.omg.CORBA, \
 org.omg.CORBA_2_3, \
 org.omg.CORBA_2_3.portable, \
 org.omg.CORBA.DynAnyPackage, \
 org.omg.CORBA.ORBPackage, \
 org.omg.CORBA.portable, \
 org.omg.CORBA.TypeCodePackage, \
 org.omg.CosNaming, \
 org.omg.CosNaming.NamingContextExtPackage, \
 org.omg.CosNaming.NamingContextPackage, \
 org.omg.Dynamic, \
 org.omg.DynamicAny, \
 org.omg.DynamicAny.DynAnyFactoryPackage, \
 org.omg.DynamicAny.DynAnyPackage, \
 org.omg.IOP, \
 org.omg.IOP.CodecFactoryPackage, \
 org.omg.IOP.CodecPackage, \
 org.omg.Messaging, \
 org.omg.PortableInterceptor, \
 org.omg.PortableInterceptor.ORBInitInfoPackage, \
 org.omg.PortableServer, \
 org.omg.PortableServer.CurrentPackage, \
 org.omg.PortableServer.POAManagerPackage, \
 org.omg.PortableServer.POAPackage, \
 org.omg.PortableServer.portable, \
 org.omg.PortableServer.ServantLocatorPackage, \
 org.omg.SendingContext, \
 org.omg.stub.java.rmi, \
 org.omg.stub.javax.management.remote.rmi, \
 org.w3c.dom, \
 org.w3c.dom.bootstrap, \
 org.w3c.dom.css, \
 org.w3c.dom.events, \
 org.w3c.dom.html, \
 org.w3c.dom.ls, \
 org.w3c.dom.ranges, \
 org.w3c.dom.stylesheets, \
 org.w3c.dom.traversal, \
 org.w3c.dom.views, \
 org.w3c.dom.xpath, \
 org.xml.sax, \
 org.xml.sax.ext, \
 org.xml.sax.helpers
               
      was (Author: minimu):
    I have checked etc/jre.properties, found javax.xml.bind* had been comment out
I have done what you say,but it not work

Btw,apache-servicemix-4.4.1 has same error

# Standard package set.  Note that:
#   - javax.transaction* is exported with a mandatory attribute
#   - javax.activation, javax.annotation*, javax.jws*, javax.script*, javax.xml.bind*, javax.xml.soap, javax.xml.ws* packages are not exported
jre-1.6= \
 com.sun.org.apache.xalan.internal.xsltc.trax, \
 com.sun.org.apache.xerces.internal.dom, \
 com.sun.org.apache.xerces.internal.jaxp, \
 com.sun.org.apache.xerces.internal.xni, \
 com.sun.jndi.ldap, \
 javax.accessibility, \
# javax.activation, \
 javax.activity, \
 javax.annotation;version="1.1", \
 javax.annotation.processing;version="1.1", \
 javax.crypto, \
 javax.crypto.interfaces, \
 javax.crypto.spec, \
 javax.imageio, \
 javax.imageio.event, \
 javax.imageio.metadata, \
 javax.imageio.plugins.bmp, \
 javax.imageio.plugins.jpeg, \
 javax.imageio.spi, \
 javax.imageio.stream, \
# javax.jws, \
# javax.jws.soap, \
 javax.lang.model, \
 javax.lang.model.element, \
 javax.lang.model.type, \
 javax.lang.model.util, \
 javax.management, \
 javax.management.loading, \
 javax.management.modelmbean, \
 javax.management.monitor, \
 javax.management.openmbean, \
 javax.management.relation, \
 javax.management.remote, \
 javax.management.remote.rmi, \
 javax.management.timer, \
 javax.naming, \
 javax.naming.directory, \
 javax.naming.event, \
 javax.naming.ldap, \
 javax.naming.spi, \
 javax.net, \
 javax.net.ssl, \
 javax.print, \
 javax.print.attribute, \
 javax.print.attribute.standard, \
 javax.print.event, \
 javax.rmi, \
 javax.rmi.CORBA, \
 javax.rmi.ssl, \
 javax.security.auth, \
 javax.security.auth.callback, \
 javax.security.auth.kerberos, \
 javax.security.auth.login, \
 javax.security.auth.spi, \
 javax.security.auth.x500, \
 javax.security.cert, \
 javax.security.sasl, \
 javax.sound.midi, \
 javax.sound.midi.spi, \
 javax.sound.sampled, \
 javax.sound.sampled.spi, \
 javax.sql, \
 javax.sql.rowset, \
 javax.sql.rowset.serial, \
 javax.sql.rowset.spi, \
 javax.swing, \
 javax.swing.border, \
 javax.swing.colorchooser, \
 javax.swing.event, \
 javax.swing.filechooser, \
 javax.swing.plaf, \
 javax.swing.plaf.basic, \
 javax.swing.plaf.metal, \
 javax.swing.plaf.multi, \
 javax.swing.plaf.synth, \
 javax.swing.table, \
 javax.swing.text, \
 javax.swing.text.html, \
 javax.swing.text.html.parser, \
 javax.swing.text.rtf, \
 javax.swing.tree, \
 javax.swing.undo, \
 javax.tools, \
 javax.transaction; javax.transaction.xa; partial=true; mandatory:=partial, \
 javax.xml, \
# javax.xml.bind, \
# javax.xml.bind.annotation, \
# javax.xml.bind.annotation.adapters, \
# javax.xml.bind.attachment, \
# javax.xml.bind.helpers, \
# javax.xml.bind.util, \
 javax.xml.crypto, \
 javax.xml.crypto.dom, \
 javax.xml.crypto.dsig, \
 javax.xml.crypto.dsig.dom, \
 javax.xml.crypto.dsig.keyinfo, \
 javax.xml.crypto.dsig.spec, \
 javax.xml.datatype, \
 javax.xml.namespace, \
 javax.xml.parsers, \
# javax.xml.soap, \
# javax.xml.stream, \
# javax.xml.stream.events, \
# javax.xml.stream.util, \
 javax.xml.transform, \
 javax.xml.transform.dom, \
 javax.xml.transform.sax, \
 javax.xml.transform.stax, \
 javax.xml.transform.stream, \
 javax.xml.validation, \
# javax.xml.ws, \
# javax.xml.ws.handler, \
# javax.xml.ws.handler.soap, \
# javax.xml.ws.http, \
# javax.xml.ws.soap, \
# javax.xml.ws.spi, \
 javax.xml.xpath, \
 org.ietf.jgss, \
 org.omg.CORBA, \
 org.omg.CORBA_2_3, \
 org.omg.CORBA_2_3.portable, \
 org.omg.CORBA.DynAnyPackage, \
 org.omg.CORBA.ORBPackage, \
 org.omg.CORBA.portable, \
 org.omg.CORBA.TypeCodePackage, \
 org.omg.CosNaming, \
 org.omg.CosNaming.NamingContextExtPackage, \
 org.omg.CosNaming.NamingContextPackage, \
 org.omg.Dynamic, \
 org.omg.DynamicAny, \
 org.omg.DynamicAny.DynAnyFactoryPackage, \
 org.omg.DynamicAny.DynAnyPackage, \
 org.omg.IOP, \
 org.omg.IOP.CodecFactoryPackage, \
 org.omg.IOP.CodecPackage, \
 org.omg.Messaging, \
 org.omg.PortableInterceptor, \
 org.omg.PortableInterceptor.ORBInitInfoPackage, \
 org.omg.PortableServer, \
 org.omg.PortableServer.CurrentPackage, \
 org.omg.PortableServer.POAManagerPackage, \
 org.omg.PortableServer.POAPackage, \
 org.omg.PortableServer.portable, \
 org.omg.PortableServer.ServantLocatorPackage, \
 org.omg.SendingContext, \
 org.omg.stub.java.rmi, \
 org.omg.stub.javax.management.remote.rmi, \
 org.w3c.dom, \
 org.w3c.dom.bootstrap, \
 org.w3c.dom.css, \
 org.w3c.dom.events, \
 org.w3c.dom.html, \
 org.w3c.dom.ls, \
 org.w3c.dom.ranges, \
 org.w3c.dom.stylesheets, \
 org.w3c.dom.traversal, \
 org.w3c.dom.views, \
 org.w3c.dom.xpath, \
 org.xml.sax, \
 org.xml.sax.ext, \
 org.xml.sax.helpers
                 

> can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306
> --------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Comment Edited] (SMX4-1142) can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279457#comment-13279457 ]

minimu edited comment on SMX4-1142 at 5/19/12 6:58 AM:
-------------------------------------------------------

Thanks.

I have checked etc/jre.properties, found javax.xml.bind* had been comment out
I have done what you say,but it not work

Btw,apache-servicemix-4.4.1 has same error
               
      was (Author: minimu):
    Thanks.

I have checked etc/jre.properties, found javax.xml.bind* had been comment out
I have done what you say,but it not work

Btw,apache-servicemix-4.4.1 has same error

# Standard package set.  Note that:
#   - javax.transaction* is exported with a mandatory attribute
#   - javax.activation, javax.annotation*, javax.jws*, javax.script*, javax.xml.bind*, javax.xml.soap, javax.xml.ws* packages are not exported
jre-1.6= \
 com.sun.org.apache.xalan.internal.xsltc.trax, \
 com.sun.org.apache.xerces.internal.dom, \
 com.sun.org.apache.xerces.internal.jaxp, \
 com.sun.org.apache.xerces.internal.xni, \
 com.sun.jndi.ldap, \
 javax.accessibility, \
# javax.activation, \
 javax.activity, \
 javax.annotation;version="1.1", \
 javax.annotation.processing;version="1.1", \
 javax.crypto, \
 javax.crypto.interfaces, \
 javax.crypto.spec, \
 javax.imageio, \
 javax.imageio.event, \
 javax.imageio.metadata, \
 javax.imageio.plugins.bmp, \
 javax.imageio.plugins.jpeg, \
 javax.imageio.spi, \
 javax.imageio.stream, \
# javax.jws, \
# javax.jws.soap, \
 javax.lang.model, \
 javax.lang.model.element, \
 javax.lang.model.type, \
 javax.lang.model.util, \
 javax.management, \
 javax.management.loading, \
 javax.management.modelmbean, \
 javax.management.monitor, \
 javax.management.openmbean, \
 javax.management.relation, \
 javax.management.remote, \
 javax.management.remote.rmi, \
 javax.management.timer, \
 javax.naming, \
 javax.naming.directory, \
 javax.naming.event, \
 javax.naming.ldap, \
 javax.naming.spi, \
 javax.net, \
 javax.net.ssl, \
 javax.print, \
 javax.print.attribute, \
 javax.print.attribute.standard, \
 javax.print.event, \
 javax.rmi, \
 javax.rmi.CORBA, \
 javax.rmi.ssl, \
 javax.security.auth, \
 javax.security.auth.callback, \
 javax.security.auth.kerberos, \
 javax.security.auth.login, \
 javax.security.auth.spi, \
 javax.security.auth.x500, \
 javax.security.cert, \
 javax.security.sasl, \
 javax.sound.midi, \
 javax.sound.midi.spi, \
 javax.sound.sampled, \
 javax.sound.sampled.spi, \
 javax.sql, \
 javax.sql.rowset, \
 javax.sql.rowset.serial, \
 javax.sql.rowset.spi, \
 javax.swing, \
 javax.swing.border, \
 javax.swing.colorchooser, \
 javax.swing.event, \
 javax.swing.filechooser, \
 javax.swing.plaf, \
 javax.swing.plaf.basic, \
 javax.swing.plaf.metal, \
 javax.swing.plaf.multi, \
 javax.swing.plaf.synth, \
 javax.swing.table, \
 javax.swing.text, \
 javax.swing.text.html, \
 javax.swing.text.html.parser, \
 javax.swing.text.rtf, \
 javax.swing.tree, \
 javax.swing.undo, \
 javax.tools, \
 javax.transaction; javax.transaction.xa; partial=true; mandatory:=partial, \
 javax.xml, \
# javax.xml.bind, \
# javax.xml.bind.annotation, \
# javax.xml.bind.annotation.adapters, \
# javax.xml.bind.attachment, \
# javax.xml.bind.helpers, \
# javax.xml.bind.util, \
 javax.xml.crypto, \
 javax.xml.crypto.dom, \
 javax.xml.crypto.dsig, \
 javax.xml.crypto.dsig.dom, \
 javax.xml.crypto.dsig.keyinfo, \
 javax.xml.crypto.dsig.spec, \
 javax.xml.datatype, \
 javax.xml.namespace, \
 javax.xml.parsers, \
# javax.xml.soap, \
# javax.xml.stream, \
# javax.xml.stream.events, \
# javax.xml.stream.util, \
 javax.xml.transform, \
 javax.xml.transform.dom, \
 javax.xml.transform.sax, \
 javax.xml.transform.stax, \
 javax.xml.transform.stream, \
 javax.xml.validation, \
# javax.xml.ws, \
# javax.xml.ws.handler, \
# javax.xml.ws.handler.soap, \
# javax.xml.ws.http, \
# javax.xml.ws.soap, \
# javax.xml.ws.spi, \
 javax.xml.xpath, \
 org.ietf.jgss, \
 org.omg.CORBA, \
 org.omg.CORBA_2_3, \
 org.omg.CORBA_2_3.portable, \
 org.omg.CORBA.DynAnyPackage, \
 org.omg.CORBA.ORBPackage, \
 org.omg.CORBA.portable, \
 org.omg.CORBA.TypeCodePackage, \
 org.omg.CosNaming, \
 org.omg.CosNaming.NamingContextExtPackage, \
 org.omg.CosNaming.NamingContextPackage, \
 org.omg.Dynamic, \
 org.omg.DynamicAny, \
 org.omg.DynamicAny.DynAnyFactoryPackage, \
 org.omg.DynamicAny.DynAnyPackage, \
 org.omg.IOP, \
 org.omg.IOP.CodecFactoryPackage, \
 org.omg.IOP.CodecPackage, \
 org.omg.Messaging, \
 org.omg.PortableInterceptor, \
 org.omg.PortableInterceptor.ORBInitInfoPackage, \
 org.omg.PortableServer, \
 org.omg.PortableServer.CurrentPackage, \
 org.omg.PortableServer.POAManagerPackage, \
 org.omg.PortableServer.POAPackage, \
 org.omg.PortableServer.portable, \
 org.omg.PortableServer.ServantLocatorPackage, \
 org.omg.SendingContext, \
 org.omg.stub.java.rmi, \
 org.omg.stub.javax.management.remote.rmi, \
 org.w3c.dom, \
 org.w3c.dom.bootstrap, \
 org.w3c.dom.css, \
 org.w3c.dom.events, \
 org.w3c.dom.html, \
 org.w3c.dom.ls, \
 org.w3c.dom.ranges, \
 org.w3c.dom.stylesheets, \
 org.w3c.dom.traversal, \
 org.w3c.dom.views, \
 org.w3c.dom.xpath, \
 org.xml.sax, \
 org.xml.sax.ext, \
 org.xml.sax.helpers
                 

> can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306
> --------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Commented] (SMX4-1142) can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279471#comment-13279471 ]

minimu commented on SMX4-1142:
------------------------------

I got same error when start apache-servicemix-4.4.1.

detail:
(1)download apache-servicemix-4.4.1;
(2)run %SMX%/bin/servicemix.bat, everything is fine
(3)exec features:install servicemix-wsn2005, errors occurred:
 Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class. Please make sure that you are specifying the proper ClassLoader.

15:18:28,804 | ERROR | ies.transaction) | configadmin                      | 5 - org.apache.felix.configadmin - 1.2.8 | Cannot use factory configuration org.apache.aries.transaction for [org.osgi.service.cm.ManagedServiceFactory, id=225, bundle=157]: Configuration bound to bundle mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/0.2-incubating
15:18:28,836 | ERROR | .servicemix.nmr) | configadmin                      | 5 - org.apache.felix.configadmin - 1.2.8 | Configuration for org.apache.servicemix.nmr has already been used for service [org.osgi.service.cm.ManagedService, id=265, bundle=164] and will now also be given to [org.osgi.service.cm.ManagedService, id=272, bundle=164]
15:18:28,846 | ERROR | .servicemix.jbi) | configadmin                      | 5 - org.apache.felix.configadmin - 1.2.8 | Cannot use configuration org.apache.servicemix.jbi for [org.osgi.service.cm.ManagedService, id=283, bundle=171]: Configuration bound to bundle mvn:org.apache.servicemix.jbi/org.apache.servicemix.jbi.deployer/1.5.0


try again:
(1)Empty the data directory
(2)exec features:install jbi, org.apache.felix.configadmin error occurred



               

> can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306
> --------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Updated] (SMX4-1142) error when start ServiceMix-wsn2005(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

minimu updated SMX4-1142:
-------------------------

    Summary: error when start  ServiceMix-wsn2005(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)  (was: can't init servicemix-wsn2005 in the ServiceMix 4.4.1-fuse0306)
   

> error when start  ServiceMix-wsn2005(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)
> ------------------------------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Updated] (SMX4-1142) error when start ServiceMix4(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

minimu updated SMX4-1142:
-------------------------

    Summary: error when start  ServiceMix4(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)  (was: error when start  ServiceMix-wsn2005(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306))
   

> error when start  ServiceMix4(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)
> -----------------------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Commented] (SMX4-1142) error when start ServiceMix4(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279907#comment-13279907 ]

Freeman Fang commented on SMX4-1142:
------------------------------------

Hi,

I mean you shouldn't change any default configuration.

Btw, both ServiceMix 4.4.1 and FUSE ESB 4.4.1-fuse0306 works  when install servicemix-wsn2005 feature on my machine.

Could you change your JAVA_HOME to point to JDK but bot JRE to see if it helps?
Freeman
               

> error when start  ServiceMix4(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)
> -----------------------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[jira] [Commented] (SMX4-1142) error when start ServiceMix4(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/SMX4-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279913#comment-13279913 ]

minimu commented on SMX4-1142:
------------------------------

I did not modify any configuration。

JAVA_HOME point to JDK.

I update JDK to 1.6.0.31,get same error.
               

> error when start  ServiceMix4(ServiceMix 4.4.1 and ServiceMix 4.4.1-fuse0306)
> -----------------------------------------------------------------------------
>
>                 Key: SMX4-1142
>                 URL: https://issues.apache.org/jira/browse/SMX4-1142
>             Project: ServiceMix 4
>          Issue Type: Bug
>         Environment: Win 7 X64
> 32bit Java JDK
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
>            Reporter: minimu
>
> I got the below error when start  ServiceMix 4.4.1-fuse0306
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instanciating bean servicemix-wsn2005 of class class org.apache.servicemix.wsn.component.WSNComponent
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:269)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:706)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:370)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:278)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.internalGetService(ServiceRecipe.java:248)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.getService(ServiceRecipe.java:327)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe$TriggerServiceFactory.getService(ServiceRecipe.java:430)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:310)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:221)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:297)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.getService(Felix.java:3041)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:329)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.osgi.util.tracker.ServiceTracker.addingService(ServiceTracker.java:442)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.servicemix.jbi.deployer.impl.Deployer$1.addingService(Deployer.java:217)[149:org.apache.servicemix.jbi.deployer:1.5.1.fuse-03-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)[karaf.jar:2.2.2-fuse-04-06]
> at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)[karaf.jar:2.2.2-fuse-04-06]
> at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:859)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3792)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.access$000(Felix.java:89)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:734)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.Felix.registerService(Felix.java:2881)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)[org.apache.felix.framework-3.0.9-fuse-05-06.jar:]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:404)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:184)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:662)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:330)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:227)[10:org.apache.aries.blueprint:0.3.1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_23]
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_23]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_23]
> at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
> Caused by: java.lang.RuntimeException: Could not create jaxb context
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:50)
> at org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:92)
> at org.apache.servicemix.common.DefaultComponent.<init>(DefaultComponent.java:62)
> at org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:73)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_23]
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_23]
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_23]
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_23]
> at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:258)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:828)[10:org.apache.aries.blueprint:0.3.1]
> at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:267)[10:org.apache.aries.blueprint:0.3.1]
> ... 45 more
> Caused by: javax.xml.bind.JAXBException: ClassCastException: attempting to cast jar:file:/C:/jdk16023/jre/lib/rt.jar!/javax/xml/bind/JAXBContext.class to bundle://45.0:1/javax/xml/bind/JAXBContext.class.  Please make sure that you are specifying the proper ClassLoader.    
> at javax.xml.bind.ContextFinder.handleClassCastException(ContextFinder.java:106)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:216)[:1.6.0_23]
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:374)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)[:1.6.0_23]
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)[:1.6.0_23]
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:121)
> at org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:105)
> at org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:48)
> ... 55 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Loading...