From ales.justin at gmail.com Thu Jan 2 06:18:00 2014 From: ales.justin at gmail.com (Ales Justin) Date: Thu, 2 Jan 2014 12:18:00 +0100 Subject: [weld-dev] why welcome page? Message-ID: I have an app deployed as ROOT.war, which has an index.html file. * https://github.com/alesj/simplechat So I would expect app's index.html under "http://localhost:8080". But I sometimes get WF's "welcome page". This is my standalone xml config: * https://github.com/capedwarf/capedwarf-jboss-as/blob/master/build/src/main/resources/standalone/configuration/standalone-capedwarf.xml Race condition on which UnderTow' handler gets registered under "/" ? -Ales -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20140102/fa81016a/attachment.html From ales.justin at gmail.com Thu Jan 2 06:46:09 2014 From: ales.justin at gmail.com (Ales Justin) Date: Thu, 2 Jan 2014 12:46:09 +0100 Subject: [weld-dev] why welcome page? In-Reply-To: References: Message-ID: <3094A0EF-3F8E-4267-81D4-447E2D11F4B2@gmail.com> Hmmm, it could be darn browser caching that tricked me. As I only now learned that I need to also hold Shift as well, to get proper refresh. I'll re-post if it's still an issue, aka I can easily re-produce. On 02 Jan 2014, at 12:18, Ales Justin wrote: > I have an app deployed as ROOT.war, which has an index.html file. > * https://github.com/alesj/simplechat > > So I would expect app's index.html under "http://localhost:8080". > > But I sometimes get WF's "welcome page". > > This is my standalone xml config: > * https://github.com/capedwarf/capedwarf-jboss-as/blob/master/build/src/main/resources/standalone/configuration/standalone-capedwarf.xml > > Race condition on which UnderTow' handler gets registered under "/" ? > > -Ales > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20140102/9dff8a8e/attachment.html From jharting at redhat.com Thu Jan 2 06:46:14 2014 From: jharting at redhat.com (Jozef Hartinger) Date: Thu, 02 Jan 2014 12:46:14 +0100 Subject: [weld-dev] why welcome page? In-Reply-To: References: Message-ID: <52C55186.9030104@redhat.com> What makes you think that this is a Weld issue? On 01/02/2014 12:18 PM, Ales Justin wrote: > I have an app deployed as ROOT.war, which has an index.html file. > * https://github.com/alesj/simplechat > > So I would expect app's index.html under "http://localhost:8080". > > But I sometimes get WF's "welcome page". > > This is my standalone xml config: > * > https://github.com/capedwarf/capedwarf-jboss-as/blob/master/build/src/main/resources/standalone/configuration/standalone-capedwarf.xml > > Race condition on which UnderTow' handler gets registered under "/" ? > > -Ales > > > > _______________________________________________ > weld-dev mailing list > weld-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/weld-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20140102/9f19d977/attachment.html From ales.justin at gmail.com Thu Jan 2 07:56:15 2014 From: ales.justin at gmail.com (Ales Justin) Date: Thu, 2 Jan 2014 13:56:15 +0100 Subject: [weld-dev] why welcome page? In-Reply-To: <52C55186.9030104@redhat.com> References: <52C55186.9030104@redhat.com> Message-ID: <5B69FA8E-845E-4F27-9DE4-C3EA6DEC585C@gmail.com> Ah, crap, sorry, wrong mailing list. (damn W at the start ... :-)) On 02 Jan 2014, at 12:46, Jozef Hartinger wrote: > What makes you think that this is a Weld issue? > > On 01/02/2014 12:18 PM, Ales Justin wrote: >> I have an app deployed as ROOT.war, which has an index.html file. >> * https://github.com/alesj/simplechat >> >> So I would expect app's index.html under "http://localhost:8080". >> >> But I sometimes get WF's "welcome page". >> >> This is my standalone xml config: >> * https://github.com/capedwarf/capedwarf-jboss-as/blob/master/build/src/main/resources/standalone/configuration/standalone-capedwarf.xml >> >> Race condition on which UnderTow' handler gets registered under "/" ? >> >> -Ales >> >> >> >> _______________________________________________ >> weld-dev mailing list >> weld-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/weld-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20140102/60477e4e/attachment.html From jharting at redhat.com Tue Jan 14 11:19:12 2014 From: jharting at redhat.com (Jozef Hartinger) Date: Tue, 14 Jan 2014 17:19:12 +0100 Subject: [weld-dev] New releases: 2.1.2.Final, 2.0.5.Final and 1.1.17.Final Message-ID: <52D56380.1010103@redhat.com> http://weld.cdi-spec.org/news/2014/01/14/weld-212-final/ From maxmil at gmail.com Tue Jan 14 11:23:13 2014 From: maxmil at gmail.com (Max Pimm) Date: Tue, 14 Jan 2014 17:23:13 +0100 Subject: [weld-dev] New releases: 2.1.2.Final, 2.0.5.Final and 1.1.17.Final In-Reply-To: <52D56380.1010103@redhat.com> References: <52D56380.1010103@redhat.com> Message-ID: Congratulations. Keep up the good work. Max On Tue, Jan 14, 2014 at 5:19 PM, Jozef Hartinger wrote: > http://weld.cdi-spec.org/news/2014/01/14/weld-212-final/ > _______________________________________________ > weld-dev mailing list > weld-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/weld-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20140114/34374dbe/attachment.html From stoffe at gmail.com Tue Jan 28 05:14:15 2014 From: stoffe at gmail.com (=?ISO-8859-1?Q?Kristoffer_Sj=F6gren?=) Date: Tue, 28 Jan 2014 11:14:15 +0100 Subject: [weld-dev] @WithAnnotations bug? Message-ID: Hi Extensions that observe using @WithAnnotations are not notified with implementing classes for annotated interfaces. Not sure if this is intended - the javadoc seems pretty clear on that the following example should work. @Path("/service") public interface Service { @POST public void execute(); } public ServiceEndpoint implements Service { public void execute() { ... } } public class JaxrsExtension implements Extension { void storeJaxrsResourceClasses(@Observes @WithAnnotations({Path.class, Provider.class}) ProcessAnnotatedType pat) { AnnotatedType type = pat.getAnnotatedType(); if (!type.getJavaClass().isInterface()) { // want to manage the ServiceEndpoint here } } } Cheers, -Kristoffer -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20140128/8d9dc141/attachment.html From mkouba at redhat.com Wed Jan 29 08:27:16 2014 From: mkouba at redhat.com (Martin Kouba) Date: Wed, 29 Jan 2014 14:27:16 +0100 Subject: [weld-dev] @WithAnnotations bug? In-Reply-To: References: Message-ID: <52E901B4.7030208@redhat.com> Hi Kristoffer, the javadoc is wrong, CDI should follow JSL rules here - i.e. only if @Inherited meta-annotation is present the annotation is inherited and the type is observed. @Path has not @Inherited defined. Therefore only resources with this annotation will be observed. See also: https://issues.jboss.org/browse/CDI-318 (will be fixed in CDI 1.2 MR) Martin Dne 28.1.2014 11:14, Kristoffer Sj?gren napsal(a): > Hi > > Extensions that observe using @WithAnnotations are not notified with > implementing classes for annotated interfaces. > > Not sure if this is intended - the javadoc seems pretty clear on that > the following example should work. > > @Path("/service") > public interface Service { > @POST > public void execute(); > } > > public ServiceEndpoint implements Service { > public void execute() { ... } > } > > public class JaxrsExtension implements Extension { > > void storeJaxrsResourceClasses(@Observes > @WithAnnotations({Path.class, Provider.class}) ProcessAnnotatedType > pat) { > AnnotatedType type = pat.getAnnotatedType(); > if (!type.getJavaClass().isInterface()) { > // want to manage the ServiceEndpoint here > } > } > } > > Cheers, > -Kristoffer > > > _______________________________________________ > weld-dev mailing list > weld-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/weld-dev >