Hi, The current solution works fine on JDK 1.5 and I haven't tested it on JDK 1.6. I will look into fixing it on JDK 1.6 and send a patch.
If you replace the "http://apache.org/xml/features/nonvalidating/load-external-dtd" with "http://xml.org/sax/features/external-parameter-entities" in AppFuseGeneratorMojo it might solve the problem for 1.6, but might break it for 1.5. If you are permenantly connected to the internet you can try to remove that line altogether. I need to switch of the dtd loading as I am behind a firewall and lives in a bandwidth starved country. I would still like to use a way of turning of the dtd fetching as we don't really want to validate the xml, but I am looking for a permenant fix and not something that is reliable on the SAX parser used. Regards JC Oosthuizen Vincent Ramdhanie wrote: > > Hi, > I am using JDK 1.6. > > Thanks > Vincent > > On Thu, Jun 12, 2008 at 3:10 AM, JC Oosthuizen <[EMAIL PROTECTED]> > wrote: > >> >> Hi Vincent, >> >> The option that is unrecognized is used to prevent the XML parser from >> retreiving the dtd from the internet, but it is clearly not supported by >> the >> parser on your system. What version of the JDK are you using? >> >> Regards, >> >> JC Oosthuizen >> >> >> Vincent Ramdhanie wrote: >> > >> > Hi Matt, >> > I reverted and it seemed to get pass the problem. >> > Thanks. >> > Vincent >> > >> > On Fri, May 23, 2008 at 11:51 AM, Matt Raible <[EMAIL PROTECTED]> >> > wrote: >> > >> >> The only step I can think of is to revert the version of AMP to 2.0.1. >> >> >> >> Matt >> >> >> >> On Fri, May 23, 2008 at 8:17 AM, Vincent Ramdhanie < >> [EMAIL PROTECTED]> >> >> wrote: >> >> > Thanks Matt, >> >> > Yes I am connected to the Internet and no I am not behind a >> firewall. >> >> After >> >> > reading the issue APF-1045 that you pointed out though I tried >> removing >> >> the >> >> > class mapping entry from hibernate.cfg.xml then running appfuse:gen >> >> again. >> >> > Originally I had made the entry manually. But still the same result. >> >> > >> >> > What steps could I take now to work around this? >> >> > >> >> > Thanks >> >> > Vincent >> >> > >> >> > On Fri, May 23, 2008 at 9:35 AM, Matt Raible >> <[EMAIL PROTECTED]> >> >> wrote: >> >> >> >> >> >> Are you connected to the internet when you run this? Are you behind >> a >> >> >> firewall? >> >> >> >> >> >> This seems to be caused by the following enhancement: >> >> >> >> >> >> http://issues.appfuse.org/browse/APF-1045 >> >> >> >> >> >> Matt >> >> >> >> >> >> On Fri, May 23, 2008 at 5:52 AM, Vincent Ramdhanie < >> >> [EMAIL PROTECTED]> >> >> >> wrote: >> >> >> > Hello, >> >> >> > I am trying to use appfuse:gen on a struts modular project. I am >> >> using >> >> >> > appfuse 2.0.2. I start in the core module with the command: >> >> >> > >> >> >> > mvn appfuse:gen -Dentity=Article >> >> >> > >> >> >> > The following error shows up: >> >> >> > >> >> >> > Property >> >> >> > 'http://apache.org/xml/features/nonvalidating/load-external-dtd' >> is >> >> >> > not >> >> >> > recognized. >> >> >> > org.xml.sax.SAXNotRecognizedException: Property >> >> >> > 'http://apache.org/xml/features/ >> >> >> > nonvalidating/load-external-dtd' is not recognized. >> >> >> > at >> >> >> > >> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.getPrope >> >> >> > rty(AbstractSAXParser.java:2060) >> >> >> > at >> >> >> > >> >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.s >> >> >> > etProperty(SAXParserImpl.java:467) >> >> >> > at >> >> >> > >> >> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAX >> >> >> > ParserImpl.java:263) >> >> >> > at >> >> >> > >> >> org.appfuse.mojo.exporter.AppFuseGeneratorMojo$POJOSearcher.searchFor >> >> >> > Pojo(AppFuseGeneratorMojo.java:384) >> >> >> > at >> >> >> > >> >> org.appfuse.mojo.exporter.AppFuseGeneratorMojo.addEntityToHibernateCf >> >> >> > gXml(AppFuseGeneratorMojo.java:298) >> >> >> > at >> >> >> > >> >> org.appfuse.mojo.exporter.AppFuseGeneratorMojo.execute(AppFuseGenerat >> >> >> > orMojo.java:165) >> >> >> > at >> >> >> > >> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi >> >> >> > nManager.java:451) >> >> >> > at >> >> >> > >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa >> >> >> > ultLifecycleExecutor.java:558) >> >> >> > at >> >> >> > >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone >> >> >> > Goal(DefaultLifecycleExecutor.java:512) >> >> >> > at >> >> >> > >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau >> >> >> > ltLifecycleExecutor.java:482) >> >> >> > at >> >> >> > >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan >> >> >> > dleFailures(DefaultLifecycleExecutor.java:330) >> >> >> > at >> >> >> > >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen >> >> >> > ts(DefaultLifecycleExecutor.java:291) >> >> >> > at >> >> >> > >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi >> >> >> > fecycleExecutor.java:142) >> >> >> > at >> >> >> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) >> >> >> > at >> >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) >> >> >> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) >> >> >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >> >> Method) >> >> >> > at >> >> >> > >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >> >> >> > java:39) >> >> >> > at >> >> >> > >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >> >> >> > sorImpl.java:25) >> >> >> > at java.lang.reflect.Method.invoke(Method.java:597) >> >> >> > at >> >> >> > >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> >> >> > at >> >> org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >> >> >> > at >> >> >> > >> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> >> >> > >> >> >> > at >> org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> >> >> > >> >> >> > Despite this, the result is Build Successful. I notice that no >> code >> >> was >> >> >> > generated but the sample-data.xml file has been modified to >> include >> >> >> > data >> >> >> > for the table. >> >> >> > When I run appfuse:gen in the web module I am getting a different >> >> error >> >> >> > but >> >> >> > I suspect it might be related to this one. >> >> >> > >> >> >> > Does anyone have any ideas as to what could be happening here or >> >> where >> >> I >> >> >> > am >> >> >> > going wrong? >> >> >> > >> >> >> > Thanks >> >> >> > Vincent >> >> >> > >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > Vincent Ramdhanie >> >> > Vinette Technologies >> >> > >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> > -- >> > Vincent Ramdhanie >> > Vinette Technologies >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/errors-with-appfuse%3Agen-tp17424029s2369p17793871.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Vincent Ramdhanie > Vinette Technologies > > -- View this message in context: http://www.nabble.com/errors-with-appfuse%3Agen-tp17424029s2369p17803412.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
