hydralix / docbkx-tools

Automatically exported from code.google.com/p/docbkx-tools
0 stars 0 forks source link

ClassCastException in transform when cargo.container.url property is present in pom.xml #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a project using an archetype from appfuse, where you can see the 
following property in 
the pom.xml:
<cargo.container.url>http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.14/bin/
apache-
tomcat-6.0.14.zip</cargo.container.url>
2. add a docbkx plugin definition and some docbook files
3. execute mvn clean site

What is the expected output? What do you see instead?
The transform should be performed, instead I get:

[INFO] [docbkx:generate-pdf {execution: build-pdf-doc}]
[INFO] ---------------------------------------------------------------------

---
[ERROR] FATAL ERROR
[INFO] ---------------------------------------------------------------------

---
[INFO] java.lang.String
[INFO] ---------------------------------------------------------------------

---
[INFO] Trace
java.lang.ClassCastException: java.lang.String
    at com.agilejava.docbkx.maven.ExpressionUtils.splitToTree(ExpressionUtils.java:40)
    at com.agilejava.docbkx.maven.ExpressionUtils.splitToTree(ExpressionUtils.java:43)
    at com.agilejava.docbkx.maven.ExpressionUtils.createTree(ExpressionUtils.java:31)
    at 
com.agilejava.docbkx.maven.AbstractTransformerMojo$1.<init>(AbstractTransformerM
ojo.java:
148)
    at 
com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMo
jo.java:1
45)
    at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.ja
va:447)

If I remove the cargo.container.url property, everything works correctly, looks 
like somehow 
Maven does not interpret it as a string and issues the ClassCastException.

Original issue reported on code.google.com by marcello.teodori on 15 Feb 2008 at 2:08

GoogleCodeExporter commented 9 years ago
Hello,

could you past your pom? I guess it will help to debug because I didn't tell 
where
you setted your <cargo.container.url> property.

Thx,
Mimil

Original comment by MimilO...@gmail.com on 8 Mar 2008 at 7:08

GoogleCodeExporter commented 9 years ago

Original comment by MimilO...@gmail.com on 18 Mar 2009 at 9:33