New DocumentSource violates loader constraints Exception

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

New DocumentSource violates loader constraints Exception

Fefcoweb
I am trying to get new documentsource for XFire-based web service to work in Workbench.  Service is working in Examples project and I got as far as it showing up in drop-down, but when clicking on Process - it throw Exception:

!ENTRY org.carrot2.workbench.core 4 0 2009-06-25 11:14:05.055
!MESSAGE Processing error: java.lang.LinkageError: Class javax/xml/namespace/NamespaceContext violates loader constraints
!STACK 0
org.carrot2.core.ProcessingException: java.lang.LinkageError: Class javax/xml/namespace/NamespaceContext violates loader constraints
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.carrot2.util.ExceptionUtils.wrapAs(ExceptionUtils.java:62)
        at org.carrot2.core.CachingController$CachedProcessingComponent.process(CachingController.java:628)
        at org.carrot2.core.ControllerUtils.performProcessing(ControllerUtils.java:92)
        at org.carrot2.core.ControllerUtils.performProcessing(ControllerUtils.java:135)
        at org.carrot2.core.CachingController.processInternal(CachingController.java:279)
        at org.carrot2.core.CachingController.process(CachingController.java:239)
        at org.carrot2.workbench.core.ui.SearchJob.run(SearchJob.java:75)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.LinkageError: Class javax/xml/namespace/NamespaceContext violates loader constraints
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:165)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:554)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:524)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:455)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:443)
        at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:423)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:193)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:368)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:444)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
        at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
        at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at org.codehaus.xfire.util.NamespaceHelper.getUniquePrefix(NamespaceHelper.java:154)
        at org.codehaus.xfire.service.binding.WrappedBinding.writeStartElement(WrappedBinding.java:105)
        at org.codehaus.xfire.service.binding.WrappedBinding.writeMessage(WrappedBinding.java:78)
        at org.codehaus.xfire.soap.SoapSerializer.writeMessage(SoapSerializer.java:80)
        at org.codehaus.xfire.transport.http.HttpChannel.writeWithoutAttachments(HttpChannel.java:56)
        at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.getByteArrayRequestEntity(CommonsHttpMessageSender.java:422)
        at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:360)
        at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123)
        at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
        at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
        at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
        at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
        at org.codehaus.xfire.client.Client.invoke(Client.java:336)
        at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
        at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
        at $Proxy23.search(Unknown Source)
        at gov.fda.es.service.ESDocumentSource.process(ESDocumentSource.java:82)
        at org.carrot2.core.ControllerUtils.performProcessing(ControllerUtils.java:92)
        at org.carrot2.core.ControllerUtils.performProcessing(ControllerUtils.java:135)
        at org.carrot2.core.CachingController$CachedDataFactory.createEntry(CachingController.java:776)
        at net.sf.ehcache.constructs.blocking.SelfPopulatingCache.get(SelfPopulatingCache.java:74)
        at org.carrot2.core.CachingController$CachedProcessingComponent.process(CachingController.java:608)
        ... 6 more
Reply | Threaded
Open this post in threaded view
|

Re: New DocumentSource violates loader constraints Exception

Dawid Weiss-2

Hello. Apologies for the delay, I missed your e-mail somehow.

> !MESSAGE Processing error: java.lang.LinkageError: Class
> javax/xml/namespace/NamespaceContext violates loader constraints

Looks like a conflict between loaded classes. Something to do with Eclipse's
class loading mechanism. Can you send me the MANIFEST.MF of your plugin for
analysis (or the entire code, if this is possible). Feel free to use my private
e-mail for this if you need to keep it confidential.

Dawid

------------------------------------------------------------------------------
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

RE: [C2-devel] New DocumentSource violates loader constraints Exception

Fefcoweb

Hi David,

 

Hope you can help.  Attached is my manifest, main documentsource code and generated xml.  I really have a lot of jars from XFire implementation of web service, that could be a problem…

 

Thanks,

Sofia Fefer
Enterprise Search Team, OIM, FDA
301-827-4641


From: JIRA [hidden email] (via Nabble) [mailto:[hidden email]]
Sent: Monday, June 29, 2009 3:24 PM
To: Fefer, Sofia*
Subject: Re: [C2-devel] New DocumentSource violates loader constraints Exception

 


Hello. Apologies for the delay, I missed your e-mail somehow.

> !MESSAGE Processing error: java.lang.LinkageError: Class
> javax/xml/namespace/NamespaceContext violates loader constraints

Looks like a conflict between loaded classes. Something to do with Eclipse's
class loading mechanism. Can you send me the MANIFEST.MF of your plugin for
analysis (or the entire code, if this is possible). Feel free to use my private
e-mail for this if you need to keep it confidential.

Dawid

------------------------------------------------------------------------------
_______________________________________________
Carrot2-developers mailing list
Carrot2-developers@...
https://lists.sourceforge.net/lists/listinfo/carrot2-developers


This email is a reply to your post @ http://n2.nabble.com/New-DocumentSource-violates-loader-constraints-Exception-tp3155801p3176524.html
You can reply by email or by visting the link above.

 


ESDocumentSource.java (5K) Download Attachment
gov.fda.es.service.ESDocumentSource.xml (1K) Download Attachment
MANIFEST.MF (28K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New DocumentSource violates loader constraints Exception

Dawid Weiss-2

I don't think you included that attachment.

Fefcoweb wrote:

> Hi David,
>
>  
>
> Hope you can help.  Attached is my manifest, main documentsource code
> and generated xml.  I really have a lot of jars from XFire
> implementation of web service, that could be a problem...
>
>  
>
> Thanks,
>
> Sofia Fefer
> Enterprise Search Team, OIM, FDA
> 301-827-4641
>
> ________________________________
>
> From: JIRA [hidden email] (via Nabble)
> [mailto:[hidden email]]
> Sent: Monday, June 29, 2009 3:24 PM
> To: Fefer, Sofia*
> Subject: Re: [C2-devel] New DocumentSource violates loader constraints
> Exception
>
>  
>
>
> Hello. Apologies for the delay, I missed your e-mail somehow.
>
>> !MESSAGE Processing error: java.lang.LinkageError: Class
>> javax/xml/namespace/NamespaceContext violates loader constraints
>
> Looks like a conflict between loaded classes. Something to do with
> Eclipse's
> class loading mechanism. Can you send me the MANIFEST.MF of your plugin
> for
> analysis (or the entire code, if this is possible). Feel free to use my
> private
> e-mail for this if you need to keep it confidential.
>
> Dawid
>
> ------------------------------------------------------------------------
> ------
> _______________________________________________
> Carrot2-developers mailing list
> Carrot2-developers@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3176524&i=0>  
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>
>
>
> ________________________________
>
> This email is a reply to your post @
> http://n2.nabble.com/New-DocumentSource-violates-loader-constraints-Exce
> ption-tp3155801p3176524.html
> You can reply by email or by visting the link above.
>
>  
>
>
>  
> <?xml version="1.0" encoding="UTF-8"?>
> <component-metadata>
>   <title><![CDATA[This example shows how to implement a simple Carrot2 <code>IDocumentSource</code>]]></title>
>   <attributes class="java.util.LinkedHashMap">
>     <attribute field-name="query">
>       <attribute-metadata>
>         <title><![CDATA[Query to perform]]></title>
>         <label>Query</label>
>         <group>Search query</group>
>         <level>BASIC</level>
>       </attribute-metadata>
>     </attribute>
>     <attribute field-name="libName">
>       <attribute-metadata/>
>     </attribute>
>     <attribute field-name="documents">
>       <attribute-metadata>
>         <title><![CDATA[Documents returned by the search engine/ document retrieval system]]></title>
>         <label>Documents</label>
>         <group>Documents</group>
>       </attribute-metadata>
>     </attribute>
>   </attributes>
> </component-metadata>
>  
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Carrot2-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers

------------------------------------------------------------------------------
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

Re: New DocumentSource violates loader constraints Exception

Fefcoweb
Yes, I did.  I can see attachment, can't you?
Pasting it here:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ES Carrot2 Document Source
Bundle-SymbolicName: org.carrot2.source.escarot2;singleton:=true
Bundle-Version: 0.0.1
Export-Package: com.ibm.wsdl;
  uses:="javax.wsdl.extensions,
   org.w3c.dom,
   javax.wsdl,
   javax.xml.namespace",
 com.ibm.wsdl.extensions;uses:="javax.wsdl.extensions",
 com.ibm.wsdl.extensions.http;
  uses:="javax.wsdl.extensions.http,
   javax.wsdl.extensions,
   org.w3c.dom,
   javax.wsdl,
   javax.xml.namespace",
 com.ibm.wsdl.extensions.mime;
  uses:="javax.wsdl.extensions,
   org.w3c.dom,
   javax.wsdl,
   javax.wsdl.extensions.mime,
   javax.xml.namespace",
 com.ibm.wsdl.extensions.schema;
  uses:="javax.wsdl.xml,
   javax.wsdl.extensions,
   org.w3c.dom,
   javax.wsdl.extensions.schema,
   javax.wsdl,
   javax.xml.namespace",
 com.ibm.wsdl.extensions.soap;
  uses:="javax.wsdl.extensions,
   javax.wsdl.extensions.soap,
   org.w3c.dom,
   javax.wsdl,
   javax.xml.namespace",
 com.ibm.wsdl.extensions.soap12;
  uses:="javax.wsdl.extensions,
   javax.wsdl.extensions.soap12,
   org.w3c.dom,
   javax.wsdl,
   javax.xml.namespace",
 com.ibm.wsdl.factory;
  uses:="javax.wsdl.factory,
   javax.wsdl.xml,
   javax.wsdl.extensions,
   javax.wsdl",
 com.ibm.wsdl.util,
 com.ibm.wsdl.util.xml;uses:="org.w3c.dom,javax.xml.namespace,javax.wsdl",
 com.ibm.wsdl.xml;
  uses:="javax.wsdl.factory,
   javax.wsdl.xml,
   javax.wsdl.extensions,
   org.w3c.dom,
   org.xml.sax,
   javax.wsdl",
 gov.fda.es.service;uses:="org.carrot2.core",
 javax.wsdl;uses:="javax.wsdl.extensions,org.w3c.dom,javax.xml.namespace",
 javax.wsdl.extensions;uses:="org.w3c.dom,javax.wsdl,javax.xml.namespace",
 javax.wsdl.extensions.http;uses:="javax.wsdl.extensions",
 javax.wsdl.extensions.mime;uses:="javax.wsdl.extensions",
 javax.wsdl.extensions.schema;uses:="javax.wsdl.extensions,org.w3c.dom",
 javax.wsdl.extensions.soap;uses:="javax.wsdl.extensions,javax.xml.namespace",
 javax.wsdl.extensions.soap12;uses:="javax.wsdl.extensions,javax.xml.namespace",
 javax.wsdl.factory;uses:="javax.wsdl.xml,javax.wsdl.extensions,javax.wsdl",
 javax.wsdl.xml;
  uses:="javax.wsdl.extensions,
   org.w3c.dom,
   javax.wsdl,
   org.xml.sax",
 javax.xml.bind;
  uses:="javax.xml.bind.annotation.adapters,
   org.w3c.dom,
   javax.xml.namespace,
   org.xml.sax,
   javax.xml.bind.attachment,
   javax.xml.stream,
   javax.xml.transform,
   javax.xml.validation",
 javax.xml.bind.annotation;
  uses:="javax.xml.transform,
   javax.xml.parsers,
   javax.xml.transform.dom,
   javax.xml.bind,
   org.w3c.dom",
 javax.xml.bind.annotation.adapters,
 javax.xml.bind.attachment;uses:="javax.activation",
 javax.xml.bind.helpers;
  uses:="javax.xml.bind.attachment,
   javax.xml.stream,
   javax.xml.transform,
   javax.xml.bind.annotation.adapters,
   javax.xml.validation,
   javax.xml.bind,
   org.w3c.dom,
   org.xml.sax",
 javax.xml.bind.util;uses:="javax.xml.transform.sax,javax.xml.bind,org.xml.sax",
 org.codehaus.xfire;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.client,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.handler,
   org.codehaus.xfire.service",
 org.codehaus.xfire.addressing;
  uses:="org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   org.jdom,
   org.jdom.filter,
   org.codehaus.xfire.handler,
   org.codehaus.xfire.service,
   javax.xml.namespace",
 org.codehaus.xfire.aegis;
  uses:="org.codehaus.xfire.wsdl,
   org.apache.commons.logging,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace,
   javax.xml.stream,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.test,
   org.codehaus.xfire.service",
 org.codehaus.xfire.aegis.jdom;
  uses:="javax.xml.stream,
   org.codehaus.xfire.aegis,
   org.jdom,
   javax.xml.namespace",
 org.codehaus.xfire.aegis.stax;
  uses:="javax.xml.stream,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire.util.stax,
   javax.xml.namespace",
 org.codehaus.xfire.aegis.type;
  uses:="org.codehaus.xfire.wsdl,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   org.jdom,
   javax.xml.namespace",
 org.codehaus.xfire.aegis.type.basic;
  uses:="org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace",
 org.codehaus.xfire.aegis.type.collection;
  uses:="org.codehaus.xfire.aegis.type.basic,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace",
 org.codehaus.xfire.aegis.type.java5;
  uses:="org.codehaus.xfire.aegis,
   org.codehaus.xfire.aegis.type.basic,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace",
 org.codehaus.xfire.aegis.type.mtom;
  uses:="org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   org.codehaus.xfire.attachments,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace",
 org.codehaus.xfire.aegis.type.xml;
  uses:="javax.xml.stream,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   javax.xml.transform,
   org.codehaus.xfire.aegis.type,
   javax.xml.parsers,
   javanet.staxutils,
   org.xml.sax",
 org.codehaus.xfire.annotations;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.annotations.soap,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace,
   org.codehaus.xfire,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service",
 org.codehaus.xfire.annotations.commons;uses:="org.codehaus.xfire.annotations.soap,org.codehaus.xfire.annotations",
 org.codehaus.xfire.annotations.commons.soap;uses:="org.codehaus.xfire.annotations.soap",
 org.codehaus.xfire.annotations.jsr181;uses:="org.codehaus.xfire.annotations.soap,org.codehaus.xfire.annotations",
 org.codehaus.xfire.annotations.soap,
 org.codehaus.xfire.attachments;
  uses:="javax.activation,
   org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   javax.mail.internet,
   org.codehaus.xfire.util",
 org.codehaus.xfire.castor;
  uses:="org.apache.commons.logging,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   org.exolab.castor.mapping,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace",
 org.codehaus.xfire.client;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.exchange,
   javax.wsdl,
   javax.xml.stream,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.handler,
   org.codehaus.xfire.service,
   org.codehaus.xfire.fault",
 org.codehaus.xfire.exchange;
  uses:="org.codehaus.xfire.transport,
   javax.xml.stream,
   org.codehaus.xfire.soap,
   org.codehaus.xfire,
   org.codehaus.xfire.attachments,
   org.jdom,
   org.codehaus.xfire.service",
 org.codehaus.xfire.fault;
  uses:="javax.xml.stream,
   org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   org.jdom,
   org.codehaus.xfire.handler,
   javax.xml.namespace",
 org.codehaus.xfire.gen;
  uses:="com.sun.codemodel,
   org.apache.tools.ant.taskdefs,
   com.sun.tools.xjc.api,
   org.apache.tools.ant,
   javax.xml.namespace,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.service.binding,
   javax.net.ssl,
   org.codehaus.xfire.service",
 org.codehaus.xfire.gen.documentation,
 org.codehaus.xfire.gen.jaxb;
  uses:="com.sun.codemodel,
   org.codehaus.xfire.gen,
   org.jdom,
   org.codehaus.xfire.service.binding,
   com.sun.tools.xjc.api,
   org.codehaus.xfire.service,
   javax.xml.namespace,
   org.xml.sax",
 org.codehaus.xfire.gen.jsr181;
  uses:="org.codehaus.xfire.gen,
   com.sun.codemodel,
   org.jdom,
   org.codehaus.xfire.service,
   javax.xml.namespace",
 org.codehaus.xfire.gen.xmlbeans;
  uses:="com.sun.codemodel,
   org.codehaus.xfire.gen,
   org.apache.xmlbeans,
   org.jdom,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service,
   javax.xml.namespace",
 org.codehaus.xfire.handler;
  uses:="org.codehaus.xfire,
   org.codehaus.xfire.service,
   org.codehaus.xfire.fault,
   javax.xml.namespace",
 org.codehaus.xfire.jaxb;
  uses:="javax.xml.stream,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   org.codehaus.xfire.aegis.type,
   javanet.staxutils,
   javax.xml.transform.sax,
   javax.xml.bind,
   javax.xml.namespace",
 org.codehaus.xfire.jaxb2;
  uses:="org.codehaus.xfire.wsdl,
   org.codehaus.xfire.transport,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace,
   javax.activation,
   javax.xml.bind.attachment,
   org.codehaus.xfire.wsdl11.builder,
   org.codehaus.xfire,
   javax.xml.transform,
   org.jdom,
   javax.xml.bind,
   org.codehaus.xfire.service,
   org.codehaus.xfire.annotations",
 org.codehaus.xfire.jaxws;
  uses:="org.codehaus.xfire.transport,
   javax.xml.ws.spi,
   org.codehaus.xfire.client,
   org.codehaus.xfire.exchange,
   javax.xml.namespace,
   javax.xml.ws.handler,
   javax.xml.stream,
   org.codehaus.xfire.soap,
   org.codehaus.xfire,
   javax.xml.transform,
   org.codehaus.xfire.service.binding,
   javax.xml.bind,
   org.codehaus.xfire.jaxws.binding,
   org.codehaus.xfire.annotations,
   javax.xml.ws,
   org.codehaus.xfire.service",
 org.codehaus.xfire.jaxws.binding;
  uses:="javax.xml.ws.http,
   org.codehaus.xfire.transport,
   javax.xml.soap,
   javax.xml.ws,
   javax.xml.ws.soap",
 org.codehaus.xfire.jaxws.gen;
  uses:="org.codehaus.xfire.gen,
   com.sun.codemodel,
   org.codehaus.xfire.gen.jsr181,
   org.codehaus.xfire.service,
   javax.xml.namespace",
 org.codehaus.xfire.jaxws.handler;
  uses:="javax.xml.ws.handler.soap,
   org.codehaus.xfire.jaxws,
   javax.xml.namespace,
   javax.xml.ws.handler,
   org.codehaus.xfire,
   javax.xml.soap,
   org.codehaus.xfire.handler,
   javax.xml.bind,
   javax.xml.ws,
   org.codehaus.xfire.service",
 org.codehaus.xfire.jaxws.type;
  uses:="org.codehaus.xfire.aegis.type.basic,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire.aegis.type.java5,
   org.codehaus.xfire,
   org.codehaus.xfire.aegis.type",
 org.codehaus.xfire.jibx;
  uses:="org.codehaus.xfire.transport,
   javax.xml.stream,
   org.codehaus.xfire.aegis,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.aegis.type,
   org.codehaus.xfire.service.binding,
   javax.xml.namespace",
 org.codehaus.xfire.loom;
  uses:="org.codehaus.xfire.transport,
   org.apache.avalon.framework.configuration,
   org.apache.avalon.framework.logger,
   org.codehaus.xfire.aegis.type,
   org.apache.avalon.framework.activity,
   javax.xml.namespace,
   javax.wsdl,
   org.codehaus.xfire,
   org.codehaus.xfire.transport.http,
   org.apache.avalon.phoenix,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service.invoker,
   org.apache.avalon.framework.service,
   org.codehaus.xfire.service",
 org.codehaus.xfire.loom.transport;uses:="org.codehaus.xfire.transport,org.apache.avalon.framework.activity",
 org.codehaus.xfire.loom.type;uses:="org.apache.avalon.framework.configuration,org.codehaus.xfire.aegis.type,org.apache.avalon.framework.logger",
 org.codehaus.xfire.picocontainer;
  uses:="org.codehaus.xfire.transport,
   org.picocontainer,
   org.apache.commons.logging,
   org.codehaus.xfire.service.binding,
   org.picocontainer.defaults,
   org.codehaus.xfire.service.invoker,
   org.codehaus.xfire.service,
   javax.xml.namespace",
 org.codehaus.xfire.picocontainer.test;uses:="org.picocontainer,org.codehaus.xfire.test,org.codehaus.xfire.service",
 org.codehaus.xfire.picocontainer.util;uses:="org.picocontainer.defaults,org.codehaus.xfire.util.factory",
 org.codehaus.xfire.plexus;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.wsdl,
   org.codehaus.plexus.personality.plexus.lifecycle.phase,
   org.codehaus.plexus,
   javax.xml.stream,
   org.codehaus.xfire,
   org.codehaus.xfire.transport.http,
   org.jdom,
   org.codehaus.plexus.logging,
   org.codehaus.xfire.util.factory,
   org.codehaus.xfire.service",
 org.codehaus.xfire.plexus.config;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.plexus.configuration,
   org.codehaus.xfire.plexus,
   org.codehaus.xfire,
   org.codehaus.xfire.aegis.type,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.handler,
   org.codehaus.xfire.service,
   org.codehaus.plexus.personality.plexus.lifecycle.phase",
 org.codehaus.xfire.plexus.transport;uses:="org.codehaus.xfire.transport,org.codehaus.plexus.personality.plexus.lifecycle.phase",
 org.codehaus.xfire.plexus.transport.xmpp;uses:="org.codehaus.xfire.transport,org.codehaus.xfire,org.codehaus.plexus.personality.plexus.lifecycle.phase",
 org.codehaus.xfire.plexus.type;
  uses:="org.codehaus.plexus.configuration,
   org.codehaus.xfire.aegis.type,
   org.codehaus.plexus.logging,
   org.codehaus.plexus.personality.plexus.lifecycle.phase",
 org.codehaus.xfire.security.wss4j;
  uses:="org.apache.commons.logging,
   org.codehaus.xfire,
   org.codehaus.xfire.handler,
   org.apache.ws.security.handler,
   org.codehaus.xfire.fault,
   javax.xml.namespace",
 org.codehaus.xfire.security.wss4j.crypto;uses:="org.apache.ws.security.components.crypto",
 org.codehaus.xfire.server,
 org.codehaus.xfire.server.http;uses:="org.mortbay.jetty,org.codehaus.xfire,org.codehaus.xfire.server",
 org.codehaus.xfire.service;
  uses:="org.codehaus.xfire.service.event,
   org.codehaus.xfire.wsdl,
   org.codehaus.xfire.exchange,
   javax.xml.namespace,
   javax.wsdl,
   org.codehaus.xfire.wsdl11.builder,
   org.codehaus.xfire,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service.invoker,
   org.codehaus.xfire.handler",
 org.codehaus.xfire.service.binding;
  uses:="org.codehaus.xfire.wsdl,
   org.codehaus.xfire.transport,
   org.apache.commons.logging,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.service.documentation,
   javax.wsdl,
   javax.xml.namespace,
   org.codehaus.xfire.wsdl11.builder,
   javax.xml.stream,
   org.codehaus.xfire.soap,
   org.codehaus.xfire,
   org.codehaus.xfire.service.invoker,
   org.codehaus.xfire.handler,
   org.codehaus.xfire.service",
 org.codehaus.xfire.service.documentation;uses:="org.apache.commons.logging,org.jdom,org.codehaus.xfire.service",
 org.codehaus.xfire.service.event;uses:="org.codehaus.xfire.service",
 org.codehaus.xfire.service.invoker;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire,
   org.codehaus.xfire.service,
   org.codehaus.xfire.util.factory",
 org.codehaus.xfire.soap;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.exchange,
   javax.wsdl.extensions.soap,
   javax.xml.namespace,
   javax.wsdl,
   org.codehaus.xfire.wsdl11.builder,
   javax.xml.stream,
   org.codehaus.xfire,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service",
 org.codehaus.xfire.soap.handler;
  uses:="javax.xml.stream,
   org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.handler,
   javax.xml.namespace",
 org.codehaus.xfire.spring;
  uses:="org.codehaus.xfire.aegis,
   org.springframework.context.support,
   org.springframework.context,
   org.apache.xbean.spring.context,
   org.springframework.beans.factory.config,
   org.springframework.beans.factory.support,
   javax.servlet,
   org.codehaus.xfire,
   org.codehaus.xfire.transport.http,
   org.codehaus.xfire.service.invoker,
   org.codehaus.xfire.service,
   org.codehaus.xfire.annotations,
   org.springframework.beans.factory",
 org.codehaus.xfire.spring.config;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire,
   org.springframework.context,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service,
   org.springframework.beans.factory,
   javax.xml.namespace",
 org.codehaus.xfire.spring.editors;uses:="org.codehaus.xfire.transport",
 org.codehaus.xfire.spring.remoting;
  uses:="org.codehaus.xfire.client,
   org.aopalliance.intercept,
   org.springframework.web.servlet,
   org.codehaus.xfire.aegis.type,
   org.springframework.web.context,
   javax.xml.namespace,
   javax.wsdl,
   org.springframework.web.servlet.mvc,
   javax.servlet,
   org.springframework.remoting,
   org.codehaus.xfire,
   org.codehaus.xfire.transport.http,
   org.codehaus.xfire.spring,
   org.springframework.web.servlet.handler,
   org.codehaus.xfire.annotations,
   org.codehaus.xfire.service,
   javax.servlet.http,
   org.springframework.beans.factory",
 org.codehaus.xfire.test;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.wsdl,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.client,
   com.meterware.httpunit,
   org.jdom.xpath,
   javax.xml.stream,
   junit.framework,
   org.codehaus.xfire,
   com.meterware.servletunit,
   org.jdom,
   org.codehaus.xfire.service",
 org.codehaus.xfire.transport;
  uses:="org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.handler,
   org.codehaus.xfire.service",
 org.codehaus.xfire.transport.dead;uses:="org.codehaus.xfire.transport,org.codehaus.xfire,org.codehaus.xfire.exchange",
 org.codehaus.xfire.transport.http;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.exchange,
   org.apache.xbean.spring.context,
   org.codehaus.xfire.wsdl11,
   org.apache.commons.httpclient,
   org.apache.commons.httpclient.protocol,
   javax.servlet,
   org.apache.commons.httpclient.methods,
   org.codehaus.xfire.soap,
   org.codehaus.xfire,
   org.apache.commons.httpclient.params,
   javax.net.ssl,
   org.codehaus.xfire.handler,
   org.springframework.web.context.support,
   org.codehaus.xfire.service,
   javax.servlet.http",
 org.codehaus.xfire.transport.jms;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.soap,
   org.codehaus.xfire,
   javax.jms,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.service,
   org.codehaus.xfire.wsdl11",
 org.codehaus.xfire.transport.local;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.soap,
   org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.service",
 org.codehaus.xfire.util;
  uses:="org.codehaus.xfire.exchange,
   javax.xml.parsers,
   org.w3c.dom,
   javax.xml.namespace,
   org.xml.sax,
   javax.activation,
   javax.xml.stream,
   org.codehaus.xfire.util.stax,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.handler",
 org.codehaus.xfire.util.date,
 org.codehaus.xfire.util.dom;
  uses:="javax.xml.stream,
   org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   org.codehaus.xfire.handler",
 org.codehaus.xfire.util.factory,
 org.codehaus.xfire.util.jdom;
  uses:="org.codehaus.xfire.transport,
   javax.xml.stream,
   org.codehaus.xfire,
   org.codehaus.xfire.exchange,
   org.jdom",
 org.codehaus.xfire.util.stax;
  uses:="javax.xml.stream,
   org.jdom,
   javax.xml.parsers,
   org.w3c.dom,
   javax.xml.namespace",
 org.codehaus.xfire.wsdl;
  uses:="org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.service,
   javax.xml.namespace",
 org.codehaus.xfire.wsdl11;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.wsdl,
   javax.wsdl.xml,
   org.codehaus.xfire.service,
   org.xml.sax,
   javax.wsdl",
 org.codehaus.xfire.wsdl11.builder;
  uses:="org.codehaus.xfire.wsdl,
   org.codehaus.xfire.transport,
   javax.wsdl.extensions,
   org.jdom,
   org.w3c.dom,
   org.codehaus.xfire.service,
   javax.wsdl,
   javax.xml.namespace",
 org.codehaus.xfire.wsdl11.parser;
  uses:="org.codehaus.xfire.transport,
   org.apache.ws.commons.schema,
   org.apache.ws.commons.schema.resolver,
   javax.wsdl.extensions.soap,
   org.w3c.dom,
   javax.wsdl,
   org.xml.sax,
   org.codehaus.xfire.soap,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service",
 org.codehaus.xfire.xmlbeans;
  uses:="org.codehaus.xfire.wsdl,
   org.codehaus.xfire.transport,
   org.codehaus.xfire.aegis,
   org.apache.xmlbeans,
   org.codehaus.xfire.aegis.type,
   javax.xml.namespace,
   org.codehaus.xfire.wsdl11.builder,
   org.codehaus.xfire,
   org.jdom,
   org.codehaus.xfire.service.binding,
   org.codehaus.xfire.service",
 org.codehaus.xfire.xmpp;
  uses:="org.codehaus.xfire.transport,
   org.codehaus.xfire.exchange,
   org.jivesoftware.smack.packet,
   org.xmlpull.v1,
   org.codehaus.xfire.wsdl11,
   javax.xml.namespace,
   javax.xml.stream,
   org.codehaus.xfire.soap,
   org.codehaus.xfire,
   org.jivesoftware.smack,
   org.jdom,
   org.jivesoftware.smack.provider,
   org.codehaus.xfire.handler,
   org.codehaus.xfire.service"
Require-Bundle: org.carrot2.core,
 org.carrot2.util.common
Bundle-ClassPath: META-INF/,
 .,
 eslib/activation-1.1.jar,
 eslib/bcprov-jdk15-133.jar,
 eslib/commons-attributes-api-2.1.jar,
 eslib/commons-beanutils-1.7.0.jar,
 eslib/commons-codec-1.3.jar,
 eslib/commons-discovery-0.2.jar,
 eslib/commons-httpclient-3.0.jar,
 eslib/commons-logging-1.0.4.jar,
 eslib/jaxb-api-2.0.jar,
 eslib/jaxb-impl-2.0.1.jar,
 eslib/jaxb-xjc-2.0.1.jar,
 eslib/jaxen-1.1-beta-9.jar,
 eslib/jaxws-api-2.0.jar,
 eslib/jdom-1.0.jar,
 eslib/jetty-6.1.2rc0.jar,
 eslib/jetty-util-6.1.2rc0.jar,
 eslib/jmock-1.0.1.jar,
 eslib/jsr173_api-1.0.jar,
 eslib/junit-3.8.1.jar,
 eslib/mail-1.4.jar,
 eslib/opensaml-1.0.1.jar,
 eslib/saaj-api-1.3.jar,
 eslib/saaj-impl-1.3.jar,
 eslib/servlet-api-2.3.jar,
 eslib/servlet-api-2.5-6.1.2rc0.jar,
 eslib/spring-1.2.6.jar,
 eslib/stax-api-1.0.1.jar,
 eslib/stax-utils-20040917.jar,
 eslib/wsdl4j-1.6.1.jar,
 eslib/wss4j-1.5.1.jar,
 eslib/wstx-asl-3.2.0.jar,
 eslib/xbean-2.2.0.jar,
 eslib/xbean-spring-2.8.jar,
 eslib/xfire-all-1.2.6.jar,
 eslib/xfire-jsr181-api-1.0-M1.jar,
 eslib/xml-apis-1.0.b2.jar,
 eslib/XmlSchema-1.1.jar,
 eslib/xmlsec-1.3.0.jar,
 eslib/xercesImpl-2.6.2.jar
Bundle-Vendor: esfda
Import-Package: org.carrot2.clustering.lingo



JIRA dawid.weiss@cs.put.poznan.pl wrote
I don't think you included that attachment.

Fefcoweb wrote:
> Hi David,
>
>  
>
> Hope you can help.  Attached is my manifest, main documentsource code
> and generated xml.  I really have a lot of jars from XFire
> implementation of web service, that could be a problem...
>
>  
>
> Thanks,
>
> Sofia Fefer
> Enterprise Search Team, OIM, FDA
> 301-827-4641
>
> ________________________________
>
> From: JIRA dawid.weiss@cs.put.poznan.pl (via Nabble)
> [mailto:ml-user+54464-1135433410@n2.nabble.com]
> Sent: Monday, June 29, 2009 3:24 PM
> To: Fefer, Sofia*
> Subject: Re: [C2-devel] New DocumentSource violates loader constraints
> Exception
>
>  
>
>
> Hello. Apologies for the delay, I missed your e-mail somehow.
>
>> !MESSAGE Processing error: java.lang.LinkageError: Class
>> javax/xml/namespace/NamespaceContext violates loader constraints
>
> Looks like a conflict between loaded classes. Something to do with
> Eclipse's
> class loading mechanism. Can you send me the MANIFEST.MF of your plugin
> for
> analysis (or the entire code, if this is possible). Feel free to use my
> private
> e-mail for this if you need to keep it confidential.
>
> Dawid
>
> ------------------------------------------------------------------------
> ------
> _______________________________________________
> Carrot2-developers mailing list
> Carrot2-developers@...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3176524&i=0
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers
>
>
>
> ________________________________
>
> This email is a reply to your post @
> http://n2.nabble.com/New-DocumentSource-violates-loader-constraints-Exce
> ption-tp3155801p3176524.html
> You can reply by email or by visting the link above.
>
>  
>
>
>  
> <?xml version="1.0" encoding="UTF-8"?>
> <component-metadata>
>   <title>
<![CDATA[This example shows how to implement a simple Carrot2 <code>IDocumentSource</code>]]>
</title>
>   <attributes class="java.util.LinkedHashMap">
>     <attribute field-name="query">
>       <attribute-metadata>
>         <title>
<![CDATA[Query to perform]]>
</title>
>         <label>Query</label>
>         <group>Search query</group>
>         <level>BASIC</level>
>       </attribute-metadata>
>     </attribute>
>     <attribute field-name="libName">
>       <attribute-metadata/>
>     </attribute>
>     <attribute field-name="documents">
>       <attribute-metadata>
>         <title>
<![CDATA[Documents returned by the search engine/ document retrieval system]]>
</title>
>         <label>Documents</label>
>         <group>Documents</group>
>       </attribute-metadata>
>     </attribute>
>   </attributes>
> </component-metadata>
>  
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Carrot2-developers mailing list
> Carrot2-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/carrot2-developers

------------------------------------------------------------------------------
_______________________________________________
Carrot2-developers mailing list
Carrot2-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

Re: New DocumentSource violates loader constraints Exception

Dawid Weiss-2

> Yes, I did.  I can see attachment, can't you?

No, I can't, because I use plain text-only mail viewer and your attachments
appear only in the HTML version of your message...

But anyway.

The problem you have is related to the fact that you have MULTIPLE different
versions of this class:

javax.xml.namespace.NamespaceContext

1) one is distributed as part of xfire (in jsr173_api-1.0.jar),
2) another is present in Java (1.6, I presume).
3) yet another is distributed as part of xfire (in stax-api-1.0.1),
4) yet another is distributed as part of xfire (in xbean-*),

There seem to be differences between classes against which xfire was compiled
and these you're trying to load -- hence the error. We had it as well -- the
workaround was to remove these classes from stax-api-1.0.1 (which we distribute
as part of the org.codehaus.woodstox plugin).

This is my guess only, really, since I couldn't run your code, but it should get
you started.

Dawid



------------------------------------------------------------------------------
_______________________________________________
Carrot2-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/carrot2-developers
Reply | Threaded
Open this post in threaded view
|

RE: [C2-devel] New DocumentSource violates loader constraints Exception

Fefcoweb

It worked when I removed those Xfire extra jars.  Thank you very much.

 

 

From: JIRA [hidden email] (via Nabble) [mailto:[hidden email]]
Sent: Wednesday, July 01, 2009 3:42 AM
To: Fefer, Sofia*
Subject: Re: [C2-devel] New DocumentSource violates loader constraints Exception

 


> Yes, I did.  I can see attachment, can't you?

No, I can't, because I use plain text-only mail viewer and your attachments
appear only in the HTML version of your message...

But anyway.

The problem you have is related to the fact that you have MULTIPLE different
versions of this class:

javax.xml.namespace.NamespaceContext

1) one is distributed as part of xfire (in jsr173_api-1.0.jar),
2) another is present in Java (1.6, I presume).
3) yet another is distributed as part of xfire (in stax-api-1.0.1),
4) yet another is distributed as part of xfire (in xbean-*),

There seem to be differences between classes against which xfire was compiled
and these you're trying to load -- hence the error. We had it as well -- the
workaround was to remove these classes from stax-api-1.0.1 (which we distribute
as part of the org.codehaus.woodstox plugin).

This is my guess only, really, since I couldn't run your code, but it should get
you started.

Dawid



------------------------------------------------------------------------------
_______________________________________________
Carrot2-developers mailing list
Carrot2-developers@...
https://lists.sourceforge.net/lists/listinfo/carrot2-developers


This email is a reply to your post @ http://n2.nabble.com/New-DocumentSource-violates-loader-constraints-Exception-tp3155801p3187702.html
You can reply by email or by visting the link above.