8 Replies Latest reply on May 13, 2003 3:17 AM by Dave Head-Rapson

    Weblogic and JBoss

    Kristian Newbie

      I am planning on using JBoss as a test environment and weblogic as production.
      I have heard that JBoss can understand the weblogic specific deployment descriptors, is that right ??
      If it is right, what does JBoss do with the tags that are specific for weblogic. Are there things that I should be aware of, etc

      Thanks

        • 1. Re: Weblogic and JBoss
          Adrian Brock Master

          It converts weblogic tags to jboss tags.
          It cannot do everything, some things don't have
          direct mappings to jboss functionality.
          But it does most of the important stuff.

          Regards,
          Adrian

          • 2. Re: Weblogic and JBoss
            Adrian Brock Master

            I should qualify my last statement.
            I haven't used it myself (I've never used Weblogic),
            I'm quoting the author.

            Regards,
            Adrian

            • 3. Re: Weblogic and JBoss
              sys user Master

              Adrian,
              Where did you get the information that it converts weblogic tags to jboss tags ? who is the author you're referring too ?

              thanks,
              Trevor

              • 5. Re: Weblogic and JBoss
                Alvin Zhang Newbie

                I downloaded bea-jboss port tool for jboss 3.2( deployer-3.2.sar from the page http://www.jboss.org/index.html?module=html&op=userdisplay&id=services/bea-port) and droped it in the deploy directory. Unfortunately, it gets exception at JBoss startup:

                09:36:34,625 INFO [MainDeployer] Starting deployment of package: file:/J:/Win_
                P/Software/jboss-3.2.0/server/default/deploy/foe-deployer-3.2.sar/
                09:36:34,671 INFO [SARDeployer] looking for nested deployments in : file:/J:/W
                n_XP/Software/jboss-3.2.0/server/default/deploy/foe-deployer-3.2.sar/
                09:36:34,828 INFO [FoeDeployer] Creating
                09:36:34,843 INFO [FoeDeployer] Created
                09:36:34,843 INFO [WebLogicConvertor] Creating
                09:36:34,843 INFO [WebLogicConvertor] Created
                09:36:34,843 INFO [FoeDeployer] Starting
                09:36:34,859 WARN [ServiceController] Problem starting service jboss:service=F
                eDeployer
                java.lang.NoClassDefFoundError: org/jboss/util/jmx/MBeanProxy
                at org.jboss.varia.deployment.FoeDeployer.startService(FoeDeployer.java
                252)
                at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:
                92)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBe
                nDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceContro
                ler.java:966)
                at $Proxy11.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:392)
                at java.lang.reflect.Method.invoke(Native Method)
                at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBe
                nDispatcher.java:284)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
                at $Proxy5.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:242)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
                ...

                It complains org/jboss/util/jmx/MBeanProxy not found, but I only can find org/jboss/mx/util/MBeanProxy in jboss-jmx.jar, so which jar file contains org/jboss/util/jmx/MBeanProxy in JBoss 3.2?

                Thanks.

                • 6. Re: Weblogic and JBoss
                  Dave Head-Rapson Newbie

                  I had the same problem. The nearest I can find to org/jboss/util/jmx/MBeanProxy is org/jboss/mx/util/MBeanProxy which lives in jboss-jmx.jar in the lib directory.

                  The same thing seems to occur with 3.2.0 and 3.2.1.

                  Dave

                  • 7. Re: Weblogic and JBoss
                    Sebastien ASTIE Newbie

                    What you can do is the following :

                    Download 3.0.4 and the Foe-deployer for 3.0.x

                    Deploy your app on 3.0.4 and copy the generated deployment descriptors.

                    I know this is a quick and dirty workaround but it will get you started.

                    • 8. Re: Weblogic and JBoss
                      Dave Head-Rapson Newbie

                      Thanks, that's got me most of the way. It generated all most of the CMP stuff and I ported the rest by hand.

                      There is still one outstanding issue though; I've got weblogic-ql custom ejbSelects which return ResultSets. But all the examples i've seen for jboss-ql, dynamic-ql, declared-sql and even the BMP custom finders all return Local/Remote interfaces OR Collections/Sets of Local/Remote interfaces.

                      Is there some way I can return a selection of fields from a number of EJBs without having to do findByPrimaryKey on them.