users@glassfish.java.net

Not able to generate dbschema file using capture-schema.

From: <glassfish_at_javadesktop.org>
Date: Sun, 16 Nov 2008 22:50:54 PST

Hi All,
I'm facing a problem while trying to deploy the EAR which contains CMP(EJB2.0).
First I tried with leaving the reference of .dbschema file as blank as <schema></schema> in sun-cmp-mappings.xml file.But not able to deploy the EAR as I got the error like

Deploying application in domain failed; Fatal Error from EJB Compiler -- Caught java.lang.NullPointerException while processing CMP beans for application [TestGlassFishEAR]; module [TestGlassFishEJB.jar]: null. See log for details. Fatal Error from EJB Compiler -- Caught java.lang.NullPointerException while processing CMP beans for application [TestGlassFishEAR]; module [TestGlassFishEJB.jar]: null. See log for details.
  
Then I tried to generate .dbshema file through capture-schema with all details.I set the classpath also for all the driver related JARs in environment variable and also copied to domain1/lib/ext folder but couldn't generate the dbschema file , I got the error as below:

java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(DriverManager.java:545)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at org.netbeans.modules.dbschema.jdbcimpl.ConnectionProvider.<init>(ConnectionProvider.java:
46)
        at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSchema.java:161)
        at com.sun.jdo.spi.persistence.support.ejb.util.CaptureSchemaWrapper.main(CaptureSchemaWrapp
er.java:60)



I have been trying for 3 days searching all possible blogs/forums but not able to deploy the EAR.If some body can help me it would be great.

Thanks

Satya
[Message sent by forum member 'satyaranjan2008' (satyaranjan2008)]

http://forums.java.net/jive/thread.jspa?messageID=317020