[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-05 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079950#comment-13079950
 ] 

Karl Wright commented on CONNECTORS-236:


Patch 4 committed to the branch.


 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, 
 patch2.txt, patch3.txt, patch4.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-05 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13080079#comment-13080079
 ] 

Karl Wright commented on CONNECTORS-236:


Merged the CONNECTORS-236 branch into trunk.  r1154315.


 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, 
 patch2.txt, patch3.txt, patch4.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079438#comment-13079438
 ] 

Karl Wright commented on CONNECTORS-236:


Hi Piergiorgio,

I had a look at your Setup method, and what you do is create a second instance 
of Jetty that includes all the ManifoldCF web applications, as well as the CMIS 
server.  This should not be needed since the MCF web applications are already 
deployed on the other instance of Jetty.  You just need to use the right port 
number to talk with them, which I believe is 8346.

I'm not sure this is causing your difficulties or not but it certainly isn't 
good.


 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Piergiorgio Lucidi (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079439#comment-13079439
 ] 

Piergiorgio Lucidi commented on CONNECTORS-236:
---

In this patch I configured two instances of the Jetty server: an instance 
dedicated to ManifoldCF and a second instance dedicated for the CMIS server on 
port 9090.

 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079441#comment-13079441
 ] 

Karl Wright commented on CONNECTORS-236:


Another change I'd like to see is to pull the snapshot war out of the maven 
repository.  The filesystem tests do it that way by allowing optional -D 
arguments, which maven provides, to point at the repository war.  Copying that 
would also make it possible to run the same tests under ant.


 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079445#comment-13079445
 ] 

Karl Wright commented on CONNECTORS-236:


Ok, never mind - the pair of jetty servers is indeed separate as you say.


 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079452#comment-13079452
 ] 

Karl Wright commented on CONNECTORS-236:


I checked this in with two changes.  First, the chemistry war I put into the 
lib directory.  I presume that the artifact under maven will be deployed from 
there, and that the ant build will refer to the war directly.  Second, I did 
not include the changes to jetty-runner, since they didn't make any sense to me.

The branch these changes are in is: 
https://svn.apache.org/repos/asf/incubator/lcf/branches/CONNECTORS-236.



 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079465#comment-13079465
 ] 

Karl Wright commented on CONNECTORS-236:


Added.


 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, 
 patch2.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Piergiorgio Lucidi (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079490#comment-13079490
 ] 

Piergiorgio Lucidi commented on CONNECTORS-236:
---

Thanks.

Karl, 

the CMIS server webapp is in the lib directory, but this directory is outside 
of the Maven module for CMIS tests.

This means that now we need to add a new property in the tests/cmis/pom.xml to 
set the absolute path of the CMIS server.

In the future we will fix this, when the new version of the CMIS Server will be 
available in the Maven repo, so we will not have any problem. 

But now it could be not good to leave the war artifact in the main lib 
directory, because to build and run tests we need to insert the needed path as 
a property value.

A possible solution could be create a lib folder inside tests/cmis and move the 
CMIS server webapp in this new folder. In this way we can access using Maven 
because we are now in the module and we can refer to the webapp using a 
relative path.

With the war artifact in the following path:
{code}
tests/cmis/lib/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war
{code}

We can refer to it using a relative path in the pom.xml:
{code}
openCmisServerWarPathlib/chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war/openCmisServerWarPath
{code}

WDYT?

 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, 
 patch2.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079494#comment-13079494
 ] 

Karl Wright commented on CONNECTORS-236:


I think we should do what we do for other artifacts that are not yet available: 
ask the user to install them into maven, by just adding to the procedure 
described here:

http://incubator.apache.org/connectors/how-to-build-and-deploy.html#Preparation



 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, 
 patch2.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079498#comment-13079498
 ] 

Karl Wright commented on CONNECTORS-236:


I updated build.xml and Base.java to use relative paths to the wars.  Now I can 
run the test under ant, but it fails in just the manner you describe (timeout 
waiting for job to finish).  I was able to see manifoldcf.log when I exited; 
it's full of these:

Error tossed: org.apache.chemistry.opencmis.client.runtime.FolderImpl
java.lang.ClassCastException: org.apache.chemistry.opencmis.client.runtime.Folde
rImpl
at org.apache.manifoldcf.crawler.connectors.cmis.CmisRepositoryConnector
.getDocumentVersions(CmisRepositoryConnector.java:1026)
at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.getD
ocumentVersions(BaseRepositoryConnector.java:355)
at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.getD
ocumentVersions(BaseRepositoryConnector.java:336)
at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.getD
ocumentVersions(BaseRepositoryConnector.java:315)
at org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector.getD
ocumentVersions(BaseRepositoryConnector.java:292)
at org.apache.manifoldcf.crawler.system.WorkerThread.run(WorkerThread.ja
va:321)



 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, 
 patch2.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CONNECTORS-236) Tests and test server needed for CMIS connector

2011-08-04 Thread Karl Wright (JIRA)

[ 
https://issues.apache.org/jira/browse/CONNECTORS-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13079506#comment-13079506
 ] 

Karl Wright commented on CONNECTORS-236:


I checked in the patch changes.


 Tests and test server needed for CMIS connector
 ---

 Key: CONNECTORS-236
 URL: https://issues.apache.org/jira/browse/CONNECTORS-236
 Project: ManifoldCF
  Issue Type: Bug
  Components: CMIS connector
Reporter: Piergiorgio Lucidi
 Attachments: 
 chemistry-opencmis-server-inmemory-war-0.5.0-SNAPSHOT.war, patch.txt, 
 patch2.txt, patch3.txt


 The CMIS connector needs tests, and a CMIS test server to run against.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira