[ 
https://issues.apache.org/jira/browse/DELTASPIKE-339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13624977#comment-13624977
 ] 

Romain Manni-Bucau edited comment on DELTASPIKE-339 at 4/7/13 5:37 PM:
-----------------------------------------------------------------------

basically tomee can bind some jndi entries which are not always available. That 
could be "removed/fixed" on tomee side but in all case i wouldn't scan jndi at 
runtime.

@John: what's the real goal of this feature? currently i feel it not really 
consistent.
                
      was (Author: romain.manni-bucau):
    basically tomee can bind some jndi entries which are not always available. 
That could be "removed/fixed" on tomee side but in all case i wouldn't scan 
jndi at runtime.

@John: what's the real goal of this features? currently i feel it not really 
consistent.
                  
> JndiUtils is broken
> -------------------
>
>                 Key: DELTASPIKE-339
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-339
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.4-incubating
>            Reporter: Mark Struberg
>            Assignee: John D. Ament
>            Priority: Blocker
>             Fix For: 0.4-incubating
>
>
> A recent change in JndiUtils caused a bug in a few Containers
> java.lang.IllegalStateException: Could not get java:comp/ORB from JNDI
>       at 
> org.apache.deltaspike.core.impl.util.JndiUtils.lookup(JndiUtils.java:79)
>       at 
> org.apache.deltaspike.core.impl.util.JndiUtils.list(JndiUtils.java:186)
>       at 
> org.apache.deltaspike.test.core.impl.util.JndiUtilsTest.testList(JndiUtilsTest.java:72)
> The code currently enlists all registered objects in JNDI java:comp and tries 
> to lookup() them as a specific type. But as per the spec of 
> javax.naming.Context this will always throw a javax.naming.NamingException if 
> the type of the registered object in JNDI does not match the type for the 
> bind() operation.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to