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 <[email protected]>:
> 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 <[email protected]>
>
>> 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 <[email protected]>
>>
>>> 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 <[email protected]
>>>> :
>>>
>>>> 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 <[email protected]>
>>>>
>>>>> 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 <
>>> [email protected]>:
>>>>>
>>>>>> 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 <[email protected]>
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> see https://issues.apache.org/jira/browse/TOMEE-1022 .
>>>>>>>
>>>>>>> Regards,
>>>>>>> Christian Schlichtherle
>>>>>>>
>>>>>>> Am 28.08.2013 um 09:30 schrieb Romain Manni-Bucau <
>>>>> [email protected]>:
>>>>>>>
>>>>>>>> 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*
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>
>>>
>>