Hello,
I'm trying to get Swagger UI running on karaf. I packaged the Swagger UI in a
WAR file, which I drop into the deploy folder in the karaf directory.
The problem is that I apparantly cannot run camel-swagger-java and the Swagger
UI WAR at the same time.
If I don't install camel-swagger-java, I can successfully deploy the Swagger UI
WAR, but this is obviously useless as no swagger instance is running.
If I install camel-swagger-java before deploying the Swagger UI WAR, I get this
error:
Exception starting HttpContext registration java.lang.NullPointerException: null
Error deploying web applicationjava.lang.NullPointerException: null
I don't know what to do with this error. Also, whenever I try to deploy the
Swagger UI WAR when I already have camel-swagger-java installed, I get this
error:
java.lang.ArrayIndexOutOfBoundsException: 19
at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:576)
at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:494)
at aQute.bnd.osgi.Clazz.parseClassFileWithCollector(Clazz.java:483)
at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:473)
at aQute.bnd.osgi.Analyzer.analyzeJar(Analyzer.java:2177)
at aQute.bnd.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:2114)
at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:138)
at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:616)
at org.ops4j.pax.swissbox.bnd.BndUtils.createBundle(BndUtils.java:161)
at
org.ops4j.pax.url.war.internal.AbstractConnection.createBundle(AbstractConnection.java:174)
at
org.ops4j.pax.url.war.internal.WebBundleConnection.createBundle(WebBundleConnection.java:108)
at
org.ops4j.pax.url.war.internal.AbstractConnection.getInputStream(AbstractConnection.java:143)
at
org.ops4j.pax.url.war.internal.WarConnection.getInputStream(WarConnection.java:33)
at java.net.URL.openStream(URL.java:1045)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:962)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:884)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:489)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
I don't know what to do with this error, either.
Can you please help me resolve this issue?
Regards,
Daniel
Daniel Krenn
Consultant MES
[email protected]<mailto:[email protected]>
| Tel. +49 (9931) 981 365
T.CON GmbH & Co. KG
Hauptsitz
Straubinger Straße 2
94447 Plattling
T: +49 (0)9931 981 100
F: +49 (0)9931 981 199 www.mescat.de >
www.team-con.de >
Messetermine >
facebook | twitter | xing | linkedin | youtube | instagram
Geschäftsführer: Karl Fuchs, Michael Gulde, Stefan Fiedler
KG, AG Deggendorf HRA 1618 Pers. haftender Ges.
T.CON Beteiligungs-GmbH AG
Deggendorf HRB 2053
Besuchen Sie uns auf folgenden Events:
Erhalten Sie wichtige Informationen von T.CON. Jetzt anmelden.