Quantcast

Images are not coming while generating the pdf/rtf book

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Images are not coming while generating the pdf/rtf book

DebasisM
Hi All,
 I am using Doxia plugin to generate the user guide in pdf format.
 I have written the file in APT format.I am executing the render-book goals and generating the pdf.
 
The images are not coming i have written in the APT like below
 [images/aglite-modules.bmp] .
my directory structure is------------------------------------src
                                                                                     |-site
                                                                                          |--apt
                                                                                          |--resources
                                                                                                  |--images
                                                                                                           |--aglite-modules.bmp
i am getting the eror like below

[WARNING] [latex-sink] Found non-eps figure graphics!
[WARNING] No image aglite-modules.bmp found in the class loader. Try to call setClassLoader(ClassLoader) before.
Exception in thread "main" ExceptionConverter: java.net.MalformedURLException: The URL of the image is missing.

If i am keeping the images in the same drectory where APT lies then also i am encountering with same error.

But if I am generating the sites then i am able to see those images in the generated html page.
only in case of pdf/rtf this image is not working and throwing those errors.

Thanks
Debasis



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Images are not coming while generating the pdf/rtf book

Lukas Theussl-4

http://jira.codehaus.org/browse/DOXIA-355

Will be fixed in the next release...

-Lukas


Mr Debasis wrote:

> Hi All,
>  I am using Doxia plugin to generate the user guide in pdf format.
>  I have written the file in APT format.I am executing the render-book goals
> and generating the pdf.
>  
> The images are not coming i have written in the APT like below
>  [images/aglite-modules.bmp] .
> my directory structure is------------------------------------src
>                                                                                    
> |-site
>                                                                                          
> |--apt
>                                                                                          
> |--resources
>                                                                                                  
> |--images
>                                                                                                          
> |--aglite-modules.bmp
> i am getting the eror like below
>
> [WARNING] [latex-sink] Found non-eps figure graphics!
> [WARNING] No image aglite-modules.bmp found in the class loader. Try to call
> setClassLoader(ClassLoader) before.
> Exception in thread "main" ExceptionConverter:
> java.net.MalformedURLException: The URL of the image is missing.
>
> If i am keeping the images in the same drectory where APT lies then also i
> am encountering with same error.
>
> But if I am generating the sites then i am able to see those images in the
> generated html page.
> only in case of pdf/rtf this image is not working and throwing those errors.
>
> Thanks
> Debasis
>
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Images are not coming while generating the pdf/rtf book

DebasisM
Hi Lukas,
 Thanks for your reply.i had got got a work around from the forum only.i,e giving the class path in mvn.bat file like below

   @REM Start MAVEN2

:runm2

%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath ./src/site/resources;
%CLASSWORLDS_JAR%
"-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
Lukas Theussl-4 wrote
but after giving that i am unable to run i am encountering with the below errors
 
 Exception in thread "main" java.lang.NoClassDefFoundError: D:\Programs\apache-ma
ven-2/1/0\bin\//\boot\classworlds-1/1/jar
Caused by: java.lang.ClassNotFoundException: D:\Programs\apache-maven-2.1.0\bin\
..\boot\classworlds-1.1.jar
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

is there any other way to give the classpath in the mvn.bat file

Thanks
Debasis

http://jira.codehaus.org/browse/DOXIA-355

Will be fixed in the next release...

-Lukas


Mr Debasis wrote:
> Hi All,
>  I am using Doxia plugin to generate the user guide in pdf format.
>  I have written the file in APT format.I am executing the render-book goals
> and generating the pdf.
>  
> The images are not coming i have written in the APT like below
>  [images/aglite-modules.bmp] .
> my directory structure is------------------------------------src
>                                                                                    
> |-site
>                                                                                          
> |--apt
>                                                                                          
> |--resources
>                                                                                                  
> |--images
>                                                                                                          
> |--aglite-modules.bmp
> i am getting the eror like below
>
> [WARNING] [latex-sink] Found non-eps figure graphics!
> [WARNING] No image aglite-modules.bmp found in the class loader. Try to call
> setClassLoader(ClassLoader) before.
> Exception in thread "main" ExceptionConverter:
> java.net.MalformedURLException: The URL of the image is missing.
>
> If i am keeping the images in the same drectory where APT lies then also i
> am encountering with same error.
>
> But if I am generating the sites then i am able to see those images in the
> generated html page.
> only in case of pdf/rtf this image is not working and throwing those errors.
>
> Thanks
> Debasis
>
>
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Images are not coming while generating the pdf/rtf book

Lukas Theussl-4

Well, whoever gave you that advice should come up with a solution,... I have no
idea what you are doing there.

-Lukas


Mr Debasis wrote:

> Hi Lukas,
>  Thanks for your reply.i had got got a work around from the forum only.i,e
> giving the class path in mvn.bat file like below
>
>    @REM Start MAVEN2
>
> :runm2
>
> %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath ./src/site/resources;
> %CLASSWORLDS_JAR%
> "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
> org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
>
> Lukas Theussl-4 wrote:
>>
>> but after giving that i am unable to run i am encountering with the below
>> errors
>>  
>>  Exception in thread "main" java.lang.NoClassDefFoundError:
>> D:\Programs\apache-ma
>> ven-2/1/0\bin\//\boot\classworlds-1/1/jar
>> Caused by: java.lang.ClassNotFoundException:
>> D:\Programs\apache-maven-2.1.0\bin\
>> ..\boot\classworlds-1.1.jar
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>
>> is there any other way to give the classpath in the mvn.bat file
>>
>> Thanks
>> Debasis
>>
>> http://jira.codehaus.org/browse/DOXIA-355
>>
>> Will be fixed in the next release...
>>
>> -Lukas
>>
>>
>> Mr Debasis wrote:
>>> Hi All,
>>>  I am using Doxia plugin to generate the user guide in pdf format.
>>>  I have written the file in APT format.I am executing the render-book
>>> goals
>>> and generating the pdf.
>>>  
>>> The images are not coming i have written in the APT like below
>>>  [images/aglite-modules.bmp] .
>>> my directory structure is------------------------------------src
>>>                                                                                    
>>> |-site
>>>                                                                                          
>>> |--apt
>>>                                                                                          
>>> |--resources
>>>                                                                                                  
>>> |--images
>>>                                                                                                          
>>> |--aglite-modules.bmp
>>> i am getting the eror like below
>>>
>>> [WARNING] [latex-sink] Found non-eps figure graphics!
>>> [WARNING] No image aglite-modules.bmp found in the class loader. Try to
>>> call
>>> setClassLoader(ClassLoader) before.
>>> Exception in thread "main" ExceptionConverter:
>>> java.net.MalformedURLException: The URL of the image is missing.
>>>
>>> If i am keeping the images in the same drectory where APT lies then also
>>> i
>>> am encountering with same error.
>>>
>>> But if I am generating the sites then i am able to see those images in
>>> the
>>> generated html page.
>>> only in case of pdf/rtf this image is not working and throwing those
>>> errors.
>>>
>>> Thanks
>>> Debasis
>>>
>>>
>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Images are not coming while generating the pdf/rtf book

DebasisM
Thanks Lukas .Please refer to the below link which talks about the idea given by you
 http://jira.codehaus.org/browse/DOXIA-354

Thia is also not working having the same error like
 [WARNING] No image ../images/aglite-modules.bmp found in the class loader. Try to call setClassLoader(ClassLoader) before.
Exception in thread "main" ExceptionConverter: java.net.MalformedURLException: The URL of the image is missing.

Can I create a single html file which can contain all the chapters of the book.is it possible?

Thanks
Debasis
 
Lukas Theussl-4 wrote
Well, whoever gave you that advice should come up with a solution,... I have no
idea what you are doing there.

-Lukas


Mr Debasis wrote:
> Hi Lukas,
>  Thanks for your reply.i had got got a work around from the forum only.i,e
> giving the class path in mvn.bat file like below
>
>    @REM Start MAVEN2
>
> :runm2
>
> %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath ./src/site/resources;
> %CLASSWORLDS_JAR%
> "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
> org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
>
> Lukas Theussl-4 wrote:
>>
>> but after giving that i am unable to run i am encountering with the below
>> errors
>>  
>>  Exception in thread "main" java.lang.NoClassDefFoundError:
>> D:\Programs\apache-ma
>> ven-2/1/0\bin\//\boot\classworlds-1/1/jar
>> Caused by: java.lang.ClassNotFoundException:
>> D:\Programs\apache-maven-2.1.0\bin\
>> ..\boot\classworlds-1.1.jar
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>
>> is there any other way to give the classpath in the mvn.bat file
>>
>> Thanks
>> Debasis
>>
>> http://jira.codehaus.org/browse/DOXIA-355
>>
>> Will be fixed in the next release...
>>
>> -Lukas
>>
>>
>> Mr Debasis wrote:
>>> Hi All,
>>>  I am using Doxia plugin to generate the user guide in pdf format.
>>>  I have written the file in APT format.I am executing the render-book
>>> goals
>>> and generating the pdf.
>>>  
>>> The images are not coming i have written in the APT like below
>>>  [images/aglite-modules.bmp] .
>>> my directory structure is------------------------------------src
>>>                                                                                    
>>> |-site
>>>                                                                                          
>>> |--apt
>>>                                                                                          
>>> |--resources
>>>                                                                                                  
>>> |--images
>>>                                                                                                          
>>> |--aglite-modules.bmp
>>> i am getting the eror like below
>>>
>>> [WARNING] [latex-sink] Found non-eps figure graphics!
>>> [WARNING] No image aglite-modules.bmp found in the class loader. Try to
>>> call
>>> setClassLoader(ClassLoader) before.
>>> Exception in thread "main" ExceptionConverter:
>>> java.net.MalformedURLException: The URL of the image is missing.
>>>
>>> If i am keeping the images in the same drectory where APT lies then also
>>> i
>>> am encountering with same error.
>>>
>>> But if I am generating the sites then i am able to see those images in
>>> the
>>> generated html page.
>>> only in case of pdf/rtf this image is not working and throwing those
>>> errors.
>>>
>>> Thanks
>>> Debasis
>>>
>>>
>>>
>>>
>>
>
Loading...