• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to deploy an rar file in JBOSS 4

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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">
<connection-factories>
<no-tx-connection-factory>
<jndi-name>HW</jndi-name>
<rar-name>hw.rar</rar-name>
<connection-definition>
javax.resource.cci.ConnectionFactory
</connection-definition>
</no-tx-connection-factory>
</connection-factories>

this is my ra.xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connector PUBLIC
'-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
'http://java.sun.com/dtd/connector_1_0.dtd'>
<connector>
<display-name>Hello World Connector Sample</display-name>
<vendor-name>Baiju Varugese</vendor-name>
<spec-version>1.0</spec-version>
<eis-type>Hello World</eis-type>
<version>1.0</version>
<resourceadapter>
<managedconnectionfactory-class>sam.ibm.hw.ra.HWManagedConnectionFactoryImpl</managedconnectionfactory-class>
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>sam.ibm.hw.ra.HWConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>sam.ibm.hw.ra.HWConnectionImpl</connection-impl-class>
<transaction-support>NoTransaction</transaction-support>
<reauthentication-support>false</reauthentication-support>
</resourceadapter>
</connector>
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
s-4.0.0RC1/server/default/deploy/hw-ds.xml
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(XSLSubDeployer.java:255)
at org.jboss.deployment.XSLSubDeployer.init(XSLSubDeployer.java:188)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:727)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:664)
at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:267)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)

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
mbeans:

thanks
[ August 25, 2005: Message edited by: Baiju Varugese ]
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic