Hi, as with all other OSGi things you need to import packages for classes not within your own bundles. The default are available from the containers and therefore aren't needed as those are implicit available from the web container.
regards, Achim 2016-08-10 15:43 GMT+02:00 iJava <[email protected]>: > I have a wab bundle. Besides I have a jar bundle which has > META-INF/tags/tags.tld file and com.example.tags.SomeMyTag class. > > I didn't find example in http://central.maven.org/ > maven2/org/ops4j/pax/web/samples/ . The only information (several lines) > are > here http://ops4j.github.io/pax/web/4.2.x/index.html > > So I did this way: > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <configuration> > <archive> > .... > <manifestEntries> > <Bundle-ClassPath>WEB-INF/classes/, > com.example-1.0.0.jar</Bundle-ClassPath> > </manifestEntries> > </archive> > <failOnMissingWebXml>false</failOnMissingWebXml> > </configuration> > </plugin> > <plugin> > <groupId>org.apache.felix</groupId> > <artifactId>maven-bundle-plugin</artifactId> > <configuration> > <instructions> > .... > <Import-Package> > com.example.tags,* > </Import-Package> > </instructions> > </configuration> > </plugin> > > Did I do right? What confuses me is that I need to manually import > packages. > I do not import packages of default tlds but they work. But my tlds don't > work if I don't import packages. > > -- > -- > ------------------ > 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.
