You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Joseph <pj...@yahoo.com> on 2004/09/07 13:23:50 UTC

ojb/jdo example - how do I enhance the file

Hi,

I am trying to enhance the auth_user.class file (after
compiling it from the .java into the .class)

I kept both the .java file and the .class file in the
same directory and ran the following command:

$ java -cp ".;c:\db-ojb-1.0.0\lib;c:\db-ojb-1.0.0\jdo"
com.sun.jdori.enhancer.Main -v -f auth_user.class
auth_user.jdo


What am I doing wrong - the response (error) I get is
as follows:

Enhancer: options:
    verbose = true
    quiet = false
    forceWrite = true
    noWrite = false
    sourcePath = null
    destinationDirectory = null
    propertiesFileName = null
    doTiming = false
    classNames = {
    }
    jdoFileNames = {
        auth_user.jdo
    }
    classFileNames = {
        auth_user.class
    }
    zipFileNames = {
    }
    dumpClass = false
    noAugment = false
    noAnnotate = false
JDO ENHANCER: using file:
file:/C:/Downloads/demoOJB/auth_user.class
Class Locator: using class files: {
    auth_user.class
}
JDO ENHANCER: using file:
file:/C:/Downloads/demoOJB/auth_user.jdo
java.lang.NoClassDefFoundError:
javax/jdo/JDOFatalInternalException
	at
com.sun.jdori.common.model.jdo.JDOModelImpl.<clinit>(Unknown
Source)
	at
com.sun.jdori.common.model.jdo.JDOModelFactoryImpl.createJDOModel(Unknown
Source)
	at
com.sun.jdori.enhancer.meta.model.EnhancerMetaDataJDOModelImpl.<init>(Unknown
Source)
	at
com.sun.jdori.enhancer.Main.initEnhancerMetaData(Unknown
Source)
	at com.sun.jdori.enhancer.Main.createEnhancer(Unknown
Source)
	at com.sun.jdori.enhancer.Main.process(Unknown
Source)
	at com.sun.jdori.enhancer.Main.main(Unknown Source)
Exception in thread "main" 

thx
Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: ojb/jdo example - how do I enhance the file

Posted by Joose Vettenranta <jo...@iki.fi>.
Hi,

> I am trying to enhance the auth_user.class file (after
> compiling it from the .java into the .class)
>
> I kept both the .java file and the .class file in the
> same directory and ran the following command:
>
> $ java -cp ".;c:\db-ojb-1.0.0\lib;c:\db-ojb-1.0.0\jdo"
> com.sun.jdori.enhancer.Main -v -f auth_user.class
> auth_user.jdo

Check tthat you have classpath correctly, so that auth_user.class is in 
your classpath.

- Joose

--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org