Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Cannot Reproduce
-
Affects Version/s: 1.10.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:WindowsXP SP2 x86, JDK6 build 1.6.0_05-b13
-
Number of attachments :
Description
When including the XDoc-DTD as mentioned in issue MPXDOC-192 site generation fails with a Jelly-Exception.
I cannot say if this is an issue with the xdoc-plugin or with jelly.
My document starts with
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//Apache Software Foundation//DTD XDOC 1.0//EN"
"http://maven.apache.org/dtd/xdoc_1_0.dtd">
When invoking the goal xdoc:generate-from-pom (called through a custom goal ta30:doku) I get a Jelly-Exception (full report attached):
Caused by: org.apache.commons.jelly.JellyTagException: file:C:/Dokumente und Einstellungen/Orth/.maven/cache/maven-xdoc-plugin-1.10.1/plugin-resources/sitemap.jsl:84:51: <x:parse> Connection timed out: connect Nested exception: Connection t
imed out: connect
at org.apache.commons.jelly.tags.xml.ParseTagSupport.parse(ParseTagSuppo
rt.java:186)
at org.apache.commons.jelly.tags.xml.ParseTag.getXmlDocument(ParseTag.ja
va:106)
at org.apache.commons.jelly.tags.xml.ParseTag.doTag(ParseTag.java:55)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at org.apache.commons.jelly.tags.util.AvailableTag.doTag(AvailableTag.ja
va:68)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at org.apache.commons.jelly.tags.jsl.TemplateTag$1.run(TemplateTag.java:
160)
at org.dom4j.rule.Mode.fireRule(Mode.java:59)
at org.dom4j.rule.Stylesheet.applyTemplates(Stylesheet.java:185)
at org.dom4j.rule.Stylesheet.applyTemplates(Stylesheet.java:159)
at org.apache.commons.jelly.tags.jsl.ApplyTemplatesTag.doTag(ApplyTempla
tesTag.java:67)
... 112 more
Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exc
eption: Connection timed out: connect
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:264)
at org.apache.commons.jelly.tags.xml.ParseTagSupport.parse(ParseTagSuppo
rt.java:168)
... 126 more
Leaving out the DTD "fixes" the issue, but then I cannot edit the xdoc-file in an XML-editor like the excellent visual XMLmind-editor (with xdoc-type-plugin).
It works for me. Can you attach a small reproducible test case? However, check the connection timeout, maybe a proxy problem?