Solved

JBoss trouble

Posted on 2004-08-04
4
1,107 Views
Last Modified: 2008-01-09
I switched from using the Hypersonic database that came with JBoss 3.2.5 to using the MySQL database. Now when JBoss starts, it succeeds in creating several tables within a MySQL database, showing that is indeed forming a connection. However, I get a cryptic error message when JBoss is run. Below is an except from the stack trace it prints to the screen. I would appreciate any help interpretting this error, and correcting it. Thanks.


 Depends On Me:  jboss.mq.destination:service=Topic,name=testTopic
 jboss.mq.destination:service=Topic,name=securedTopic
 jboss.mq.destination:service=Topic,name=testDurableTopic
 jboss.mq.destination:service=Queue,name=testQueue
 jboss.mq:service=TracingInterceptor
 jboss.mq.destination:service=Queue,name=DLQ

ObjectName: jboss.mq.destination:service=Queue,name=DLQ
 state: CREATED
 I Depend On:  jboss.mq:service=DestinationManager
 jboss.mq:service=SecurityManager

 Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=JVM
 state: CREATED
 I Depend On:  jboss.mq:service=Invoker

 Depends On Me:
ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
 state: CREATED
 I Depend On:  jboss.mq:service=Invoker

 Depends On Me:

MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
ObjectName: jboss.mq:service=PersistenceManager
 state: FAILED
 I Depend On:  jboss.jca:service=LocalTxCM,name=DefaultDS

 Depends On Me:  jboss.mq:service=DestinationManager
MBeanException: org.jboss.mq.SpyJMSException: Could not resolve uncommited trans
actions.  Message recovery may not be accurate; - nested throwable: (java.sql.SQ
LException: Base table or view not found,  message from server: "Table 'jboss.jm
s_messages' doesn't exist")
Cause: org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.
 Message recovery may not be accurate; - nested throwable: (java.sql.SQLExceptio
n: Base table or view not found,  message from server: "Table 'jboss.jms_message
s' doesn't exist")
0
Comment
Question by:bobwood2000
  • 2
4 Comments
 
LVL 7

Expert Comment

by:lhankins
ID: 11722574
The JBoss JMS infrastructure (JBoss MQ) uses the configured database to persist certain types of JMS messages.   It looks like when you switched the database to MySQL, the JBoss MQ Persistence Manager is now failing when its trying to look up the DataSource "DefaultDs"

>  MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
>  ObjectName: jboss.mq:service=PersistenceManager
>   state: FAILED
>   I Depend On:  jboss.jca:service=LocalTxCM,name=DefaultDS

0
 
LVL 6

Accepted Solution

by:
valipotor earned 500 total points
ID: 11725968
i guess you overrided DefaultDS
but it's better to create a new datasource for your beans, and let JBoss use DefaultDS for JMS messages

here is how i've done it, for MS SQL Server
JBoss 3.2.x


1. copy  mssql-ds.xml file from \jboss\docs\examples\jca to \jboss\server\default\deploy

2. Modify the files from  \jboss\server\default\config like this

a) standardjaws.xml
<jaws>
<datasource>java:/MSSQLDS</datasource>

<type-mapping>MS SQLSERVER2000</type-mapping>
<debug>false</debug>

b) standardjbosscmp-jdbc.xml

<defaults>
<datasource>java:/MSSQLDS</datasource>
<datasource-mapping>MS SQLSERVER2000</datasource-mapping>

3. Modify file mssql-ds.xml, changing only databasename, username and password

Now the database specificed in mssql-ds.xml is the default database for beans, meanwhile JMS messages and other internal JBoss stuff is persisted using DefaultDS, that means Hypersonic

valipotor
0
 

Author Comment

by:bobwood2000
ID: 11839131
Thank you!
0
 
LVL 6

Expert Comment

by:valipotor
ID: 11839195
i'm glad i could help you !!!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
even odd program using while loop 3 40
java stored proc example 9 29
Error in @AspectJ Based AOP with Spring 2 13
how to install java on RHEL image on EC2 4 26
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question