On Jan 4, 2007, at 9:53 AM, Kamalanathan Raman wrote:

Kevan ,

 

Thanks kevan , now my application is running , the jars inside the Web-inf/lib was corrupt , got it rectified . But now iam getting this error

 

19:35:23,546 ERROR [ServiceLocator] Fail to find EJB home for java:comp/env/ejb/TransactionSession

javax.naming.NameNotFoundException: Could not resolve abstract name query [Deploy_Lockbox/wlbxbiz/rc/?name=TransactionSessionEJB#org.openejb.EJBContainer] in configuration default/wlbxapp.ear/1167919492953/ear

      at org.openejb.proxy.EJBProxyReference.getEJBProxyFactory(EJBProxyReference.java:111)

      at org.openejb.proxy.EJBProxyReference.getContent(EJBProxyReference.java:90)

      at org.apache.geronimo.naming.enc.CachingReference.resolveReference(CachingReference.java:55)

      at org.apache.geronimo.naming.enc.CachingReference.get(CachingReference.java:45)

      at org.apache.geronimo.naming.enc.AbstractReadOnlyContext.lookup(AbstractReadOnlyContext.java:86)

      at org.apache.geronimo.naming.java.RootContext.lookup(RootContext.java:51)

      at javax.naming.InitialContext.lookup(Unknown Source)

      at com.symcor.wlbx.util.ServiceLocator.getHome(ServiceLocator.java:163)

      at com.symcor.wlbx.web.servlet.ReportServlet.initializeResourceLookups(ReportServlet.java:907)

      at com.symcor.wlbx.web.servlet.ReportServlet.init(ReportServlet.java:668)

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3915)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4176)

      at org.apache.geronimo.tomcat.GeronimoStandardContext.access$201(GeronimoStandardContext.java:67)

      at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:337)

      at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31)

      at org.apache.geronimo.tomcat.GeronimoStandardContext.start(GeronimoStandardContext.java:192)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

 

I have one query , like iam using home and remote interface to refer to another EJB . So how shud I put the references in geronimo-web.xml. I have attached web.xml

 

<ejb-ref id="EjbRef_3">

        <ejb-ref-name>ejb/TransactionSession</ejb-ref-name>

        <ejb-ref-type>Session</ejb-ref-type>

        <home>com.symcor.wlbx.biz.ejb.transaction.TransactionSessionHome</home>

        <remote>com.symcor.wlbx.biz.ejb.transaction.TransactionSession</remote>

   </ejb-ref>

 

How should I add the references in Geronimo-web.xml . Currently iam adding the EJB jars in the repository and referring to it by this way

 

      <ejb-ref>

            <ref-name>ejb/TransactionSession</ref-name>

            <pattern>

                  <groupId>Deploy_Lockbox</groupId>

                  <artifactId>wlbxbiz</artifactId>

                  <version>rc</version>

                  <name>TransactionSessionEJB</name>

            </pattern>

      </ejb-ref>

 

What is the correct way to go about it. If I don`t do this iam getting “ Could not find EJB for reference ejb/AuthenticateSession having home interface …and remote interface….”

 

Can u help me out in this regard.


Hi Kamal,
I think you can just delete those ejb-ref's from your geronimo-web.xml. All you need in your geronimo-web.xml is the resource-ref for your datasource.

--kevan