-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: BundleException: Invalid manifest header Export-Package
PostPosted: Thu Nov 04, 2010 6:38 am 
Newbie

Joined: Mon Nov 19, 2007 8:40 am
Posts: 5
On upgrading from Hibernate 3.3.0.SP1 to 3.6.0-FINAL our Eclipse based UI (which exports the entire hibernate jar to its dependent plugins) failed to start. The exception raised by the eclipse OSGi framework was:

org.osgi.framework.BundleException: Invalid manifest header Export-Package: <followed by a comma-separated list of exported package names>

Crucially, the list of package names started with a comma. On examining the contents of the jar we noticed that in the base of the jar is a file '/hibernate-distribution-3.6.0.Final.pom'. The leading slash was causing the problem. On removal our UI started up.

(Interestingly this seems also to cause an issue with the Pack200 packaging scheme used by our installer builder.)

Not sure at this stage whether this is an Hibernate bug, a Maven 2 bug or an Eclipse/OSGi bug. However it caused some head-scratching here and, since the workaround is straightforward, we though we should post this message to help others confronted with the same issue.

(Hibernate 3.5.3 has the same issue - but we could not use it owing to other bug fixes we were awaiting.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.