내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

AEM 6.0 SVG in PDF generation

Avatar

이전 커뮤니티 멤버

I'm trying to add a SVG graph into a PDF file using the OOTB PDF generation of AEM, but it raises this exception:

java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal

  at java.lang.ClassLoader.defineClass1(Native Method)

  at java.lang.ClassLoader.defineClass(Unknown Source)

  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2297)

  at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1519)

  at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)

  at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1973)

  at java.lang.ClassLoader.loadClass(Unknown Source)

  at org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(SVGDOMImplementation.java:149)

  at org.apache.fop.fo.extensions.svg.SVGDOMContentHandlerFactory$Handler.startElement(SVGDOMContentHandlerFactory.java:128)

  at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:308)

  at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)

  at org.apache.cocoon.xml.sax.AbstractSAXPipe.startElement(AbstractSAXPipe.java:97)

  at com.day.cq.wcm.webservicesupport.impl.rewriter.ServicesPingTransformer.startElement(ServicesPingTransformer.java:142)

  at org.apache.cocoon.xml.sax.AbstractSAXPipe.startElement(AbstractSAXPipe.java:97)

  at com.adobe.cq.media.publishing.dps.impl.rewriter.PathRewriterTransformer.startElement(PathRewriterTransformer.java:133)

  at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(Unknown Source)

  at com.sun.org.apache.xml.internal.serializer.ToSAXHandler.flushPending(Unknown Source)

  at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startElement(Unknown Source)

  at com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.startElement(Unknown Source)

  .....

As I could see, the missing class is already defined in the bundle com.day.commons.osgi.wrapper.fop (the wrapper for apache FOP).

There are any kind of workaround to fix that?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 3

Hi,

I think you would be better off posting this question to AEM Forms Forum. This forum has to do with questions about Adobe Digital Classroom.

Regards

Gary

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Level 3

Hi,

I think you would be better off posting this question to AEM Forms Forum. This forum has to do with questions about Adobe Digital Classroom.

Regards

Gary

Avatar

이전 커뮤니티 멤버