1 2 Previous Next 21 Replies Latest reply on Mar 14, 2011 8:23 AM by jaikiran pai

    new to JBoss

    Partha Pratim Newbie

      I am doing a project in JBoss 6 M5 with jdk 1.6 but when i am trying to deploy the project it failed.

      Here i just placed what i am seeing in the console please help me as i am a newbie to JBoss

       

      Caused by: org.xml.sax.SAXException: Element type "method" must be declared. @ vfs:///C:/jboss-6.0.0.20100911-M5/server/default

      /deploy/partha.ear/partha-ejb.jar/META-INF/jboss.xml[10,35]

       

      my ejb-jar version is 2.1

        • 1. Re: new to JBoss
          jaikiran pai Master

          Looks like the contents of your jboss.xml are invalid (especially the use of the <method> element). What does the jboss.xml look like? And by the way, any specific reason for using EJB2.x?

          • 2. Re: new to JBoss
            Wolf-Dieter Fink Master

            Hi Partha,

            I look into the jboss.xml from your other thread ;-)

             

            you violate against the DTD!

            <method-attributes>  <method>  <method-name>find*</method-name>   <read-only>true</read-only> </method></method-attributes>

            is  wrong, correct is

            <method-attributes>  <method-name>find*</method-name>    <read-only>true</read-only></method-attributes>

             

            I agree to Jaikiran,

            also  you should give a more significant subject to make it easier to help you ;-)

            • 3. Re: new to JBoss
              Partha Pratim Newbie

              what you replyed earlyer i have done

               

              like

               

              <method-attributes><method-name>find*</method-name> <read-only>true</read-only></method-attributes>

               

              Failed to parse source: method-name not found as a child of method-attribute

              in unordered_sequence: method*

              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:195) [jbossxb.jar:2.0.2.Beta7]
              at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168) [jbossxb.jar:2.0.2.Beta7]
              at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:229) [jbossxb.jar:2.0.2.Beta7]
              at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:206) [jbossxb.jar:2.0.2.Beta7]
              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137) [:2.2.0.Alpha7]
              at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121) [:2.2.0.Alpha7]
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:352) [

               

              2.2.0.Alpha7]

              • 4. Re: new to JBoss
                Wolf-Dieter Fink Master

                Do you write the xml by hand or generate via xdoclet?

                For me the jboss.xml is valid (I use JEdit as XML editor).

                 

                Also the question from Jaikiran:

                And by the way, any specific reason for using EJB2.x?

                 

                So, what you try to do? If you start with learning JEE it might be a good idea to start with EJB3.

                • 5. Re: new to JBoss
                  Partha Pratim Newbie

                  We take the xml template from netBeans5.5 and then modify it by hand.

                   

                  Sorry I did'nt give you the context.

                  I have a small application. This was running in jboss4.2.2GA. The application already uses ejb2. Now I want to migrate to Jboss6. My jboss.xml looks like this:-

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
                  <jboss>
                    <enterprise-beans>
                      <!-- EventMasterBean -->
                      <entity>
                        <ejb-name>EventMasterBean</ejb-name>
                        <jndi-name>EventMasterBean</jndi-name>
                        <local-jndi-name>EventMasterLocal</local-jndi-name>
                        <method-attributes> <method-name>find*</method-name> <read-only>true</read-only> </method-attributes>
                      </entity>
                    
                      <entity>
                        <ejb-name>EventTaskBean</ejb-name>
                        <jndi-name>EventTaskBean</jndi-name>
                        <local-jndi-name>EventTaskLocal</local-jndi-name>
                        <method-attributes> <method-name>find*</method-name> <read-only>true</read-only> </method-attributes>
                      </entity>
                      <!-- EventResolutionBean -->
                      <entity>
                        <ejb-name>EventResolutionBean</ejb-name>
                        <jndi-name>EventResolutionBean</jndi-name>
                        <local-jndi-name>EventResolutionLocal</local-jndi-name>
                       <method-attributes> <method-name>find*</method-name> <read-only>true</read-only> </method-attributes>
                      </entity>
                    
                      <entity>
                        <ejb-name>EventGenerationRuleBean</ejb-name>
                        <jndi-name>EventGenerationRuleBean</jndi-name>
                        <local-jndi-name>EventGenerationRuleLocal</local-jndi-name>
                        <method-attributes> <method-name>find*</method-name> <read-only>true</read-only> </method-attributes>
                      </entity>

                  <message-driven>
                        <ejb-name>MonitorQueueMDBBean</ejb-name>
                        <destination-jndi-name>queue/A</destination-jndi-name>
                         <mdb-user>guest</mdb-user>
                        <mdb-passwd>guest</mdb-passwd>
                      </message-driven>

                  </enterprise-beans>

                  </jboss>

                   

                  Please ask me if you require any other information I am missing.

                   

                  Thanks in Advance.

                  Partha

                  • 6. Re: new to JBoss
                    Wolfgang Knauf Master

                    Hi,

                     

                    if you use JBoss 6, you should use a newer version of the "jboss.xml" DTD/XSD than 3.0 ;-).

                     

                    The newest version available in the web is this one: http://www.jboss.org/j2ee/schema/jboss_5_1.xsd

                    (I assume that there is also a version for JBoss 6.0, but this one does not seem to be published up to now).

                     

                    The header of your file now should be:

                     

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

                     

                    And in this version, the "method-attributes" element has a child "method", which contains the method details:

                    <method-attributes>

                      <method>

                        <method-name>find*</method-name>

                        <read-only>true</read-only>

                      </method>

                    </method-attributes>

                     

                    So I assume that JBoss 6 is not backwards compatible to the JBoss 3.0 DTD, but if you switch to a newer version of jboss.xml it will work hopefully.

                     

                    Best regards

                     

                    Wolfgang

                    • 7. Re: new to JBoss
                      Wolfgang Knauf Master

                      Oops, my last post mixed DTD and XSD ;-).

                       

                      I meant this file header:

                       

                      <?xml version="1.0" encoding="UTF-8"?>
                      <jboss xmlns="http://www.jboss.com/xml/ns/javaee"
                                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                   xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_1.xsd"
                                   version="5.1">

                       

                      Best regards

                       

                      Wolfgang

                      • 8. Re: new to JBoss
                        Partha Pratim Newbie

                        Thanks Wolfgang. Thanks for your reply.

                         

                        I have changed the file header and the xml nodes now the schema version is :

                        jboss_5_1.xsd. The error is changed. It is now giving following error:
                        If newer version of xsd is not available do you think 
                        jboss_5_1.xsd will be sufficient?

                        3:02:38,578 INFO  [AbstractJBossASServerBase] Server Configuration:

                               JBOSS_HOME URL: file:/C:/jboss-6.0.0.20100911-M5/
                               Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
                               Common Base: $JBOSS_HOME\common/
                               Common Library: $JBOSS_HOME\common/lib/
                               Server Name: default
                               Server Base: $JBOSS_HOME\server/
                               Server Library: $JBOSS_HOME\server/default/lib/
                               Server Config: $JBOSS_HOME\server/default/conf/
                               Server Home: $JBOSS_HOME\server/default/
                               Server Data: $JBOSS_HOME\server/default/data/
                               Server Log: $JBOSS_HOME\server/default/log/
                               Server Temp: $JBOSS_HOME\server/default/tmp/

                        3:02:38,593 INFO  [AbstractServer] Starting: JBossAS [6.0.0.20100911-M5 "Neo"]
                        3:02:45,234 INFO  [ServerInfo] Java version: 1.6.0_22,Sun Microsystems Inc.
                        3:02:45,234 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
                        3:02:45,234 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 17.1-b03,Sun Microsystems Inc.
                        3:02:45,234 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
                        3:02:45,234 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.clien
                        .gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Djava.endorsed.dirs=C:\jboss-6.
                        .0.20100911-M5\lib\endorsed
                        3:02:45,406 INFO  [JMXKernel] Legacy JMX core initialized
                        3:03:12,140 INFO  [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.0.Beta2
                        3:03:13,109 INFO  [JSFImplManagementDeployer] Initialized 2 JSF configurations: [Mojarra-1.2, Mojarra-2.0]
                        3:03:31,687 ERROR [ProfileDeployAction] Failed to add deployment: ETSC.ear: org.jboss.deployers.spi.DeploymentException: Excep
                        ion determining structure: AbstractVFSDeployment(ETSC.ear)
                               at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.Alpha7

                               at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers
                        java:85) [:2.2.0.Alpha7]
                               at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1106) [:2.2.0.Alpha7]
                               at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:417) [:2.2.0.Alph
                        7]
                               at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:367) [:2.2.0.Alpha7]
                               at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:277) [:2.2.0.Alpha7]
                               at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.addDeployment(MainDeployerPlugin.java:77) [:6.0.
                        .20100911-M5]
                               at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.addDeployment(ProfileControllerContext
                        java:120) [:0.1.0.Alpha1]
                               at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:129) [:0.1.0.Alpha1]
                               at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.A
                        pha1]
                               at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar
                        2.2.0.Alpha10]
                               at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar
                        2.2.0.Alpha10]
                               at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
                        ava:62) [jboss-dependency.jar:2.2.0.Alpha10]
                               at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jb
                        ss-dependency.jar:2.2.0.Alpha10]
                               at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jbo
                        s-dependency.jar:2.2.0.Alpha10]
                               at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency
                        jar:2.2.0.Alpha10]
                               at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Al
                        ha10]
                               at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2
                        2.0.Alpha10]
                               at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss
                        dependency.jar:2.2.0.Alpha10]
                               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:
                        .2.0.Alpha10]
                               at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:
                        .2.0.Alpha10]
                               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alph
                        10]
                               at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alph
                        10]
                               at org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188) [:0.1.0.Alp
                        a1]
                               at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170) [:0.1.0.Alpha1]
                               at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117
                        [:0.1.0.Alpha1]
                               at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89) [:
                        .1.0.Alpha1]
                               at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97) [:
                        .1.0.Alpha1]
                               at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.jav
                        :130) [:6.0.0.20100911-M5]
                               at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.jav
                        :56) [:6.0.0.20100911-M5]
                               at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-b
                        se.jar:2.1.0-alpha-5]
                               at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-im
                        l-base.jar:2.1.0-alpha-5]
                               at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
                        aused by: java.lang.RuntimeException: Error determining structure: ETSC.ear
                               at org.jboss.deployment.EARStructure.doDetermineStructure(EARStructure.java:300) [:6.0.0.20100911-M5]
                               at org.jboss.deployers.vfs.plugins.structure.AbstractVFSArchiveStructureDeployer.determineStructure(AbstractVFSArchiveS
                        ructureDeployer.java:60) [:2.2.0.Alpha7]
                               at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:
                        3) [:2.2.0.Alpha7]
                               at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl
                        java:197) [:2.2.0.Alpha7]
                               at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.j
                        va:222) [:2.2.0.Alpha7]
                               at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers
                        java:77) [:2.2.0.Alpha7]
                               ... 31 more
                        aused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Open quote is expected for attribute "version" associ
                        ted with an  element type  "application". @ *unknown*[5,9]
                               at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:195) [jbossxb.jar:2.0.2.Beta7]
                               at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:175) [jbossxb.jar:2.0.2.Beta7]
                               at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161) [jbossxb.jar:2.0.2.Beta7]
                               at org.jboss.deployment.EARStructure.doDetermineStructure(EARStructure.java:169) [:6.0.0.20100911-M5]
                               ... 36 more
                        aused by: org.xml.sax.SAXException: Open quote is expected for attribute "version" associated with an  element type  "applicat
                        on". @ *unknown*[5,9]
                               at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.fatalError(SaxJBossXBParser.java:387) [jbossxb.jar:2.0.2.Beta7]

                        • 9. Re: new to JBoss
                          Wolfgang Knauf Master

                          Hi,

                           

                          any typo, e.g. in the XML header (where an attribute "version" is declared)? The error complains about a missing quote.

                           

                          If this is not the case: Could you post your full file?

                           

                          Best regards

                           

                          Wolfgang

                          • 10. Re: new to JBoss
                            Partha Pratim Newbie

                            Hi,

                             

                            When I keep one single even one single entry for entity bean the xml validation fails.

                             

                            <?xml version="1.0" encoding="UTF-8"?>
                            <jboss xmlns="http://www.jboss.com/xml/ns/javaee"
                                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                    xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_1.xsd"
                                    version="5.1">
                            <enterprise-beans>
                                 <!-- EventMasterBean -->
                                 <entity>
                                   <ejb-name>EventMasterBean</ejb-name>
                                   <jndi-name>EventMasterBean</jndi-name>
                                   <local-jndi-name>EventMasterLocal</local-jndi-name>
                                   <method-attributes> <method>  <method-name>find*</method-name>  <read-only>true</read-only> </method>  </method-attributes>
                                 </entity>
                                 </enterprise-beans>

                            </jboss>

                             

                            Thanks & Regards

                            Partha

                            • 11. Re: new to JBoss
                              Partha Pratim Newbie

                              When I use the following header xml validates :

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

                               

                              but the error is same.

                               

                              Thanks & Regards

                              Partha

                              • 12. Re: new to JBoss
                                Partha Pratim Newbie

                                Thanks Wolfgang. There was a typo error in application .xml that error has gone now when the server proceeds to deploy the ejb module following error comes:

                                4:17:43,625 INFO  [EjbDeployer] installing bean: ejb/ETSC-ejb.jar#UserToRoleBean,uid17917212
                                4:17:43,625 INFO  [EjbDeployer]   with dependencies:
                                4:17:43,625 INFO  [EjbDeployer]   and supplies:
                                4:17:43,625 INFO  [EjbDeployer]        jndi:UserToRoleBean
                                4:17:43,640 INFO  [EjbDeployer]        jndi:UserToRoleLocal
                                4:17:43,640 INFO  [EjbDeployer] installing bean: ejb/ETSC-ejb.jar#ConfigLogBean,uid17121536
                                4:17:43,640 INFO  [EjbDeployer]   with dependencies:
                                4:17:43,640 INFO  [EjbDeployer]   and supplies:
                                4:17:43,640 INFO  [EjbDeployer]        jndi:ConfigLogLocal
                                4:17:43,640 INFO  [EjbDeployer]        jndi:ConfigLogBean
                                4:17:43,921 ERROR [AbstractKernelController] Error installing to Configured: name=jboss.j2ee:ear="Partha.ear",module="ETSC-ejb.j
                                r",service=EjbModule state=Instantiated mode=Manual requiredState=Configured: java.lang.RuntimeException: Exception setting at
                                ribute WebServiceName on mbean jboss.j2ee:service=EjbModule,ear="Partha.ear",module="ETSC-ejb.jar"
                                       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:187) [:6.0.0.20100911-M5 (Build SVNTag:JBoss
                                6.0.0.20100911-M5 date: 20100922)]
                                       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114) [:6.0.0.20100911-M5 (Build SVNTag:JBoss
                                6.0.0.20100911-M5 date: 20100922)]
                                       at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:64) [:2.2.0.Alpha10]
                                       at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:44) [:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
                                ava:62) [jboss-dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jb
                                ss-dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jbo
                                s-dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency
                                jar:2.2.0.Alpha10]
                                       at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.Alpha10]

                                 


                                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Al
                                ha10]
                                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2
                                2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss
                                dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.system.ServiceController.doChange(ServiceController.java:671) [:6.0.0.20100911-M5 (Build SVNTag:JBoss_6.0.
                                .20100911-M5 date: 20100922)]
                                       at org.jboss.system.ServiceController.install(ServiceController.java:257) [:6.0.0.20100911-M5 (Build SVNTag:JBoss_6.0.0
                                20100911-M5 date: 20100922)]
                                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:93) [:6.0.0.20100911-M5]
                                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49) [:6.0.0.20100911-M5]
                                       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6
                                ) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha7]
                                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency
                                jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Al
                                ha10]
                                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2
                                2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss
                                dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha7]
                                       at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.201
                                0911-M5]
                                       at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:
                                30) [:0.1.0.Alpha1]
                                       at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148) [:0.1.0.Alpha1]
                                       at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.A
                                pha1]
                                       at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar
                                2.2.0.Alpha10]
                                       at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar
                                2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
                                ava:62) [jboss-dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jb
                                ss-dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jbo
                                s-dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency
                                jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Al
                                ha10]
                                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2
                                2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss
                                dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188) [:0.1.0.Alp
                                a1]
                                       at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170) [:0.1.0.Alpha1]
                                       at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117
                                [:0.1.0.Alpha1]
                                       at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89) [:
                                .1.0.Alpha1]
                                       at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97) [:
                                .1.0.Alpha1]
                                       at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.jav
                                :130) [:6.0.0.20100911-M5]
                                       at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.jav
                                :56) [:6.0.0.20100911-M5]
                                       at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-b
                                se.jar:2.1.0-alpha-5]
                                       at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-im
                                l-base.jar:2.1.0-alpha-5]
                                       at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
                                aused by: javax.management.InvalidAttributeValueException: Set attribute  has class class javax.management.ObjectName loaded f
                                om null that is not assignable to attribute class class javax.management.ObjectName loaded from BaseClassLoader@de3796{vfs:///
                                :/jboss-6.0.0.20100911-M5/server/default/deploy/Partha.ear}
                                       at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.checkAssignable(ModelMBeanAttributeInterceptor.java:224) [:6
                                0.0.Beta5]
                                       at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:83) [:6.0.0.Beta5

                                 


                                       at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76) [:6.0.0.Beta5]
                                       at org.jboss.mx.server.Invocation.invoke(Invocation.java:90) [:6.0.0.Beta5]
                                       at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:468) [:6.0.0.Beta5]
                                       at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:619) [:6.0.0.Beta5]
                                       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:183) [:6.0.0.20100911-M5 (Build SVNTag:JBoss
                                6.0.0.20100911-M5 date: 20100922)]
                                       ... 65 more

                                 


                                4:17:44,281 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///C:/jboss-6.0.0.20100911-M5/server/default/d
                                ploy/Partha.ear state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying: jbos
                                .j2ee:service=EjbModule,ear="Partha.ear",module="ETSC-ejb.jar"
                                       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.Alpha7

                                 


                                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:125) [:6.0.0.20100911-M5]
                                       at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49) [:6.0.0.20100911-M5]
                                       at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:6
                                ) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha7]
                                       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency
                                jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Al
                                ha10]
                                       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2
                                2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss
                                dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:
                                .2.0.Alpha10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alph
                                10]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha7]
                                       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha7]
                                       at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.201
                                0911-M5]
                                       at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:
                                30) [:0.1.0.Alpha1]
                                       at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148) [:0.1.0.Alpha1]
                                       at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.A
                                pha1]
                                       at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar
                                2.2.0.Alpha10]
                                       at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar
                                2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.
                                ava:62) [jboss-dependency.jar:2.2.0.Alpha10]
                                       at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jb

                                 

                                Thanks in Advance

                                Partha

                                • 13. Re: new to JBoss
                                  Wolfgang Knauf Master

                                  Hi,

                                   

                                  first of all: I was wrong with the "xsd" reference, because the xsd files seem to contain only EJB3 related elements, but are not backwards compatible with EJB2.1. So, to use an EJB 2.1 project, you have to reference the DTD.

                                   

                                  For JBoss 6, your "jboss.xml" should look like this (already containing your code):

                                   

                                  <?xml version="1.0" encoding="UTF-8"?>
                                  <!DOCTYPE jboss PUBLIC
                                       "-//JBoss//DTD JBOSS 7.0//EN"
                                       "http://www.jboss.org/j2ee/dtd/jboss_6_0.dtd">
                                  <jboss>
                                      <enterprise-beans>
                                      <entity>
                                         <ejb-name>EventMasterBean</ejb-name>
                                         <jndi-name>EventMasterBean</jndi-name>
                                         <local-jndi-name>EventMasterLocal</local-jndi-name>
                                         <method-attributes>
                                                 <method>
                                                     <method-name>find*</method-name>
                                                     <read-only>true</read-only>
                                                 </method>
                                             </method-attributes>
                                       </entity>
                                      </enterprise-beans>
                                  </jboss>

                                   

                                  At least this file deployed without an error in my sample.

                                   

                                  The only idea: your deployment error seems to happen in the EAR file. Where did you place "jboss.xml"? It must be in the EJB project, not in the EAR file.

                                  Or is the new error something different in another file (e.g. "jboss-app.xml")?

                                   

                                  Best regards

                                   

                                  Wolfgang

                                  • 14. Re: new to JBoss
                                    Wolfgang Knauf Master

                                    By the way: "jboss_6_0.dtd" is not published to the website, but can be found in "common\lib\jboss-metadata-ejb.jar" in your jboss directory.

                                    1 2 Previous Next