Yes, in the sense that the end result should be that serializer.jar is
present in the distribution. Note that that doesn't mean that the
proper solution is to simply add that as a dependency to the
distribution. The first step should be to try to understand where the
dependency on serializer is lost (could be e.g. a dependency issue in
Rampart).

Andreas

On Mon, Apr 16, 2012 at 06:18, Hiranya Jayathilaka <hiranya...@gmail.com> wrote:
> So the proper solution would be to include the serializer.jar in the
> distribution?
>
> Thanks,
> Hiranya
>
> On Sun, Apr 15, 2012 at 10:42 PM, Andreas Veithen
> <andreas.veit...@gmail.com> wrote:
>>
>> Xalan 2.7.1 normally has a dependency on serializer.jar, but that
>> artifact is not included in the distribution. The probable reason is
>> that the Xalan dependency comes in through Rampart, and Rampart
>> doesn't depend on the original Xalan/Xerces libs. Instead it pulls
>> them from the OpenSAML repository and these versions probably don't
>> have correct POM files.
>>
>> It is possible (although I don't see the reason for this and I didn't
>> verify) that the problem can also be solved by including xml-apis.
>> However, xml-apis contains the JAXP, DOM and SAX APIs and (as I have
>> already explained numerous times) it is not necessary to include these
>> APIs in products that require Java 1.5.
>>
>> Andreas
>>
>> On Sun, Apr 15, 2012 at 18:07, Hiranya Jayathilaka <hiranya...@gmail.com>
>> wrote:
>> > Hi Sadeep,
>> >
>> > This is because we removed the XML APIs library from the distribution. I
>> > brought this up at [1]. I think we'll have to add this library back to
>> > the
>> > distribution. We might have to get Neethi fixed to properly use the DOM
>> > API.
>> >
>> > Thanks,
>> > Hiranya
>> >
>> > [1] -
>> >
>> > http://mail-archives.apache.org/mod_mbox/synapse-dev/201202.mbox/%3ccageidj6pvzz4jrj3vll4fwl3bapylkhrepbg7tum2o5quxu...@mail.gmail.com%3E
>> >
>> >
>> > On Sun, Apr 15, 2012 at 12:48 PM, Sadeep Jayasumana
>> > <gayansad...@gmail.com>
>> > wrote:
>> >>
>> >> Hi,
>> >>
>> >> I'm running XSLT mediator sample (sample 8) on a fresh build from the
>> >> trunk and getting the following exception. Any idea about what's going
>> >> on?
>> >>
>> >> 2012-04-15 17:14:43,453 [-] [HttpServerWorker-1] ERROR NativeWorkerPool
>> >> Uncaught exception
>> >> java.lang.NoClassDefFoundError:
>> >> org/apache/xml/serializer/ExtendedContentHandler
>> >> at org.apache.xalan.processor.XSLTSchema.build(XSLTSchema.java:325)
>> >> at org.apache.xalan.processor.XSLTSchema.<init>(XSLTSchema.java:72)
>> >> at
>> >>
>> >> org.apache.xalan.processor.StylesheetHandler.<init>(StylesheetHandler.java:1290)
>> >> at
>> >>
>> >> org.apache.xalan.processor.TransformerFactoryImpl.newTemplatesHandler(TransformerFactoryImpl.java:376)
>> >> at
>> >>
>> >> org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:867)
>> >> at
>> >>
>> >> org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:379)
>> >> at
>> >>
>> >> org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:232)
>> >> at
>> >>
>> >> org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:191)
>> >> at
>> >>
>> >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
>> >> at
>> >>
>> >> org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:55)
>> >> at
>> >>
>> >> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60)
>> >> at
>> >>
>> >> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114)
>> >> at
>> >>
>> >> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:188)
>> >> at
>> >>
>> >> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
>> >> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
>> >> at
>> >>
>> >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:176)
>> >> at
>> >>
>> >> org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:454)
>> >> at
>> >>
>> >> org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:280)
>> >> at
>> >>
>> >> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
>> >> at
>> >>
>> >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> >> at
>> >>
>> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> >> at java.lang.Thread.run(Thread.java:680)
>> >> Caused by: java.lang.ClassNotFoundException:
>> >> org.apache.xml.serializer.ExtendedContentHandler
>> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> >> at java.security.AccessController.doPrivileged(Native Method)
>> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> >> ... 22 more
>> >>
>> >>
>> >> Thanks,
>> >> --
>> >>
>> >> Sadeep Jayasumana
>> >>
>> >> Email: gayansad...@gmail.com
>> >>
>> >> Mobile: +61 4 1468 8521
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Hiranya Jayathilaka
>> > Associate Technical Lead;
>> > WSO2 Inc.;  http://wso2.org
>> > E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
>> > Blog: http://techfeast-hiranya.blogspot.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
>> For additional commands, e-mail: dev-h...@synapse.apache.org
>>
>
>
>
> --
> Hiranya Jayathilaka
> Associate Technical Lead;
> WSO2 Inc.;  http://wso2.org
> E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
> Blog: http://techfeast-hiranya.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org

Reply via email to