wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RalfButler <ralf.but...@web.de>
Subject OSGi Activator setup
Date Fri, 01 Feb 2013 12:06:28 GMT
Hi there,

My webapp bundle deployment into OSGi Enterprise Server Jonas works fine. It
is just that I don't know how to access the my webapp. I added an Activator

/import java.util.Hashtable;
import javax.servlet.Filter;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class TestWAPActivator implements BundleActivator {

    public void start(BundleContext context) throws Exception {
        Hashtable<String, String> props = new Hashtable<>();
        props.put("pattern", "/.*");

        final TestWAPFilter service = new TestWAPFilter();
        context.registerService(Filter.class.getName(), service, props);

    public void stop(BundleContext bc) throws Exception {

And a Filter class

/import org.apache.wicket.protocol.http.WicketFilter;

public class TestWAPFilter extends WicketFilter{

    protected ClassLoader getClassLoader() {
        return this.getClass().getClassLoader();

Got it from  here

. So far I thought that it would be enough to invoke the web app via
localhost:xxxx/TestWAP, but it seems that I miss out on something.

Would be great if some of you could help me.


View this message in context: http://apache-wicket.1842946.n4.nabble.com/OSGi-Activator-setup-tp4655994.html
Sent from the Users forum mailing list archive at Nabble.com.

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message