hydralix / docbkx-tools

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

Problem to convert docbook file while using this plugin bhind a proxy with authentification #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. if you use doc book through a proxy that require authentification you
got an error

mvn compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Docbkx Maven Samples
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [docbkx:generate-html {execution: default}]
[INFO] Processing specification.xml
Error 
  Failure reading
/local/home/pdeville/Work/Java/storetech/build/latest/src/documentation/src/docb
kx/specification.xml:
Server returned HTTP response code: 401 for URL:
http://www3.cfauth.com/?cfru=aHR0cDovL3d3dy5vYXNpcy1vcGVuLm9yZy9kb2Nib29rL3htbC8
0LjIvZG9jYm9va3guZHRk
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to transform specification.xml.

Embedded error: Failure reading
/local/home/pdeville/Work/Java/storetech/build/latest/src/documentation/src/docb
kx/specification.xml
Server returned HTTP response code: 401 for URL:
http://www3.cfauth.com/?cfru=aHR0cDovL3d3dy5vYXNpcy1vcGVuLm9yZy9kb2Nib29rL3htbC8
0LjIvZG9jYm9va3guZHRk
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Wed Oct 01 08:48:53 CEST 2008
[INFO] Final Memory: 8M/26M
[INFO] ------------------------------------------------------------------------
pdeville@gislt1703:~/Work/Java/storetech/build/latest/src/documentation$
mvn -e compile
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Docbkx Maven Samples
[INFO]    task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [docbkx:generate-html {execution: default}]
[INFO] Processing specification.xml
Error 
  Failure reading
/local/home/pdeville/Work/Java/storetech/build/latest/src/documentation/src/docb
kx/specification.xml:
Server returned HTTP response code: 401 for URL:
http://www3.cfauth.com/?cfru=aHR0cDovL3d3dy5vYXNpcy1vcGVuLm9yZy9kb2Nib29rL3htbC8
0LjIvZG9jYm9va3guZHRk
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to transform specification.xml.

Embedded error: Failure reading
/local/home/pdeville/Work/Java/storetech/build/latest/src/documentation/src/docb
kx/specification.xml
Server returned HTTP response code: 401 for URL:
http://www3.cfauth.com/?cfru=aHR0cDovL3d3dy5vYXNpcy1vcGVuLm9yZy9kb2Nib29rL3htbC8
0LjIvZG9jYm9va3guZHRk
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to transform
specification.xml.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:583)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(Def
aultLifecycleExecutor.java:499)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycle
Executor.java:478)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultL
ifecycleExecutor.java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExec
utor.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(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
transform specification.xml.
        at
com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMo
jo.java:182)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.ja
va:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:558)
        ... 16 more
Caused by: javax.xml.transform.TransformerException: Failure reading
/local/home/pdeville/Work/Java/storetech/build/latest/src/documentation/src/docb
kx/specification.xml
        at com.icl.saxon.om.Builder.build(Builder.java:267)
        at com.icl.saxon.Controller.transform(Controller.java:936)
        at
com.agilejava.docbkx.maven.AbstractTransformerMojo.execute(AbstractTransformerMo
jo.java:173)
        ... 18 more
Caused by: java.io.IOException: Server returned HTTP response code: 401 for
URL:
http://www3.cfauth.com/?cfru=aHR0cDovL3d3dy5vYXNpcy1vcGVuLm9yZy9kb2Nib29rL3htbC8
0LjIvZG9jYm9va3guZHRk
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.jav
a:1152)
        at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
Source)
        at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
        at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
        at com.icl.saxon.om.Builder.build(Builder.java:265)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Wed Oct 01 08:49:34 CEST 2008
[INFO] Final Memory: 8M/26M
[INFO] ------------------------------------------------------------------------

Original issue reported on code.google.com by pascalm.deville@gmail.com on 1 Oct 2008 at 6:49

GoogleCodeExporter commented 9 years ago
Hi,

just to understand, you have some resources (images or modular xml files) 
located
outside and then requesting the use of your authenticated proxy?

Did you try such a things 
http://maven.apache.org/guides/mini/guide-proxies.html ?

Regards,
Cédric,

Original comment by MimilO...@gmail.com on 13 Oct 2008 at 5:10

GoogleCodeExporter commented 9 years ago
Hi,

Were you able to try what is explained in the maven guide? Because I do not 
have any
authenticated proxy where I am, I will not be able to test.

Regards,
Cédric,

Original comment by MimilO...@gmail.com on 13 Jan 2009 at 10:49

GoogleCodeExporter commented 9 years ago
Closing

Original comment by MimilO...@gmail.com on 24 Aug 2009 at 9:16