9 Replies Latest reply: Apr 24, 2009 9:02 AM by Peter Johnson RSS

    Change DefaultDS

    Giuseppe Moscardelli Newbie

      Hi,
      I installed JBoss5 and I have to change the DefaultDS. I put in the server the mysql-ds.xml in server\default\deploy and I removed hsqldb-ds.xml.
      When I start JBoss I receive these errors:


      23:21:19,114 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
      incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      DEPLOYMENTS MISSING DEPENDENCIES:
      Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is m
      issing the following dependencies:
      Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be i
      n state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:n
      ame=DefaultDS,service=DataSourceBinding' **")
      Dependency "jboss.jdbc:datasource=DefaultDS,service=metadata" (should be in
      state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jdbc:da
      tasource=DefaultDS,service=metadata' **")
      Deployment "jboss.ejb:service=EJBTimerService" is missing the following depend
      encies:
      Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (s
      hould be in state "Create", but is actually in state "Configured")
      Deployment "jboss.jca:name=JmsXA,service=ConnectionFactoryBinding" is missing
      the following dependencies:
      Dependency "jboss.jca:name=JmsXA,service=TxCM" (should be in state "Create",
      but is actually in state "Configured")
      Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" is missing
      the following dependencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionPool" is missing the
      following dependencies:
      Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" (should b
      e in state "Create", but is actually in state "Configured")
      Deployment "jboss.jca:name=JmsXA,service=TxCM" is missing the following depend
      encies:
      Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionPool" (should be i
      n state "Create", but is actually in state "Configured")
      Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFac
      tory" is missing the following dependencies:
      Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
      , but is actually in state "Configured")
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFacto
      ry" is missing the following dependencies:
      Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
      , but is actually in state "Configured")
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is mi
      ssing the following dependencies:
      Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
      , but is actually in state "Configured")
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the
      following dependencies:
      Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
      , but is actually in state "Configured")
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is mis
      sing the following dependencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
      , but is actually in state "Configured")
      Deployment "jboss.messaging:service=JMSUserManager" is missing the following d
      ependencies:
      Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be i
      n state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:n
      ame=DefaultDS,service=DataSourceBinding' **")
      Deployment "jboss.messaging:service=PersistenceManager" is missing the followi
      ng dependencies:
      Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be i
      n state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:n
      ame=DefaultDS,service=DataSourceBinding' **")
      Deployment "jboss.messaging:service=PostOffice" is missing the following depen
      dencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be i
      n state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:n
      ame=DefaultDS,service=DataSourceBinding' **")
      Deployment "jboss.messaging:service=ServerPeer" is missing the following depen
      dencies:
      Dependency "jboss.messaging:service=PersistenceManager" (should be in state
      "Create", but is actually in state "Configured")
      Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Cre
      ate", but is actually in state "Configured")
      Deployment "jboss.mq:service=DestinationManager" is missing the following depe
      ndencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
      , but is actually in state "Configured")
      Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the follow
      ing dependencies:
      Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be i
      n state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:n
      ame=DefaultDS,service=DataSourceBinding' **")

      DEPLOYMENTS IN ERROR:
      Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error du
      e to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,
      service=DataSourceBinding' **
      Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due
      to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=Defau
      ltDS,service=metadata' **

      23:21:19,286 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
      080
      23:21:19,664 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      23:21:19,732 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=
      JBoss_5_0_1_GA date=200902231221)] Started in 1m:53s:144ms


      I think I changed every DefaultDS I find to MySqlDS but I continue to receive the previous errors.
      How can I solve? Where do I have to set MySqlDS?
      Thansk, bye bye.

        • 1. Re: Change DefaultDS
          Peter Johnson Master

          You also need to replace the server/xxx/deploy/messaging/hsqldb-persistence-service.xml file with the docs/examples/jms/mysql-persistence-service.xml file.

          Also, it is easier to simply name the MySQL datasource as DefaultDS, rather than using a different name.

          • 2. Re: Change DefaultDS
            Giuseppe Moscardelli Newbie

            Hi,
            I inserted this mysql-ds.xml:

            <?xml version="1.0" encoding="UTF-8"?>
            
            <!-- $Id: mysql-ds.xml 41017 2006-02-07 14:26:14Z acoliver $ -->
            <!-- Datasource config for MySQL using 3.0.9 available from:
            http://www.mysql.com/downloads/api-jdbc-stable.html
            -->
            
            <datasources>
             <local-tx-datasource>
             <jndi-name>DefaultDS</jndi-name>
             <connection-url>jdbc:mysql://server.xubuntu:3306/test</connection-url>
             <driver-class>com.mysql.jdbc.Driver</driver-class>
             <user-name>angelo</user-name>
             <password>palermo</password>
             <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
             <!-- should only be used on drivers after 3.22.1 with "ping" support-->
             <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
            
             <!-- sql to call when connection is created
             <new-connection-sql>some arbitrary sql</new-connection-sql>
             -->
            
             <security-domain>mySQLDbRealm</security-domain>
             <!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
             <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
             -->
            
             <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
             <metadata>
             <type-mapping>mySQL</type-mapping>
             </metadata>
             </local-tx-datasource>
            </datasources>
            


            and I inserted this mysql-persistence-service.xml:
            <?xml version="1.0" encoding="UTF-8"?>
            
            <!--
             MySql persistence deployment descriptor.
            
             Tested with MySQL 5.0.27
            
             $Id$
             -->
            
            <server>
            
             <!-- Persistence Manager MBean configuration
             ======================================== -->
            
             <mbean code="org.jboss.messaging.core.jmx.JDBCPersistenceManagerService"
             name="jboss.messaging:service=PersistenceManager"
             xmbean-dd="xmdesc/JDBCPersistenceManager-xmbean.xml">
            
             <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
            
             <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
            
             <!-- The datasource to use for the persistence manager -->
            
             <attribute name="DataSource">java:/DefaultDS</attribute>
            
             <!-- If true will attempt to create tables and indexes on every start-up -->
            
             <attribute name="CreateTablesOnStartup">true</attribute>
            
             <!-- If true then we will automatically detect and reject duplicate messages sent during failover -->
            
             <attribute name="DetectDuplicates">true</attribute>
            
             <!-- The size of the id cache to use when detecting duplicate messages -->
            
             <attribute name="IDCacheSize">500</attribute>
            
             <attribute name="SqlProperties"><![CDATA[
             CREATE_DUAL=CREATE TABLE JBM_DUAL (DUMMY INTEGER, PRIMARY KEY (DUMMY)) ENGINE = INNODB
             CREATE_MESSAGE_REFERENCE=CREATE TABLE JBM_MSG_REF (MESSAGE_ID BIGINT, CHANNEL_ID BIGINT, TRANSACTION_ID BIGINT, STATE CHAR(1), ORD BIGINT, PAGE_ORD BIGINT, DELIVERY_COUNT INTEGER, SCHED_DELIVERY BIGINT, PRIMARY KEY(MESSAGE_ID, CHANNEL_ID)) ENGINE = INNODB
             CREATE_IDX_MESSAGE_REF_TX=CREATE INDEX JBM_MSG_REF_TX ON JBM_MSG_REF (TRANSACTION_ID, STATE)
             CREATE_MESSAGE=CREATE TABLE JBM_MSG (MESSAGE_ID BIGINT, RELIABLE CHAR(1), EXPIRATION BIGINT, TIMESTAMP BIGINT, PRIORITY TINYINT, TYPE TINYINT, HEADERS MEDIUMBLOB, PAYLOAD LONGBLOB, PRIMARY KEY (MESSAGE_ID)) ENGINE = INNODB
             CREATE_TRANSACTION=CREATE TABLE JBM_TX (NODE_ID INTEGER, TRANSACTION_ID BIGINT, BRANCH_QUAL VARBINARY(254), FORMAT_ID INTEGER, GLOBAL_TXID VARBINARY(254), PRIMARY KEY (TRANSACTION_ID)) ENGINE = INNODB
             CREATE_COUNTER=CREATE TABLE JBM_COUNTER (NAME VARCHAR(255), NEXT_ID BIGINT, PRIMARY KEY(NAME)) ENGINE = INNODB
             CREATE_ID_CACHE=CREATE TABLE JBM_ID_CACHE (NODE_ID INTEGER, CNTR INTEGER, JBM_ID VARCHAR(255), PRIMARY KEY(NODE_ID, CNTR)) ENGINE = INNODB
             INSERT_DUAL=INSERT INTO JBM_DUAL VALUES (1)
             CHECK_DUAL=SELECT 1 FROM JBM_DUAL
             INSERT_MESSAGE_REF=INSERT INTO JBM_MSG_REF (CHANNEL_ID, MESSAGE_ID, TRANSACTION_ID, STATE, ORD, PAGE_ORD, DELIVERY_COUNT, SCHED_DELIVERY) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
             DELETE_MESSAGE_REF=DELETE FROM JBM_MSG_REF WHERE MESSAGE_ID=? AND CHANNEL_ID=? AND STATE='C'
             UPDATE_MESSAGE_REF=UPDATE JBM_MSG_REF SET TRANSACTION_ID=?, STATE='-' WHERE MESSAGE_ID=? AND CHANNEL_ID=? AND STATE='C'
             UPDATE_PAGE_ORDER=UPDATE JBM_MSG_REF SET PAGE_ORD = ? WHERE MESSAGE_ID=? AND CHANNEL_ID=?
             COMMIT_MESSAGE_REF1=UPDATE JBM_MSG_REF SET STATE='C', TRANSACTION_ID = NULL WHERE TRANSACTION_ID=? AND STATE='+'
             COMMIT_MESSAGE_REF2=DELETE FROM JBM_MSG_REF WHERE TRANSACTION_ID=? AND STATE='-'
             ROLLBACK_MESSAGE_REF1=DELETE FROM JBM_MSG_REF WHERE TRANSACTION_ID=? AND STATE='+'
             ROLLBACK_MESSAGE_REF2=UPDATE JBM_MSG_REF SET STATE='C', TRANSACTION_ID = NULL WHERE TRANSACTION_ID=? AND STATE='-'
             LOAD_PAGED_REFS=SELECT MESSAGE_ID, DELIVERY_COUNT, PAGE_ORD, SCHED_DELIVERY FROM JBM_MSG_REF WHERE CHANNEL_ID = ? AND PAGE_ORD BETWEEN ? AND ? ORDER BY PAGE_ORD
             LOAD_UNPAGED_REFS=SELECT MESSAGE_ID, DELIVERY_COUNT, SCHED_DELIVERY FROM JBM_MSG_REF WHERE STATE = 'C' AND CHANNEL_ID = ? AND PAGE_ORD IS NULL ORDER BY ORD
             LOAD_REFS=SELECT MESSAGE_ID, DELIVERY_COUNT, SCHED_DELIVERY FROM JBM_MSG_REF WHERE STATE = 'C' AND CHANNEL_ID = ? ORDER BY ORD
             UPDATE_REFS_NOT_PAGED=UPDATE JBM_MSG_REF SET PAGE_ORD = NULL WHERE PAGE_ORD BETWEEN ? AND ? AND CHANNEL_ID=?
             SELECT_MIN_MAX_PAGE_ORD=SELECT MIN(PAGE_ORD), MAX(PAGE_ORD) FROM JBM_MSG_REF WHERE CHANNEL_ID = ?
             UPDATE_DELIVERY_COUNT=UPDATE JBM_MSG_REF SET DELIVERY_COUNT = ? WHERE MESSAGE_ID = ? AND CHANNEL_ID = ?
             UPDATE_CHANNEL_ID=UPDATE JBM_MSG_REF SET CHANNEL_ID = ? WHERE CHANNEL_ID = ?
             MOVE_REFERENCE=UPDATE JBM_MSG_REF SET CHANNEL_ID = ? WHERE MESSAGE_ID = ? AND CHANNEL_ID = ?
             LOAD_MESSAGES=SELECT MESSAGE_ID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, HEADERS, PAYLOAD, TYPE FROM JBM_MSG
             INSERT_MESSAGE=INSERT INTO JBM_MSG (MESSAGE_ID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, TYPE, HEADERS, PAYLOAD) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
             INSERT_MESSAGE_CONDITIONAL=INSERT INTO JBM_MSG (MESSAGE_ID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, TYPE) SELECT ?, ?, ?, ?, ?, ? FROM JBM_DUAL WHERE NOT EXISTS (SELECT MESSAGE_ID FROM JBM_MSG WHERE MESSAGE_ID = ?)
             UPDATE_MESSAGE_4CONDITIONAL=UPDATE JBM_MSG SET HEADERS=?, PAYLOAD=? WHERE MESSAGE_ID=?
             INSERT_MESSAGE_CONDITIONAL_FULL=INSERT INTO JBM_MSG (MESSAGE_ID, RELIABLE, EXPIRATION, TIMESTAMP, PRIORITY, TYPE, HEADERS, PAYLOAD) SELECT ?, ?, ?, ?, ?, ?, ?, ? FROM JBM_DUAL WHERE NOT EXISTS (SELECT MESSAGE_ID FROM JBM_MSG WHERE MESSAGE_ID = ?)
             MESSAGE_ID_COLUMN=MESSAGE_ID
             DELETE_MESSAGE=DELETE FROM JBM_MSG WHERE MESSAGE_ID = ? AND NOT EXISTS (SELECT JBM_MSG_REF.MESSAGE_ID FROM JBM_MSG_REF WHERE JBM_MSG_REF.MESSAGE_ID = ?)
             INSERT_TRANSACTION=INSERT INTO JBM_TX (NODE_ID, TRANSACTION_ID, BRANCH_QUAL, FORMAT_ID, GLOBAL_TXID) VALUES(?, ?, ?, ?, ?)
             DELETE_TRANSACTION=DELETE FROM JBM_TX WHERE NODE_ID = ? AND TRANSACTION_ID = ?
             SELECT_PREPARED_TRANSACTIONS=SELECT TRANSACTION_ID, BRANCH_QUAL, FORMAT_ID, GLOBAL_TXID FROM JBM_TX WHERE NODE_ID = ?
             SELECT_MESSAGE_ID_FOR_REF=SELECT MESSAGE_ID, CHANNEL_ID FROM JBM_MSG_REF WHERE TRANSACTION_ID = ? AND STATE = '+' ORDER BY ORD
             SELECT_MESSAGE_ID_FOR_ACK=SELECT MESSAGE_ID, CHANNEL_ID FROM JBM_MSG_REF WHERE TRANSACTION_ID = ? AND STATE = '-' ORDER BY ORD
             UPDATE_COUNTER=UPDATE JBM_COUNTER SET NEXT_ID = ? WHERE NAME=?
             SELECT_COUNTER=SELECT NEXT_ID FROM JBM_COUNTER WHERE NAME=? FOR UPDATE
             INSERT_COUNTER=INSERT INTO JBM_COUNTER (NAME, NEXT_ID) VALUES (?, ?)
             SELECT_ALL_CHANNELS=SELECT DISTINCT(CHANNEL_ID) FROM JBM_MSG_REF
             UPDATE_TX=UPDATE JBM_TX SET NODE_ID=? WHERE NODE_ID=?
             UPDATE_ID_IN_CACHE=UPDATE JBM_ID_CACHE SET JBM_ID = ? WHERE NODE_ID = ? AND CNTR = ?
             INSERT_ID_IN_CACHE=INSERT INTO JBM_ID_CACHE (NODE_ID, CNTR, JBM_ID) VALUES (?, ?, ?)
             LOAD_ID_CACHE=SELECT CNTR, JBM_ID FROM JBM_ID_CACHE WHERE NODE_ID = ?
             ]]></attribute>
            
             <!-- The maximum number of parameters to include in a prepared statement -->
            
             <attribute name="MaxParams">500</attribute>
            
             </mbean>
            
             <!-- Messaging Post Office MBean configuration
             ========================================= -->
            
             <mbean code="org.jboss.messaging.core.jmx.MessagingPostOfficeService"
             name="jboss.messaging:service=PostOffice"
             xmbean-dd="xmdesc/MessagingPostOffice-xmbean.xml">
            
             <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
            
             <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
            
             <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
            
             <!-- The name of the post office -->
            
             <attribute name="PostOfficeName">JMS post office</attribute>
            
             <!-- The datasource used by the post office to access it's binding information -->
            
             <attribute name="DataSource">java:/DefaultDS</attribute>
            
             <!-- If true will attempt to create tables and indexes on every start-up -->
            
             <attribute name="CreateTablesOnStartup">true</attribute>
            
             <attribute name="SqlProperties"><![CDATA[
            CREATE_POSTOFFICE_TABLE=CREATE TABLE JBM_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID INTEGER, QUEUE_NAME VARCHAR(255), COND VARCHAR(1023), SELECTOR VARCHAR(1023), CHANNEL_ID BIGINT, CLUSTERED CHAR(1), ALL_NODES CHAR(1), PRIMARY KEY(POSTOFFICE_NAME, NODE_ID, QUEUE_NAME)) ENGINE = INNODB
            INSERT_BINDING=INSERT INTO JBM_POSTOFFICE (POSTOFFICE_NAME, NODE_ID, QUEUE_NAME, COND, SELECTOR, CHANNEL_ID, CLUSTERED, ALL_NODES) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
            DELETE_BINDING=DELETE FROM JBM_POSTOFFICE WHERE POSTOFFICE_NAME=? AND NODE_ID=? AND QUEUE_NAME=?
            LOAD_BINDINGS=SELECT QUEUE_NAME, COND, SELECTOR, CHANNEL_ID, CLUSTERED, ALL_NODES FROM JBM_POSTOFFICE WHERE POSTOFFICE_NAME=? AND NODE_ID=?
             ]]></attribute>
            
             <!-- This post office is non clustered. If you want a clustered post office then set to true -->
            
             <attribute name="Clustered">false</attribute>
            
             <!-- All the remaining properties only have to be specified if the post office is clustered.
             You can safely comment them out if your post office is non clustered -->
            
             <!-- The JGroups group name that the post office will use -->
            
             <attribute name="GroupName">${jboss.messaging.groupname:MessagingPostOffice}</attribute>
            
             <!-- Max time to wait for state to arrive when the post office joins the cluster -->
            
             <attribute name="StateTimeout">30000</attribute>
            
             <!-- Max time to wait for a synchronous call to node members using the MessageDispatcher -->
            
             <attribute name="CastTimeout">30000</attribute>
            
             <!-- Set this to true if you want failover of connections to occur when a node is shut down -->
            
             <attribute name="FailoverOnNodeLeave">false</attribute>
            
             <depends optional-attribute-name="ChannelFactoryName">jboss.jgroups:service=ChannelFactory</depends>
             <attribute name="ControlChannelName">jbm-control</attribute>
             <attribute name="DataChannelName">jbm-data</attribute>
             <attribute name="ChannelPartitionName">${jboss.partition.name:DefaultPartition}-JMS</attribute>
             </mbean>
            
             <!-- Messaging JMS User Manager MBean config
             ======================================= -->
            
             <mbean code="org.jboss.jms.server.plugin.JDBCJMSUserManagerService"
             name="jboss.messaging:service=JMSUserManager"
             xmbean-dd="xmdesc/JMSUserManager-xmbean.xml">
             <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>
             <depends optional-attribute-name="TransactionManager">jboss:service=TransactionManager</depends>
             <attribute name="DataSource">java:/DefaultDS</attribute>
             <attribute name="CreateTablesOnStartup">true</attribute>
             <attribute name="SqlProperties"><![CDATA[
            CREATE_USER_TABLE=CREATE TABLE JBM_USER (USER_ID VARCHAR(32) NOT NULL, PASSWD VARCHAR(32) NOT NULL, CLIENTID VARCHAR(128), PRIMARY KEY(USER_ID)) ENGINE = INNODB
            CREATE_ROLE_TABLE=CREATE TABLE JBM_ROLE (ROLE_ID VARCHAR(32) NOT NULL, USER_ID VARCHAR(32) NOT NULL, PRIMARY KEY(USER_ID, ROLE_ID)) ENGINE = INNODB
            SELECT_PRECONF_CLIENTID=SELECT CLIENTID FROM JBM_USER WHERE USER_ID=?
            POPULATE.TABLES.1 = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('guest', 'guest')
            POPULATE.TABLES.2 = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('j2ee', 'j2ee')
            POPULATE.TABLES.3 = INSERT INTO JBM_USER (USER_ID, PASSWD, CLIENTID) VALUES ('john', 'needle', 'DurableSubscriberExample')
            POPULATE.TABLES.4 = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('nobody', 'nobody')
            POPULATE.TABLES.5 = INSERT INTO JBM_USER (USER_ID, PASSWD) VALUES ('dynsub', 'dynsub')
            POPULATE.TABLES.6 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('guest','guest')
            POPULATE.TABLES.7 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('j2ee','guest')
            POPULATE.TABLES.8 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('john','guest')
            POPULATE.TABLES.9 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('subscriber','john')
            POPULATE.TABLES.10 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('publisher','john')
            POPULATE.TABLES.11 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('publisher','dynsub')
            POPULATE.TABLES.12 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('durpublisher','john')
            POPULATE.TABLES.13 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('durpublisher','dynsub')
            POPULATE.TABLES.14 = INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('noacc','nobody')
             ]]></attribute>
             </mbean>
            
            </server>
            


            I removed hsqldb-ds.xml and hsqldb-persistence-service.xml but I continue to receive errors:
            21:29:32,937 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
            incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
            
            DEPLOYMENTS MISSING DEPENDENCIES:
             Deployment "jboss.jca:name=JmsXA,service=ConnectionFactoryBinding" is missing
            the following dependencies:
             Dependency "jboss.jca:name=JmsXA,service=TxCM" (should be in state "Create",
             but is actually in state "Configured")
             Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" is missing
            the following dependencies:
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
             Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionPool" is missing the
             following dependencies:
             Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" (should b
            e in state "Create", but is actually in state "Configured")
             Deployment "jboss.jca:name=JmsXA,service=TxCM" is missing the following depend
            encies:
             Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionPool" (should be i
            n state "Create", but is actually in state "Configured")
             Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFac
            tory" is missing the following dependencies:
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
             Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
            , but is actually in state "Configured")
             Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFacto
            ry" is missing the following dependencies:
             Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
            , but is actually in state "Configured")
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
             Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is mi
            ssing the following dependencies:
             Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
            , but is actually in state "Configured")
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
             Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the
             following dependencies:
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
             Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
            , but is actually in state "Configured")
             Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is mis
            sing the following dependencies:
             Dependency "jboss.messaging:service=PostOffice" (should be in state "Create"
            , but is actually in state "Configured")
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
             Deployment "jboss.messaging:service=PostOffice" is missing the following depen
            dencies:
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
             Dependency "jboss.jgroups:service=ChannelFactory" (should be in state "Creat
            e", but is actually in state "** NOT FOUND Depends on 'jboss.jgroups:service=Cha
            nnelFactory' **")
             Deployment "jboss.messaging:service=ServerPeer" is missing the following depen
            dencies:
             Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Cre
            ate", but is actually in state "**ERROR**")
             Dependency "jboss.messaging:service=PersistenceManager" (should be in state
            "Create", but is actually in state "**ERROR**")
             Deployment "jboss.mq:service=DestinationManager" is missing the following depe
            ndencies:
             Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create"
            , but is actually in state "Configured")
            
            DEPLOYMENTS IN ERROR:
             Deployment "jboss.jgroups:service=ChannelFactory" is in error due to the follo
            wing reason(s): ** NOT FOUND Depends on 'jboss.jgroups:service=ChannelFactory' *
            *
             Deployment "jboss.messaging:service=PersistenceManager" is in error due to the
             following reason(s): **ERROR**, java.lang.SecurityException: Unauthenticated ca
            ller:null
             Deployment "jboss.messaging:service=JMSUserManager" is in error due to the fol
            lowing reason(s): **ERROR**, java.lang.SecurityException: Unauthenticated caller
            :null
             Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is in error due to th
            e following reason(s): java.lang.SecurityException: Unauthenticated caller:null
            
            21:29:32,966 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
            080
            21:29:32,988 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
            21:29:33,004 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=
            JBoss_5_0_1_GA date=200902231221)] Started in 40s:818ms
            


            Another thing.
            I tried to load this simple jsp page to test the connection to the db:
            <%@page contentType="text/html"
             import="java.util.*,javax.naming.*,javax.sql.DataSource,java.sql.*"
             %>
             <%
            
             DataSource ds = null;
             Connection con = null;
             PreparedStatement pr = null;
             InitialContext ic;
             try {
             ic = new InitialContext();
             ds = (DataSource)ic.lookup( "java:/DefaultDS" );
             con = ds.getConnection();
             pr = con.prepareStatement("select cognome, nome, squadraA from giocatore");
             ResultSet rs = pr.executeQuery();
             while (rs.next()) {
             out.println("<br> " +rs.getString("cognome") + " | " + rs.getString("nome") + " | " +rs.getString("squadraA"));
             }
             rs.close();
             pr.close();
             }catch(Exception e){
             out.println("Exception thrown " +e);
             }finally{
             if(con != null){
             con.close();
             }
            } %>
            


            But when I open the page I receive this error: Exception thrown java.lang.SecurityException: Unauthenticated caller:null and in the console I read these error messages:
            21:31:31,635 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role f
            iles
            java.io.IOException: No properties file: users.properties or defaults: defaultUs
            ers.properties found
             at org.jboss.security.auth.spi.Util.loadProperties(Util.java:198)
             at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRole
            sLoginModule.java:186)
             at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRo
            lesLoginModule.java:200)
             at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRol
            esLoginModule.java:127)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
             at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
            86)
             at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
             at java.security.AccessController.doPrivileged(Native Method)
             at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
            80)
             at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
             at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(
            JaasSecurityManagerBase.java:552)
             at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(
            JaasSecurityManagerBase.java:486)
             at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasS
            ecurityManagerBase.java:365)
             at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityMa
            nager.java:160)
             at org.jboss.security.integration.JBossSecuritySubjectFactory.createSubj
            ect(JBossSecuritySubjectFactory.java:90)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
            t(BaseConnectionManager2.java:687)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
            onnection(BaseConnectionManager2.java:495)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
            nManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
            erDataSource.java:89)
             at org.apache.jsp.client_jsp._jspService(client_jsp.java:69)
             at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
            .java:369)
             at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
            22)
             at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
            lter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
            alve.java:235)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
            alve.java:191)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
            yAssociationValve.java:190)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
            e.java:92)
             at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
            ss(SecurityContextEstablishmentValve.java:126)
             at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
            e(SecurityContextEstablishmentValve.java:70)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
            ava:127)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
            ava:102)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
            onnectionValve.java:158)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
            ve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
            a:330)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
            :829)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
            ss(Http11Protocol.java:601)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
            7)
             at java.lang.Thread.run(Thread.java:619)
            21:31:37,790 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role f
            iles
            java.io.IOException: No properties file: users.properties or defaults: defaultUs
            ers.properties found
             at org.jboss.security.auth.spi.Util.loadProperties(Util.java:198)
             at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRole
            sLoginModule.java:186)
             at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRo
            lesLoginModule.java:200)
             at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRol
            esLoginModule.java:127)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:597)
             at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
             at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
            86)
             at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
             at java.security.AccessController.doPrivileged(Native Method)
             at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
            80)
             at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
             at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(
            JaasSecurityManagerBase.java:552)
             at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(
            JaasSecurityManagerBase.java:486)
             at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasS
            ecurityManagerBase.java:365)
             at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityMa
            nager.java:160)
             at org.jboss.security.integration.JBossSecuritySubjectFactory.createSubj
            ect(JBossSecuritySubjectFactory.java:90)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubjec
            t(BaseConnectionManager2.java:687)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
            onnection(BaseConnectionManager2.java:495)
             at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
            nManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
             at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(Wrapp
            erDataSource.java:89)
             at org.apache.jsp.client_jsp._jspService(client_jsp.java:69)
             at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
            .java:369)
             at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
            22)
             at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:290)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
            lter.java:96)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
            icationFilterChain.java:235)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
            ilterChain.java:206)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
            alve.java:235)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
            alve.java:191)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
            yAssociationValve.java:190)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
            e.java:92)
             at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.proce
            ss(SecurityContextEstablishmentValve.java:126)
             at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invok
            e(SecurityContextEstablishmentValve.java:70)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
            ava:127)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
            ava:102)
             at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
            onnectionValve.java:158)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
            ve.java:109)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
            a:330)
             at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
            :829)
             at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
            ss(Http11Protocol.java:601)
             at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
            7)
             at java.lang.Thread.run(Thread.java:619)
            
            


            Why?
            How can I solve?
            Thanks, bye bye.

            • 3. Re: Change DefaultDS
              Peter Johnson Master

              This portion of the console log:

              21:29:32,937 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
              incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

              DEPLOYMENTS MISSING DEPENDENCIES:


              is the deployment report that is printed for this that failed to deploy. I often provides no hint as to why those things failed to deploy. You need to find the very first exception stack trace that appears in the console log. To do this you will need to either redirect that log to a file, or increase the console buffer (I set mine to 9000 lines).

              • 4. Re: Change DefaultDS
                Giuseppe Moscardelli Newbie

                Hi in the boot.log I found:

                21:28:59,954 DEBUG [BeanMetaDataICF] Using bean class:, class org.jboss.beans.metadata.plugins.AbstractBeanMetaData for bean: AbstractBeanMetaData@3de3940a{name=ManagedObjectCreator bean=org.jboss.deployers.spi.deployer.helpers.DefaultManagedObjectCreator properties=[mof] classLoader=AbstractClassLoaderMetaData@1e9af0b1{classloader=AbstractDependencyValueMetaData@5fcfad77{value=deployers-classloader:0.0.0}} constructor=null autowireCandidate=true}
                21:28:59,955 DEBUG [BeanMetaDataICF] Failed to get property value for bean: org.jboss.beans.metadata.plugins.AbstractBeanMetaData, property: properties
                java.lang.IllegalArgumentException: Property is not readable: propertyReplace for org.jboss.beans.metadata.plugins.AbstractPropertyMetaData
                 at org.jboss.beans.info.plugins.DefaultPropertyInfo.get(DefaultPropertyInfo.java:131)
                 at org.jboss.beans.info.plugins.BeanInfoUtil.getNestedTarget(BeanInfoUtil.java:78)
                 at org.jboss.beans.info.plugins.BeanInfoUtil.get(BeanInfoUtil.java:142)
                 at org.jboss.beans.info.plugins.AbstractBeanInfo.getProperty(AbstractBeanInfo.java:284)
                 at org.jboss.metatype.plugins.values.DefaultMetaValueFactory.createCompositeValue(DefaultMetaValueFactory.java:471)
                 at org.jboss.metatype.plugins.values.DefaultMetaValueFactory.internalCreate(DefaultMetaValueFactory.java:1023)
                 at org.jboss.metatype.plugins.values.DefaultMetaValueFactory.createCollectionValue(DefaultMetaValueFactory.java:247)
                 at org.jboss.metatype.plugins.values.DefaultMetaValueFactory.internalCreate(DefaultMetaValueFactory.java:1029)
                 at org.jboss.metatype.plugins.values.DefaultMetaValueFactory.create(DefaultMetaValueFactory.java:542)
                 at org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:165)
                 at org.jboss.deployers.plugins.managed.BeanMetaDataICF.getValue(BeanMetaDataICF.java:48)
                 at org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
                 at org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
                 at org.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:364)
                 at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectValue(AbstractInstanceClassFactory.java:315)
                 at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getManagedObjectArray(AbstractInstanceClassFactory.java:331)
                 at org.jboss.managed.plugins.factory.AbstractInstanceClassFactory.getValue(AbstractInstanceClassFactory.java:252)
                 at org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateValues(AbstractManagedObjectPopulator.java:201)
                 at org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator.populateManagedObject(AbstractManagedObjectPopulator.java:130)
                 at org.jboss.managed.plugins.factory.AbstractManagedObjectFactory.initManagedObject(AbstractManagedObjectFactory.java:364)
                 at org.jboss.managed.api.factory.ManagedObjectFactory.initManagedObject(ManagedObjectFactory.java:77)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.initBootstrapMDs(ProfileServiceBootstrap.java:447)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:199)
                 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                 at org.jboss.Main.boot(Main.java:209)
                 at org.jboss.Main$1.run(Main.java:547)
                 at java.lang.Thread.run(Thread.java:619)
                


                Instead in server.log I found:
                2009-04-09 21:29:27,946 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Unable to retrieve orb
                javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
                 at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
                 at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559)
                 at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:451)
                 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
                 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
                 at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
                 at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                 at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                 at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                 at $Proxy36.start(Unknown Source)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                 at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                 at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                 at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                 at org.jboss.system.ServiceController.start(ServiceController.java:460)
                 at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                 at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                 at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                 at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                 at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                 at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                 at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                 at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                 at org.jboss.system.ServiceController.start(ServiceController.java:460)
                 at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                 at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                 at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                 at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                 at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                 at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                 at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                 at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                 at org.jboss.system.ServiceController.doInstall(ServiceController.java:670)
                 at org.jboss.system.ServiceController.register(ServiceController.java:373)
                 at org.jboss.system.microcontainer.jmx.ServiceControllerRegistrationLifecycleCallback.install(ServiceControllerRegistrationLifecycleCallback.java:104)
                 at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                 at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                 at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                 at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                 at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                 at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                 at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                 at org.jboss.system.ServiceController.start(ServiceController.java:460)
                 at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                 at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                 at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                 at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                 at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                 at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                 at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                 at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
                 at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                 at org.jboss.Main.boot(Main.java:209)
                 at org.jboss.Main$1.run(Main.java:547)
                 at java.lang.Thread.run(Thread.java:619)
                


                And then, always in server.log I found:
                2009-04-09 21:29:30,425 ERROR [org.jboss.security.auth.spi.UsersRolesLoginModule] (main) Failed to load users/passwords/role files
                java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
                 at org.jboss.security.auth.spi.Util.loadProperties(Util.java:198)
                 at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
                 at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
                 at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
                 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
                 at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
                 at java.security.AccessController.doPrivileged(Native Method)
                 at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
                 at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
                 at org.jboss.security.plugins.auth.JaasSecurityManagerBase.defaultLogin(JaasSecurityManagerBase.java:552)
                 at org.jboss.security.plugins.auth.JaasSecurityManagerBase.authenticate(JaasSecurityManagerBase.java:486)
                 at org.jboss.security.plugins.auth.JaasSecurityManagerBase.isValid(JaasSecurityManagerBase.java:365)
                 at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:160)
                 at org.jboss.security.integration.JBossSecuritySubjectFactory.createSubject(JBossSecuritySubjectFactory.java:90)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:687)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:495)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
                 at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
                 at org.jboss.messaging.core.impl.JDBCSupport.createSchema(JDBCSupport.java:287)
                 at org.jboss.messaging.core.impl.JDBCSupport.start(JDBCSupport.java:167)
                 at org.jboss.messaging.core.impl.JDBCPersistenceManager.start(JDBCPersistenceManager.java:148)
                 at org.jboss.messaging.core.jmx.JDBCPersistenceManagerService.startService(JDBCPersistenceManagerService.java:100)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
                 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                 at $Proxy36.start(Unknown Source)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                 at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                 at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                 at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                 at org.jboss.system.ServiceController.start(ServiceController.java:460)
                 at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                 at org.jboss.Main.boot(Main.java:209)
                 at org.jboss.Main$1.run(Main.java:547)
                 at java.lang.Thread.run(Thread.java:619)
                2009-04-09 21:29:30,460 ERROR [org.jboss.messaging.util.ExceptionUtil] (main) org.jboss.messaging.core.jmx.JDBCPersistenceManagerService@5b35348f startService
                java.lang.SecurityException: Unauthenticated caller:null
                 at org.jboss.security.integration.JBossSecuritySubjectFactory.createSubject(JBossSecuritySubjectFactory.java:92)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:687)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:495)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
                 at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
                 at org.jboss.messaging.core.impl.JDBCSupport.createSchema(JDBCSupport.java:287)
                 at org.jboss.messaging.core.impl.JDBCSupport.start(JDBCSupport.java:167)
                 at org.jboss.messaging.core.impl.JDBCPersistenceManager.start(JDBCPersistenceManager.java:148)
                 at org.jboss.messaging.core.jmx.JDBCPersistenceManagerService.startService(JDBCPersistenceManagerService.java:100)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
                 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                 at $Proxy36.start(Unknown Source)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                 at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                 at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                 at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                 at org.jboss.system.ServiceController.start(ServiceController.java:460)
                 at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                 at org.jboss.Main.boot(Main.java:209)
                 at org.jboss.Main$1.run(Main.java:547)
                 at java.lang.Thread.run(Thread.java:619)
                2009-04-09 21:29:30,488 DEBUG [org.jboss.messaging.core.jmx.JDBCPersistenceManagerService] (main) Starting failed jboss.messaging:service=PersistenceManager
                java.lang.SecurityException: Unauthenticated caller:null
                 at org.jboss.security.integration.JBossSecuritySubjectFactory.createSubject(JBossSecuritySubjectFactory.java:92)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:687)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:495)
                 at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
                 at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
                 at org.jboss.messaging.core.impl.JDBCSupport.createSchema(JDBCSupport.java:287)
                 at org.jboss.messaging.core.impl.JDBCSupport.start(JDBCSupport.java:167)
                 at org.jboss.messaging.core.impl.JDBCPersistenceManager.start(JDBCPersistenceManager.java:148)
                 at org.jboss.messaging.core.jmx.JDBCPersistenceManagerService.startService(JDBCPersistenceManagerService.java:100)
                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
                 at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:269)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                 at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                 at $Proxy36.start(Unknown Source)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                 at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                 at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                 at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                 at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                 at org.jboss.system.ServiceController.start(ServiceController.java:460)
                 at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                 at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                 at org.jboss.Main.boot(Main.java:209)
                 at org.jboss.Main$1.run(Main.java:547)
                 at java.lang.Thread.run(Thread.java:619)
                


                What do they mean?
                Thanks, bye bye.

                • 5. Re: Change DefaultDS
                  Peter Johnson Master

                  You can ignore the boot.log entry - it is debug. Ditto for the first entry you posted for the server.log.

                  But this error indicates to me that you have made some other change that you did not mention:

                  2009-04-09 21:29:30,425 ERROR [org.jboss.security.auth.spi.UsersRolesLoginModule] (main) Failed to l
                  oad users/passwords/role files
                  java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found

                  • 6. Re: Change DefaultDS
                    Giuseppe Moscardelli Newbie

                    Hi,
                    I uncompress jboss 5.0.1ga, I inserted in server\deault\deploy mysql-ds.xml
                    I inserted mysql-persistence-service.xml in server\default\deploy\messaging.
                    Then I removed hsqldb-persistence-service.xml from server\default\deploy\messaging and hsqldb-ds.xml from server\deault\deploy.
                    The last thing was coping mysql jdbc connector jar in server\default\lib and nothing else.
                    I did not change anything.
                    Why these errors?
                    Thanks, bye bye.

                    • 7. Re: Change DefaultDS
                      Peter Johnson Master

                      I did exactly what you described. Well, not exactly, I think you didn't mention a few steps so I will mention them here:

                      1) I created a new database and user in MySQL
                      I see you are using the "test" database in MySQL - I recommend create a new database and setting up permissions. Here are the SQL statements I use (I run them via Ant, hence the use of '${...}' and property names):

                      CREATE DATABASE ${db.database};
                      GRANT ALL PRIVILEGES ON ${db.database}.* TO '${db.user}'@'localhost' IDENTIFIED BY '${db.password}' WITH GRANT OPTION;


                      2) I edited the mysql-ds.xml file to reference the database, user and password from step 1
                      3) I changed the jndi-name in mysql-ds.xml to DefaultDS.
                      4) I change the hostname in the connection URL in mysql-ds.xml to "localhost".
                      (Please verify that the hostname you used, server.xubuntu, is valid an reachable from the box running JBoss AS.)
                      5) I commented out this line in mysql-persistence-service.xml:

                      <!-- <depends optional-attribute-name="ChannelFactoryName">jboss.jgroups:service=ChannelFactory</depends> -->


                      I knew that this step had to be done in 5.0.0.GA, but for some reason I thought they would have fixed it in 5.0.1.GA so that this step was no longer necessary.

                      And that's it. It works for me. And my environment is:

                      10:33:11,862 INFO [ServerInfo] Java version: 1.6.0_13,Sun Microsystems Inc.
                      10:33:11,862 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
                      10:33:11,862 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.3-b02,Sun Microsystems Inc.
                      10:33:11,862 INFO [ServerInfo] OS-System: Windows XP 5.1,x86


                      • 8. Re: Change DefaultDS
                        Giuseppe Moscardelli Newbie

                        Hi,
                        I executed the passages you said but I have a problem with quartz.
                        I read this error many times:

                        2009-04-24 16:31:40,171 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Unable to retrieve orb
                        javax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
                         at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
                         at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:559)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:507)
                         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:597)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                         at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                         at $Proxy36.start(Unknown Source)
                         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                         at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                         at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                         at org.jboss.system.ServiceController.start(ServiceController.java:460)
                         at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                         at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:597)
                         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                         at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                         at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                         at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                         at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                         at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                         at org.jboss.system.ServiceController.start(ServiceController.java:460)
                         at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:597)
                         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                         at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                         at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                         at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                         at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                         at org.jboss.system.ServiceController.doInstall(ServiceController.java:670)
                         at org.jboss.system.ServiceController.register(ServiceController.java:373)
                         at org.jboss.system.microcontainer.jmx.ServiceControllerRegistrationLifecycleCallback.install(ServiceControllerRegistrationLifecycleCallback.java:104)
                         at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:597)
                         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                         at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                         at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                         at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                         at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                         at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                         at org.jboss.system.ServiceController.start(ServiceController.java:460)
                         at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:597)
                         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                         at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                         at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                         at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                         at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                         at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                         at org.jboss.system.ServiceController.start(ServiceController.java:460)
                         at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:597)
                         at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                         at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                         at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                         at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
                         at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
                         at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1535)
                         at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1500)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
                         at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
                         at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                         at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                         at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                         at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                         at org.jboss.Main.boot(Main.java:209)
                         at org.jboss.Main$1.run(Main.java:547)
                         at java.lang.Thread.run(Thread.java:619)
                        


                        The error of quartz is:
                        2009-04-24 16:31:48,187 DEBUG [org.jboss.ejb3.timerservice.quartz.jmx.EJB3TimerService] (main) Starting jboss.ejb:service=EJB3TimerService
                        2009-04-24 16:31:48,203 DEBUG [org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory] (main) properties = {org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true, org.quartz.jobStore.dataSource=DefaultDS, org.quartz.scheduler.rmi.proxy=false, org.quartz.scheduler.rmi.export=false, org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.HSQLDBDelegate, org.quartz.jobStore.misfireThreshold=60000, org.quartz.jobStore.selectWithLockSQL=SELECT * FROM QRTZ_LOCKS WHERE lock_name = ?, org.quartz.threadPool.threadCount=10, org.quartz.jobStore.nonManagedTXDataSource=myDS, org.quartz.scheduler.instanceName=JBossEJB3QuartzScheduler, org.quartz.scheduler.wrapJobExecutionInUserTransaction=false, org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool, org.quartz.jobStore.tablePrefix=QRTZ_, org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreCMT, org.quartz.threadPool.threadPriority=5}
                        2009-04-24 16:31:48,234 WARN [org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory] (main) sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
                        2009-04-24 16:31:48,234 DEBUG [org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory] (main) sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
                        


                        I think the problem is: HSQLDBDelegate
                        But how do I have to set this? How must I put?

                        I executed the steps you said.

                        Thansk, bye bye.

                        • 9. Re: Change DefaultDS
                          Peter Johnson Master

                           

                          2009-04-24 16:31:40,171 DEBUG [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) Unabl
                          e to retrieve orb


                          This is a debug message, you can ignore it.

                          2009-04-24 16:31:48,234 WARN [org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory] (main)
                          sql failed:


                          I thought you said you installed AS 5.0.1? This looks like you installed 5.0.0 and did not remove the server/xxx/deploy/ejb3-timer-service.xml (this file is not in 5.0.1).