Hi, The OWBTransformer does not work if you dont handle ordinals in modifyOutputstream (see https://github.com/apache/openwebbeans/tree/master/webbeans-gradle). This can break the runtime if not done.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le ven. 29 nov. 2019 à 11:46, Helge Waastad <[email protected]> a écrit : > Hi, > I'll see about the extension. > > I have'nt a public repo just yet, but the shadowjar config is: > --- > > mergeServiceFiles() > > transform(AppendingTransformer) { > resource = 'META-INF/cxf/bus-extensions.txt' > } > transform(AppendingTransformer) { > resource = 'log4j2.component.properties' > } > transform(Log4j2PluginsCacheFileTransformer) > > transform(OpenWebBeansPropertiesTransformer) { > resource = 'META-INF/openwebbeans/openwebbeans.properties' > } > > transform(ServiceFileTransformer) > > manifest { > attributes 'Main-Class': 'org.waastad.Main' > } > --- > > Using my own OpenWebBeansPropertiesTransformer which is basically the same > as the openwebbeans one (never got the original to work), just using: > > --- > @Override > void transform(TransformerContext context) { > Properties p = new Properties() > try { > p.load(context.is) > } catch (IOException e) { > throw new IllegalStateException(e); > } > configurations.add(p) > } > > --- > > psvm: > builder.setTomcatScanning(true); > builder.setTomcatAutoSetup(true); > > try (Meecrowave container = new Meecrowave(builder).bake()) { > container.await(); > } > --- > > > If this does'nt make sense, or is too limited for analysis, I'll see if I > can make a sample. > > Thx for your reply, BTW :-) > > /hw > > > to., 28.11.2019 kl. 20.18 +0100, skrev Romain Manni-Bucau: > > Hi, > > No real reason and I have cases where it works. > Can it be a shade misconfig (like a missing beans.xml merge, module-info > exclusion, excludee package etc...)? > > Any way to get a reproducer? > > Side note: trivial workaround is a cdi extension registering the annitated > type of jaxrs beans in beforebeandiscovery event. > > Le jeu. 28 nov. 2019 à 19:24, Helge Waastad <[email protected]> a écrit : > > Hi, > I’ve just upgraded a simple rest project using gradle/shadowjar to > meecrowave 1.2.9 and now it seems that the annotated rest services are not > found. > > If I add a beans.xml it’s OK again. > > Is there a reason why? > > /hw > > Sendt fra min iPhone > > -- > > Helge Waastad > - The Undelstad Cup Champion 2017 >
