|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Xdoclet2/Eclipse/Ant problemsHello,
I have just started to play with XDoclet2, and I am starting with creating web.xml files using the Web Plugin. I have created an ANT target to do the work. If I run ANT from the command line (outside of Eclipse) I get the generated file just fine. When I run the ANT target inside of Eclipse, either in the same JVM or in a separate JVM, I am getting a problem. The issue has to do with the version of the SAX parser being used. It seems that Eclipse version of the SAX parser is not compatible with XDoclet2. Any ideas? Here is the stack trace Buildfile: D:\data\Home\dwfa\projects\eclipse\ifx\service1\make\make.xml info: [echo] Build Date : 09/18/2006 04:49:19:117 PM [echo] Using Ant Version : Apache Ant version 1.6.5 compiled on June 2 2005 [echo] Using Java Version : 1.4.2_12 xdoclet-test: [echo] using D:\data\Home\dwfa\projects\eclipse\ifx\service1/src/main/java [xdoclet] Running org.xdoclet.plugin.web.WebPlugin [xdoclet] Sep 18, 2006 4:49:21 PM org.generama.defaults.XMLOutputValidator validate [xdoclet] SEVERE: SAXException [xdoclet] org.xml.sax.SAXNotRecognizedException: Feature: http://apache.org/xml/features/validation/schema [xdoclet] at org.apache.crimson.parser.XMLReaderImpl.setFeature(Unknown Source) [xdoclet] at org.dom4j.io.SAXReader.setFeature(SAXReader.java:218) [xdoclet] at org.generama.defaults.XMLOutputValidator.validate(XMLOutputValidator.java:59) [xdoclet] at org.generama.Plugin.start(Plugin.java:211) [xdoclet] at org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer.java:349) [xdoclet] at org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart(LifecycleContainerBuilder.java:52) [xdoclet] at org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(LifecycleContainerBuilder.java:45) [xdoclet] at org.nanocontainer.ant.PicoContainerTask.execute(PicoContainerTask.java:95) [xdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) [xdoclet] at org.apache.tools.ant.Task.perform(Task.java:364) [xdoclet] at org.apache.tools.ant.Target.execute(Target.java:341) [xdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:369) [xdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) [xdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1185) [xdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) [xdoclet] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [xdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1068) [xdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) [xdoclet] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) BUILD SUCCESSFUL Total time: 3 seconds Here is the ANT target: <target name = "xdoclet-test" depends = "info" description = "Xdoclet Test."> <xdoclet.define.tasks/> <echo>using ${src.java.dir}</echo> <xdoclet> <fileset dir = "${src.java.dir}"> <include name = "**/*.java"/> </fileset> <component classname = "org.xdoclet.plugin.web.WebPlugin" destdir = "${basedir}/target/xdoclet"/> </xdoclet> </target> Here is the macro <macrodef name = "xdoclet.define.tasks"> <sequential> <if> <not> <isset property = "classpath.xdoclet.libraries" /> </not> <then> <path id = "classpath.xdoclet.libraries"> <fileset dir = "${make.lib.dir}/xdoclet"> <include name = "**/*.jar" /> </fileset> <fileset dir = "${websphere.dir}/lib"> <include name = "j2ee.jar" /> </fileset> </path> <property name = "classpath.xdoclet.libraries" refid = "classpath.xdoclet.libraries" /> <taskdef name = "xdoclet" classname = "org.xdoclet.ant.XDocletTask"> <classpath refid = "classpath.xdoclet.libraries" /> </taskdef> </then> </if> </sequential> </macrodef> --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Xdoclet2/Eclipse/Ant problems--- Douglas WF Acheson <dwfa@...> wrote: > Hello, > > I have just started to play with XDoclet2, and I > am starting with creating web.xml files using the > Web Plugin. I have created an ANT target to do the > work. If I run ANT from the command line (outside > of Eclipse) I get the generated file just fine. > When I run the ANT target inside of Eclipse, either > in the same JVM or in a separate JVM, I am getting a > problem. The issue has to do with the version of > the SAX parser being used. It seems that Eclipse > version of the SAX parser is not compatible with > XDoclet2. Any ideas? There is an issue with validation / schemas - parser in eclipse has problems with it. YOu may try to feed appropriate version of xerces to eclipse, or disable validation. ( please note that merging in current web plugin snapshot is kind of suboptimal and requires attention) regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Xdoclet2/Eclipse/Ant problemsHello,
Thx for the reply. I kinda figured as much (there being a problem with Eclipse). Does anyone know if there is any documentation (instructions) on how to get Eclipse to use the version of Xerces that solves this problem. Or, how do I turn of validation. I tried looking at the attributes to the Web plugin, but found nothing appropriate. Thx a bunch for the help ... dwfa ----- Original Message ---- From: Konstantin Priblouda <kpriblouda@...> To: user@... Sent: Tuesday, September 19, 2006 4:44:45 AM Subject: Re: [xdoclet-user] Xdoclet2/Eclipse/Ant problems --- Douglas WF Acheson <dwfa@...> wrote: > Hello, > > I have just started to play with XDoclet2, and I > am starting with creating web.xml files using the > Web Plugin. I have created an ANT target to do the > work. If I run ANT from the command line (outside > of Eclipse) I get the generated file just fine. > When I run the ANT target inside of Eclipse, either > in the same JVM or in a separate JVM, I am getting a > problem. The issue has to do with the version of > the SAX parser being used. It seems that Eclipse > version of the SAX parser is not compatible with > XDoclet2. Any ideas? There is an issue with validation / schemas - parser in eclipse has problems with it. YOu may try to feed appropriate version of xerces to eclipse, or disable validation. ( please note that merging in current web plugin snapshot is kind of suboptimal and requires attention) regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 |
|
|
Re: Xdoclet2/Eclipse/Ant problems--- Douglas WF Acheson <dwfa@...> wrote: > Hello, > > Thx for the reply. I kinda figured as much > (there being a problem with Eclipse). Does anyone > know if there is any documentation (instructions) on > how to get Eclipse to use the version of Xerces that > solves this problem. Or, how do I turn of > validation. I tried looking at the attributes to > the Web plugin, but found nothing appropriate. Thx > a bunch for the help ... > As for web plugin and validation ( in fact - every plugin, as this is inherited property ) see: http://xdoclet.codehaus.org/WebPlugin I personally do not use eclipse to perform my builds ( I'm using maven 2 ), so I do not have problems with it. regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Creating webservice.xml fileHello,
I was wondering if there is a plugin that creates a webservice.xml file. I did not see it on the codehaus web site, and my search for it on Google has not yielded anything useful. I could learn more about XDoclet2 if I write my own plugin, but if one exists I would like to use that. Thx in advance ... Regards, Douglas WF Acheson --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Creating webservice.xml file--- Douglas WF Acheson <dwfa@...> wrote: > Hello, > > I was wondering if there is a plugin that creates > a webservice.xml file. I did not see it on the > codehaus web site, and my search for it on Google > has not yielded anything useful. I could learn more > about XDoclet2 if I write my own plugin, but if one > exists I would like to use that. Thx in advance ... At the moment there is no such plugin yet. And you are welcome to contribute ( it happens that I also can need such plugin soon ) To see how plgins are done, look into sourceforge project: http://www.sourceforge.net/projects/xdoclet-plugins/ There is a lot of plugins to look at and to understand how this is done. Currently there is working m2 build, m1 build is not in very good shape. PS: there is a list dedicated to xdoclet-2 plugin development, this one is for code xdoclet-2 / generama ( though your posting here is not really offtopic, because most of active plugin developers are reading this ) regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- Still using XDoclet 1.x? XDoclet 2 is released and of production quality. check it out: http://xdoclet.codehaus.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |