Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy an rar file in JBOSS 4

Baiju Varugese
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to JCA, i tried to deploy a sample (Hello World)rar file to jboss, but it is failed to deploy the rar, please advice me what i am missing, steps which i done is

1. created necessary java classes(Connection, ConnectionFactory, Record etc)
2. created RAR file hw.rar
3. then i placed the rar file to the jboss deploy directory
4. then i create hw-ds.xml file (i got it form the jboss wiki page)
this is the file ...i doubt i missed something in this file
<!-- hw-ds.xml -->
<?xml version="1.0" encoding="UTF-8">

this is my ra.xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connector PUBLIC
'-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
<display-name>Hello World Connector Sample</display-name>
<vendor-name>Baiju Varugese</vendor-name>
<eis-type>Hello World</eis-type>
please advice me what i am missing in the above two files

this is the execption i am getting while deploying in jboss4

14:19:40,953 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jbos
org.jboss.deployment.DeploymentException: Could not parse dd; - nested throwable
: (org.xml.sax.SAXParseException: A pseudo attribute name is expected. )
at org.jboss.deployment.XSLSubDeployer.findDd(
at org.jboss.deployment.XSLSubDeployer.init(
at org.jboss.deployment.MainDeployer.init(
at org.jboss.deployment.MainDeployer.deploy(
at org.jboss.deployment.MainDeployer.addDeployer(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

Incompletely deployed packages:
org.jboss.deployment.DeploymentInfo@4b279edb { url=file:/C:/jboss-4.0.0RC1/serve
r/default/deploy/hw-ds.xml }
deployer: org.jboss.deployment.XSLSubDeployer@178655
status: null
state: FAILED
watch: file:/C:/jboss-4.0.0RC1/server/default/deploy/hw-ds.xml
altDD: null
lastDeployed: 1124959780953
lastModified: 1124959779093

[ August 25, 2005: Message edited by: Baiju Varugese ]
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea ... but I do know that there's a DTD that goes along with datasource XML files. It's in the doc/dtd directory (or somewhere close to that). I'd check it out to see if your file is valid. It looks like some sort of validation error, however unhelpful the actual message is.
Jeremy Hsu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to specify what DTD you use in your <!DOCTYPE > thing. I do not see that in your hw-ds.xml. JBoss 4 is really picky on that.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic