|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
AS3 Creation Problem in XDoclet2Hi,
I have a problem while generating java to AS3 files using XDoclet. I have java files which was created by Xdoclets(Using WSDL to JAVA) . when I am trying to generate AS3 files from these classes using xdoclet-plugins-dist-1.0.4/xdoclet-plugin-actionscript, i am getting "org.generama.GeneramaException Exception occurred when running Velocity" Exception. Then i have found the issue in my classes where i have public static final org.apache.xmlbeans.SchemaType Object variable, because of this variable only i am getting this exception, so i removed this xmlbean's SchemaType from my class now i am getting AS3 files. Here i have given my sample class public interface A extends org.apache.xmlbeans.XmlObject { public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(AuthorityListType.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sD01C79D58C6CBAFF45A4567A8F44E9D").resolveHandle("someRef"); .. ..} Please any one help me, how to solve this issue? Advance Thanks Suresh.K |
|
|
RE: AS3 Creation Problem in XDoclet2Hi Sury,
I wrote the AS3 plugin for XDoclet2 (although we now use a different codegen system, so I am not an expert in the plugin code these days). Anyway, constants are not allowed in AS3 interfaces, only in classes. So that is probably why the plugin code is breaking. I don't think there is any legal AS3 statement into which the plugin can meaningfully translate the constant. ... . . . joe > -----Original Message----- > From: Sury [mailto:suryey@...] > Sent: Monday, April 07, 2008 10:11 AM > To: user@... > Subject: [xdoclet-user] AS3 Creation Problem in XDoclet2 > > > Hi, > > I have a problem while generating java to AS3 files using XDoclet. I > have > java files which was created by Xdoclets(Using WSDL to JAVA) . when I > am > trying to generate AS3 files from these classes using > xdoclet-plugins-dist-1.0.4/xdoclet-plugin-actionscript, i am getting > "org.generama.GeneramaException Exception occurred when running > Velocity" > Exception , Because my java classes are having public static final > org.apache.xmlbeans.SchemaType Object variable. > > When i removed this xmlbean's SchemaType from my class then i am > getting AS3 > files. > > Here i have given my sample class > > public interface A extends org.apache.xmlbeans.XmlObject > { > public static final org.apache.xmlbeans.SchemaType type = > (org.apache.xmlbeans.SchemaType) > > > .class.getClassLoader(), > "schemaorg_apache_xmlbeans.system.sD01C79D58C6CBAFF45A4567A8F44E9D").re > solveHandle("someRef"); > > .. > ..} > > Please any one help me. > > > > Advance Thanks > > Suresh.K > -- > View this message in context: http://www.nabble.com/AS3-Creation- > Problem-in-XDoclet2-tp16537457p16537457.html > Sent from the xdoclet - user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |