Menu

#1 ClassNotFound: org.brownell.xml.aelfred2

open
nobody
None
5
2001-03-26
2001-03-26
lee fellows
No

Hi,

I am getting a ClassNotFound exception for
org.brownell.xml.aelfred2.SAXDriver when attempting to
run
Builder or XMLTest from the command line.

jdbc-se20.jar, jndi.jar, mysql.jar,
osage-1.0pre10.jar,quick.jar,
sax2.jar,util2.jar,utilities.jar and xerces_1_2.jar are
all in my
CLASSPATH. I am using Sun's jdk 1.3 an a RedHat 6.2
system.
Util2.jar is David Brownell's pre-GPL version of the
utilities.jar
with the class org.brownell.xml.aelfred2.SAXDriver.

I am attempting to use osage-1.0pre10 on a RedHat 6.2
system.

What am I missing?

Thank you.

Discussion

  • george w. stewart

    Logged In: YES
    user_id=28717

    Hi,

    I suggest that you try to unjar and jar the brownell jar.
    Don't use compression on the jar. I've read of problems on
    RH using jars built on other systems. There was a report
    recently on postgres jdbc list.

    You can use the xerces jar by setting property
    for "org.xml.sax.parser" to the xerces parser.

    There no need for both Brownell's package and xerces. I
    include Brownell's because it's much smaller.

    Regards, george

     
  • lee fellows

    lee fellows - 2001-03-28

    Logged In: YES
    user_id=163683

    Hi George,

    Thank you for your response. I tried unjaring and
    rejaring the
    utilities.jar and the util2.jar to no effect. I set the
    property to the
    xerces parser and everything worked. I have another
    question,
    however. Is there any documentation on how to develope the
    the
    class mapping xml files? Looking at the examples does not
    answer
    questions like how relations are defined, what are
    legitimate parameters
    in a relation declaration, etc? Any pointers would be
    appreciated.

    Thank you.

    Lee Fellows

     
  • george w. stewart

    Logged In: YES
    user_id=28717

    Hi Lee,

    On rejaring, did you use -0 for no compression?

    The examples do show relationships. There's a qjml schema
    for the maps (maps.qjml). Unfortunately, you have will to
    understand qjml to interpret it.

    Regards, george

     
  • lee fellows

    lee fellows - 2001-03-28

    Logged In: YES
    user_id=163683

    Hi George,

    Thank you. I will take a closer look at the maps.qjml
    file to see if I understand what it is saying. I also have
    the quick documentation on qjml to help.

    Probably this should really go to the mailing list, but
    here is one last
    concern. I am using MySQL, which does not support
    transactions. I followed the directions in the README file
    to use the DBNoTransImpl class. I then ran Test and got a
    TransactionNotInProgressException on a commit. Seems to me
    this does not make sense: I know there is not a transaction
    in progress. I specifically used the DBNoTransImpl because
    MySQL does not support transactions. In looking at
    net.sourceforge.osage.engine.DBNoTransImpl.java, I saw that
    begin properly did nothing, but commit and rollback both
    throw an exception. I would think that , like begin, they
    would be empty methods. Am I misunderstanding something?

    Thank you.

     
  • george w. stewart

    Logged In: YES
    user_id=28717

    Hi Lee,

    I believe that the most current version of MySQL supports
    transactions.

    If your db doesn't support transactions, don't use commit.
    If that's in Test.java, you can remove it. Use db.close()
    to release the connections.

    I think it's proper to throw exception when you try to use
    commit with db that doesn't support transactions.

    Regards, george

     
  • lee fellows

    lee fellows - 2001-03-28

    Logged In: YES
    user_id=163683

    Hi George,

    Thank you. Its seems the most recent MySQL does support
    transactions.
    Whether good or bad, I do not know. I do know there was
    alot of discussion against doing so. In any event, it is
    immaterial as we are currently using version 3.22.32 which
    does not.

    Thank you.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.