That doesn’t seem to be working all all…. I used the Nov 06 snapshot, unzipped the staff and started karaf.bat. Then I just typed features:install webconsole and nyt it’s just running there for 5 minutes and nothing happens…
IIRC, installing JUST the webconsole directly seems to be a bit iffy; I usually install at least jetty and war support before webconsole and after those the webconsole installed ok and took only few seconds. - Petri From: jbonofre [via Karaf] [mailto:[email protected]] Sent: 7. marraskuuta 2012 11:36 To: Riipinen Petri Subject: Re: How to debug non-working war-deployment? I guess that you try: features:install war features:install webconsole Could you try to install directly the webconsole (without previous http or war features installed): features:install webconsole I suspect an issue that I saw before. Regards JB On 11/07/2012 08:01 AM, PJR69 wrote: > Hi, > > Heh… ;) Ok, I feel a bit embarrassed now.. ;) > > Which snapshot would you recommend? I tried the two latest ones (Nov 06 and > Nov 07) and the 07 one doesn’t seem to even start and the 06 has some issues > with deploying the war, i.e. it won’t trigger Pax Web at all (there is no > Web-State for my war and nothing gets dumped into the log even with DEBUG > level set) and the Web Console doesn’t work at all. Not really keen on trying > out every one of them… ;) > > > - Petri > > From: jbonofre [via Karaf] [mailto:[hidden > email]</user/SendEmail.jtp?type=node&node=4026707&i=0>] > Sent: 7. marraskuuta 2012 8:07 > To: Riipinen Petri > Subject: Re: How to debug non-working war-deployment? > > Hi, > > Achim talked about Karaf 2.3.1-SNAPSHOT (which use Pax Web 1.1.5 (1.1.6 > soon, I'm updating ;))). > > You can find Karaf 2.3.1-SNAPSHOT here: > > https://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/2.3.1-SNAPSHOT/ > > Regards > JB > > On 11/07/2012 06:27 AM, PJR69 wrote: > >> Hi again, >> >> Ok, I’m prolly being a bit slow here but I’m trying to find 2.3.1-SNAPSHOT >> here: >> https://oss.sonatype.org/content/repositories/ops4j-snapshots/org/ops4j/pax/web/ >> and can’t see it… Where do I find it? >> >> >> - Petri >> >> From: Achim Nierbeck [via Karaf] [mailto:[hidden >> email]</user/SendEmail.jtp?type=node&node=4026704&i=0>] >> Sent: 6. marraskuuta 2012 21:31 >> To: Riipinen Petri >> Subject: Re: How to debug non-working war-deployment? >> >> Hi, >> >> do you mind to test with the latest 2.3.1-SNAPSHOT, cause there had been an >> issue with Pax-Web [1] >> which should be fixed by now. >> >> regards, Achim >> >> [1] - http://team.ops4j.org/browse/PAXWEB-426 >> >> 2012/11/6 PJR69 <[hidden >> email]</user/SendEmail.jtp?type=node&node=4026701&i=0>> >> Hi, >> >> Thanks for the advice, that helped me to progress a lot. Now it seems that >> my servlet looks to be deployed ok, but the context-mapping isn’t working >> for some reason or other. >> >> web:list shows one entry: >> State = Active >> Web-State = Deployed >> Web-ContextPath = /portal >> >> But when I try to browse http://localhost:8181/portal I get HTTP error 404, >> not found. >> >> When I look at the log, I always get these kinds of entries: >> Path [/portal] does not match any context. >> >> I’ve tried numerous different URL combinations there (like /portal/portal >> and /portal1/portal as portal1 is the name of the Karaf instance where the >> war is deployed) but nothing seems to work. >> >> In the manifest I have Web-ContextPath: portal so AFAIU, the application >> should be on the above URL. >> >> I’m trying to follow the infor here >> http://leshazlewood.com/2010/09/08/osgi-maven-pax-and-web-applications/ as >> much as possible, but I don’t have any jsp-pages there. The main servlet is >> mapped just on / >> >> So, AFAIU, Karaf + Pax seem to deploy my OSGIfied WAR-bundle ok, no errors >> on log at least, but for some reason the main servlet inside the war just >> can’t be reached via the URL that I’d assume it should be. >> >> Any ideas how to proceed would be greatly appreciated… >> >> >> - Petri >> >> >> From: Achim Nierbeck [via Karaf] [mailto:[hidden >> email]</user/SendEmail.jtp?type=node&node=4026701&i=1>] >> Sent: 5. marraskuuta 2012 15:50 >> To: Riipinen Petri >> Subject: Re: How to debug non-working war-deployment? >> 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 <[hidden >> email]</user/SendEmail.jtp?type=node&node=4026686&i=0>> >> 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/> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026686.html >> To start a new topic under Karaf - User, email [hidden >> email]</user/SendEmail.jtp?type=node&node=4026701&i=2><mailto:[hidden >> email]</user/SendEmail.jtp?type=node&node=4026701&i=3<mailto:[hidden%20email]%3c/user/SendEmail.jtp?type=node&node=4026701&i=3<mailto:[hidden%20email]%3c/user/SendEmail.jtp?type=node&node=4026701&i=3%3cmailto:%5bhidden%20email%5d%3c/user/SendEmail.jtp?type=node&node=4026701&i=3>>>> >> To unsubscribe from Karaf - User, click here< >> NAML<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026700.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/> >> >> ________________________________ >> If you reply to this email, your message will be added to the discussion >> below: >> http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026701.html >> To start a new topic under Karaf - User, email [hidden >> email]</user/SendEmail.jtp?type=node&node=4026704&i=1><mailto:[hidden >> email]</user/SendEmail.jtp?type=node&node=4026704&i=2<mailto:[hidden%20email]%3c/user/SendEmail.jtp?type=node&node=4026704&i=2>>> >> To unsubscribe from Karaf - User, click here< >> NAML<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026703.html >> Sent from the Karaf - User mailing list archive at Nabble.com. >> > > -- > Jean-Baptiste Onofré > [hidden email]</user/SendEmail.jtp?type=node&node=4026704&i=3> > http://blog.nanthrax.net > Talend - http://www.talend.com > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026704.html > To start a new topic under Karaf - User, email [hidden > email]</user/SendEmail.jtp?type=node&node=4026707&i=1><mailto:[hidden > email]</user/SendEmail.jtp?type=node&node=4026707&i=2>> > To unsubscribe from Karaf - User, click here< > NAML<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026705.html > Sent from the Karaf - User mailing list archive at Nabble.com. > -- Jean-Baptiste Onofré [hidden email]</user/SendEmail.jtp?type=node&node=4026707&i=3> http://blog.nanthrax.net Talend - http://www.talend.com ________________________________ If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026707.html To start a new topic under Karaf - User, email [email protected]<mailto:[email protected]> To unsubscribe from Karaf - User, click here<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=930749&code=cGV0cmkucmlpcGluZW5AaW5zdGEuZml8OTMwNzQ5fDU5NTY5OTMzOA==>. NAML<http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> -- View this message in context: http://karaf.922171.n3.nabble.com/How-to-debug-non-working-war-deployment-tp4026682p4026708.html Sent from the Karaf - User mailing list archive at Nabble.com.
