-
1. Re: class loading issues
stlewis Jul 2, 2009 10:47 AM (in response to arturs)It's likely that you're using a dependent library but not specifically importing the package in your own code, so the maven-bundle-plugin needs you to tell it what other packages your bundle needs to import. You do this with the
In this case I'm telling the plugin that my bundle also needs to have access to org.some.other.package whether or not my code actually imports this package.
-
2. Re: class loading issues
arturs Jul 2, 2009 10:52 AM (in response to stlewis)Thanks for response,
Missing package is imported there.
Ex .
Problem:
java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence
Config:
...
<Import-Package>
*;resolution:=optional,
org.apache.camel,
org.apache.camel.builder,
org.apache.camel.model,
org.apache.log4j,
org.aspectj.lang.annotation,
org.springframework.beans.factory,
org.apache.camel.osgi,
org.apache.camel.component.jetty,
org.springframework.aop.aspectj.annotation,
org.springframework.aop.framework,
org.springframework.aop,
net.sf.cglib.proxy,
org.aopalliance.aop,
net.sf.cglib.core,
net.sf.cglib.reflect,
org.aspectj.lang.reflect,
org.aspectj.lang,
org.apache.commons.dbcp,
org.springframework.orm.jpa,
org.springframework.jdbc.datasource.lookup,
org.springframework.orm.jpa.vendor,
*org.hibernate.ejb*
</Import-Package>