tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: ValidationException due to META-INF/validation.xml's url capitalization
Date Fri, 23 Jun 2017 09:26:11 GMT
we can surely add a flag to not lowercase anymore the url, it is actually
really less useful now we rewritten part of the scanning - doubt I have is
about java 9 which can still require it.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-06-23 7:57 GMT+02:00 some user <oliver.fritzen@nordlb.de>:

> Romain Manni-Bucau wrote
> > is it intended it is not the same URLs? (someproject3 vs someproject)
>
> No, that was a typo when I composed this message, sorry. Correct would have
> been "someproject3" in both URLs, so that they're completely equal, apart
> from the case.
>
>
> Romain Manni-Bucau wrote
> > First thing I'd do is to check why the case is different, even if openejb
> > tries to absorb that it is generally an issue when launching the command
> > line/created the classpath.
>
> I guess the problem is the classloader used by the JUnit runner (windows /
> Eclipse), which is outside of the OpenEJB ecosystem. Hence, it discovers
> the
> lowercased URL from the ejbModule, as well as the not-lowercased URL from
> the project folder via its eclipse run configuration, which leads to the
> problem in the validation framework.
>
>
> Romain Manni-Bucau wrote
> > If still an issue you can probably use as you mentionned arquillian or
> > ApplicationComposer but EJBContainer normally works when the JVM is not
> > corrupted (if you use eclipse, give it a try outside eclipse too).
>
> I tried executing the tests with maven (surefire plugin), but still the
> same.
> Ugly but interesting: I found out that I can get the code working when
> tricking OpenEJB into thinking it's on a non-windows os, by supplying VM
> parameters -Dos.name=foo.
>
> I have to think about if I want to use that as a strategy, or accept the
> additional complexity of arquillian or the ApplicationComposer.
>
> Anyway: many thanks for supporting!
>
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/
> ValidationException-due-to-META-INF-validation-xml-s-url-capitalization-
> tp4681940p4681948.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message