Announcement Announcement Module
Collapse
No announcement yet.
Multiple BeanRefFactory Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple BeanRefFactory

    If I have my spring beans located under multiple jars, how do I define them ? I tried defining them as

    Code:
    <env-entry>
                	<env-entry-name>ejb/BeanFactoryPath</env-entry-name>
                   	<env-entry-type>java.lang.String</env-entry-type>               	<env-entry-value><![CDATA[classpath*:/META-INF/spring/components.xml,classpath*:applicationContext.xml]]></env-entry-value>
                </env-entry>
    But this gives me an exception:

    at org.springframework.ejb.support.AbstractEnterprise Bean.getBeanFactory(AbstractEnterpriseBean.java:15 4)
    at org.openejb.dispatch.AbstractMethodOperation.invok e(AbstractMethodOperation.java:90)
    at org.openejb.mdb.BusinessMethod.execute(BusinessMet hod.java:66)
    at org.openejb.dispatch.DispatchInterceptor.invoke(Di spatchInterceptor.java:72)
    at org.apache.geronimo.naming.java.ComponentContextIn terceptor.invoke(ComponentContextInterceptor.java: 56)
    at org.openejb.ConnectionTrackingInterceptor.invoke(C onnectionTrackingInterceptor.java:81)
    at org.openejb.mdb.MDBInstanceInterceptor.invoke(MDBI nstanceInterceptor.java:92)
    at org.openejb.SystemExceptionInterceptor.invoke(Syst emExceptionInterceptor.java:82)
    at org.openejb.mdb.MDBContainer.invoke(MDBContainer.j ava:242)
    at org.openejb.mdb.EndpointHandler.invoke(EndpointHan dler.java:180)
    at org.openejb.mdb.EndpointHandler.intercept(Endpoint Handler.java:223)
    at org.openejb.mdb.EndpointProxy$$EnhancerByCGLIB$$f8 f5b11b.onMessage(<generated>)
    at org.activemq.ra.MessageEndpointProxy$MessageEndpoi ntAlive.onMessage(MessageEndpointProxy.java:117)
    at org.activemq.ra.MessageEndpointProxy.onMessage(Mes sageEndpointProxy.java:57)
    at org.activemq.ActiveMQSession.deliver(ActiveMQSessi on.java:569)
    at org.activemq.ActiveMQSession.run(ActiveMQSession.j ava:551)
    at org.activemq.ra.ServerSessionImpl.run(ServerSessio nImpl.java:165)
    at org.apache.geronimo.connector.work.WorkerContext.r un(WorkerContext.java:291)
    at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPo ol.java:172)
    at org.apache.geronimo.pool.ThreadPool$ContextClassLo aderRunnable.run(ThreadPool.java:289)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:534)

  • #2
    It seems that the env-entry-value element is missing. This is where you actually have to describe the context files.

    Regards,
    Andreas

    Comment

    Working...
    X