Unable to launch karaf 2.3.0

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

Unable to launch karaf 2.3.0

glsilverman
I tried to run bin/karaf on a binary release of apache-karaf-2.3.0 and got the following error. I'm running on linux with java 6 and maven 3 installed:

ERROR: Bundle org.apache.aries.blueprint.core [7] Error starting mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.0.1 (org.osgi.framework.BundleException: Activator start error in bundle org.apache.aries.blueprint.core [7].)
java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema
        at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
        at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.<init>(NamespaceHandlerRegistryImpl.java:98)
        at org.apache.aries.blueprint.container.BlueprintExtender.start(BlueprintExtender.java:87)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:735)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch karaf 2.3.0

ksobkowiak
Hi

Similar problem was reported a time ago in FuseESB and SMX (http://fusesource.com/issues/browse/ESB-1507). You can find workaround there.

Which version of Java 6 do you use?  (send an output from "java -version").


Best regards
Krzysztof
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to launch karaf 2.3.0

glsilverman
Thanks for your reply. Here is the complete console trace, including the java version:

IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460-20081105_25433 (JIT enabled, AOT enabled)
ERROR: Bundle org.apache.aries.blueprint.core [7] Error starting mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.core/1.0.1 (org.osgi.framework.BundleException: Activator start error in bundle org.apache.aries.blueprint.core [7].)
java.lang.IllegalArgumentException: http://www.w3.org/2001/XMLSchema
        at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
        at org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.<init>(NamespaceHandlerRegistryImpl.java:98)
        at org.apache.aries.blueprint.container.BlueprintExtender.start(BlueprintExtender.java:87)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:735)

I know is not Sun/Oracle, but it's the JVM we are using on our servers and I'm reluctant to change that.

As far as the reported "fix" in Fuse, what exactly am I suppose to do with this line:

Djavax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema=com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory


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

Re: Unable to launch karaf 2.3.0

glsilverman
Well, I  installed Oracle Java 1.6 and pointed my Karaf launch script to the new JAVA_HOME and it works. Thanks.
Loading...