Discussion:
[Middlegen-user] latest cvs and preference file exception
G***@apcc.com
2002-06-04 16:56:02 UTC
Permalink
I'm using cvs from this morning. Middlegen built and ran fine the first
time. Successive runs produce the following error. Deleting the
preferences file fixes the problem.

middlegen:
[middlegen] java.lang.ClassCastException:
org.apache.xerces.dom.DeferredCommentImpl
[middlegen] at
java.util.prefs.XmlSupport.importPreferences(XmlSupport.java:182)
[middlegen] at
java.util.prefs.Preferences.importPreferences(Preferences.java:1138)
[middlegen] at middlegen.Prefs.init(Prefs.java:132)
[middlegen] at middlegen.MiddlegenTask.execute(MiddlegenTask.java:337)
[middlegen] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:171)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:313)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[middlegen] at
org.apache.tools.ant.Target.performTasks(Target.java:334)
[middlegen] at
org.apache.tools.ant.Project.executeTarget(Project.java:1216)

[middlegen] at
org.apache.tools.ant.Project.executeTargets(Project.java:1160)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:605)
[middlegen] at org.apache.tools.ant.Main.start(Main.java:195)
[middlegen] at org.apache.tools.ant.Main.main(Main.java:234)

BUILD FAILED
C:\middlegen4\samples\build.xml:129: middlegen.MiddlegenException: Couldn't
initialise preferences system:org.apache.xerces.dom.DeferredCommentImpl


Thanks,

Greg
Aslak Hellesoy
2002-06-04 17:09:17 UTC
Permalink
Read the FAQ in /middlegen/docs/index.html

Aslak
-----Original Message-----
Sent: 4. juni 2002 20:57
Subject: [Middlegen-user] latest cvs and preference file exception
I'm using cvs from this morning. Middlegen built and ran fine the first
time. Successive runs produce the following error. Deleting the
preferences file fixes the problem.
org.apache.xerces.dom.DeferredCommentImpl
[middlegen] at
java.util.prefs.XmlSupport.importPreferences(XmlSupport.java:182)
[middlegen] at
java.util.prefs.Preferences.importPreferences(Preferences.java:1138)
[middlegen] at middlegen.Prefs.init(Prefs.java:132)
[middlegen] at middlegen.MiddlegenTask.execute(MiddlegenTask.java:337)
[middlegen] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:171)
[middlegen] at org.apache.tools.ant.Task.perform(Task.java:313)
[middlegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[middlegen] at
org.apache.tools.ant.Target.performTasks(Target.java:334)
[middlegen] at
org.apache.tools.ant.Project.executeTarget(Project.java:1216)
[middlegen] at
org.apache.tools.ant.Project.executeTargets(Project.java:1160)
[middlegen] at org.apache.tools.ant.Main.runBuild(Main.java:605)
[middlegen] at org.apache.tools.ant.Main.start(Main.java:195)
[middlegen] at org.apache.tools.ant.Main.main(Main.java:234)
BUILD FAILED
middlegen.MiddlegenException: Couldn't
initialise preferences system:org.apache.xerces.dom.DeferredCommentImpl
Thanks,
Greg
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Grant Marblestone
2002-06-04 17:14:16 UTC
Permalink
HEy all,

I have the sample build script and i can make it work for regualar ejb
beans, but now i want to just do JDO and not anyhting else but ic ant figure
out how to change the script.... this might be off subject, but i thought i
would ask

Thanks aslak and all,

g
Ludovic Claude
2002-06-04 17:57:06 UTC
Permalink
That' easy: remove the following code from the build.xml file in the samples
directory:
<cmp20
package="${name}.ejb"
jndiprefix="${unique.name}"
generatepk="false"
destination="${build.gen-src.dir}"
/>
<html
destination="${build.html.dir}"
/>
(or put around it the xml comments, <!-- to start the comment, and --> to
end it).

At the moment, the JDO pluggin is still alpha code, so to improve it i would
like very much to have feeback concerning the code generation, in particular
where relationships are involved.
This plugin will become really usefull once i have written the xdoclet task
that goes with it and that will generate the .jdo descriptors.

Ludovic

----- Original Message -----
From: "Grant Marblestone" <***@ATSER.com>
To: <middlegen-***@lists.sourceforge.net>
Sent: Tuesday, June 04, 2002 9:22 PM
Subject: [Middlegen-user] jdo only
Post by Grant Marblestone
HEy all,
I have the sample build script and i can make it work for regualar ejb
beans, but now i want to just do JDO and not anyhting else but ic ant figure
out how to change the script.... this might be off subject, but i thought i
would ask
Thanks aslak and all,
g
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...