Hi Everyone,

I am using following database.xml file to run the example...

<database name="dev1" engine="sybase" >
  <data-source class-name="com.sybase.jdbc4.jdbc.SybDataSource">
    <params user="dev1_sa" password="dev1_sa"
            port-number="4100" server-name="dccws1428" />
  </data-source>
  <mapping href="mapping.xml" />
</database>

and when I do that it gives me following error...

java.lang.IllegalStateException: java.lang.ClassNotFoundException:
com.sybase.jdbc4.jdbc.SybDataSource
[test] org.exolab.castor.jdo.DatabaseNotFoundException: Nested error:
java.lang.
IllegalStateException: java.lang.ClassNotFoundException:
com.sybase.jdbc4.jdbc.S
ybDataSource{file: file:/C:/castor-0.9.3/build/examples/jdo/database.xml;
line:
6; column: 58}
[test] java.lang.IllegalStateException: java.lang.ClassNotFoundException:
com.sy
base.jdbc4.jdbc.SybDataSource
[test]  at
org.exolab.castor.jdo.conf.DataSource.createParams(DataSource.java:12
6)
[test]  at
org.exolab.castor.jdo.conf.DataSourceDescriptor$2.newInstance(DataSou
rceDescriptor.java:130)
[test]  at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.
java:977)
[test]  at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)

[test]  at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
Validator.java:1197)
[test]  at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen
tScanner.java:1862)
[test]  at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(XMLDocumentScanner.java:1238)
[test]  at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
[test]  at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
[test]  at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:338)
[test]  at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRe
gistry.java:241)
[test]  at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:538)
[test]  at jdo.Test.run(Test.java:90)
[test]  at jdo.Test.main(Test.java:54)

does anyone know why I am getting this error.. am I forgetting to put
something in CLASSPATH...?  The database is on remote server named
dccws1428
and is listening to default port 4100...?

I'd really appreciate your help.  Thanks a bunch in advance.
mehul


                                                                                       
                            
            Bruce Snyder                                                               
                            
            <[EMAIL PROTECTED]>            To:     [EMAIL PROTECTED]                 
                            
                                         cc:                                           
                            
            12/03/2001 03:28 PM          Subject:     Re: [castor-dev] JDO 
Configuration                           
            Please respond to                                                          
                            
            castor-dev                                                                 
                            
                                                                                       
                            
                                                                                       
                            




This one time, at band camp, [EMAIL PROTECTED] said:

 >can someone please explain what kind of configuration do I need to run
the
 >examples that are given for Castor JDO?  I am kind of confused on how to
 >build the Castor.  I already have sybase database set-up and ready with
the
 >database schema...
 >
 >However, I am unable to find build.bat file required to run the
examples...
 >as explained... here
 >

Mehul,

Here are the steps necessary to run the examples:

1) Create the tables in your database using the src/examples/jdo/create.sql
   script.

2) Customize the src/examples/jdo/database.xml for connection to
   your database.

3) Compile Castor's main tree, the examples and the tests by
   executing build.[sh|bat] with the argument 'all' like so:

    build.sh all

4) Execute the example.[sh|bat] script with the argument jdo like so:

    example.sh jdo

--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E
=\$\!F<FEI+F-O;0\`\`");'

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
     unsubscribe castor-dev





This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to