Hello,

I have implemented a connection with OpenCalais web service with metro tool, to automatically annotate documents, but can only connect in the first try. Following times I get this error:

14:04:52,674 ERROR STDERR java.lang.IllegalArgumentException
14:04:52,674 ERROR STDERR at com.sun.xml.bind.api.TypeReference.<init>(TypeReference.java:81)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:694)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:615)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:404)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:252)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:698)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:686)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:341)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:324)
14:04:52,674 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:306)
14:04:52,674 ERROR STDERR at javax.xml.ws.Service.getPort(Service.java:92)
14:04:52,674 ERROR STDERR at org.nuxeo.ecm.platform.semantics.api.openCalais.Calais.getCalaisSoap(Calais.java:56)
14:04:52,674 ERROR STDERR at org.nuxeo.ecm.platform.semantics.api.openCalais.openCalaisAnnotation.obtainCalaisAnnotations(openCalaisAnnotation.java:149)
14:04:52,675 ERROR STDERR at org.nuxeo.ecm.platform.semantics.api.openCalais.openCalaisAnnotation.run(openCalaisAnnotation.java:181)

After looking for this error, I have found that is due to jax-ws v2.1 (included in java 6).

https://jax-ws.dev.java.net/issues/show_bug.cgi?id=666

I have downloaded the jax-ws 2.2 zip, and tried the following different steps:

a) copy /lib jars into my $JAVA_HOME/lib/endorsed --> No changes, I get the same error
b) copy /lib jars into my $JAVA_HOME/lib (https://jax-ws.dev.java.net/2.2-ea/docs/ReleaseNotes.html#Running_on_top_of_JDK_6) --> Get the same error
c) copy /lib jars into my $Nuxeo_Distribution/lib/endorsed --> Get several errors while starting Nuxeo server
d) copy /lib jars into my $Nuxeo_Distribution/server/default/lib --> Get this other exception

15:34:03,471 ERROR STDERR javax.xml.ws.WebServiceException: java.lang.reflect.InvocationTargetException
15:34:03,471 ERROR STDERR at com.sun.xml.ws.model.Injector.inject(Injector.java:60)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.model.WrapperBeanGenerator.createRequestWrapperBean(WrapperBeanGenerator.java:284)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.getRequestWrapperClass(RuntimeModeler.java:294)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:737)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:666)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:420)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:254)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:661)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:649)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:343)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
15:34:03,471 ERROR STDERR at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:308)
15:34:03,471 ERROR STDERR at javax.xml.ws.Service.getPort(Service.java:92)
15:34:03,471 ERROR STDERR at org.nuxeo.ecm.platform.semantics.api.openCalais.Calais.getCalaisSoap(Calais.java:56)
15:34:03,472 ERROR STDERR at org.nuxeo.ecm.platform.semantics.api.openCalais.openCalaisAnnotation.obtainCalaisAnnotations(openCalaisAnnotation.java:149)
15:34:03,472 ERROR STDERR at org.nuxeo.ecm.platform.semantics.api.openCalais.openCalaisAnnotation.run(openCalaisAnnotation.java:181)
15:34:03,472 ERROR STDERR Caused by: java.lang.reflect.InvocationTargetException
15:34:03,472 ERROR STDERR at sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)
15:34:03,472 ERROR STDERR at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:34:03,472 ERROR STDERR at java.lang.reflect.Method.invoke(Method.java:597)
15:34:03,472 ERROR STDERR at com.sun.xml.ws.model.Injector.inject(Injector.java:52)
15:34:03,472 ERROR STDERR ... 15 more
15:34:03,472 ERROR STDERR Caused by: java.lang.LinkageError: loader (instance of org/jboss/mx/loading/UnifiedClassLoader3): attempted duplicate class definition for name: "com/clearforest/Enlighten"
15:34:03,472 ERROR STDERR at java.lang.ClassLoader.defineClass1(Native Method)
15:34:03,472 ERROR STDERR at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
15:34:03,472 ERROR STDERR at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
15:34:03,472 ERROR STDERR ... 19 more

1.- Which metro / jax-ws version uses Nuxeo?
2.- How can I install metro 2.0 with jax-ws 2.2 into Nuxeo?

Kind Regards

-- 

--
YERBABUENA SOFTWARE
Francisco José González Barea
Técnico de I+D

C/ Ivan Paulov, nº 8, 2ª Planta, Oficina 3 
Parque Tecnológico de Andalucía, Málaga (España)
[email protected]
Telf/Phone -Fax.: (+34) 902 995 246
www.yerbabuena.es
[email protected]

En cumplimiento de la Ley Orgánica 15/1999 de 13 de Diciembre, de Protección de Datos de Carácter Personal, de YSENGINEERS, S.C.A., como Responsable delFichero, pone en su conocimiento que los datos incluidos en este mensaje están dirigidos al destinatario o destinatarios designados, por lo que si lo ha recibido por error, le rogamos nos lo haga saber a la mayor brevedad posible, y elimine el original, no estando permitido hacer ningún uso del mensaje. Ponemos en su conocimiento la posibilidad de ejercer sus derechos de acceso,rectificación, cancelación y oposición, en los términos establecidos en la legislación vigente, que podrá hacer efectivos dirigiéndose por escrito a de YSENGINEERS, S.C.A., en la dirección: C/ Severo Ochoa, num. 4, Parque Tecnológico de Andalucía, 29590, Málaga.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to