Hi, try a web:stop and web:start on that bundle ID. Maybe that works. Besides using Vaadin anything else special about the war?
regards, Achim 2014-11-07 16:22 GMT+01:00 jochenw <[email protected]>: > Dear all, > > I'm trying to deploy a normal .war with "bundle:install -s > webbundle:....war?Bundle-SymbolicName=testwar&Web-ContextPath=/testwar". > The > war contains a Vaadin-based Web application, and it runs on a standalone > jetty or tomcat without problems. > > When deploying in Karaf (war feature installed), the command mentioned > above > returns without an error, and the bundle is shown as active. However, > web:list continues showing the Web-State as "Deploying", and http:list > shows > no servlet. Of course, trying to access the Web UI fails. > > Any idea what I'm doing wrong? Below you can see the relevant lines from > the > log. > > Best Regards, > Jochen > > 2014-11-07 15:05:28,022 | DEBUG | h for user karaf | testwar > | 145 - testwar - 0.0.0 | BundleEvent INSTALLED - testwar > 2014-11-07 15:05:28,022 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | Starting > BlueprintContainer > destruction process for bundle testwar > 2014-11-07 15:05:28,022 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | Not a blueprint bundle or > destruction of BlueprintContainer already finished for testwar. > 2014-11-07 15:05:28,028 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | Starting > BlueprintContainer > destruction process for bundle testwar > 2014-11-07 15:05:28,028 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | Not a blueprint bundle or > destruction of BlueprintContainer already finished for testwar. > 2014-11-07 15:05:28,028 | DEBUG | h for user karaf | Activator > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | Starting > destruction process for bundle testwar > 2014-11-07 15:05:28,028 | DEBUG | h for user karaf | Activator > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | Not an extended > bundle or destruction of extension already finished for testwar. > 2014-11-07 15:05:28,829 | DEBUG | h for user karaf | testwar > | 145 - testwar - 0.0.0 | BundleEvent RESOLVED - testwar > 2014-11-07 15:05:28,829 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | Starting > BlueprintContainer > destruction process for bundle testwar > 2014-11-07 15:05:28,829 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | Not a blueprint bundle or > destruction of BlueprintContainer already finished for testwar. > 2014-11-07 15:05:28,832 | DEBUG | h for user karaf | testwar > | 145 - testwar - 0.0.0 | BundleEvent STARTING - testwar > 2014-11-07 15:05:28,832 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | Scanning bundle testwar > for > blueprint application > 2014-11-07 15:05:28,834 | DEBUG | h for user karaf | BlueprintExtender > | 15 - org.apache.aries.blueprint.core - 1.4.1 | No blueprint application > found in bundle testwar > 2014-11-07 15:05:28,885 | DEBUG | h for user karaf | WebEventDispatcher > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | Sending web event > WebEvent [replay=false, type=DEPLOYING, bundle=testwar [145], > extenderBundle=org.ops4j.pax.web.pax-web-extender-war [133], cause=null, > timestamp=1415372728885, contextPath=/testwar, collisionIds=null, > httpService=null, httpContext=null] for bundle testwar > 2014-11-07 15:05:28,894 | DEBUG | EventExecutor: 1 | pax-web-extender-war > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | > org/osgi/service/web/DEPLOYING > 2014-11-07 15:05:28,894 | DEBUG | h for user karaf | WebAppParser > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | version found in > web.xml - 3.0 > 2014-11-07 15:05:28,894 | DEBUG | h for user karaf | WebAppParser > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | metadata-complete > is: false > 2014-11-07 15:05:28,895 | DEBUG | h for user karaf | WebAppParser > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | scanning for > ServletContainerInitializers > 2014-11-07 15:05:28,897 | DEBUG | h for user karaf | WebAppParser > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | found container > initializers by SafeServiceLoader ... skip the old impl. > 2014-11-07 15:05:29,615 | DEBUG | h for user karaf | Activator > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | Scheduling start > of > extension for bundle testwar asynchronously > 2014-11-07 15:05:29,622 | DEBUG | h for user karaf | testwar > | 145 - testwar - 0.0.0 | BundleEvent STARTED - testwar > 2014-11-07 15:05:29,622 | DEBUG | h for user karaf | ChannelSession > | 28 - org.apache.sshd.core - 0.12.0 | Send SSH_MSG_CHANNEL_DATA on channel > 0 > 2014-11-07 15:05:29,622 | DEBUG | pool-7-thread-1 | WebAppPublisher > | 133 - org.ops4j.pax.web.pax-web-extender-war - 3.1.2 | Publishing web > application > [WebApp{displayName=testwar,contextName=testwar,m_httpContext=null}] > 2014-11-07 15:05:29,622 | DEBUG | h for user karaf | Nio2Session > | 28 - org.apache.sshd.core - 0.12.0 | Writing 68 bytes > 2014-11-07 15:05:29,624 | DEBUG | h for user karaf | ChannelSession > | 28 - org.apache.sshd.core - 0.12.0 | Send SSH_MSG_CHANNEL_DATA on channel > 0 > 2014-11-07 15:05:29,624 | DEBUG | 5]-nio2-thread-1 | Nio2Session > | 28 - org.apache.sshd.core - 0.12.0 | Finished writing > 2014-11-07 15:05:29,624 | DEBUG | h for user karaf | Nio2Session > | 28 - org.apache.sshd.core - 0.12.0 | Writing 52 bytes > 2014-11-07 15:05:29,624 | DEBUG | 5]-nio2-thread-2 | Nio2Session > | 28 - org.apache.sshd.core - 0.12.0 | Finished writing > 2014-11-07 15:05:29,625 | DEBUG | h for user karaf | > LoggingCommandSessionListener | 25 - org.apache.karaf.shell.console - > 3.0.2 | Command: 'bundle:install -s > > "webbundle:file:/opt/testwar-1.0.0.1.war?Bundle-SymbolicName=testwar&Web-ContextPath=/testwar"' > returned 'null' > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/pax-web-war-stays-in-deploying-state-tp4036280.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
