Hi Michael,

J.Pietschmann is right, I also had trouble with the batik and fop jars.
The jar-Files I use now:

fop.jar (V20.4) 1.694.560 Bytes
batik.jar (from fop V20.4) 2.163.538 Bytes

I'm using: 
cocoon 2.0.3 
tomcat 4.0.4
jdk 1.3.1

under NT 4.0 and Solaris (under Solaris I use the PJA-Toolkit because I
have no X-Windows on this server)

If you use this jars and you get no java.lang.NoClassDefFoundError I
guess my original code should work

Hope this helps,

Ralph

[EMAIL PROTECTED] wrote:
> 
> Ralph, many thanks, this is, what I expected. If it works, I only have to
> add "svg:" to the graphics tag. But it currently doesn't work. The result
> is a broken PDF output - only about the 10 first bytes from the PDF. I
> played a bit with your code and I found, that the line "<svg:svg ..."
> (closed with the matching end tag) killed the PDF creation.
> 
>  <fo:block>
>    <fo:instream-foreign-object>
>      <svg:svg width="150mm" height="10mm">
>      </svg:svg>
>    </fo:instream-foreign-object>
>  </fo:block>
> 
> As you can see, I replaced the "800.0" and "8.0" values, because I got a
> error message about a missing transformation parameter or so. After doing
> this, the last log entry in "catalina.out", that seems to be written in
> the case of the "svg:svg" block, is:
> 
> java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext
> 
> I wonder about this, because the SVG-Demo from Cocoon works fine and
> contains similar code as yours.
> 
> Do I have to reconfigure anything or install something? I installed the
> normal Cocoon 2.0.3 package and Tomcat 4.1.8 on a Linux box. There is a
> package "batik-all-1.5b2.jar" installed in the cocoon lib-directory. I
> didn't understand what's wrong. I use the J2SDK 1.4.0 from the Sun site ;-
> ).
> 
> Meanwhile, I read some docs about "instream-foreign-object" and found,
> that your code looks 100% correct. So I assume it's my mistake.
> 
> Other messages here in the list are also about
> a "java.lang.NoClassDefFoundError", but for other classes. It looks like a
> typical configuration- oder dependency problem. But I found no solution
> anywhere.
> 
> Any suggestion?
> 
> [EMAIL PROTECTED] wrote at
> Thu, 24 Oct 2002 17:36:21 +0200:
> 
> >Hi,
> >
> >try something like
> >
> > <fo:block>
> >   <fo:instream-foreign-object>
> >     <svg:svg xmlns:svg="http://www.w3.org/2000/svg"; width="800.0"
> >height="8.0">
> >       <svg:g style="stroke:#000000; stroke-width:1.0">
> >         <svg:line x1="2.0" y1="2.0" x2="794.0" y2="2.0"/>
> >       </svg:g>
> >     </svg:svg>
> >   </fo:instream-foreign-object>
> > </fo:block>
> >
> >If you are looking for examples take a look at the batik-project also
> >from apache ( http://xml.apache.org/batik ).
> 
> Michael Fridrich
>

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to