Hi,

which version of Karaf do you use?
Second, what does the karaf.log say?

How does your war look like, did you add the required OSGi-Manifest entries
to it?
if not, you need to install it with
install -s webbundle:mvn:url

What does the web:list command list when used?

Besides that if you want to debug, you should start Karaf in debug mode by
using
"karaf.sh debug" (or "karaf.bat debug" on windows) on comandline.

The sources for the web-extender can be found at OPS4j Pax-Web, see [1] to
[3]

regards, Achim

[1] -
http://team.ops4j.org/wiki/display/ops4j/Open+Participation+Software+for+Java
[2] - http://team.ops4j.org/wiki/display/paxweb/Pax+Web
[3] - https://github.com/ops4j/org.ops4j.pax.web


2012/11/5 PJR69 <[email protected]>

> I have a WAR-packaged application that runs fine on Tomcat.
>
> Now I'm trying to get it to run on Karaf with jetty. I've installed jetty +
> war features and I see jetty running on 8181 and get the page not found
> error when browsing the root.
>
> I've osgified my manifest as instructed here:
> http://team.ops4j.org/wiki/display/paxweb/OSGi-fy+your+WAR and to me it
> looks ok.
>
> But when I drop the WAR into the deploy-folder, nothing much really
> happens.
> I do see the installer writing "installed... .war" -text and list shows
> that
> the application is there in Installed-state. But nothing else happens.
>
> The application should be bound to /portal-endpoint but navigating there
> with a browser just gives the same page not found error and nothing gets
> output on the log.
>
> Any ideas how to proceed with debugging the problem?
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to