-
1. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
ffang Sep 15, 2010 9:37 AM (in response to michaelgli)Hi,
For the cxf-osgi example, the workaround currently is edit $SMX_HOME/system/org/apache/servicemix/apache-servicemix/4.3.0-fuse-00-00/apache-servicemix-4.3.0-fuse-00-00-features.xml and comment out
for examples-cxf-osgi feature.
You need also do it for other examples-cxf-* features.
Actually we have ESB-1266 to track this issue.
For feature not found exception, it's harmless but it's sth we need fix for next release.
Thanks for pointing out these issues.
http://fusesource.com/issues/browse/ESB-1266
Freeman
-
2. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
gmui Sep 17, 2010 2:51 AM (in response to michaelgli)Hi - I'm new to SMX so please forgive me if I missed something obvious. I'm trying to run through some examples and also had issues with examples-cxf-osgi. I applied the suggested fix (commenting out the specified dependencies) but still ran into the following exception. I tried using Apache's SMX 4.0.0 distribution and it seemed to work ok even though the commands were slightly different).
When running Fuse 4.3.0 I don't think the web container is launched at all as there is nothing listening on port 8181 (or 8080 either for that matter).
Any suggestions?
Thanks,
Gary
C:\Software\apache-servicemix-4.3.0-fuse-00-00\bin>servicemix.bat
____ _ __ __ _
/ ___| ___ _ ____ () ___ ___| \/ (_)_ __
\___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /
___) | __/ | \ V /| | (_| __/ | | | |> features:list
State Version Name Repository
camel-spring-integration repo-0
camel-spring-javaconfig repo-0
examples-cxf-ws-addressing repo-0
examples-cxf-wsdl-first-osgi-package repo-0
examples-cxf-ws-security-osgi repo-0
activemq activemq-5.4.0-fuse-00-00
activemq-spring activemq-5.4.0-fuse-00-00
activemq-blueprint activemq-5.4.0-fuse-00-00
activemq-web-console activemq-5.4.0-fuse-00-00
karaf@root> 2010-09-17 02:45:38.781:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
cls
Error executing command: Command not found: *:cls
karaf@root> features:list -i
State Version Name Repository
activemq activemq-5.4.0-fuse-00-00
activemq-blueprint activemq-5.4.0-fuse-00-00
karaf@root> features:install examples-cxf-osgi
Refreshing bundles org.springframework.beans (59)
ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403)
at java.util.zip.ZipFile.getEntry(ZipFile.java:148)
at java.util.jar.JarFile.getEntry(JarFile.java:206)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1733)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:634)
at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99)
at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1345)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:711)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.cxf.bus.spring.BusApplicationListener.onApplicationEvent(BusApplicationListener.java:62)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMult
icaster.java:97)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:3
03)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1007)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleAppli
cationContext.java:197)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDele
gatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegated
ExecutionApplicationContext.java:214)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDel
egatedExecutionApplicationContext.java:210)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.cl
ose(DependencyWaiterApplicationContextExecutor.java:379)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegat
edExecutionApplicationContext.java:236)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)
at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$1.run(ContextLoaderListener.java:5
24)
at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(Runna
bleTimedExecution.java:60)
at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403)
at java.util.zip.ZipFile.getEntry(ZipFile.java:148)
at java.util.jar.JarFile.getEntry(JarFile.java:206)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1733)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:79)
at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:53)
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:89)
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313)
at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:276)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.ops4j.pax.logging.service.internal.PaxLoggerImpl.warn(PaxLoggerImpl.java:144)
at org.ops4j.pax.logging.internal.TrackingLogger.warn(TrackingLogger.java:91)
at org.apache.commons.logging.internal.JclLogger.warn(JclLogger.java:151)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1010)
at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleAppli
cationContext.java:197)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDele
gatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegated
ExecutionApplicationContext.java:214)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDel
egatedExecutionApplicationContext.java:210)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.cl
ose(DependencyWaiterApplicationContextExecutor.java:379)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegat
edExecutionApplicationContext.java:236)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)
at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$1.run(ContextLoaderListener.java:5
24)
at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(Runna
bleTimedExecution.java:60)
at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Edited by: gmui on Sep 17, 2010 6:51 AM
-
3. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
gmui Sep 17, 2010 3:21 AM (in response to gmui)Just tried the exact same thing on Fuse ESB 4.2 and it seemed to work ok.
-
4. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
ffang Sep 17, 2010 3:34 AM (in response to gmui)Hi,
You need remove $SMXP_HOME/data folder after you comment out such bundles(the workaround suggestion)
Or you can use 4.3.0-fuse-01-00[1], which already fix that issue in 4.3.0-fuse-00-00
http://repo.open.iona.com/maven2/org/apache/servicemix/apache-servicemix/4.3.0-fuse-01-00/
Freeman