[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-2168) env-entry with an injection-target but without an explicit env-entry-type fails with java.lang.ClassNotFoundException: Null class name

jaikiran pai (JIRA) jira-events at lists.jboss.org
Tue Sep 14 06:44:12 EDT 2010


     [ https://jira.jboss.org/browse/EJBTHREE-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai resolved EJBTHREE-2168.
------------------------------------

    Component Fix Version(s): jboss-ejb3-core:1.5.2
               Fix Version/s: depchain-1.0.0
                  Resolution: Done


Fixed in r108136.

> env-entry with an injection-target but without an explicit env-entry-type fails with java.lang.ClassNotFoundException: Null class name
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-2168
>                 URL: https://jira.jboss.org/browse/EJBTHREE-2168
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: core
>    Affects Versions: depchain-1.0.0-alpha-4
>            Reporter: jaikiran pai
>            Assignee: jaikiran pai
>             Fix For: depchain-1.0.0
>
>
> Consider the following content in ejb-jar.xml:
> <session>
>             <ejb-name>Bean</ejb-name>
>             <env-entry>
>                 <env-entry-name>someString</env-entry-name>
>                 <env-entry-value>Hello world</env-entry-value>
>                 <injection-target>
>                     <injection-target-class>org.myapp.ejb.MyEJB</injection-target-class>
>                     <injection-target-name>someString</injection-target-name>
>                 </injection-target>
>             </env-entry>
> Note that we haven't explicitly specified the env-entry-type element. This runs into:
> Caused by: java.lang.ClassNotFoundException: Null class name
> 	at org.jboss.classloader.plugins.ClassLoaderUtils.checkClassName(ClassLoaderUtils.java:53) [jboss-classloader.jar:2.2.0.Alpha8]
> 	at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:425) [jboss-classloader.jar:2.2.0.Alpha8]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:252) [:1.6.0_16]
> 	at org.jboss.injection.EnvEntryEncInjector.getEnvEntryValue(EnvEntryEncInjector.java:66) [:1.5.1]
> 	at org.jboss.injection.EnvEntryEncInjector.inject(EnvEntryEncInjector.java:53) [:1.5.1]
> 	... 82 more
> As per the spec, in the absence of explicit env-entry-type, the type has to be inferred from the injection-target (if present).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list