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: env-entry ignored in application.xml?
Date Thu, 29 Aug 2013 14:20:18 GMT
snapshot should be up to date now so maybe retry it.

basically i just set env entry type in application.xml and removed
ejb-jar.xml

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/8/29 Christian Schlichtherle <christian-bulk@schlichtherle.de>

> Hi Romain,
>
> I reverted my changes to the ejb-jar.xml and now it's working again, i.e.
> I get the queues injected.
>
> However, the configuration in the application.xml still gets ignored,
> although I have added env-entry-type to all ejb-jar.xml and
> application.xml. I have already been there yesterday and I can't afford to
> lose another day on this sh*t. I'm already fighting this container since
> two or three weeks.
>
> What do I need to do to make my simple use case work? All I need is some
> EJBs, some JMS and some configuration at deployment time. I need no user
> interface, no persistence layer, no transactions, no nothing. So it should
> be dead simple! But instead my project turned into a fu*ing nightmare
> because of this completely unreliable container. Please help me out of this
> nightmare.
>
> Regards,
> Christian
>
> Am 29.08.2013 um 14:54 schrieb Romain Manni-Bucau <rmannibucau@gmail.com>:
>
> > i got it working but i removed the lookup attribute (the change for this
> > was in service-jar.xml in
> > container/openejb-core/src/main/resources/META-INF)
> >
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/8/29 Christian Schlichtherle <christian-bulk@schlichtherle.de>
> >
> >> Hi Romain,
> >>
> >> I have pulled your changes and build the drop-in WAR for TomEE+
> >> 1.6.0-SNAPSHOT. It's looking somewhat better now (clean startup and
> >> shutdown without exceptions when running Tomcat on Java SE 7).
> >>
> >> However, it still doesn't inject the @Resource Destination and I get
> >> NullPointerExceptions as a result. Let's verify this. After some
> changes,
> >> now I have
> >>
> >> @Stateful
> >> @DependsOn("UpdateAgentMessageDispatcherBean")
> >> public class UpdateAgentBuilderBean
> >> extends BasicUpdateAgentBuilder
> >> implements UpdateAgent.Builder {
> >>
> >>    @Resource(name = "destination", lookup = "jms/TrueUpdate Manager")
> >>    Destination destination;
> >>
> >>    ...
> >> }
> >>
> >> The ejb-jar.xml of this module is now basically empty. Am I supposed to
> >> put a <resource-env-ref> element into it again? I don't have to when
> >> running on Glassfish.
> >>
> >> The tomee.xml now contains the declaration of two resources:
> >>
> >>    <Resource id="jms/TrueUpdate Agent" type="javax.jms.Queue"/>
> >>    <Resource id="jms/TrueUpdate Manager" type="javax.jms.Queue"/>
> >>
> >> Should this work or do I need to do something else?
> >>
> >> Regards,
> >> Christian Schlichtherle
> >>
> >> Am 29.08.2013 um 13:49 schrieb Romain Manni-Bucau <
> rmannibucau@gmail.com>:
> >>
> >>> Hi Christian,
> >>>
> >>> i'll use this thread for your app (i know there are 2-3 threads but i
> >> think
> >>> it is easier to sum up it here):
> >>> 1) the env-entry issue is fixed normally (i just run it with success
> >>> locally) - i'll trigger another build soon so you can test in 30mn
> >>> 2) the destination issue is fixed too
> >>> https://issues.apache.org/jira/browse/TOMEE-1025 (a workaround would
> be
> >> a
> >>> lookup for older versions)
> >>>
> >>> *Romain Manni-Bucau*
> >>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >>> *Blog: **http://rmannibucau.wordpress.com/*<
> >> http://rmannibucau.wordpress.com/>
> >>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >>> *Github: https://github.com/rmannibucau*
> >>>
> >>>
> >>>
> >>> 2013/8/29 Romain Manni-Bucau <rmannibucau@gmail.com>
> >>>
> >>>> can you update your sample (and make it run at startup please to ease
> >> the
> >>>> testing?)
> >>>>
> >>>> *Romain Manni-Bucau*
> >>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >>>> *Blog: **http://rmannibucau.wordpress.com/*<
> >> http://rmannibucau.wordpress.com/>
> >>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >>>> *Github: https://github.com/rmannibucau*
> >>>>
> >>>>
> >>>>
> >>>> 2013/8/29 Christian Schlichtherle <christian-bulk@schlichtherle.de>
> >>>>
> >>>>> No this is after I've added all types to the application.xml and
even
> >> the
> >>>>> original ejb-jar.xml
> >>>>>
> >>>>> Am 29.08.2013 um 10:41 schrieb Romain Manni-Bucau <
> >> rmannibucau@gmail.com
> >>>>>> :
> >>>>>
> >>>>>> cause you didn't specify a type probably, no?
> >>>>>>
> >>>>>> *Romain Manni-Bucau*
> >>>>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >>>>>> *Blog: **http://rmannibucau.wordpress.com/*<
> >>>>> http://rmannibucau.wordpress.com/>
> >>>>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >>>>>> *Github: https://github.com/rmannibucau*
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> 2013/8/29 Christian Schlichtherle <christian-bulk@schlichtherle.de>
> >>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> no, it still doesn't work. Instead of ignoring the env-entries
in
> the
> >>>>>>> application.xml, now I get null references injected and
all I see
> >> are a
> >>>>>>> bunch of NullPointerExceptions resulting from that.
> >>>>>>>
> >>>>>>> Regards,
> >>>>>>> Christian
> >>>>>>>
> >>>>>>> Am 28.08.2013 um 12:13 schrieb Romain Manni-Bucau <
> >>>>> rmannibucau@gmail.com>:
> >>>>>>>
> >>>>>>>> Hi
> >>>>>>>>
> >>>>>>>> retry tomorrow please
> >>>>>>>>
> >>>>>>>> *Romain Manni-Bucau*
> >>>>>>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >>>>>>>> *Blog: **http://rmannibucau.wordpress.com/*<
> >>>>>>> http://rmannibucau.wordpress.com/>
> >>>>>>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >>>>>>>> *Github: https://github.com/rmannibucau*
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> 2013/8/28 Christian Schlichtherle <
> christian-bulk@schlichtherle.de>
> >>>>>>>>
> >>>>>>>>> Hi,
> >>>>>>>>>
> >>>>>>>>> see https://issues.apache.org/jira/browse/TOMEE-1022
.
> >>>>>>>>>
> >>>>>>>>> Regards,
> >>>>>>>>> Christian Schlichtherle
> >>>>>>>>>
> >>>>>>>>> Am 28.08.2013 um 09:30 schrieb Romain Manni-Bucau
<
> >>>>>>> rmannibucau@gmail.com>:
> >>>>>>>>>
> >>>>>>>>>> Hi,
> >>>>>>>>>>
> >>>>>>>>>> yes a runnable sample would be easier to check
> >>>>>>>>>>
> >>>>>>>>>> *Romain Manni-Bucau*
> >>>>>>>>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >>>>>>>>>> *Blog: **http://rmannibucau.wordpress.com/*<
> >>>>>>>>> http://rmannibucau.wordpress.com/>
> >>>>>>>>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >>>>>>>>>> *Github: https://github.com/rmannibucau*
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>>
> >>>>
> >>
> >>
>
>

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