Thank Lukas

I will try to apply the patch once I have some free time ;)

Doxia is a great plugin

Thank
Christophe


-----Original Message-----
From: Lukas Theussl [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 06, 2007 4:12 PM
To: doxia-users@maven.apache.org
Subject: Re: Insert images in APT

Here's the roadmap:

http://jira.codehaus.org/browse/DOXIA?report=com.atlassian.jira.plugin.system.project:roadmap-panel

Still a way to go...

-Lukas


Gervais, Christophe wrote:
> Yes the error occurs during the pdf generation as confirmed by the Stack:
>
> org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:
> 118)
>
> So a fix exists. Great.
> Do you know when a new doxia release integrating this fix will be available?
>
> Thank
> Christophe
>
>
> -----Original Message-----
> From: Lukas Theussl [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 06, 2007 3:53 PM
> To: doxia-users@maven.apache.org
> Subject: Re: Insert images in APT
>
> Ok, I have another explanation :)
>
> http://jira.codehaus.org/browse/DOXIA-118
>
> Can you confirm that it's only the pdf generation via itext that doesn't work?
>
> -Lukas
>
>
> Gervais, Christophe wrote:
>
>>Thank for your help Lukas,
>>
>>Unfortunatly it does not solve the issue.
>>
>>Christophe
>>-----Original Message-----
>>From: Lukas Theussl [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, December 06, 2007 11:11 AM
>>To: doxia-users@maven.apache.org
>>Subject: Re: Insert images in APT
>>
>>Oh, the resources are copied directly into the main directory of the
>>site, see http://maven.apache.org/guides/mini/guide-site.html
>>
>>So it should work with
>>
>>[images/OpenMediation_Architecture.png] Architecture Overview
>>
>>HTH,
>>-Lukas
>>
>>
>>Gervais, Christophe wrote:
>>
>>
>>>Hi,
>>>
>>>I've also tried but I've got the same error.
>>>
>>>APT file contains:
>>>
>>>[../resources/images/OpenMediation_Architecture.png] Architecture
>>>
>>>I've also tried to specify the resources in the pom file, but it does not 
>>>help:
>>>
>>>Thank
>>>Christophe
>>>
>>><build>
>>>
>>>               <resources>
>>>                       <resource>
>>>                               <directory>src/site/resources</directory>
>>>                               <includes>
>>>                                       <include>images/**</include>
>>>                               </includes>
>>>                       </resource>
>>>               </resources>
>>>               <plugin>
>>>                               <groupId>org.apache.maven.doxia</groupId>
>>>                               <artifactId>doxia-maven-plugin</artifactId>
>>>                               <version>1.0-alpha-10</version>
>>>                               <executions>
>>>                                       <execution>
>>>                                               <phase>compile</phase>
>>>                                               <goals>
>>>                                                       
>>> <goal>render-books</goal>
>>>                                               </goals>
>>>                                       </execution>
>>>                               </executions>
>>>                               <configuration>
>>>                                       <books>
>>>                                               <book>
>>>                                                       
>>> <directory>src/site/apt</directory>
>>>                                                       
>>> <descriptor>src/site/book.xml</descriptor>
>>>                                                       <formats>
>>>                                                               <format>
>>>                                                                       
>>> <id>pdf</id>
>>>                                                               </format>
>>>                                                               <format>
>>>                                                                       
>>> <id>xdoc</id>
>>>                                                               </format>
>>>                                                       </formats>
>>>                                               </book>
>>>                                       </books>
>>>                               </configuration>
>>>                       </plugin>
>>>
>>>-----Original Message-----
>>>From: Lukas Theussl [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, December 06, 2007 10:44 AM
>>>To: doxia-users@maven.apache.org
>>>Subject: Re: Insert images in APT
>>>
>>>
>>>You have to include the figure extension in the link. This is a
>>>current bug that will be fixed soon:
>>>http://jira.codehaus.org/browse/DOXIA-99
>>>
>>>HTH,
>>>-Lukas
>>>
>>>
>>>Gervais, Christophe wrote:
>>>
>>>
>>>
>>>>Hello,
>>>>
>>>>I cannot insert picture in APT files. I've got the following exception 
>>>>generating my doc:
>>>>      MalformedURLException: The URL of the image is missing.
>>>>
>>>>
>>>>My project structure is the following:
>>>>
>>>><project>
>>>>      |---- src
>>>>               |---- site
>>>>                         |------ apt
>>>>                         |            |--- <apt file>
>>>>                         |-------resources
>>>>                                      |---- images
>>>>                                                 |----- <image
>>>>files>
>>>>
>>>>The picture is referenced using the following syntax in the APT file:
>>>>
>>>>      [../resources/images/OpenMediation_Architecture] Architecture
>>>>Overview
>>>>
>>>>Could you help?
>>>>Thank
>>>>Christophe
>>>>
>>>>Full error stack is:
>>>>
>>>>The image ../resources/images/OpenMediation_Architecture not found in the 
>>>>class loader. Try to call setClassLoader(ClassLoader) before.
>>>>[INFO]
>>>>--------------------------------------------------------------------
>>>>-
>>>>-
>>>>--
>>>>[ERROR] FATAL ERROR
>>>>[INFO]
>>>>--------------------------------------------------------------------
>>>>-
>>>>-
>>>>-- [INFO] The URL of the image is missing.
>>>>[INFO]
>>>>--------------------------------------------------------------------
>>>>-
>>>>-
>>>>--
>>>>[INFO] Trace
>>>>ExceptionConverter: java.net.MalformedURLException: The URL of the image is 
>>>>missing.
>>>>      at com.lowagie.text.Image.getInstance(Unknown Source)
>>>>      at com.lowagie.text.xml.SAXiTextHandler.handleStartingTags(Unknown 
>>>> Source)
>>>>      at com.lowagie.text.xml.SAXiTextHandler.startElement(Unknown Source)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:872)
>>>>      at
>>>>com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm
>>>>p l $FragmentContentDispatcher.dispatch(XMLDocumentFragmentScan
>>>>nerImpl.java:1693)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
>>>>      at 
>>>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
>>>>      at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>>>>      at com.lowagie.text.xml.XmlParser.go(Unknown Source)
>>>>      at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
>>>>      at com.lowagie.text.xml.XmlToXXX.parse(Unknown Source)
>>>>      at 
>>>> org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:118)
>>>>      at 
>>>> org.apache.maven.doxia.book.services.renderer.PdfBookRenderer.renderXML(PdfBookRenderer.java:50)
>>>>      at 
>>>> org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.renderBook(AbstractITextBookRenderer.java:162)
>>>>      at 
>>>> org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:126)
>>>>      at 
>>>> org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:214)
>>>>      at 
>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>>>>      at 
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>>>      at 
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>>>      at 
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>>>      at 
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>>>      at 
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>>>      at 
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>>>      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
>>>>      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
>>>>      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>      at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>      at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: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)
>>>>[INFO]
>>>>--------------------------------------------------------------------
>>>>-
>>>>-
>>>>--
>>>>[INFO] Total time: 10 seconds
>>>>[INFO] Finished at: Thu Dec 06 09:30:56 CET 2007 [INFO] Final Memory:
>>>>10M/19M [INFO]
>>>>--------------------------------------------------------------------
>>>>-
>>>>-
>>>>--
>>>>
>>>
>>>
>>
>

Reply via email to