Hi, Seems you container doesn't export package javax.security.auth, What you get from
packages:exports |grep javax.security.auth ? ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2013-1-4, at 上午9:06, thully wrote: > Hi, > > We have a project which uses a custom Karaf distribution constructed using a > Maven project with some patches to resources files in src/main > filtered-resources. Anyway, in troubleshooting another problem, I decided to > try upgrading our project from 2.2.9 to 2.3.0. As such, I changed the > version number of Karaf in the pom.xml to 2.3.0 (and the version numbers of > all dependencies to the versions used by Karaf) and reran mvn install. > > While the distribution was successfully built, running said distribution is > another story. When I try to do so, I get a slew of error messages like the > following: > > ERROR: Bundle org.apache.karaf.shell.packages [40] Error starting > mvn:org.apache.karaf.shell/org.apache.karaf.shell.packages/2.3.0 > (org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.karaf.shell.packages [40]: Unable to resolve 40.0: missing > requirement [40.0] osgi.wiring.package; > (&(osgi.wiring.package=org.apache.felix.gogo.commands)(version>=0.10.0)(!(version>=1.0.0))) > [caused by: Unable to resolve 14.0: missing requirement [14.0] > osgi.wiring.package; (osgi.wiring.package=javax.security.auth)]) > org.osgi.framework.BundleException: Unresolved constraint in bundle > org.apache.karaf.shell.packages [40]: Unable to resolve 40.0: missing > requirement [40.0] osgi.wiring.package; > (&(osgi.wiring.package=org.apache.felix.gogo.commands)(version>=0.10.0)(!(version>=1.0.0))) > [caused by: Unable to resolve 14.0: missing requirement [14.0] > osgi.wiring.package; (osgi.wiring.package=javax.security.auth)] > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1868) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191) > at > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295) > at java.lang.Thread.run(Thread.java:662) > > Does anyone have any idea what I'm missing/need to change for my project to > work with 2.3.0? It looks like I'm missing some dependency, but I don't know > what (and where I need to look)... > > > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Upgrading-Karaf-2-2-9-to-2-3-0-in-custom-distribution-tp4027187.html > Sent from the Karaf - User mailing list archive at Nabble.com.
