A branding bundle is provided by both NMR and Features/SMX4.
It seems that the loaded bundle is the one of the NMR and not the
features one.
It's certainly an issue in the features assembly. Could you raise a Jira
about that, we will work on it (it would be quick to fix that :)).
Regards
JB
On 10/21/2010 10:20 AM, Charles Moulliard wrote:
I will commit my code.
Remarks :
- The name of the console is Apache ServiceMix NMR .... Should it be the
case ?
Charles-Moulliards-MacBook-Pro:bin charlesmoulliard$ sh client -u smx -p
smx
____ _ __ __ _
/ ___| ___ _ ____ _(_) ___ ___| \/ (_)_ __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
___) | __/ | \ V /| | (_| __/ | | | |> <
|____/ \___|_| \_/ |_|\___\___|_| |_|_/_/\_\
Apache ServiceMix NMR (1.3.0-SNAPSHOT)
- There is also an issue with log4j appender
----------> Parent Classloader:
org.apache.catalina.loader.standardclassloa...@52cc95d
].
log4j:ERROR Could not instantiate appender named "out".
log4j:ERROR A "org.apache.log4j.OsgiThrowableRenderer" object is not
assignable to a "org.apache.log4j.spi.ThrowableRenderer" variable.
log4j:ERROR The class "org.apache.log4j.spi.ThrowableRenderer" was
loaded by
log4j:ERROR [4.0] whereas object of type
log4j:ERROR "org.apache.log4j.OsgiThrowableRenderer" was loaded by
[WebappClassLoader
context: /web-4.3.0-SNAPSHOT
delegate: true
repositories:
/WEB-INF/classes/
Regards,
Charles
On 21/10/10 10:21, Jean-Baptiste Onofré wrote:
It looks like cglib resolve URL in the Tomcat cache or something like
that.
I will make a try with your patch.
Regards
JB
On 10/21/2010 10:12 AM, Charles Moulliard wrote:
Hi,
I get this error when packaging Smx4/Karaf in a WAR and deploy it on
Tomcat :
ERROR: EventDispatcher: Error during dispatch.
(org.osgi.service.blueprint.container.ComponentDefinitionException:
java.lang.IllegalArgumentException: class
org.osgi.service.url.URLStreamHandlerService$$EnhancerByCGLIB$$e30fee10
is not an enhanced class)
org.osgi.service.blueprint.container.ComponentDefinitionException:
java.lang.IllegalArgumentException: class
org.osgi.service.url.URLStreamHandlerService$$EnhancerByCGLIB$$e30fee10
is not an enhanced class
at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:105)
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
at
org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstance(BlueprintRepository.java:198)
at
org.apache.aries.blueprint.container.BlueprintRepository.create(BlueprintRepository.java:137)
at
org.apache.aries.blueprint.container.ServiceRecipe.createRecipe(ServiceRecipe.java:352)
at
org.apache.aries.blueprint.container.ServiceRecipe.createExplicitDependencies(ServiceRecipe.java:341)
at
org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:136)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.notifySatisfaction(BlueprintContainerImpl.java:596)
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.setSatisfied(AbstractServiceReferenceRecipe.java:393)
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceAdded(AbstractServiceReferenceRecipe.java:366)
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.serviceChanged(AbstractServiceReferenceRecipe.java:349)
at
org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:864)
at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:732)
at
org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3726)
at org.apache.felix.framework.Felix.access$000(Felix.java:80)
at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:717)
at
org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:107)
at org.apache.felix.framework.Felix.registerService(Felix.java:2847)
at
org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:251)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:388)
at
org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:166)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:646)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:314)
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:213)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.IllegalArgumentException: class
org.osgi.service.url.URLStreamHandlerService$$EnhancerByCGLIB$$e30fee10
is not an enhanced class
at net.sf.cglib.proxy.Enhancer.setCallbacksHelper(Enhancer.java:618)
at net.sf.cglib.proxy.Enhancer.setThreadCallbacks(Enhancer.java:609)
at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:631)
at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:538)
at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:225)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$CgLibProxyFactory.createProxy(AbstractServiceReferenceRecipe.java:656)
at
org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:304)
at
org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:89)
... 35 more
Is it a knowed issue ?
Regards,
Charles M.