[Date Prev][Date Next] [Chronological] [Thread] [Top]

JDBC-LDAP question



Hi,

Can I use the JDBC-LDAP driver with EJB 
container JBOSS 3.0.4 for deploying
CMP entity Beans?

If yes please read on.....

I am using  openLDAP 3.0 and
JDBC-LDAP driver(JDBCLdap.jar).


I have written a EJB CMP entity bean 
to store/retrieve data from  LDAP.
I tried to deploy it in JBOSS 3.0.4, but 
could not.

I have put the JDBCLdap.jar in appropriate
jboss directory. I have  made changes to the
Jaws.xml and services.xml file in jboss as done
for other data stores.
(Note: I am using the jdbc-ldap driver because CMP
 entity bean will configure to anything which supports
 JDBC.Hence cannot use JNDI api directly in CMP beans
 to store/retrieve data to LDAP)

The jboss log file show following error,

=============================
            ............

2003-06-20 11:16:32,757 INFO
[org.jboss.resource.connectionmanager.XATxConnectionManager] Started
2003-06-20 11:16:32,759 INFO  [org.jboss.deployment.MainDeployer] Deployed
package: file:/home/arun/java/jboss-3.0.4/server/default/deploy/jms-ra.rar
2003-06-20 11:16:32,763 INFO  [org.jboss.deployment.MainDeployer] Starting
deployment of package:
file:/home/arun/java/jboss-3.0.4/server/default/deploy/test.jar
2003-06-20 11:16:34,371 INFO  [org.jboss.ejb.EjbModule] Creating
2003-06-20 11:16:34,608 INFO  [org.jboss.ejb.EjbModule] Deploying
MusicCDBean
2003-06-20 11:16:39,908 WARN  [org.jboss.system.ServiceController] Problem
creating service jboss.j2ee:jndiName=openldapDS,service=EJB
org.jboss.deployment.DeploymentException: openldapDS not bound
        at
org.jboss.ejb.plugins.jaws.metadata.JawsApplicationMetaData.create(JawsAppli
cationMetaData.java:137)
        at
org.jboss.ejb.plugins.jaws.metadata.JawsXmlFileLoader.load(JawsXmlFileLoader
.java:85)

     ........................
    .........................

MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=LocalTxCM,name=openldapDS
 state: FAILED
 I Depend On:   jboss.jca:service=LocalTxDS,name=openldapDS
  jboss.jca:service=LocalTxPool,name=openldapDS
  jboss.jca:service=CachedConnectionManager
  jboss.security:service=JaasSecurityManager
  jboss.jca:service=RARDeployer

 Depends On Me: java.lang.IllegalArgumentException: The class 'class
org.jboss.resource.adap
ter.jdbc.local.LocalManagedConnectionFactory' has no setter for config
property 'cn=CIMOM,o=
WSSPL,c=INDIA', ObjectName: jboss.j2ee:jndiName=openldapDS,service=EJB
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: openldapDS not
bound]
2003-06-20 11:16:45,842 INFO
[org.jboss.deployment.scanner.URLDeploymentScanner] Started

=============================
Let me know if you need anymore information.
Please let me know what is the problem.


Thanks and Regards.