• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while deploying a simple MDB

 
Rakesh Rajagopalan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Im getting org.jboss.deployers.spi.DeploymentException while trying to deploy a simple MDB in JBoss 5. The code of the bean and the client are as follows:

1. jbossmq-RakeshQueue-service.xml:
----------------------------------------------


2. MDB Class:
----------------


3. Client:
-----------


4. The stack trace:
----------------------


I request you to point out the steps I need to follow to get this corrected.

Kind Regards,
Rakesh.R
 
Adrien Ruffie
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Rakesh,

Sometimes the "org.xml.sax.SAXParseException: Content is not allowed in prolog." mean the error occured in the xml file
here: jbossmq-RakeshQueue-service.xml


jbossmq-RakeshQueue-service.xml:1:1: Content is not allowed in prolog.

This mean you can have a error at the first line & first column off you xml file.

1) if you have a tab or whitespace before <server> at line 1, remove the whitespace or the caracter.
2) after check & validate the xml with jboss DTD or XSD, if <server> is the root element xml, if code attribute is allowed in mbean...
3) check if you Queue / Destination are present and available in your JBoss App.
4) check the mapping



best regards,

Adrien
 
Adrien Ruffie
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the deployement of JMS resources (it is for GlassFish but you can "inspire" for many parameters) with this :


http://adrien-ruffie.blogspot.com/2009/01/auto-jms-resources-deployement-in.html

I say "inspire" because GlasshFish is not JBoss
 
Rakesh Rajagopalan
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adrien,

Its working now.. Thanks for your help

Regards,
Rakesh.R
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!