JAR searched on the classpath instead of the module path in Build #156
Sanne Grinovero
sanne at redhat.com
Mon Feb 13 12:52:07 UTC 2017
Hi Alexandru,
please be aware that Hibernate to support Jigsaw is a work in
progress. We had some successful builds (including test runs) some
months ago, but we have yet to catch up on recent changes in OpenJDK.
Progress for each Hibernate project can be monitored here:
- http://ci.hibernate.org/view/JDK9/
(although we didn't upgrade to build 156 yet, investigating still some
surprising changes)
The issue you've found should probably be recorded on the Hibernate
JIRA for project HHH:
- https://hibernate.atlassian.net/projects/HHH/summary
Thanks,
Sanne
On Sun, Feb 12, 2017 at 3:33 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> On 12/02/2017 13:29, Alexandru Jecan wrote:
>
>> :
>>
>>
>> I compile my application, create the modular JAR and then at runtime I get
>> the error:
>>
>> Caused by:
>> org.hibernate.boot.jaxb.internal.stax.XmlInfrastructureException: Unable to
>> locate schema [org/hibernate/jpa/orm_2_0.xsd] via classpath
>>
>>
>> Could you please tell me, why does it search for the JAR on the classpath
>> since I moved the JAR to automatic modules ?
>>
>> I have run using the –classpath and the –module-path options at the same
>> time.
>>
>>
>> After that I took an older Jigsaw build (#141 and also #142).
>>
>> I performed exactly the same steps and it works perfectly. The error from
>> above is not displayed any more.
>
> There are >1500 changes in builds 143-156. Is there any way that you can
> bisect this and track down the first build where you see a problem? The
> exception hints of something involving JAXB and a XML schema file. You don't
> say if you are using the java.xml.bind module or the standalone JAXB on the
> class path. In this area, I note that there was a big refresh of JAXB from
> the upstream Metro project in jdk-9+146. In addition, there was a change to
> the Xalan serializer in jdk-9+150 that have brought several regressions and
> bug reports, the fixes for all issues aren't in JDK 9 yet. So anything to
> narrow this down would be good.
>
> -Alan
More information about the jigsaw-dev
mailing list