So I've just added using my own:---mergeServiceFiles()
transform(OpenWebBeansPropertiesTransformer) {
    resource = 'META-INF/openwebbeans/openwebbeans.properties'
}---properties:
## gradle META-INF/openwebbeans/openwebbeans.properties merge
#Sat Nov 30 10:47:16 CET 2019
org.apache.webbeans.spi.adaptor.ELAdaptor=org.apache.webbeans.el22.EL22
Adaptor
org.apache.webbeans.spi.ScannerService=org.apache.meecrowave.openwebbea
ns.OWBTomcatWebScannerService
org.apache.webbeans.spi.LoaderService=org.apache.meecrowave.openwebbean
s.MeecrowaveLoaderService
org.apache.webbeans.spi.ApplicationBoundaryService=org.apache.webbeans.
corespi.se.DefaultApplicationBoundaryService
org.apache.webbeans.application.jsp=false
org.apache.webbeans.proxy.mapping.javax.enterprise.context.ApplicationS
coped=org.apache.webbeans.intercept.ApplicationScopedBeanInterceptorHan
dler
org.apache.webbeans.proxy.mapping.javax.enterprise.context.RequestScope
d=org.apache.webbeans.intercept.RequestScopedBeanInterceptorHandler
org.apache.webbeans.useBDABeansXMLScanner=false
org.apache.webbeans.spi.JNDIService=org.apache.webbeans.corespi.se.Defa
ultJndiService
org.apache.webbeans.spi.deployer.useEjbMetaDataDiscoveryService=false
org.apache.webbeans.spi.ContextsService=org.apache.webbeans.web.context
.WebContextsService
javax.enterprise.inject.allowProxying.classes=java.util.HashMap,
java.util.Calendar
org.apache.webbeans.spi.BeanArchiveService=org.apache.webbeans.xml.Defa
ultBeanArchiveService
org.apache.webbeans.proxy.mapping.javax.enterprise.context.SessionScope
d=org.apache.webbeans.intercept.SessionScopedBeanInterceptorHandler
org.apache.webbeans.web.eagerSessionInitialisation=false
org.apache.webbeans.spi.ConversationService=org.apache.webbeans.web.con
text.WebConversationService
org.apache.webbeans.service.DefaultInjectionPointService.implicitSuppor
t=false
org.apache.xbean.finder.filter.Filter=org.apache.meecrowave.openwebbean
s.KnownClassesFilter
org.apache.webbeans.application.supportsConversation=true
org.apache.webbeans.spi.ContainerLifecycle=org.apache.webbeans.web.life
cycle.WebContainerLifecycle
org.apache.webbeans.spi.SecurityService=org.apache.meecrowave.openwebbe
ans.MeecrowaveSecurityService
org.apache.webbeans.spi.InjectionPointService=org.apache.webbeans.servi
ce.DefaultInjectionPointService
org.apache.webbeans.scanExclusionPaths=/jre/lib, /Contents/Home/,
/dt.jar, /tools.jar, /bootstrap.jar, /asm, /javassist, /xbean-,
/jconsole.jar, /geronimo-connector,/geronimo-j2ee-,/geronimo-
jpa_,/geronimo-javamail,/geronimo-transaction,/commons-, /arquillian-,
/bsh-, /shrinkwrap-, /junit-, /testng-, /openjpa-, /bcel, /hamcrest,
/mysql-connector, /testng, /idea_rt, /eclipse, /jcommander, /tomcat,
/catalina, /jasper, /jsp-api, /myfaces-api, /myfaces-impl, /servlet-
api, /javax, /annotation-api, /el-api, /mojarra, /sisu-guice-, /sisu-
inject-, /aether-, /plexus-, /maven-, /guava-, /openwebbeans-, /bcprov-
jdk14-, /bcmail-jdk14-, /bctsp-jdk14-, /bcmail-jdk14-, /ss_css2-,
/itext-, /pd4ml-, /xmlpull-, /log4j-, /slf4j-, /logkit, /gson-,
/xstream-, /httpclient-, /httpcore-, /backport-util-concurrent-, /xml-
apis, /xpp3_min-, /bval-core, /bval-jsr, /hsqldb, /quartz-2, /jetty-,
/plexus-, /surefire-, /byte-buddy-, /cglib-, /okhttp-, /htmlunit-,
/wagon-http-, /wagon-provider-, /wagon-file-, /phantomjsdriver,
/error_prone_annotations-, /j2objc-, /xalan-, /aopalliance-, /owasp-,
/jdom2-, /jfreechart-, /stax-api-, /jboss-logging-, /barcode4j-, /poi-, 
/selenium-, /graphene-, /httpmime-, /cssparser-, /animal-sniffer-
annotations-, /objenesis-, /xercesImpl-, /neko-htmlunit-, /checker-
compat-qual-, /awaitility-, /okio-, /jsr305-, /guice-, /jsoup-
configuration.ordinal=1000
Running the OWB one (2.0.12):---mergeServiceFiles()
transform(OpenWebBeansPropertiesTransformer.class)---
properties:configuration.ordinal=1000
org.apache.xbean.finder.filter.Filter=org.apache.meecrowave.openwebbean
s.KnownClassesFilter
org.apache.webbeans.spi.ScannerService=org.apache.meecrowave.openwebbea
ns.OWBTomcatWebScannerService
org.apache.webbeans.spi.SecurityService=org.apache.meecrowave.openwebbe
ans.MeecrowaveSecurityService
org.apache.webbeans.spi.LoaderService=org.apache.meecrowave.openwebbean
s.MeecrowaveLoaderService
/hw
lø., 30.11.2019 kl. 10.07 +0100, skrev Romain Manni-Bucau:
> Hmm, looks like the same we provide so not sure why you cant reuse
> it.
> 
> But anyway you can check what is put in the final properties in your
> jar and that it matches meecrowave spi.
> You can also debug AnnotationFinder constructor to check what is
> found.
> Also ensure your jar is not in exclusion list by default maybe (like
> a cdi-demo.jar since it starts with cdi ;))
> 
> Le sam. 30 nov. 2019 à 09:39, Helge Waastad <he...@waastad.org> a
> écrit :
> > Hi,
> > 
> > the transformer is:
> > 
> > 
> > 
> > https://gist.github.com/hwaastad/3eea474d9e93db24f244f38e79490ece
> > 
> > 
> > 
> > using com.github.jengelman.gradle.plugins:shadow:5.2.0
> > 
> > 
> > 
> > So are you saying that the default ordinal 100 would not work on
> > the
> > 
> > OWBTransformer?
> > 
> > 
> > 
> > /hw
> > 
> > 
> > 
> > fr., 29.11.2019 kl. 14.45 +0100, skrev Romain Manni-Bucau:
> > 
> > > 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 |  Blog | Old Blog | Github | LinkedIn | Book
> > 
> > > 
> > 
> > > 
> > 
> > > Le ven. 29 nov. 2019 à 11:46, Helge Waastad <he...@waastad.org> 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 <
> > he...@waastad.org> 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
> > 
> > 
> > 

Reply via email to