-
1. Re: Deploying Apache Tapestry
davsclaus Nov 26, 2012 6:15 AM (in response to fivcsw)See the section about deploying into the container. About the WAR url handler
http://fusesource.com/docs/esbent/7.0/esb_deploy_osgi/UrlHandlers-War.html
You can specify the context path the WAR file should be deployed as.
And there is a web:list command I think, that shows all the WAR apps
-
2. Re: Deploying Apache Tapestry
fivcsw Nov 26, 2012 6:39 AM (in response to davsclaus)Thanks, I tried this:
osgi:install war:mvn:mygroup/tapestryexample-war/1.0-SNAPSHOT/war?Web-ContextPath=mypath
When I start the bundle using osgi:start I get:
INFO | r-0.0.0-thread-1 | WebXmlObserver | 213 - org.ops4j.pax.web.pax-web-extender-war - 1.0.10 | Using \[mypath\] as web application context name
INFO | r-0.0.0-thread-1 | WebXmlObserver | 213 - org.ops4j.pax.web.pax-web-extender-war - 1.0.10 | Using [] as web application root path
INFO | -1.0.10-thread-1 | HttpServiceFactoryImpl | 95 - org.ops4j.pax.web.pax-web-runtime - 1.0.10 | Binding bundle: [mvn_mygroup_tapestryexample-war_1.0-SNAPSHOT_war ] to http service
INFO | r-0.0.0-thread-1 | ContextHandler | 85 - org.eclipse.jetty.util - 7.5.4.v20111024 | started HttpServiceContext{httpContext=org.ops4j.pax.web.extender.war.internal.WebAppWebContainerContext@9438dd}
And then some logging from tapestry showing successful start. But I still can't test the servlet, I just get 404 for http://localhost:8181/ , http://localhost:8181/mypath , http://localhost:8181/mypath/foo and similar urls. With ?Web-ContextPath=mypath I figured I should see the servlet at http://localhost:8181/mypath/anything, right? My WEB-INF/web.xml has <url-pattern>/*</url-pattern>
-
3. Re: Deploying Apache Tapestry
davsclaus Nov 29, 2012 11:37 AM (in response to fivcsw)Hi
Yeah I ran into the same issue with seeing Tapestry start up, but no web page being rendered.
I posted a question on the Karaf user mailing lists, as that's where the pax-web team hang out also
http://karaf.922171.n3.nabble.com/Pax-web-and-using-Apache-Tapestry-tp4026946.html