7 Replies Latest reply on May 23, 2002 12:00 PM by J. Wolfgang Kaltz

    EJB deployment differences between Sun J2EE SDK and JBoss

    Sylvain Thevoz Newbie

      Hello,

      I used the Sun J2EE SDK kit to write an EJB and I want to deploy it in JBOSS.
      When I deploy the EJB in the Sun SDK server, it works well but when I deploy it in JBoss, there is an error in application.xml.

      What are the differences?
      What should I change?

      Thank you
      Sylvain

        • 1. Re: EJB deployment differences between Sun J2EE SDK and JBos
          bjoern Newbie

          Hi Silvain!

          What kind of error comes from the application.xml? I'm also using the deploytool from the J2SDKEE 1.3.1 to write the deployment descriptor and package my source. But until now I have no problems to deploy these ear-Fiele in JBOSS.

          By the way. Is there another tool (free) to generate the deployment descriptor and all the other JBOSS-Files??

          CU
          BJ

          • 2. Re: EJB deployment differences between Sun J2EE SDK and JBos
            David Jencks Master

            xdoclet generates home, remote, local, etc, standard dd's, app-server-specific dd's (for most app servers) for ejbs, generates mbean interfaces (standard) or xmbean descriptors (model mbean), and does most anything you can think of from javadoc-like markup in your source code. It's on sourceforge.

            • 3. Re: EJB deployment differences between Sun J2EE SDK and JBos
              Sylvain Thevoz Newbie

              Hello,

              Here the error from the JBoss server.log:

              [16:16:23,593,AutoDeployer] Auto deploy of file:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/ConverterApp.ear
              [16:16:23,593,J2eeDeployer] Deploy J2EE application: file:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/ConverterApp.ear
              [16:16:23,687,J2eeDeployer] Create application ConverterApp.ear
              [16:16:46,687,AutoDeployer] DeploymentInfo failed:file:/C:/JBoss-2.4.4_Tomcat-4.0.1/jboss/deploy/ConverterApp.ear
              org.jboss.deployment.J2eeDeploymentException: Error in parsing application.xml: Operation timed out: connect
              at org.jboss.deployment.LegacyInstaller.execute(LegacyInstaller.java:199)
              at org.jboss.deployment.InstallerFactory.install(InstallerFactory.java:120)
              at org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.java:409)
              at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:185)
              at java.lang.reflect.Method.invoke(Native Method)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
              at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
              at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
              at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
              at java.lang.reflect.Method.invoke(Native Method)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
              at $Proxy0.start(Unknown Source)
              at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
              at java.lang.reflect.Method.invoke(Native Method)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.Main.(Main.java:208)
              at org.jboss.Main$1.run(Main.java:110)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.Main.main(Main.java:106)


              Thank you
              Sylvain

              • 4. Re: EJB deployment differences between Sun J2EE SDK and JBos
                Sylvain Thevoz Newbie

                Sorry but I forgot the application.xml file:

                <?xml version="1.0" encoding="UTF-8"?>

                <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>


                <display-name>ConverterApp</display-name>
                Application description

                app-client-ic.jar



                <web-uri>war-ic.war</web-uri>
                <context-root>converter</context-root>



                ejb-jar-ic.jar



                Thank you
                Sylvain

                • 5. Re: EJB deployment differences between Sun J2EE SDK and JBos
                  Sylvain Thevoz Newbie

                  Who could help me?

                  Thank you
                  Sylvain

                  • 6. Re: EJB deployment differences between Sun J2EE SDK and JBos
                    Adam Newbie

                    I don't think you can put the EAR file in the deploy directory. Instead you have to put the JAR file for the EJB's. I'm not positive about this because its new to me as well. In the deploytool, select the ConverterJAR file that contains the EJB's, then from the file menu, select 'SAVE AS' and save the file in the JBoss deploy directory. It should get picked up.

                    The problem I then have is when I try to run the client I get a CORBA exception.

                    • 7. Re: EJB deployment differences between Sun J2EE SDK and JBos
                      J. Wolfgang Kaltz Novice

                      > <!DOCTYPE application PUBLIC '-//Sun Microsystems,
                      &gt; Inc.//DTD J2EE Application 1.3//EN'
                      &gt; 'http://java.sun.com/dtd/application_1_3.dtd'>
                      >

                      You said your error was:
                      org.jboss.deployment.J2eeDeploymentException: Error in parsing application.xml: Operation timed out: connect

                      Do you have access to http://java.sun.com/dtd/application_1_3.dtd from the machine where JBoss is running ?