Hi,

you might want to take a look at the whiteboard samples at [1].

regards, Achim

[1] - https://github.com/ops4j/org.ops4j.pax.web/tree/master/samples

2017-04-30 21:39 GMT+02:00 Steinar Bang <[email protected]>:

> >>>>> Steinar Bang <[email protected]>:
>
> > Ie. it used to be http://localhost:8181/ukelonn but is now
> http://localhost:8181/
>
> > Is there a way to bring the web-context path back? Or will the
> > web-context path only work when using an OSGi-war?
> [snip!]
> > For the VAADIN servlet to work, it has to be registered with the path
> > "/*" (if not it can't fetch its CSS and .js files and images).  Ie. I
> > can't register the servlet as "/ukelonn/*".
>
> Now I'm back in http://localhost:8181/ukelonn
> (and I'm running from a jar OSGi bundle without a web.xml and without
> the war layout)
>  https://github.com/steinarb/ukelonn/tree/using-vaadin/ukelonn.bundle
>
> What I did was register the following paths:
>             final String registrationPath = "/ukelonn/*";
>             final String[] urlPatterns = { registrationPath, "/VAADIN/*" };
>
> On my first try I had used "/ukelonn*", "/VAADIN*", and that didn't
> work.  But putting the * behind a "/" worked.
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

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

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to