Git migration

51 views
Skip to first unread message

Sergey Kabashnyuk

unread,
Mar 28, 2012, 4:00:41 AM3/28/12
to xc...@googlegroups.com
Hello

xcmis team decided to migrate source code from svn to git.
So please change your scm url to https://code.google.com/p/xcmis/ if needed

More info: http://code.google.com/p/xcmis/source/checkout

Sergey Kabashnyuk

jeremy

unread,
May 2, 2012, 11:35:26 PM5/2/12
to xcmis
Hi Sergey,

I've been scoping out xcmis for some time. I'm very interested in
implementing my own sp for xcmis.

After cloning the github repository I've been attempting to run the
tomcat-demo project. Unfortunately I have many compile errors, mostly
steming from what look to be the class files generated by antlr?

Can you provide any tips for getting the xcmis environment up and
running so I can debug it in any typical IDE (eclipse, IDEA)?


I'm very interested in implementing my own sp. With my ultimate goal
of being able to connect to a cmis repository using my storage
mechanism from a client like open-cmis workbench. Any tips you could
provide on me getting started down this path would be very helpful.

Thanks,
Jeremy

On Mar 28, 3:00 am, Sergey Kabashnyuk <skabashn...@exoplatform.com>
wrote:
> Hello
>
> xcmis team decided to migrate source code from svn to git.
> So please change your scm url tohttps://code.google.com/p/xcmis/if needed

Sergey Kabashnyuk

unread,
May 3, 2012, 2:24:48 AM5/3/12
to xc...@googlegroups.com
Hello
Did you clone from googlecode or github?

My step to run demo tomcat:
git clone https://code.google.com/p/xcmis/
in branch "master"
mvn clean install
cd xcmis-server-tomcat
mvn clean install -Passembly -Dtomcat.distrib=/PATH/TO/TOMCAT/DISTRIBUTIVE


Can you provide more details about your issue and how to reproduce it?

Sergey Kabashnyuk

2012/5/3 jeremy <jwo...@gmail.com>:

jeremy

unread,
May 3, 2012, 10:40:17 PM5/3/12
to xcmis
Hi Sergey,

I've tried both from the git repo as well as the old svn repo (the
1.2.2 tag specifically, on google code)

As far as setup goes, I just opened the root pom with IDEA to bring in
all the projects into Intellij IDEA. I setup a runtime configuration
for a local tomcat install, and set the deployment project to xcmis-
server-tomcat-demo:war exploded. Very standard IDE setup for debugging
a tomcat project locally.

When running the project I get compilation errors on
LiceneQueryBuilder.java -- error: cannot find symbol class
FullTextLexer -- same with FullTextParser.

I'm interested in starting the app in debugging mode inside of my IDE,
as opposed to doing a maven install and running through tomcat. I feel
I can get up to speed much quicker if this is the case.


Thanks,
Jeremy

On May 3, 1:24 am, Sergey Kabashnyuk <skabashn...@exoplatform.com>
wrote:
> Hello
> Did you clone from googlecode or github?
>
> My step to run demo tomcat:
> git clonehttps://code.google.com/p/xcmis/

jeremy

unread,
May 3, 2012, 10:55:27 PM5/3/12
to xcmis
Hi Sergey,

I was able to make progress on this by forcing IDEA to run all the
antlr3 maven goals _before_ it tried to compile the rest of the code.
I'm able to get the project to start in debug mode locally in IDEA,
but I get this exception on startup:


Connected to the target VM, address: '127.0.0.1:52311', transport:
'socket'
May 03, 2012 9:52:26 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: Loaded APR based Apache Tomcat Native library 1.1.23.
May 03, 2012 9:52:26 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters
[false], random [true].
May 03, 2012 9:52:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
May 03, 2012 9:52:27 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-57757"]
May 03, 2012 9:52:27 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1865 ms
May 03, 2012 9:52:27 PM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
May 03, 2012 9:52:27 PM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
May 03, 2012 9:52:27 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor C:\Users\jeremy
\.IntelliJIdea11\system\tomcat\Unnamed_xcmis-es-sp\conf\Catalina
\localhost\ROOT.xml
May 03, 2012 9:52:27 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\java-dev\projects\xcmis-git\xcmis-server-
tomcat-demo\target\xcmis-server-tomcat-demo-1.2.3-SNAPSHOT\WEB-INF\lib
\juel-api-2.1.2.jar) - jar not loaded. See Servlet Spec 2.3, section
9.7.2. Offending class: javax/el/Expression.class
May 03, 2012 9:52:27 PM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
154)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
895)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
615)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
649)
at org.apache.catalina.startup.HostConfig
$DeployDescriptor.run(HostConfig.java:1585)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoClassDefFoundError: Lorg/xcmis/spi/utils/
Logger;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2308)
at java.lang.Class.getDeclaredFields(Class.java:1760)
at
org.apache.catalina.startup.WebAnnotationSet.getDeclaredFields(WebAnnotationSet.java:
452)
at
org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:
257)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:
107)
at
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:
65)
at
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:
381)
at
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:
858)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
345)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:
90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:
5161)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
150)
... 11 more
Caused by: java.lang.ClassNotFoundException:
org.xcmis.spi.utils.Logger
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1711)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1556)
... 25 more

May 03, 2012 9:52:27 PM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor C:\Users\jeremy
\.IntelliJIdea11\system\tomcat\Unnamed_xcmis-es-sp\conf\Catalina
\localhost\ROOT.xml
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:
898)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
871)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
615)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
649)
at org.apache.catalina.startup.HostConfig
$DeployDescriptor.run(HostConfig.java:1585)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

May 03, 2012 9:52:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
May 03, 2012 9:52:27 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-57757"]
May 03, 2012 9:52:27 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 469 ms
Connected to server


Any recommendations?

jeremy

unread,
May 3, 2012, 11:21:24 PM5/3/12
to xcmis
Last post of the night ;)

Even though I see the above error, the demo cmis client seems to work
properly. Although I've set breakpoints in the in memory StorageImpl,
none of them get hit (such as createDocument, createFolder)...

Do you run the app in debug mode?

On May 3, 9:55 pm, jeremy <jwo...@gmail.com> wrote:
> Hi Sergey,
>

Andrey Parfonov

unread,
May 4, 2012, 1:39:59 AM5/4/12
to xc...@googlegroups.com
Hello Jeremy,

First I would say thank you for interest to xcmis project.
Now about you troubles. My suggestion is start tomcat
as separate server: ./xcmis.sh jpda run
Then you can connect with remote debugger at localhost:8000
You should not met any problem and be able to debug xcmis
application as well.

Thanks,
Andrey

2012/5/4 jeremy <jwo...@gmail.com>:

Sergey Kabashnyuk

unread,
May 4, 2012, 2:50:20 AM5/4/12
to xc...@googlegroups.com
Hello

Have you try on Tomcat 6? We didn't test it on Tomcat 7

Sergey kabashnyuk


2012/5/4 Andrey Parfonov <andr...@gmail.com>:

jeremy

unread,
May 4, 2012, 12:35:55 PM5/4/12
to xcmis
Hi Sergey and Andrey,

I have not tried tomcat 6. I upgraded to using tomcat 7 for all of my
apps a few months ago ;)

I'll give tomcat 6 a try.

I look forward to getting the app in a debuggable state so I can learn
about it.

My ultimate goal would be to implement a storage provider and be able
to connect to xcmis from open cmis workbench with xcmis using my
storage provider. This seems very possible yes?


Thanks,
Jeremy

On May 4, 1:50 am, Sergey Kabashnyuk <skabashn...@exoplatform.com>
wrote:
> Hello
>
> Have you try on Tomcat 6? We didn't test it on Tomcat 7
>
> Sergey kabashnyuk
>
> 2012/5/4 Andrey Parfonov <andrew...@gmail.com>:
> ...
>
> read more »

Andrey Parfonov

unread,
May 4, 2012, 1:03:28 PM5/4/12
to xc...@googlegroups.com
Hi Jeremy,

I think you should not get problem to implement own storage provider.
Just use inmemory implementation as example. If you will have any problem
with implementation own storage I be happy to help you.

Thanks,
Andrey.

2012/5/4 jeremy <jwo...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages