File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes JBOSS startup error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "JBOSS startup error" Watch "JBOSS startup error" New topic
Author

JBOSS startup error

Bob Moor
Greenhorn

Joined: May 24, 2010
Posts: 6
HI All,

I am running 2 JBOSS server in my PC and I getting below error

2010-08-28 18:34:58,841 DEBUG [org.jboss.messaging.core.impl.JDBCSupport] Failed to execute: CREATE TABLE JBM_MSG_REF (MESSAGE_ID INTEGER, CHANNEL_ID INTEGER, TRANSACTION_ID INTEGER, STATE CHAR(1), ORD INTEGER, PAGE_ORD INTEGER, DELIVERY_COUNT INTEGER, SCHED_DELIVERY INTEGER, PRIMARY KEY(MESSAGE_ID, CHANNEL_ID))
java.sql.SQLException: ORA-00955: name is already used by an existing object


2010-08-28 18:34:58,997 DEBUG [org.jboss.jms.server.plugin.JDBCJMSUserManager] Failed to execute INSERT INTO JBM_ROLE (ROLE_ID, USER_ID) VALUES ('processInjector','processInjectorQueueUser')
java.sql.SQLException: ORA-00001: unique constraint (IPCUSER02.SYS_C005472) violated


The database username/pwd of these 2 servers are different but the DB instance is same.

Any idea why I am getting the error? What is the impact if this error occurs? How do I fix this error?
Vikram Saxena
Ranch Hand

Joined: Dec 16, 2008
Posts: 53
This happens because with each server startup JMS tries to create the tables in the database for itself.

You can stop it by turing the CREATE_TABLES_ON_STARTUP option to FALSE in the <db>-service.xml. This xml resides in the messaging folder, but it depends on the JBoss version you are using.


Hope this helps. But before you turn this option off make sure that the tables are created in the database Though it looks like they have been created.

Hope it helps !


Vikram
SCJP 5 , SCBCD [Prep Started ] , WLS 8.1 Server Admin
 
 
subject: JBOSS startup error
 
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture