Solved

JBoss trouble

Posted on 2004-08-04
4
1,096 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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you!
0
 
LVL 6

Expert Comment

by:valipotor
Comment Utility
i'm glad i could help you !!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now