did you try just deploying the datasource configuration? I believe that
when you request the first connection it will create a Driver instance.
If that doesn't work for some reason, you will have to wriate a small mbean
implementing a
void start() throws Exception
method in which you instantiate the Driver object.
david jencks
On 2002.12.18 17:24:41 -0500 Sasidharan, Manoj wrote:
Hello All,
I want to start CloudScape from within JBoss. CloudScape can be started
by
instantiating an object of its Driver class.
Hence I tried to put the logic in a startcs-service.xml:
server
mbean code=com.ibm.db2j.jdbc.DB2jDriver
name=user:service=Cscapeserver
/mbean
/server
This somehow does not work. Please help. When I deploy the file,
following
error is displayed on console:
11:23:48,404 INFO [MainDeployer] Starting deployment of package:
file:/Q:/jboss
-3.2.0beta2/server/default/deploy/cscape-service.xml
11:23:48,529 INFO [SARDeployer] looking for nested deployments in :
file:/Q:/jb
oss-3.2.0beta2/server/default/deploy/cscape-service.xml
11:23:48,654 INFO [SARDeployer] Remove MBean, name:
user:service=Cscapeserver
11:23:48,654 ERROR [MainDeployer] could not create deployment:
file:/Q:/jboss-3.
2.0beta2/server/default/deploy/cscape-service.xml
org.jboss.deployment.DeploymentException: create operation failed for
package fi
le:/Q:/jboss-3.2.0beta2/server/default/deploy/cscape-service.xml; -
nested
throw
able: (javax.management.InstanceNotFoundException:
user:service=Cscapeserver
is
not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:283)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:770)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:629)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:594)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy7.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:400)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:524)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:195)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:206)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:185)
Caused by: javax.management.InstanceNotFoundException:
user:service=Cscapeserver
---
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
---
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user