[
https://issues.apache.org/jira/browse/KARAF-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13842291#comment-13842291
]
Achim Nierbeck commented on KARAF-2617:
---------------------------------------
After a restart I stumbled over this exception:
{code}
2013-12-07 19:45:13,352 | INFO | FelixStartLevel | Activator
| 96 - org.ops4j.pax.web.pax-web-runtime - 3.0.5.SNAPSHOT | Pax Web
started
2013-12-07 19:45:13,760 | WARN | pool-9-thread-1 | XmlConfiguration
| 87 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.14.v20131031 |
Config error at <New id="httpConfig"
class="org.eclipse.jetty.server.HttpConfiguration"><Set
name="secureScheme">https</Set><Set name="securePort">
<Property name="jetty.secure.port" default="8443"/>
</Set><Set name="outputBufferSize">32768</Set><Set
name="requestHeaderSize">8192</Set><Set
name="responseHeaderSize">8192</Set><Set
name="sendServerVersion">true</Set><Set name="sendDateHeader">false</Set><Set
name="headerCacheSize">512</Set></New>
2013-12-07 19:45:13,761 | ERROR | pool-9-thread-1 | Activator
| 96 - org.ops4j.pax.web.pax-web-runtime - 3.0.5.SNAPSHOT | Unable to
start pax web server: Exception while starting Jetty
java.lang.RuntimeException: Exception while starting Jetty
at
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:134)[97:org.ops4j.pax.web.pax-web-jetty:3.0.5.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:386)[97:org.ops4j.pax.web.pax-web-jetty:3.0.5.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:69)[97:org.ops4j.pax.web.pax-web-jetty:3.0.5.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Unconfigured.configure(ServerControllerImpl.java:677)[97:org.ops4j.pax.web.pax-web-jetty:3.0.5.SNAPSHOT]
at
org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:85)[97:org.ops4j.pax.web.pax-web-jetty:3.0.5.SNAPSHOT]
at
org.ops4j.pax.web.service.internal.Activator.updateController(Activator.java:342)[96:org.ops4j.pax.web.pax-web-runtime:3.0.5.SNAPSHOT]
at
org.ops4j.pax.web.service.internal.Activator$3.run(Activator.java:286)[96:org.ops4j.pax.web.pax-web-runtime:3.0.5.SNAPSHOT]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_17]
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_17]
at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_17]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_17]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_17]
at java.lang.Thread.run(Thread.java:722)[:1.7.0_17]
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.7.0_17]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_17]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_17]
at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_17]
at
org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:115)[97:org.ops4j.pax.web.pax-web-jetty:3.0.5.SNAPSHOT]
... 12 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.jetty.server.HttpConfiguration not found by
org.eclipse.jetty.aggregate.jetty-all-server [87]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_17]
at
org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1374)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1553)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1484)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)[org.apache.felix.framework-4.2.1.jar:]
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)[:1.7.0_17]
at org.eclipse.jetty.util.Loader.loadClass(Loader.java:100)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.nodeClass(XmlConfiguration.java:366)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:767)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:404)
at
org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:334)
at
org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:281)
... 17 more
{code}
> Deployed WAB are not available and stay in unknown state
> --------------------------------------------------------
>
> Key: KARAF-2617
> URL: https://issues.apache.org/jira/browse/KARAF-2617
> Project: Karaf
> Issue Type: Bug
> Components: karaf-webcontainer
> Affects Versions: 3.0.0
> Reporter: Jean-Baptiste Onofré
> Priority: Critical
> Fix For: 3.0.0
>
>
> After installing the war feature, I tried to deploy and test two WebBundle
> without success:
> 1/ First, I tried to deploy a "pure" WebBundle: the Karaf manual war:
> karaf@root()> bundle:install -s mvn:org.apache.karaf/manual/3.0.0-SNAPSHOT/war
> The WAB has been correctly installed:
> karaf@root()> la|grep -i manual
> 111 | Active | 80 | 3.0.0.SNAPSHOT | Apache Karaf :: Manual
> I can see the WAB with the web:list command:
> karaf@root()> web:list
> ID | State | Web-State | Level | Web-ContextPath | Name
>
> ---------------------------------------------------------------------------------------------------
> 111 | Active | Unknown | 80 | /karaf-doc | Apache Karaf ::
> Manual (3.0.0.SNAPSHOT)
> But the Web-State is Unknown and when using http://localhost:8181/karaf-doc
> URL, I have 404 (it looks like the WAB is not really deployed in the
> WebContainer).
> 2/ I tried with the Tomcat sample war using webbundle URL:
> karaf@root()> bundle:install -s
> webbundle:http://tomcat.apache.org/tomcat-5.5-doc/appdev/sample/sample.war?Bundle-SymbolicName=tomcat-sample&Webapp-Context=/sample
> Again, I can see the WAB with web:list:
> karaf@root()> web:list
> ID | State | Web-State | Level | Web-ContextPath | Name
> -----------------------------------------------------------------------------
> 111 | Active | Unknown | 80 | /sample | tomcat-sample (0)
> But again, the Web-State is Unknown and I have 404 accessing
> http://localhost:8181/sample
--
This message was sent by Atlassian JIRA
(v6.1#6144)