Hi Gareth, comments inline
2012/7/6 Gareth Collins <[email protected]>: > Hello Achim, > > Just letting you know I have migrated all my webapps over to the pax > web trunk (i.e. which includes > the fix) successfully. It is working great now. Thankyou! great to hear always welcome :) > > The next thing I wanted to try out was the new Virtual Hosts feature. > I looked at the pax web examples > and the jetty documentation. For pax web, it appears like the only way > to do this is via a file (jetty-web.xml) in the war. > Is this correct? > indeed as pax-web does only "configure" jetty it's the jetty-web.xml for configuring. > I ask because I was hoping to restrict access to third-party wars > (such as the activemq web war or the karaf console) > to specific virtual hosts (i.e. I don't want these on an external > facing port/IP). Is that something I can do without editing > these third-party wars and adding the jetty-web.xml file (if I have > to, I have to - just seeing if I am missing something here)? > ok, to restrict to specific virtual hosts is a kind of tricky please follow the instructions in [1]. But you will have a hard time configuring this to different ports. What I haven't tried yet but might be a possible solution to not alter certain wars is to try to configure this via the jetty.xml. regards, Achim [1] - http://wiki.eclipse.org/Jetty/Howto/Configure_Virtual_Hosts > thanks in advance, > Gareth > > On Thu, Jun 21, 2012 at 8:50 AM, Gareth Collins > <[email protected]> wrote: >> Thanks very much! >> >> Gareth >> >> On Tue, Jun 19, 2012 at 9:25 PM, Achim Nierbeck <[email protected]> >> wrote: >>> Hi Gareth, >>> >>> I just took care of it. >>> I'm going to release a new version of Pax web ASAP, latest beginning of next >>> week :) >>> >>> regards, Achim >>> >>> Am 19.06.2012 19:18, schrieb Gareth Collins: >>> >>>> Hello Achim, >>>> >>>> Added: >>>> >>>> http://team.ops4j.org/browse/PAXWEB-384 >>>> >>>> I can have a go at fixing it next week (as it is somewhat a showstopper >>>> for me) >>>> when I get back home. >>>> >>>> thanks again, >>>> Gareth >>>> >>>> >>>> On Sun, Jun 17, 2012 at 6:36 PM, Achim Nierbeck <[email protected]> >>>> wrote: >>>>> >>>>> Hi Gareth, >>>>> >>>>> could you open an issue for this, I think limiting this to just 2 *.xml >>>>> files is probably wrong. >>>>> This is probably more a thinking of the old times where the web.xml was >>>>> supposed to be a single file. >>>>> Opening this to include a jetty-web.xml is probably the cause for this. >>>>> >>>>> Regards, Achim >>>>> >>>>> >>>>> Am 16.06.2012 05:08, schrieb Gareth Collins: >>>>>> >>>>>> Hello, >>>>>> >>>>>> As I see that some new software has been updated recently (such as Pax >>>>>> Web 2.0.0 - thankyou!) I decided to go back >>>>>> and try to update my OSGi dependencies and streamline my environment >>>>>> (which is why I was interested in removing >>>>>> the start ordering dependency in pax confman). >>>>>> >>>>>> Anyway one of the first things I am trying to do in my updated >>>>>> environment is to get the updated 5.6.0 activemq web console >>>>>> to play nicely with the updated Pax Web. I am getting an error from >>>>>> Pax Web and I am not sure what it means (this is with equinox 3.6.2 >>>>>> with the bndtools launcher). Is this suggesting there is something >>>>>> wrong with the activemq web console war or is this suggesting >>>>>> something else? There are seven XML files in the activemq WEB-INF >>>>>> directory: >>>>>> >>>>>> 20:50:23,521 | DEBUG | Gogo shell | >>>>>> ..swissbox.extender.BundleWatcher[216] | []:[] | Found resources >>>>>> [bundleentry://11.fwk2060982148/WEB-INF/web.xml, >>>>>> bundleentry://11.fwk2060982148/WEB-INF/webconsole-default.xml, >>>>>> bundleentry://11.fwk2060982148/WEB-INF/webconsole-embedded.xml, >>>>>> bundleentry://11.fwk2060982148/WEB-INF/webconsole-invm.xml, >>>>>> bundleentry://11.fwk2060982148/WEB-INF/webconsole-jndi.xml, >>>>>> bundleentry://11.fwk2060982148/WEB-INF/webconsole-properties.xml, >>>>>> bundleentry://11.fwk2060982148/WEB-INF/webconsole-query.xml] >>>>>> 20:50:23,527 | INFO | Executor: 1 | >>>>>> ..war.internal.WebXmlObserver[117] | []:[] | Using [activemqweb] as >>>>>> web application context name >>>>>> 20:50:23,527 | DEBUG | Framework Event Dispatcher | >>>>>> ..apache.activemq.activemq-web-console[?] | []:[] | BundleEvent >>>>>> STARTED >>>>>> 20:50:23,527 | ERROR | Executor: 1 | >>>>>> ..war.internal.WebXmlObserver[124] | []:[] | Number of xml's was not >>>>>> lesser than 3. Was: 7 >>>>>> org.ops4j.lang.PreConditionException: Number of xml's was not lesser >>>>>> than 3. Was: 7 >>>>>> at >>>>>> >>>>>> org.ops4j.lang.PreConditionException.validateLesserThan(PreConditionException.java:155)[33:org.ops4j.pax.web.pax-web-extender-war:2.0.0] >>>>>> at >>>>>> >>>>>> org.ops4j.pax.web.extender.war.internal.WebXmlObserver.addingEntries(WebXmlObserver.java:121)[33:org.ops4j.pax.web.pax-web-extender-war:2.0.0] >>>>>> at >>>>>> >>>>>> org.ops4j.pax.swissbox.extender.BundleWatcher$3.run(BundleWatcher.java:224)[33:org.ops4j.pax.web.pax-web-extender-war:2.0.0] >>>>>> at >>>>>> >>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_31] >>>>>> at >>>>>> >>>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_31] >>>>>> at >>>>>> java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_31] >>>>>> at >>>>>> >>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_31] >>>>>> at >>>>>> >>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)[:1.6.0_31] >>>>>> at >>>>>> >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31] >>>>>> at >>>>>> >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31] >>>>>> at java.lang.Thread.run(Thread.java:680)[:1.6.0_31] >>>>>> 20:50:23,528 | DEBUG | Executor: 1 | >>>>>> ..war.internal.WebEventDispatcher[130] | []:[] | Sending web event >>>>>> WebEvent [replay=false, type=5, >>>>>> bundle=org.apache.activemq.activemq-web-console_5.6.0 [11], >>>>>> extenderBundle=org.ops4j.pax.web.pax-web-extender-war_2.0.0 [33], >>>>>> cause=org.ops4j.lang.PreConditionException: Number of xml's was not >>>>>> lesser than 3. Was: 7, timestamp=1339807823528, >>>>>> contextPath=/activemqweb, collisionIds=null, httpService=null, >>>>>> httpContext=null] for bundle org.apache.activemq.activemq-web-console >>>>>> 20:50:23,531 | DEBUG | WebListenerExecutor: 2 | >>>>>> ..pax.web.pax-web-extender-war[?] | []:[] | >>>>>> org/osgi/service/web/FAILED >>>>>> >>>>>> If anyone could indicate what this error may mean (is there really a >>>>>> max xml file limit in this directory?), it would be much appreciated. >>>>>> >>>>>> thanks in advance, >>>>>> Gareth >>>>>> >>>>>> _______________________________________________ >>>>>> general mailing list >>>>>> [email protected] >>>>>> http://lists.ops4j.org/mailman/listinfo/general >>>>> >>>>> >>>>> >>>>> -- >>>>> - 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> >>>>> Committer & Project Lead >>>>> - Blog <http://notizblog.nierbeck.de/> >>>>> >>>>> >>>>> _______________________________________________ >>>>> general mailing list >>>>> [email protected] >>>>> http://lists.ops4j.org/mailman/listinfo/general >>>> >>>> _______________________________________________ >>>> general mailing list >>>> [email protected] >>>> http://lists.ops4j.org/mailman/listinfo/general >>> >>> >>> >>> -- >>> - 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> >>> Committer & Project Lead >>> - Blog <http://notizblog.nierbeck.de/> >>> >>> >>> _______________________________________________ >>> general mailing list >>> [email protected] >>> http://lists.ops4j.org/mailman/listinfo/general > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general -- 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/> _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
