You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Forrest Xia (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/28 14:30:27 UTC

[jira] [Resolved] (GERONIMO-5979) Some objects to be injected were not found in jndi: No EJB found for reference

     [ https://issues.apache.org/jira/browse/GERONIMO-5979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Forrest Xia resolved GERONIMO-5979.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2

Fixed on samples side, however, there is incompatible with the previous geronimo releases.
                
> Some objects to be injected were not found in jndi: No EJB found for reference
> ------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5979
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5979
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: sample apps
>    Affects Versions: 3.0
>         Environment: Windows XP SP3 x86
> IBM jdk Java60
> Geronimo build on 20110525
>            Reporter: Jacky Liu
>            Assignee: Shawn Jiang
>            Priority: Minor
>              Labels: sample
>             Fix For: 3.0-beta-2
>
>         Attachments: calculator-ear.rar, calculator-ejb.rar, calculator-war.rar
>
>
> 1. start Geronimo
> 2. deploy calculator-ear-3.0-SNAPSHOT.ear
> 3. go to http://localhost:8080/calculator/ and check the add or multiply function
> ERROR OCCURS!!
> The following error message is displayed when calculator-ear-3.0-SNAPSHOT.ear is deployed.
> 2011-05-26 09:55:51,505 WARN  [startup] Unresolved ejb reference "org.apache.geronimo.samples.calculator.CalculatorServlet/calc" in bean "GeronimoEnc"
> .  Will attempt resolution again at runtime.
> 2011-05-26 09:55:51,771 WARN  [startup] Unresolved ejb reference "org.apache.geronimo.samples.calculator.CalculatorServlet/calc" in bean "GeronimoEnc"
> .  Will attempt resolution again at runtime.
> 2011-05-26 09:55:51,786 WARN  [startup] Unresolved ejb reference "org.apache.geronimo.samples.calculator.CalculatorServlet/calc" in bean "GeronimoEnc"
> .  Will attempt resolution again at runtime.
>  2011-05-26 09:56:26,833 ERROR [[/calculator]] Servlet /calculator threw load() exception
> java.lang.InstantiationException: Some objects to be injected were not found in jndi: [javax.naming.NameNotFoundException: No EJB found for reference
> "comp/env/org.apache.geronimo.samples.calculator.CalculatorServlet/calc": ejb-link=null, interface=null]
>         at org.apache.geronimo.j2ee.annotation.Holder.newInstance(Holder.java:174)
>         at org.apache.geronimo.tomcat.TomcatInstanceManager.newInstance(TomcatInstanceManager.java:74)
>         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
>         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:996)
>         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4741)
>         at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5062)
>         at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5057)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:149)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
>         at java.lang.Thread.run(Thread.java:736)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira