Thanks for your answer. Shall I try the 0.8 version or stick to the 0.7 at the moment?

Regards
Michael

Am 30.11.2011 05:13, schrieb Andreas Pieber:
Hey Michael,

First of all pls take 0.7.5 which contains various additional bug fixes. Secondly sorry for the confusion but the wiki explains wiki and the samples all use pax-wicket 0.8.0-SNAPSHOT which is a little bit different from 0.7.x.

For 0.7.x there are a little bit smaller examples (but still) available here: https://github.com/ops4j/org.ops4j.pax.wicket/blob/wicket-0.7.x/samples/view/application/src/main/resources/OSGI-INF/blueprint/application.xml. The xsd for blueprint 0.7.x is here: https://github.com/ops4j/org.ops4j.pax.wicket/blob/wicket-0.7.x/service/src/main/resources/org/ops4j/pax/wicket/internal/injection/blueprint/wicket.xsd.

I really hope that I can release it quite soon... Still, feel free to post any additional question/problem you have here on this list.

Btw, one additional hint for 0.7.x (this one is a little bit different in 0.8.x): In all bundles (except the one defining your application you typically want to activate the classResolver, injectionProvider and autoPageMounter). This one will be done automatically for 0.8.x.

<wicket:classResolver id="classResolver" applicationName="APP_NAME" />

<wicket:injectionProvider id="injectionProvider" applicationName="APP_NAME" />

<wicket:autoPageMounter id="autoPageMounter" applicationName="APP_NAME" />

In addition you typically have to import the following packages manually:
<Import-Package>org.ops4j.pax.wicket.util.proxy,

              net.sf.cglib.core;version="[2,3)",
              net.sf.cglib.proxy;version="[2,3)",
              net.sf.cglib.reflect;version="[2,3)", *
</Import-Package>

I hope this helps and kind regards,

Andreas

On Tue, Nov 29, 2011 at 22:30, Michael Szalay <[email protected] <mailto:[email protected]>> wrote:

    Hi all

    I'm trying a simple sample pax-wicket application on apache karaf
    using aries blueprint.

    I'm not getting the ui example to work. I tried to build it
    according to
    
https://github.com/ops4j/org.ops4j.pax.wicket/tree/master/samples/blueprint/simple.


    If I'm using the "defaultNamespace" approach, the class
    org.ops4j.pax.wicket.util.SimpleWebApplicationFactory is missing.
    These class
    is really not here, its not in the pax-wicket bundle...

    If I'm using the "pax wicket namespace" approach, I'm getting the
    error

    Caused by: org.xml.sax.SAXParseException; cvc-complex-type.3.2.2:
    Attribute 'class' is not allowed to appear in element
    'wicket:application'.
            at
    
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:387)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:321)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:421)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3186)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2663)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2070)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:709)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:276)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:243)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:189)[:1.6.0_22]
            at
    
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:108)[:1.6.0_22]
            at
    javax.xml.validation.Validator.validate(Validator.java:124)[:1.6.0_22]

            at
    
org.apache.aries.blueprint.container.Parser.validate(Parser.java:285)[9:org.apache.aries.blueprint:0.3.1]


    when deploying my bundle.

    I installed the pax wicket karaf feature from
    mvn:org.ops4j.pax.wicket/pax-wicket-features/0.7.3/xml/features.

    Any help here?

    Regards Michael

    _______________________________________________
    general mailing list
    [email protected] <mailto:[email protected]>
    http://lists.ops4j.org/mailman/listinfo/general



_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general


--
Mail: michael.szalay(at)gmail.com
Skype: michael_szalay
michaelszalay.ch

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to