8 Replies Latest reply on Apr 26, 2003 3:16 AM by muzair9192

    Error in EJB deployment : probably the class paths

    muzair9192

      while deploying the entity bean on JBOSS 3.0.4 this is the error message i am getting . i think it has some thing to do with the class path or may be i am using a Instance Cashe that has been changed now or some thing . if any one has any idea how to resolve this problem then plz reply .
      the datasource is the default one , hypersonic sql . i have not done any setting however since i think this is the default datasource .

      org.jboss.deployment.DeploymentException: Missing or invalid Instance Cache (in jboss.xml or standardjboss.xml); - nested throwable: (java.lang.ClassNotFoundException: org.jboss.ejb.plugins.NoPassivationEntityInstanceCache)


      i have set the JAVA_HOME , JBOSS_HOME etc

        • 1. Re: Error in EJB deployment : probably the class paths

          Where did this come from?

          org.jboss.ejb.plugins.NoPassivationEntityInstanceCache

          There is a
          org.jboss.ejb.plugins.NoPassivationCachePolicy

          Check your jboss.xml

          Regards,
          Adrian

          • 2. Re: Error in EJB deployment : probably the class paths
            muzair9192

            thanks for the clue but now i am getting this error

            There are no interceptors configured. Check the standardjboss.xml file
            12:21:29,265 WARN [EjbModule] you are using deprecated JRMPContainerInvoker. Please change to org.jboss.proxy.ejb.ProxyFactory
            12:21:29,265 ERROR [EjbModule] error adding container to app.
            org.jboss.deployment.DeploymentException: Missing or invalid Instance Cache (in jboss.xml or standardjboss.xml); - nested throwable: (java.lang.InstantiationException: org.jboss.ejb.plugins.NoPassivationCachePolicy)


            i am attaching the the jar file along with a me.txt file describing the server out puts that i am getting .
            plz go through it when u have some time .

            • 3. Re: Error in EJB deployment : probably the class paths

              You have a very old jboss.xml

              I would reconstruct it from the definition in
              standardjboss.xml

              Regards,
              Adrian

              • 4. not bound exception at runtime
                muzair9192

                well , i have done that annd it worked . now the bean has been deployed . at least that part is working .
                just tell me once last thing and i 'll stop pesting you .

                i have a entity bean called as CDBean , which is i am accessing from another session bean called as CDCollectionBean . when i try to look up the entity bean ( CDBean ) , there is an exception thrown on the server that "cd not boud" . CD the home interface of the CDBean . the Jboss-xml file and ejb-jar file , i am attaching , if u have some time then plz look at them and tell what mistake i am making . i think its the problem with referencing . but then once again i dont really have an idea .

                thanks for u'r help so far , and i am soory to be bugging u this much but only a day or two more and then i'll have the offical documentation for jboss3.0.4 and that should solve a bit of problems .lol
                thanks again

                • 5. Re: not bound exception at runtime

                  It is bound at "CDBeanHome"


                  <ejb-name>CDBean</ejb-name>
                  <jndi-name>CDBeanHome</jndi-name>


                  Regards,
                  Adrian

                  • 6. Re: not bound exception at runtime

                    Or
                    java:comp/env/ejb/CDBean

                    <ejb-ref>
                    <ejb-ref-name>ejb/CDBean</ejb-ref-name>
                    <ejb-ref-type>Entity</ejb-ref-type>
                    <ejb-link>CDBean</ejb-link>
                    Beans.CDHome
                    Beans.CD

                    </ejb-ref>


                    Regards,
                    Adrian

                    • 7. Re: not bound exception at runtime
                      muzair9192

                      soory to bug ya again but i have checked the names , i have made the jndi-name same as the ejb name , so there should be no probs there . i have used the
                      java:comp/env/ejb/CDBean
                      to look up the entity bean from the session bean but still no luck the same error is persistng


                      no luck so far with this error

                      • 8. done ..thank u
                        muzair9192

                        thank u very much . it has been deployed . i was making a very very silly mistake which i am not going to tell u . but thanks . i really appritiate u'r help

                        :>

                        thank u again