[ 
https://issues.apache.org/jira/browse/CONNECTORS-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14019803#comment-14019803
 ] 

Karl Wright commented on CONNECTORS-957:
----------------------------------------

In theory, the classes in the connector-lib-proprietary area shade (block) the 
classes in the root classpath.
So this should just be a matter of including *all* the alfresco client 
dependencies in connector-lib.

What I would do here is:
(1) First, find the last version of ManifoldCF where Alfresco worked properly.
(2) Look at the dependencies listed in that version's alfresco connector 
build.xml
(3) Copy those dependencies to 1.6.1's connector-lib-proprietary area, from 
1.6.1's lib area.  (When there is a jar in the root classpath and one also in 
connector-lib-proprietary, they must be exactly the same one).

It should be possible to get alfresco with 1.6.1 working in this way.  When you 
do, all you need to do is add those jars to the alfresco build.xml, and all 
should be fixed.


> ClassNotFoundException starting from Alfresco One 4.2.1
> -------------------------------------------------------
>
>                 Key: CONNECTORS-957
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-957
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Alfresco connector
>    Affects Versions: ManifoldCF 1.6.1, ManifoldCF 1.7
>            Reporter: Piergiorgio Lucidi
>            Assignee: Piergiorgio Lucidi
>            Priority: Critical
>         Attachments: CONNECTORS-957.patch
>
>
> It seems that there are some issues starting from Alfresco One 4.2.1, trying 
> to use the alfresco-web-service-client ManifoldCF is returning the following 
> error:
> {code}
> Caused by: org.apache.axis.ConfigurationException: 
> java.lang.ClassNotFoundException: org.apache.ws.axis.security.WSDoAllSender
> java.lang.ClassNotFoundException: org.apache.ws.axis.security.WSDoAllSender
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:187)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160)
>         at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:100)
>         at 
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getJavaClass(WSDDDeployableItem.java:353)
>         at 
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.makeNewInstance(WSDDDeployableItem.java:295)
>         at 
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
>         at 
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
>         at 
> org.apache.axis.deployment.wsdd.WSDDChain.makeNewInstance(WSDDChain.java:125)
>         at 
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
>         at 
> org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
>         at 
> org.apache.axis.deployment.wsdd.WSDDDeployment.getGlobalRequest(WSDDDeployment.java:473)
>         at 
> org.apache.axis.configuration.FileProvider.getGlobalRequest(FileProvider.java:269)
>         at org.apache.axis.AxisEngine.getGlobalRequest(AxisEngine.java:365)
>         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:126)
>         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>         at org.apache.axis.client.Call.invoke(Call.java:2767)
>         at org.apache.axis.client.Call.invoke(Call.java:2443)
>         at org.apache.axis.client.Call.invoke(Call.java:2366)
>         at org.apache.axis.client.Call.invoke(Call.java:1812)
>         at 
> org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.query(RepositoryServiceSoapBindingStub.java:753)
>         at 
> org.apache.manifoldcf.crawler.connectors.alfresco.SearchUtils.luceneSearch(SearchUtils.java:66)
>         at 
> org.apache.manifoldcf.crawler.connectors.alfresco.AlfrescoRepositoryConnector.addSeedDocuments(AlfrescoRepositoryConnector.java:439)
>         at 
> org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.addSeedDocuments(BaseRepositoryConnector.java:156)
>         at 
> org.apache.manifoldcf.crawler.system.StartupThread.run(StartupThread.java:153)
> {code}
> I have replicated the problem but I don't know how to solve it. Inside the 
> Alfresco Web Service Client JAR there are all the needed classes.
> Could be a corruption issue?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to