Announcement Announcement Module
Collapse
No announcement yet.
Spring EJB's doesn't work on new JBoss (4.0.2) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring EJB's doesn't work on new JBoss (4.0.2)

    I'm using latest stable libraries (jakarta-commons, hibernate3.0.5, spring1.2.2, etc). All fresh.

    When I use JBoss 4.0.1 it is deployed *AND* run successfully.

    Here is the success log :

    15:50:29,454 INFO [ContextJndiBeanFactoryLocator] BeanFactoryPath from JNDI is
    [META-INF/applicationContext.xml]
    15:50:29,469 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from c
    lass path resource [META-INF/applicationContext.xml]
    15:50:29,563 INFO [ClassPathXmlApplicationContext] Bean factory for application
    context [org.springframework.context.support.ClassPathXmlAp plicationContext;has
    hCode=1217874]: org.springframework.beans.factory.support.DefaultL istableBeanFac
    tory defining beans [accountType,accountGroup,balance,chartOfAccount,cu rrency,de
    tailAccount,exchangeRate,exchangeRateType,summaryA ccount,permission,role,user,it
    emAmount,transactionDocument,transactionItem,trans actionRate,converterBO,balance
    BO,accountUtilityBO,currencyBO,detailAccountBO,sum maryAccountBO,chartOfAccountBO
    ,transactionDocumentBO,transactionItemBO]; root of BeanFactory hierarchy
    15:50:29,579 INFO [ClassPathXmlApplicationContext] 25 beans defined in applicat
    ion context [org.springframework.context.support.ClassPathXmlAp plicationContext;
    hashCode=1217874]
    15:50:29,579 INFO [ClassPathXmlApplicationContext] Unable to locate MessageSour
    ce with name 'messageSource': using default [org.springframework.context.support
    .StaticMessageSource: {}]
    15:50:29,579 INFO [ClassPathXmlApplicationContext] Unable to locate Application
    EventMulticaster with name 'applicationEventMulticaster': using default [org.spr
    ingframework.context.event.SimpleApplicationEventM ulticaster@164d75]
    15:50:29,579 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in
    factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory de
    fining beans [accountType,accountGroup,balance,chartOfAccount,cu rrency,detailAcc
    ount,exchangeRate,exchangeRateType,summaryAccount, permission,role,user,itemAmoun
    t,transactionDocument,transactionItem,transactionR ate,converterBO,balanceBO,acco
    untUtilityBO,currencyBO,detailAccountBO,summaryAcc ountBO,chartOfAccountBO,transa
    ctionDocumentBO,transactionItemBO]; root of BeanFactory hierarchy]
    15:50:29,579 INFO [DefaultListableBeanFactory] Creating shared instance of sing
    leton bean 'accountType'
    15:50:29,594 INFO [DefaultListableBeanFactory] Creating shared instance of sing
    leton bean 'accountGroup'
    15:50:29,610 INFO [DefaultListableBeanFactory] Creating shared instance of sing
    leton bean 'balance'
    ...... cut .......


    With EXACTLY same codes and XMLs, when I upgrade to JBoss 4.0.2 it successfully deployed but errors occured when I tried to run my application.

    Here is the error's log :
    15:39:02,379 INFO [ContextJndiBeanFactoryLocator] BeanFactoryPath from JNDI is
    [META-INF/applicationContext.xml]
    15:39:02,504 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from c
    lass path resource [META-INF/applicationContext.xml]
    15:39:02,613 ERROR [LogInterceptor] EJBException in method: public abstract com.
    spotlight.accounting.general.ejb.account.AccountMa nagement com.spotlight.account
    ing.general.ejb.account.AccountManagementHome.crea te() throws javax.ejb.CreateEx
    ception,java.rmi.RemoteException:
    javax.ejb.EJBException: Could not instantiate bean
    at org.jboss.ejb.plugins.AbstractInstancePool.get(Abs tractInstancePool.j
    ava:180)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInte rceptor.invokeHome(
    StatelessSessionInstanceInterceptor.java:78)
    at org.jboss.ejb.plugins.AbstractInterceptor.invokeHo me(AbstractIntercep
    tor.java:90)
    at org.jboss.ejb.plugins.CallValidationInterceptor.in vokeHome(CallValida
    tionInterceptor.java:41)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInte
    rceptor.java:109)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxIntercep
    torCMT.java:335)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome( TxInterceptorCMT.ja
    va:146)
    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHo me(SecurityIntercep
    tor.java:116)
    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(Lo gInterceptor.java:1
    21)
    at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invokeHome(ProxyF
    actoryFinderInterceptor.java:93)
    at org.jboss.ejb.SessionContainer.internalInvokeHome( SessionContainer.ja
    va:613)
    at org.jboss.ejb.Container.invoke(Container.java:894)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatch
    er.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.
    java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.invocation.local.LocalInvoker$MBeanServe rAction.invoke(Loca
    lInvoker.java:155)
    at org.jboss.invocation.local.LocalInvoker.invoke(Loc alInvoker.java:104)

    at org.jboss.invocation.InvokerInterceptor.invokeLoca l(InvokerIntercepto
    r.java:179)
    at org.jboss.invocation.InvokerInterceptor.invoke(Inv okerInterceptor.jav
    a:165)
    at org.jboss.proxy.TransactionInterceptor.invoke(Tran sactionInterceptor.
    java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(Securit yInterceptor.java:5
    5)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInt erceptor.java:169)
    at org.jboss.proxy.ClientContainer.invoke(ClientConta iner.java:86)
    at $Proxy65.create(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.springframework.ejb.access.AbstractSlsbInvoker Interceptor.create(
    AbstractSlsbInvokerInterceptor.java:174)
    at org.springframework.ejb.access.AbstractRemoteSlsbI nvokerInterceptor.n
    ewSessionBeanInstance(AbstractRemoteSlsbInvokerInt erceptor.java:202)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.get
    SessionBeanInstance(SimpleRemoteSlsbInvokerInterce ptor.java:108)
    at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.doI
    nvoke(SimpleRemoteSlsbInvokerInterceptor.java:74)
    at org.springframework.ejb.access.AbstractRemoteSlsbI nvokerInterceptor.i
    nvoke(AbstractRemoteSlsbInvokerInterceptor.java:11 4)
    at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(
    ReflectiveMethodInvocation.java:144)
    at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynami
    cAopProxy.java:174)
    at $Proxy66.findActiveChartOfAccount(Unknown Source)
    at com.spotlight.accounting.general.adapter.account.h elper.DataCacher.lo
    adData(DataCacher.java:96)
    at com.spotlight.accounting.general.webapp.main.mainP age(main.java:167)
    at com.freedom.webapp.MainBaseAbstract.process(MainBa seAbstract.java:159
    )
    at com.freedom.webapp.MainBaseAbstract.doPost(MainBas eAbstract.java:130)

    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(Appl
    icationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationF
    ilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFi
    lter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(Appl
    icationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationF
    ilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperV
    alve.java:213)
    at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextV
    alve.java:178)
    at org.jboss.web.tomcat.security.CustomPrincipalValve .invoke(CustomPrinc
    ipalValve.java:39)
    at org.jboss.web.tomcat.security.SecurityAssociationV alve.invoke(Securit
    yAssociationValve.java:153)
    at org.jboss.web.tomcat.security.JaccContextValve.inv oke(JaccContextValv
    e.java:59)
    at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.j
    ava:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.j
    ava:105)
    at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineVal
    ve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.jav
    a:148)
    at org.apache.coyote.http11.Http11Processor.process(H ttp11Processor.java
    :856)
    at org.apache.coyote.http11.Http11Protocol$Http11Conn ectionHandler.proce
    ssConnection(Http11Protocol.java:744)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.process Socket(PoolTcpEndpo
    int.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread .run(MasterSlaveWor
    kerThread.java:112)
    at java.lang.Thread.run(Thread.java:595)
    15:39:02,629 INFO [STDOUT] org.springframework.remoting.RemoteAccessException :
    Cannot access remote service [accounting/AccountManagement]; nested exception is
    java.rmi.ServerException: EJBException:; nested exception is:
    javax.ejb.EJBException: Could not instantiate bean
    15:39:02,629 INFO [STDOUT] java.rmi.ServerException: EJBException:; nested exce
    ption is:
    javax.ejb.EJBException: Could not instantiate bean
    15:39:02,629 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.handleEx
    ception(LogInterceptor.java:352)
    15:39:02,644 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHo
    me(LogInterceptor.java:125)
    15:39:02,644 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInter
    ceptor.invokeHome(ProxyFactoryFinderInterceptor.ja va:93)
    15:39:02,644 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke
    Home(SessionContainer.java:613)
    15:39:02,644 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java
    :894)
    15:39:02,644 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    15:39:02,644 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N
    ativeMethodAccessorImpl.java:39)
    15:39:02,644 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(DelegatingMethodAccessorImpl.java:25)
    15:39:02,644 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:5
    85)
    15:39:02,644 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.
    invoke(ReflectedDispatcher.java:141)
    15:39:02,644 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
    ation.java:80)
    15:39:02,644 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
    ion.java:72)
    15:39:02,644 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
    ke(AbstractMBeanInvoker.java:249)
    15:39:02,644 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
    eanServerImpl.java:644)
    15:39:02,644 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker$MBean
    ServerAction.invoke(LocalInvoker.java:155)
    15:39:02,644 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invok
    e(LocalInvoker.java:104)
    15:39:02,644 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invok
    eLocal(InvokerInterceptor.java:179)
    15:39:02,644 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invok
    e(InvokerInterceptor.java:165)
    15:39:02,644 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke
    (TransactionInterceptor.java:46)
    15:39:02,644 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(Se
    curityInterceptor.java:55)
    15:39:02,644 INFO [STDOUT] at org.jboss.proxy.ejb.HomeInterceptor.invoke(Ho
    meInterceptor.java:169)
    15:39:02,644 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(Client
    Container.java:86)
    15:39:02,644 INFO [STDOUT] at $Proxy65.create(Unknown Source)
    15:39:02,644 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(
    Native Method)
    15:39:02,644 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N
    ativeMethodAccessorImpl.java:39)
    15:39:02,644 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
    ke(DelegatingMethodAccessorImpl.java:25)
    15:39:02,644 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:5
    85)
    15:39:02,644 INFO [STDOUT] at org.springframework.ejb.access.AbstractSlsbIn
    vokerInterceptor.create(AbstractSlsbInvokerInterce ptor.java:174)
    15:39:02,644 INFO [STDOUT] at org.springframework.ejb.access.AbstractRemote
    SlsbInvokerInterceptor.newSessionBeanInstance(Abst ractRemoteSlsbInvokerIntercept
    or.java:202)
    15:39:02,644 INFO [STDOUT] at org.springframework.ejb.access.SimpleRemoteSl
    sbInvokerInterceptor.getSessionBeanInstance(Simple RemoteSlsbInvokerInterceptor.j
    ava:108)
    15:39:02,644 INFO [STDOUT] at org.springframework.ejb.access.SimpleRemoteSl
    sbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvo kerInterceptor.java:74)
    15:39:02,644 INFO [STDOUT] at org.springframework.ejb.access.AbstractRemote
    SlsbInvokerInterceptor.invoke(AbstractRemoteSlsbIn vokerInterceptor.java:114)
    15:39:02,644 INFO [STDOUT] at org.springframework.aop.framework.ReflectiveM
    ethodInvocation.proceed(ReflectiveMethodInvocation .java:144)
    15:39:02,644 INFO [STDOUT] at org.springframework.aop.framework.JdkDynamicA
    opProxy.invoke(JdkDynamicAopProxy.java:174)
    15:39:02,644 INFO [STDOUT] at $Proxy66.findActiveChartOfAccount(Unknown Sou
    rce)
    15:39:02,644 INFO [STDOUT] at com.spotlight.accounting.general.adapter.acco
    unt.helper.DataCacher.loadData(DataCacher.java:96)
    15:39:02,644 INFO [STDOUT] at com.spotlight.accounting.general.webapp.main.
    mainPage(main.java:167)
    15:39:02,644 INFO [STDOUT] at com.freedom.webapp.MainBaseAbstract.process(M
    ainBaseAbstract.java:159)
    15:39:02,644 INFO [STDOUT] at com.freedom.webapp.MainBaseAbstract.doPost(Ma
    inBaseAbstract.java:130)
    15:39:02,644 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:717)
    15:39:02,644 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpSe
    rvlet.java:810)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:25 2)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    15:39:02,644 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
    r.doFilter(ReplyHeaderFilter.java:81)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
    in.internalDoFilter(ApplicationFilterChain.java:20 2)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
    in.doFilter(ApplicationFilterChain.java:173)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve
    .invoke(StandardWrapperValve.java:213)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve
    .invoke(StandardContextValve.java:178)
    15:39:02,644 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipal
    Valve.invoke(CustomPrincipalValve.java:39)
    15:39:02,644 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssocia
    tionValve.invoke(SecurityAssociationValve.java:153 )
    15:39:02,644 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValv
    e.invoke(JaccContextValve.java:59)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.in
    voke(StandardHostValve.java:126)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.i
    nvoke(ErrorReportValve.java:105)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.
    invoke(StandardEngineValve.java:107)
    15:39:02,644 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.s
    ervice(CoyoteAdapter.java:148)
    15:39:02,660 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.proc
    ess(Http11Processor.java:856)
    15:39:02,660 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http1
    1ConnectionHandler.processConnection(Http11Protoco l.java:744)
    15:39:02,660 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
    ocessSocket(PoolTcpEndpoint.java:527)
    15:39:02,660 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerT
    hread.run(MasterSlaveWorkerThread.java:112)
    15:39:02,660 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
    15:39:02,660 INFO [STDOUT] Caused by: javax.ejb.EJBException: Could not instant
    iate bean
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInstancePool.ge
    t(AbstractInstancePool.java:180)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanc
    eInterceptor.invokeHome(StatelessSessionInstanceIn terceptor.java:78)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractInterceptor.inv
    okeHome(AbstractInterceptor.java:90)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationIntercept
    or.invokeHome(CallValidationInterceptor.java:41)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.i
    nvokeNext(AbstractTxInterceptor.java:109)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWit
    hTransactions(TxInterceptorCMT.java:335)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
    Home(TxInterceptorCMT.java:146)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.inv
    okeHome(SecurityInterceptor.java:116)
    15:39:02,660 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invokeHo
    me(LogInterceptor.java:121)
    15:39:02,660 INFO [STDOUT] ... 58 more

    Help would be appreciated.

  • #2
    I hate to sound like I'm 'punting', but have you asked in the JBoss group? Sounds like the JBoss 4.0.2 release might have introduced a bug in the remoting layers... But that's more a SWAG than anything else..

    Comment


    • #3
      Try running the same app on jboss-4.0.1sp1, it'll tell you what your root problem is, for some reason it seems like after 4.0.1sp1, jboss stopped logging the root cause (that's why you only see "javax.ejb.EJBException: Could not instantiate bean".

      Comment


      • #4
        Nevermind...I missed you saying that it ran successfully on 4.0.1, however that's hard for me to believe (unless you're missing a dependency that they removed in Jboss-4.0.2 or something). I have EJB + spring apps (generated by AndroMDA: http://www.andromda.org) working fine in 4.0.2. It does suck that jboss 4.0.2 doesn't log the root cause however.

        Comment


        • #5
          Any update on this? I am having the same issue!

          Originally posted by cwbrandon
          Nevermind...I missed you saying that it ran successfully on 4.0.1, however that's hard for me to believe (unless you're missing a dependency that they removed in Jboss-4.0.2 or something). I have EJB + spring apps (generated by AndroMDA: http://www.andromda.org) working fine in 4.0.2. It does suck that jboss 4.0.2 doesn't log the root cause however.

          Comment


          • #6
            I know you had to specify additional properties in jboss.xml for local entity beans from 4.0.1 to 4.0.2 , i.e. specify <local-jndi-name> or something so that you could do a JNDI lookup to where you were expecting.

            Maybe this affected more than just entity beans?

            Comment


            • #7
              I don't understand. Sorry.
              Do you have any actual examples of the files that fixed this issue please?

              Originally posted by gmatthews
              I know you had to specify additional properties in jboss.xml for local entity beans from 4.0.1 to 4.0.2 , i.e. specify <local-jndi-name> or something so that you could do a JNDI lookup to where you were expecting.

              Maybe this affected more than just entity beans?

              Comment


              • #8
                Not right where I am now, but if you check in the files that get supplied with the JBoss deployment in jboss\docs\dtd (???) there will be the DTD for jboss.xml.

                In the case of local entity beans, there is a local-jndi-name property that you need to specify. There may also be additional SFSB or SLSB properties?

                If you're not using entity beans, it's not going to be that problem.

                I actually just posted to the JBoss forums, and Scott Stark (who writes the EJB layer??) answered my question. I'd try posting there since it's JBoss issue, not Spring.

                Comment


                • #9
                  I actually already have the <local-jndi-name. setting in my jboss.xml like:
                  <enterprise-beans>
                  <session>
                  <ejb-name>ConsumerManager</ejb-name>
                  <local-jndi-name>local/ConsumerManager</local-jndi-name>
                  </session>
                  </enterprise-beans>


                  But, what was your username that you posted in the jboss forum with? I want to track it down.
                  Unfortunately, this is only half my battle as this code needs to work on JBoss AND websphere at the same time. So I have heaps of work to do still.

                  Originally posted by gmatthews
                  Not right where I am now, but if you check in the files that get supplied with the JBoss deployment in jboss\docs\dtd (???) there will be the DTD for jboss.xml.

                  In the case of local entity beans, there is a local-jndi-name property that you need to specify. There may also be additional SFSB or SLSB properties?

                  If you're not using entity beans, it's not going to be that problem.

                  I actually just posted to the JBoss forums, and Scott Stark (who writes the EJB layer??) answered my question. I'd try posting there since it's JBoss issue, not Spring.

                  Comment


                  • #10
                    http://www.jboss.org/index.html?modu...wtopic&t=63905

                    Comment

                    Working...
                    X