Hi Antonio,

I think there is a typo in your code. It should read as follows:
<java fork="yes" failonerror="yes"
      classname="com.sun.jdori.enhancer.Main"
      classpathref="compilation-classpath">
      <arg line="-v -f -d
        ${fullbuildpath}/net/agssa/demo/Product.jdo
        ${fullbuildpath}/net/agssa/demo/Product.class" />
</java>


cheers, Thomas

Antonio Gallardo wrote:
Hi:

My first task is to try to create an independent application from OJB. For
this I already separed all the files from the tutorial 5 (JDO) to a new
location and I am trying to compile and run the sample.

I discovered I need JDO ENHANCER with the Product.class before using the
simple demo.

I write a simple build.xml to do the enhancement but I am getting a error.
See below). I searched in the mail archive and found a tip to write the
build.xml that run the JDO ENHANCER:

<java fork="yes" failonerror="yes" classname="com.sun.jdori.enhancer.Main"
  classpathref="compilation-classpath">
 <arg line="-v -f -d ${fullbuildpath}
${fullbuildpath}/net/agssa/demo/Product.jdo
${fullbuildpath}/net/agssa/demo/Product.class" />
                </java>

Here is the error I am getting:

Buildfile: /home/agallardo/workspace/demoJDO/build.xml

enhance-jdori:
[java] Enhancer: options:
[java] verbose = true
[java] quiet = false
[java] forceWrite = true
[java] noWrite = false
[java] sourcePath = null
[java] destinationDirectory =
/home/agallardo/workspace/demoJDO/build
[java] propertiesFileName = null
[java] doTiming = false
[java] classNames = {
[java] }
[java] jdoFileNames = {
[java] /home/agallardo/workspace/demoJDO/build/net/agssa/demo/Product.jdo
[java] classFileNames = {
[java] /home/agallardo/workspace/demoJDO/build/net/agssa/demo/Product.class
[java] }
[java] zipFileNames = {
[java] }
[java] dumpClass = false
[java] noAugment = false
[java] noAnnotate = false
[java] JDO ENHANCER: using resource:
file:/home/agallardo/workspace/demoJDO/build/net/agssa/demo/Product.jdo
[java]
---------------------------------------------------------------------------
[java]
[java] JDO ENHANCER: Enhancer: enhancing classfile ...
[java] aborted with errors.
[java] Error while enhancing: JDO ENHANCER: At least one error
occurred while enhancing input class for Transparent Persistence;
detailed message(s): I/O error while reading input stream or input
stream does not denote a valid Java class.
[java] com.sun.jdori.enhancer.EnhancerUserException: JDO ENHANCER:
At least one error occurred while enhancing input class for
Transparent Persistence; detailed message(s): I/O error while
reading input stream or input stream does not denote a valid Java
class.
[java] at
com.sun.jdori.enhancer.filter.Enhancer.enhanceClassFile(Unknown
Source)
[java] at com.sun.jdori.enhancer.Main.enhanceClassFile(Unknown
Source)
[java] at com.sun.jdori.enhancer.Main.enhanceInputFiles(Unknown
Source)
[java] at com.sun.jdori.enhancer.Main.process(Unknown Source)
[java] at com.sun.jdori.enhancer.Main.main(Unknown Source)
[java] BUILD FAILED:
file:/home/agallardo/workspace/demoJDO/build.xml:30: Java
returned: -1
Total time: 9 seconds



Can someone help me?


Best Regards,

Antonio Gallardo



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to