chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-471) Session is Not Created
Date Fri, 18 Nov 2011 11:58:57 GMT

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

Florian Müller commented on CMIS-471:
-------------------------------------

You are probably missing a few Jars in the classpath. 
Go to the download page [1] and get the "OpenCMIS Client with dependencies" package. Put all
Jars into your classpath.

[1] http://chemistry.apache.org/java/download.html
                
> Session is Not Created 
> -----------------------
>
>                 Key: CMIS-471
>                 URL: https://issues.apache.org/jira/browse/CMIS-471
>             Project: Chemistry
>          Issue Type: Test
>          Components: opencmis-client, opencmis-server
>    Affects Versions: OpenCMIS 0.5.0
>            Reporter: Pratyush Sinha
>
> Hi was trying to use the AtomPub binding example
> CODE: 
> SessionFactory sessionFactory =SessionFactoryImpl.newInstance();
> Map<String, String> parameter = new HashMap<String, String>();
> parameter.put(SessionParameter.USER, "p8admin");
> parameter.put(SessionParameter.PASSWORD, "filenet");	
> parameter.put(SessionParameter.ATOMPUB_URL, "http://192.168.1.185:9083/CaseManager/resources/ECM/ContentFlat");
> parameter.put(SessionParameter.BINDING_TYPE,BindingType.ATOMPUB.value());
> 				
> Session session = sessionFactory.createSession(parameter);
> repositories = sessionFactory.getRepositories(parameter);
> for (Repository r : repositories) {
> System.out.println("Found repository: " + r.getName());
> }
> ERROR :
> Problem accessing /filenetcmis1/rpc. Reason:org/apache/chemistry/opencmis/client/api/SessionFactory
> java.lang.NoClassDefFoundError: org/apache/chemistry/opencmis/client/api/SessionFactory
> 	at java.lang.Class.getDeclaredConstructors0(Native Method)
> 	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
> 	at java.lang.Class.getConstructor0(Class.java:2699)
> 	at java.lang.Class.newInstance0(Class.java:326)
> 	at java.lang.Class.newInstance(Class.java:308)
> 	at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> 	at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:428)
> 	at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
> 	at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> 	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> 	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> 	at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> 	at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> 	at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> Caused by: java.lang.ClassNotFoundException: org.apache.chemistry.opencmis.client.api.SessionFactory
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 	at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Plese help me to rectify my problem
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message