• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Error while deploying a simple MDB

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Adrien,

Its working now.. Thanks for your help

Regards,
Rakesh.R
 
reply
    Bookmark Topic Watch Topic
  • New Topic