Solved

JBoss trouble

Posted on 2004-08-04
4
1,113 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reverse digits of a number using for loop 5 52
hibernate example for saving data 19 52
eclipse buid path vs tomcat lib path 10 34
Adding multiple JVM environments to RedHat 6 7 47
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.

839 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