13 Replies Latest reply on Apr 21, 2003 8:25 AM by Seet Seet

    Steps to deploy a bean without XDoclet

    Seet Seet Newbie

      Hi,

      I am having the existing session bean as i have migrated from Weblogic to JBoss now.

      I have 3 java files for the same along with jboss.xml.
      I am using the ejb-jar.xml file as taken from the Weblogic example.

      Is this the right approach? If not could someone help me out with the ejb-jar.xml file

      How do i create a jar file without using the ant or any other tool simply by using the jar command.

      will this batch file help me create the jar file for session bean or any other soln is available for the same.

      mkdir build build\META-INF
      copy *.xml build\META-INF
      javac -d build Trader.java TraderHome.java TraderBean.java
      cd build
      jar cv0f std_ejb_trader.jar META-INF ejb
      cd ..

      Seetesh

        • 1. Re: Steps to deploy a bean without XDoclet
          Seet Seet Newbie

          Hi,

          javac -d $classpath Trader.java TraderHome.java TraderBean.java

          Do I have to add some jar file so as my compilation searches for the path javax.ejb.* neatly.

          I am missing something here.

          • 2. Re: Steps to deploy a bean without XDoclet
            Juha Lindfors Master

            to compile, include jboss-j2ee.jar in your classpath (this includes all J2EE interfaces)

            to create the bean jar, use 'jar cvf mybean.jar [dirs|files]', make sure you got the classes in the same directory structure as they're packaged in, for example com.foo.Bar is com/foo/Bar.class and that you add META-INF (notice all CAPS!) that contains your ejb-jar.xml and jboss.xml

            Executing the jar command will give you a more detailed help on the options.

            • 3. Re: Steps to deploy a bean without XDoclet
              Seet Seet Newbie

              Hi Juha,

              Thanks for your message.

              After creating the jar file, while deploying I am getting error displaying
              no deployment descriptor (META-INF/ejb-jar.xml, WEB-INF/web.xml, META-INF/application.xml) found

              I guess the ejb-jar.xml file I am using doesnt support jboss-tomcat

              Cld. u pls send me the file by email or give me a link to the site which has these 3 files meant for Jboss.

              Seetesh

              • 4. Re: Steps to deploy a bean without XDoclet
                Juha Lindfors Master

                execute 'jar -tvf yourfile.jar' and make sure the ejb-jar.xml and jboss.xml files are under META-INF, and that META-INF is in UPPERCASE, lower case will fail.

                • 5. Re: Steps to deploy a bean without XDoclet
                  Seet Seet Newbie

                  Hi,

                  It doesnt display the xml files under the META-INF folder but one level below ie at par with the META-INF folder.

                  Am I missing something while creating the jar file?

                  mkdir \META-INF
                  copy *.xml \META-INF
                  jar cvf Trader.jar Trader.class TraderHome.class TraderBean.class

                  Is this batch command correct?

                  Seetesh

                  • 6. Re: Steps to deploy a bean without XDoclet
                    Seet Seet Newbie

                    Hi,

                    My mistake in the creating jar. Its created now having the 2 xml files in the META-INF folder.

                    After copying the classes to the classes folder under jboss-tomcat\tomcat\webapps\examples\WEB-INF\classes and the jar file to jboss-tomcat\jboss\deploy folder,
                    I am getting ClassNotFound Exception.

                    Seetesh

                    • 7. Re: Steps to deploy a bean without XDoclet
                      Juha Lindfors Master

                      What is the class it is not finding?

                      You only need to copy your bean jar to jboss/deploy directory.

                      • 8. Re: Steps to deploy a bean without XDoclet
                        Seet Seet Newbie

                        App server : Jboss 2.4.10 Tomcat 3.2.3
                        I have copied the class files to stateless\trader folder created under webapps\examples\WEB-INF\classes\
                        This is what it displays when i type run_with_tomcat

                        [ERROR,ContainerFactory] DeploymentError
                        java.lang.ClassNotFoundException: stateless.trader.TraderHome
                        at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at java.net.URLClassLoader.findClass(URLClassLoader.java:189)
                        at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
                        at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
                        at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:147)
                        at org.jboss.ejb.Application.init(Application.java:204)
                        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:373)
                        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
                        at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                        at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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 sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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:209)
                        at org.jboss.Main$1.run(Main.java:110)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at org.jboss.Main.main(Main.java:106)
                        [ERROR,Application] Error during stop
                        java.lang.NullPointerException
                        at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.stop(JRMPContainerInvoker.java:315)
                        at org.jboss.ejb.StatelessSessionContainer.stop(StatelessSessionContainer.java:220)
                        at org.jboss.ejb.Application.stop(Application.java:235)
                        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:401)
                        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
                        at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                        at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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 sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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:209)
                        at org.jboss.Main$1.run(Main.java:110)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at org.jboss.Main.main(Main.java:106)
                        [ERROR,J2eeDeployer] Starting trader.jar failed!
                        [INFO,STDERR] org.jboss.deployment.DeploymentException: Could not deploy file:/C:/Jboss-Tomcat/jboss/tmp/deploy/Default/trader.jar, Cause: ja
                        [INFO,STDERR] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:404)
                        [INFO,STDERR] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
                        [INFO,STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        [INFO,STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        [INFO,STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        [INFO,STDERR] at java.lang.reflect.Method.invoke(Method.java:327)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        [INFO,STDERR] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
                        [INFO,STDERR] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                        [INFO,STDERR] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                        [INFO,STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        [INFO,STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        [INFO,STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        [INFO,STDERR] at java.lang.reflect.Method.invoke(Method.java:327)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        [INFO,STDERR] at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
                        [INFO,STDERR] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
                        [INFO,STDERR] at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)
                        [INFO,STDERR] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
                        [INFO,STDERR] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                        [INFO,STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        [INFO,STDERR] at java.lang.reflect.Method.invoke(Method.java:327)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        [INFO,STDERR] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
                        [INFO,STDERR] at $Proxy0.start(Unknown Source)
                        [INFO,STDERR] at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
                        [INFO,STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        [INFO,STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        [INFO,STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        [INFO,STDERR] at java.lang.reflect.Method.invoke(Method.java:327)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        [INFO,STDERR] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        [INFO,STDERR] at org.jboss.Main.(Main.java:209)
                        [INFO,STDERR] at org.jboss.Main$1.run(Main.java:110)
                        [INFO,STDERR] at java.security.AccessController.doPrivileged(Native Method)
                        [INFO,STDERR] at org.jboss.Main.main(Main.java:106)
                        [INFO,STDERR] Caused by: java.lang.ClassNotFoundException: stateless.trader.TraderHome
                        [INFO,STDERR] at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
                        [INFO,STDERR] at java.security.AccessController.doPrivileged(Native Method)
                        [INFO,STDERR] at java.net.URLClassLoader.findClass(URLClassLoader.java:189)
                        [INFO,STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
                        [INFO,STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
                        [INFO,STDERR] at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:147)
                        [INFO,STDERR] at org.jboss.ejb.Application.init(Application.java:204)
                        [INFO,STDERR] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:373)
                        [INFO,STDERR] ... 38 more
                        [INFO,J2eeDeployer] Module trader.jar is not running
                        [INFO,J2eeDeployer] Destroying application trader.jar
                        [ERROR,AutoDeployer] DeploymentInfo failed:file:/C:/Jboss-Tomcat/jboss/deploy/trader.jar
                        org.jboss.deployment.J2eeDeploymentException: Error while starting trader.jar: Could not deploy file:/C:/Jboss-Tomcat/jboss/tmp/deploy/Defaul
                        ssNotFoundException: stateless.trader.TraderHome
                        at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:518)
                        at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:459)
                        at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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 sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        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:209)
                        at org.jboss.Main$1.run(Main.java:110)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at org.jboss.Main.main(Main.java:106)
                        Caused by: org.jboss.deployment.DeploymentException: Could not deploy file:/C:/Jboss-Tomcat/jboss/tmp/deploy/Default/trader.jar, Cause: java.
                        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:404)
                        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:307)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
                        at java.lang.reflect.Method.invoke(Method.java:327)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
                        at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
                        at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:487)
                        ... 30 more
                        Caused by: java.lang.ClassNotFoundException: stateless.trader.TraderHome
                        at java.net.URLClassLoader$1.run(URLClassLoader.java:201)
                        at java.security.AccessController.doPrivileged(Native Method)
                        at java.net.URLClassLoader.findClass(URLClassLoader.java:189)
                        at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
                        at java.lang.ClassLoader.loadClass(ClassLoader.java:265)
                        at org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:147)
                        at org.jboss.ejb.Application.init(Application.java:204)
                        at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:373)
                        ... 38 more
                        [INFO,AutoDeployer] Auto deploy of file:/C:/Jboss-Tomcat/jboss/deploy/tomcat-test.ear
                        [INFO,J2eeDeployer] Deploy J2EE application: file:/C:/Jboss-Tomcat/jboss/deploy/tomcat-test.ear
                        [INFO,J2eeDeployer] Create application tomcat-test.ear
                        [INFO,J2eeDeployer] inflate and install WEB module tomcat-test.war
                        [INFO,J2eeDeployer] install EJB module tomcat-test.jar
                        [INFO,J2eeDeployer] add all ejb jar files to the common classpath
                        [INFO,ContainerFactory] Deploying:file:/C:/Jboss-Tomcat/jboss/tmp/deploy/Default/tomcat-test.ear
                        [INFO,ContainerFactory] Deploying Optimized
                        [INFO,ContainerFactory] Deploying NonOptimized
                        [INFO,ContainerFactory] Deployed application: file:/C:/Jboss-Tomcat/jboss/tmp/deploy/Default/tomcat-test.ear
                        [INFO,J2eeDeployer] Starting module tomcat-test.war
                        [INFO,EmbeddedTomcatServiceSX] deploy, ctxPath=/jboss, warUrl=file:/C:/Jboss-Tomcat/jboss/tmp/deploy/Default/tomcat-test.ear/web1002/
                        [INFO,J2eeDeployer] J2EE application: file:/C:/Jboss-Tomcat/jboss/deploy/tomcat-test.ear is deployed.
                        [INFO,AutoDeployer] Auto deploy of file:/C:/Jboss-Tomcat/jboss/deploy/lib/jbosspool-jdbc.rar
                        [INFO,RARDeployer] Attempting to deploy RAR at 'file:/C:/Jboss-Tomcat/jboss/deploy/lib/jbosspool-jdbc.rar'
                        [INFO,RARMetaData] Loading Minerva Resource Adapter for JDBC 1/2 drivers
                        [INFO,RARMetaData] Required license terms present. See deployment descriptor.
                        [WARN,MinervaDS] Not setting config property 'Password'

                        • 9. Re: Steps to deploy a bean without XDoclet
                          Juha Lindfors Master

                          When you package your jar, your class files must be packaged according to their declared package structure. In this case it means that class TraderHome.class must be found under directory stateless/trader in your bean package.

                          When you execute 'jar tvf mypackage.jar' does it show an entry:

                          stateless/trader/TraderHome.class under the root?

                          • 10. Re: Steps to deploy a bean without XDoclet
                            Juha Lindfors Master

                            BTW, WEB-INF/classes is used by servlet deployments, when you're deploying pure EJB components you don't put anything there.

                            • 11. Re: Steps to deploy a bean without XDoclet
                              Seet Seet Newbie

                              Hi,

                              0 Wed Apr 16 18:33:30 GMT+05:30 2003 META-INF/
                              74 Wed Apr 16 18:33:30 GMT+05:30 2003 META-INF/MANIFEST.MF
                              245 Wed Apr 16 10:41:32 GMT+05:30 2003 Trader.class
                              276 Wed Apr 16 10:42:06 GMT+05:30 2003 TraderHome.class
                              1280 Wed Apr 16 10:42:24 GMT+05:30 2003 TraderBean.class
                              642 Wed Apr 16 15:30:46 GMT+05:30 2003 META-INF/ejb-jar.xml
                              249 Wed Apr 16 15:33:12 GMT+05:30 2003 META-INF/jboss.xml

                              This is what it shows when I see the contents of the trader.jar file.

                              Seetesh

                              • 12. Re: Steps to deploy a bean without XDoclet
                                Juha Lindfors Master

                                What you need is:

                                245 Wed Apr 16 10:41:32 GMT+05:30 2003 stateless/trader/Trader.class
                                276 Wed Apr 16 10:42:06 GMT+05:30 2003 stateless/trader/TraderHome.class
                                1280 Wed Apr 16 10:42:24 GMT+05:30 2003 stateless/trader/TraderBean.class

                                In other words, the packaging expects a directory structure that matches your Java package declarations.

                                • 13. Re: Steps to deploy a bean without XDoclet
                                  Seet Seet Newbie

                                  Hi,

                                  Thanks for pointing out my error Juha.
                                  I have now created a new jar file Trader.jar

                                  0 Mon Apr 21 17:50:22 GMT+05:30 2003 META-INF/
                                  74 Mon Apr 21 17:50:22 GMT+05:30 2003 META-INF/MANIFEST.MF
                                  642 Wed Apr 16 15:30:46 GMT+05:30 2003 META-INF/ejb-jar.xml
                                  249 Wed Apr 16 15:33:12 GMT+05:30 2003 META-INF/jboss.xml
                                  0 Mon Apr 21 17:50:22 GMT+05:30 2003 stateless/trader/
                                  245 Wed Apr 16 10:41:32 GMT+05:30 2003 stateless/trader/Trader.class
                                  1280 Wed Apr 16 10:42:24 GMT+05:30 2003 stateless/trader/TraderBean.class
                                  276 Wed Apr 16 10:42:06 GMT+05:30 2003 stateless/trader/TraderHome.class

                                  Now after copying the jar file to jboss\conf folder it deploys the Trader.jar successfully

                                  Seetesh