4 Replies Latest reply on Feb 10, 2007 12:17 PM by Xiaofeng Xu

    I cannot deploy a ejb3 application to a named partition

    Xiaofeng Xu Newbie

      I configured a named partition. All notes run well until I deploy a ejb3 application to the partition. However, notes run fine when I configured them back to DefaultPartition. Anybody can help me?

      Appreciate the help.

      Below is the log information:

      04:05:52,342 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=Fault.jar,name=FaultImpl,service=EJB3 with dependencies:
      04:05:52,342 INFO [JmxKernelAbstraction] persistence.units:jar=Fault.jar,unitName=Fault
      04:05:52,398 INFO [EJBContainer] STARTED EJB: com.absystems.rem.fault.impl.FaultImpl ejbName: FaultImpl
      04:05:52,411 WARN [ServiceController] Problem starting service jboss.j2ee:jar=Fault.jar,name=FaultImpl,service=EJB3
      javax.naming.NameNotFoundException: DefaultPartition not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.jboss.ejb3.stateless.StatelessClusterProxyFactory.start(StatelessClusterProxyFactory.java:84)
      at org.jboss.ejb3.ProxyDeployer.start(ProxyDeployer.java:83)
      at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:124)
      at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:96)

        • 1. Re: I cannot deploy a ejb3 application to a named partition
          Brian Stansberry Master

          Set the partition name attribute on your @Clustered annotation:

          @Clustered(partition="MyPartition")

          In jboss xml it can be configured in the bean's element:

           <clustered>true</clustered>
           <cluster-config>
           <partition-name>MyPartition</partition-name>
           </cluster-config>
          


          • 2. Re: I cannot deploy a ejb3 application to a named partition
            Xiaofeng Xu Newbie

            Brian,

            Appreciate your quick reply. I have the exactly result as before. I configured jboss.xml as:

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">

            <enterprise-beans>

            <ejb-name>FaultImpl</ejb-name>
            True
            <cluster-config>
            <partition-name>FaultServices</partition-name>
            <bean-load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</bean-load-balance-policy>
            </cluster-config>

            </enterprise-beans>


            Anything wrong in my configuration?

            Thanks.

            Shaw Xu

            • 3. Re: I cannot deploy a ejb3 application to a named partition
              Brian Stansberry Master

              What EJB3 release? IIRC, the support for configuration via XML was only added in one of the most recent, probably RC9.

              • 4. Re: I cannot deploy a ejb3 application to a named partition
                Xiaofeng Xu Newbie

                Brian,

                Thanks a lot.

                I downloaded the EJB3 RC9 release, but could not install it because some installation error in the patch:

                [root@centos4_vm_31-3 jboss-EJB-3.0_RC9_Patch_1]# ant -f install.xml -Djboss.server.config=default
                Buildfile: install.xml

                install:
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib
                [copy] Copying 14 files to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/deploy
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/deploy/j
                ms
                [copy] Copying 1 file to /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/deploy
                [delete] Deleting directory /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/tmp
                [mkdir] Created dir: /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/tmp
                [unjar] Expanding: /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib/jboss.jar i
                nto /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/tmp

                BUILD FAILED
                /home/jboss/Desktop/jboss-EJB-3.0_RC9_Patch_1/install.xml:47: Error while expanding /home/jboss/Desktop/jboss-EJB-3.0
                _RC9_Patch_1/${env.JBOSS_HOME}/server/default/lib/jboss.jar

                Total time: 0 seconds


                I checked the directory, jboss.jar does not exist.

                Is there anyway I may fix this?

                Appreciate all your help.

                Shaw Xu