Deployed! I discovered that the RARdeployer is not happy with a directory
in which the
the contents are /META-INF/ and /COM/ where your classes are not in a .jar
file.
Making sure that I had all the classes in a ra.jar file, fixed the issue.
*****************************
Marc T. Calello
Momentum Software, Inc.
1717 W. 6th Street; Ste. 300
Austin, TX 78703
[EMAIL PROTECTED]
http://www.momentumsoftware.com
Phone: (512) 236-1517
Fax: (512) 236-1267
*****************************
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marc T. Calello
Sent: Monday, January 29, 2001 1:04 PM
To: jBoss
Subject: RE: [jBoss-User] RARDeployer, problems deploying blackbox
ResourceAdapter
-The NullPointer was from not having a "PUBLIC" section in by DTD
declaration file ie:
<!DOCTYPE connector SYSTEM 'file:///E:/connector_1_0_dtd'>
That was resolved by modifying it to be:
<!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector
1.0//EN' 'file:///E:/connector_1_0_dtd'>
...after resolving that, the web browser appeared to deploy my RAR. However
the console had a ClassNotFoundException: for the
com.sun.connector.blackbox.JdbcManagedConnectionFactory.
Has anyone been able to successfully deploy a RAR yet?
*****************************
Marc T. Calello
Momentum Software, Inc.
1717 W. 6th Street; Ste. 300
Austin, TX 78703
[EMAIL PROTECTED]
http://www.momentumsoftware.com
Phone: (512) 236-1517
Fax: (512) 236-1267
*****************************
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marc T. Calello
Sent: Monday, January 29, 2001 12:00 PM
To: jBoss
Subject: RE: [jBoss-User] RARDeployer, problems deploying blackbox
ResourceAdapter
I believe that part of the problem is the DTD for the
J2EE Connector Deployment Descriptor. I think that parsers
are having trouble with it.
http://java.sun.com/j2ee/dtds/connector_1_0.dtd
I removed all of the Legal jumbo from the top and now I am getting a
different error:
----------------------------------------------------------------------------
----
472 MBean Failure
----------------------------------------------------------------------------
----
The MBean [J2EE:service=RARDeployer] throws an MBeanException when calling
[deploy]:
org.jboss.deployment.DeploymentException: java.lang.NullPointerException
Console:
==========================================================
[RARDeployer] org.jboss.deployment.DeploymentException:
java.lang.NullPointerExc
eption
[RARDeployer] at
org.jboss.resource.RARDeployer.deploy(RARDeployer.java:177)
[RARDeployer] at
org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBea
nSupport.java:70)
[RARDeployer] at java.lang.reflect.Method.invoke(Native Method)
[RARDeployer] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[RARDeployer] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[RARDeployer] at
com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.jav
a:240)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRe
questHandler.java:325)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlReque
stHandler.java:152)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler
.java:79)
[RARDeployer] at
com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
[RARDeployer] at java.lang.Thread.run(Thread.java:484)
==========================================================
*****************************
Marc T. Calello
Momentum Software, Inc.
1717 W. 6th Street; Ste. 300
Austin, TX 78703
[EMAIL PROTECTED]
http://www.momentumsoftware.com
Phone: (512) 236-1517
Fax: (512) 236-1267
*****************************
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marc T. Calello
Sent: Monday, January 29, 2001 10:31 AM
To: [EMAIL PROTECTED]
Subject: [jBoss-User] RARDeployer, problems deploying blackbox
ResourceAdapter
I am attempting to deploy the Sun's example resource adapter, available here
(http://www.jboss.org/documentation/blackbox-xa.rar
I save the file with the same name in
<JBoss install>/dist/deploy
Then I open up my web browser and hit http://localhost:8082 , then choose
RARDeployer.
I enter file:///E:/Projects/JBoss/jboss/dist/deploy/blackbox-xa.rar for the
deploy testfield
and hit deploy.
ON the next screen I see:
472 MBean Failure
----------------------------------------------------------------------------
----
The MBean [J2EE:service=RARDeployer] throws an MBeanException when calling
[deploy]:
org.jboss.deployment.DeploymentException: Character conversion error:
"Unconvertible UTF-8 character beginning with 0xa9" (line number may be too
low).
...my console says:
============================================================================
====
[RARDeployer] Attempting to deploy RAR at
'file:/E:/Projects/JBoss/jboss/dist/de
ploy/blackbox-xa.rar'
[Default] Character conversion error: "Unconvertible UTF-8 character
beginning w
ith 0xa9" (line number may be too low).:-1:1
[RARDeployer] org.jboss.deployment.DeploymentException: Character conversion
err
or: "Unconvertible UTF-8 character beginning with 0xa9" (line number may be
too
low).
[RARDeployer] at
org.jboss.resource.RARDeployer.deploy(RARDeployer.java:176)
[RARDeployer] at
org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBea
nSupport.java:70)
[RARDeployer] at java.lang.reflect.Method.invoke(Native Method)
[RARDeployer] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[RARDeployer] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[RARDeployer] at
com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.jav
a:240)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRe
questHandler.java:325)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlReque
stHandler.java:152)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler
.java:79)
[RARDeployer] at
com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
[RARDeployer] at java.lang.Thread.run(Thread.java:484)
============================================================================
====
In subsequent attempt I will get a different error:
472 MBean Failure
----------------------------------------------------------------------------
----
The MBeanServer throws a JMRuntimeException when calling operation[deploy]
of [J2EE:service=RARDeployer] :
javax.management.RuntimeMBeanException: RuntimeException thrown in operation
deploy
Console:
============================================================================
====
[RARDeployer] Attempting to deploy RAR at
'file:/E:/Projects/JBoss/jboss/dist/de
ploy/blackbox-xa.rar'
[RARDeployer] java.lang.IllegalStateException: zip file closed
[RARDeployer] at java.util.zip.ZipFile.entries(ZipFile.java:284)
[RARDeployer] at java.util.jar.JarFile.entries(JarFile.java:192)
[RARDeployer] at
org.jboss.resource.RARDeployer.inflateJar(RARDeployer.java:39
8)
[RARDeployer] at
org.jboss.resource.RARDeployer.deploy(RARDeployer.java:154)
[RARDeployer] at
org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBea
nSupport.java:70)
[RARDeployer] at java.lang.reflect.Method.invoke(Native Method)
[RARDeployer] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1628)
[RARDeployer] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
.java:1523)
[RARDeployer] at
com.sun.jdmk.comm.HtmlInvokePage.buildPage(HtmlInvokePage.jav
a:240)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.processGetRequest(HtmlRe
questHandler.java:325)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.processRequest(HtmlReque
stHandler.java:152)
[RARDeployer] at
com.sun.jdmk.comm.HtmlRequestHandler.doRun(HtmlRequestHandler
.java:79)
[RARDeployer] at
com.sun.jdmk.comm.ClientHandler.run(ClientHandler.java:84)
[RARDeployer] at java.lang.Thread.run(Thread.java:484)
============================================================================
====
I have experienced the above scenario with all of the rar un-jarred a
directory, and
re-jarred in a new rar.
Any Suggestions?
*****************************
Marc T. Calello
Momentum Software, Inc.
1717 W. 6th Street; Ste. 300
Austin, TX 78703
[EMAIL PROTECTED]
http://www.momentumsoftware.com
Phone: (512) 236-1517
Fax: (512) 236-1267
*****************************
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]