Hello Andi,


Thanks so much for your help. I managed to get it to run.



I created the module-info files with exports entries for each package which has 
a .class file in it.

With that I again got the error that schema files couldn't be found. Then I had 
a look in the description of the class.getclassloader. Here it is notices that 
resource files can only be loaded that way if the package is open via the 
module-info. I opened all packages containing the schema files. Some of them 
where already exports, so I changed it to opens.

That did the trick.

In our program I changed all class.getClassloader.getResource[AsStream] to 
class.getResource[AsStream] but with it the resources are module internal only, 
as long as one is not using some kind of ResourceProvider.



I guess that my previous repackage attempt where I tried to integrate xmlbeans 
into ooxml-schemas would have worked with opened packages, too.

But I think you still can use your work for following Jigsaw work.



Now I use modified versions of:

poi-4.0.1.jar

poi-ooxml-4.0.1.jar

ooxml-schemas-1.4.jar

xmlbeans-3.0.3.jar



Please let me know if you can use these modified versions and/or module-info 
files. Then I will upload them for you.



Best regards,

Achim


Reply via email to