[jboss-jira] [JBoss JIRA] (HIBERNATE-141) JBAS011910 Cannot resolve requirements: [XPackageRequirement[atts={osgi.wiring.package=org.hibernate.criterion}
Darryl Miles (JIRA)
jira-events at lists.jboss.org
Wed Apr 10 08:03:46 EDT 2013
[ https://issues.jboss.org/browse/HIBERNATE-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765940#comment-12765940 ]
Darryl Miles commented on HIBERNATE-141:
----------------------------------------
Ah to update this ticket with some findings, the EAP 6.1
The bundled hibernate-core-4.2.0.CR1.jar does not contain OSGi manifest data.
My upgraded hibernate-core-4.2.0.Final.jar does contain OSGi manifest data.
Looking at the data there are many reference to the org.hibernate.criterion in the Export-Package header.
How does this affect how things work ?
> JBAS011910 Cannot resolve requirements: [XPackageRequirement[atts={osgi.wiring.package=org.hibernate.criterion}
> ---------------------------------------------------------------------------------------------------------------
>
> Key: HIBERNATE-141
> URL: https://issues.jboss.org/browse/HIBERNATE-141
> Project: Hibernate Integration
> Issue Type: Enhancement
> Reporter: Darryl Miles
> Assignee: Steve Ebersole
>
> EAP 6.1 with upgraded org.hibernate:main jars to 4.2.0.Final (to fix classloading issue HHH-8015 which I did observe).
> JPA has META-INF/jboss-deployment-structure.xml which has entry (amongst other things):
> <module name="org.hibernate" />
> <module name="org.hibernate.validator" />
> JPA has OSGi meta-data including OSGi-JPA:
> Meta-Persistence: META-INF/persistence.xml
> 23:00:16,860 INFO [org.jboss.osgi.framework] (MSC service thread 1-15) JBOSGI011005: Bundle uninstalled: com.domain.jpa:0.0.1.SNAPSHOT
> 23:00:16,862 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment com.domain.jpa-0.0.1-SNAPSHOT.jar (runtime-name: com.domain.jpa-0.0.1-SNAPSHOT.jar) in 4ms
> 23:00:16,863 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "com.domain.jpa-0.0.1-SNAPSHOT.jar" (runtime-name: "com.domain.jpa-0.0.1-SNAPSHOT.jar")
> 23:00:16,876 INFO [org.jboss.as.jpa] (MSC service thread 1-15) JBAS011401: Read persistence.xml for com.domain.jpa
> 23:00:16,880 INFO [org.jboss.osgi.framework] (MSC service thread 1-9) JBOSGI011001: Bundle installed: com.domain.jpa:0.0.1.SNAPSHOT
> 23:00:16,884 WARN [org.jboss.as.osgi] (MSC service thread 1-14) JBAS011910: Cannot resolve requirements: [XPackageRequirement[atts={osgi.wiring.package=org.hibernate.criterion},[com.domain.jpa:0.0.1.SNAPSHOT]]]
> 23:00:16,884 INFO [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015970: Defer FIRST_MODULE_USE for com.domain.jpa-0.0.1-SNAPSHOT.jar making it NEVER
> 23:00:16,908 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "com.domain.jpa-0.0.1-SNAPSHOT.jar" with deployment "com.domain.jpa-0.0.1-SNAPSHOT.jar"
> I would expect the OSGi subsystem to have been able to find the import package org.hibernate.criterion
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list