jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-294) Jackrabbit example
Date Fri, 06 Jan 2006 00:10:46 GMT
     [ http://issues.apache.org/jira/browse/JCR-294?page=all ]
     
Jukka Zitting resolved JCR-294:
-------------------------------

    Resolution: Invalid

Hi,

Sorry for the delayed response. It seems like your Java classpath does not contain the required
classes. You'll need to set up your classpath to include both the jackrabbit-1.0-SNAPSHOT.jar
generated by "maven jar" and the dependency jars copied to "target/lib" by "maven copy-deps".

BR,

Jukka Zitting

> Jackrabbit example
> ------------------
>
>          Key: JCR-294
>          URL: http://issues.apache.org/jira/browse/JCR-294
>      Project: Jackrabbit
>         Type: Test
>  Environment: Windows XP
>     Reporter: leila Rizkallah
>     Assignee: Jukka Zitting

>
> Hello,
> I'm trying to run the code provided in the Jackrabbit website, in First Hops section.
> It seems I'm missing something. It just doest compile. I get the following errors:
> ************************************************************************************************************************
> JCRTest.java:3: package javax.jcr does not exist
> import javax.jcr.*;
> ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\RegistryHelper.java:19: package javax.jcr
does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\RegistryHelper.java:56: cannot find
symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.jndi.RegistryHelper
>             throws NamingException, RepositoryException {
>                                     ^
> JCRTest.java:23: cannot find symbol
> symbol  : class Repository
> location: class JCRTest
>       Repository r = (Repository) ctx.lookup("repo");
>       ^
> JCRTest.java:23: cannot find symbol
> symbol  : class Repository
> location: class JCRTest
>       Repository r = (Repository) ctx.lookup("repo");
>                       ^
> JCRTest.java:24: cannot find symbol
> symbol  : class Session
> location: class JCRTest
>       Session session = r.login(new SimpleCredentials("userid", "".toCharArray()), null);
>       ^
> JCRTest.java:24: cannot find symbol
> symbol  : class SimpleCredentials
> location: class JCRTest
>       Session session = r.login(new SimpleCredentials("userid", "".toCharArray()), null);
>                                     ^
> JCRTest.java:25: cannot find symbol
> symbol  : class Node
> location: class JCRTest
>       Node rn=session.getRootNode();
>       ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:22: package
javax.jcr does not exist
> import javax.jcr.Credentials;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:23: package
javax.jcr does not exist
> import javax.jcr.LoginException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:24: package
javax.jcr does not exist
> import javax.jcr.NoSuchWorkspaceException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:25: package
javax.jcr does not exist
> import javax.jcr.Repository;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:26: package
javax.jcr does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:27: package
javax.jcr does not exist
> import javax.jcr.Session;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:62: cannot find
symbol
> symbol: class Repository
> class BindableRepository implements Repository, Referenceable, Serializable {
>                                     ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:83: cannot find
symbol
> symbol  : class Repository
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     private transient Repository delegatee;
>                       ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:114: cannot
find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws RepositoryException {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:127: cannot
find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     private void init() throws RepositoryException {
>                                ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:146: cannot
find symbol
> symbol  : class Credentials
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login(Credentials credentials, String workspaceName)
>                          ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:146: cannot
find symbol
> symbol  : class Session
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login(Credentials credentials, String workspaceName)
>            ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:147: cannot
find symbol
> symbol  : class LoginException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, NoSuchWorkspaceException, RepositoryException {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:147: cannot
find symbol
> symbol  : class NoSuchWorkspaceException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, NoSuchWorkspaceException, RepositoryException {
>                                    ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:147: cannot
find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, NoSuchWorkspaceException, RepositoryException {
>                                                              ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:155: cannot
find symbol
> symbol  : class Session
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login(String workspaceName)
>            ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:156: cannot
find symbol
> symbol  : class LoginException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, NoSuchWorkspaceException, RepositoryException {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:156: cannot
find symbol
> symbol  : class NoSuchWorkspaceException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, NoSuchWorkspaceException, RepositoryException {
>                                    ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:156: cannot
find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, NoSuchWorkspaceException, RepositoryException {
>                                                              ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:164: cannot
find symbol
> symbol  : class Session
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login() throws LoginException, RepositoryException {
>            ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:164: cannot
find symbol
> symbol  : class LoginException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login() throws LoginException, RepositoryException {
>                                   ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:164: cannot
find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login() throws LoginException, RepositoryException {
>                                                   ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:172: cannot
find symbol
> symbol  : class Credentials
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login(Credentials credentials)
>                          ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:172: cannot
find symbol
> symbol  : class Session
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>     public Session login(Credentials credentials)
>            ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:173: cannot
find symbol
> symbol  : class LoginException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, RepositoryException {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\jndi\BindableRepository.java:173: cannot
find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.jndi.BindableRepository
>             throws LoginException, RepositoryException {
>                                    ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:19: package org.apache.commons.collections.map
does not exist
> import org.apache.commons.collections.map.ReferenceMap;
>                                           ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:46: package org.apache.log4j
does not exist
> import org.apache.log4j.Logger;
>                         ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:48: package javax.jcr
does not exist
> import javax.jcr.AccessDeniedException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:49: package javax.jcr
does not exist
> import javax.jcr.Credentials;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:50: package javax.jcr
does not exist
> import javax.jcr.LoginException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:51: package javax.jcr
does not exist
> import javax.jcr.NamespaceRegistry;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:52: package javax.jcr
does not exist
> import javax.jcr.NoSuchWorkspaceException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:53: package javax.jcr
does not exist
> import javax.jcr.Repository;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:54: package javax.jcr
does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:55: package javax.jcr
does not exist
> import javax.jcr.Session;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:56: package javax.jcr.observation
does not exist
> import javax.jcr.observation.Event;
>                              ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:57: package javax.jcr.observation
does not exist
> import javax.jcr.observation.EventIterator;
>                              ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:58: package javax.jcr.observation
does not exist
> import javax.jcr.observation.EventListener;
>                              ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:59: package javax.jcr.observation
does not exist
> import javax.jcr.observation.ObservationManager;
>                              ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:80: cannot find symbol
> symbol: class Repository
> public class RepositoryImpl implements Repository, SessionListener,
>                                        ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:81: cannot find symbol
> symbol: class EventListener
>         EventListener {
>         ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:83: cannot find symbol
> symbol  : class Logger
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     private static Logger log = Logger.getLogger(RepositoryImpl.class);
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:26: package org.apache.log4j
does not exist
> import org.apache.log4j.Logger;
>                         ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:27: package org.apache.xerces.util
does not exist
> import org.apache.xerces.util.XMLChar;
>                               ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:29: package javax.jcr
does not exist
> import javax.jcr.AccessDeniedException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:30: package javax.jcr
does not exist
> import javax.jcr.NamespaceException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:31: package javax.jcr
does not exist
> import javax.jcr.NamespaceRegistry;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:32: package javax.jcr
does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:33: package javax.jcr
does not exist
> import javax.jcr.UnsupportedRepositoryOperationException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\name\NamespaceResolver.java:19: package javax.jcr
does not exist
> import javax.jcr.NamespaceException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\NamespaceRegistryImpl.java:45: cannot find
symbol
> symbol: class NamespaceRegistry
>         implements NamespaceRegistry {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:19: package
org.apache.commons.collections.map does not exist
> import org.apache.commons.collections.map.ReferenceMap;
>                                           ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:26: package
org.apache.log4j does not exist
> import org.apache.log4j.Logger;
>                         ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:28: package
javax.jcr does not exist
> import javax.jcr.NamespaceRegistry;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:29: package
javax.jcr does not exist
> import javax.jcr.PropertyType;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:30: package
javax.jcr does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:31: package
javax.jcr.nodetype does not exist
> import javax.jcr.nodetype.ConstraintViolationException;
>                           ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:32: package
javax.jcr.nodetype does not exist
> import javax.jcr.nodetype.NoSuchNodeTypeException;
>                           ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\NodeTypeRegistry.java:33: package
javax.jcr.version does not exist
> import javax.jcr.version.OnParentVersionAction;
>                          ^
> C:\repotest\java\org\apache\jackrabbit\core\version\VersionManager.java:24: package javax.jcr
does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\version\VersionManager.java:25: package javax.jcr
does not exist
> import javax.jcr.Session;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\version\VersionManager.java:26: package javax.jcr.version
does not exist
> import javax.jcr.version.Version;
>                          ^
> C:\repotest\java\org\apache\jackrabbit\core\version\VersionManager.java:27: package javax.jcr.version
does not exist
> import javax.jcr.version.VersionHistory;
>                          ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\virtual\VirtualNodeTypeStateManager.java:30:
package org.apache.log4j does not exist
> import org.apache.log4j.Logger;
>                         ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\virtual\VirtualNodeTypeStateManager.java:32:
package javax.jcr does not exist
> import javax.jcr.NodeIterator;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\virtual\VirtualNodeTypeStateManager.java:33:
package javax.jcr does not exist
> import javax.jcr.PropertyIterator;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\nodetype\virtual\VirtualNodeTypeStateManager.java:34:
package javax.jcr does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:19: package org.apache.commons.collections.iterators
does not exist
> import org.apache.commons.collections.iterators.AbstractIteratorDecorator;
>                                                 ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:37: package org.apache.log4j
does not exist
> import org.apache.log4j.Logger;
>                         ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:39: package javax.jcr
does not exist
> import javax.jcr.NamespaceException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:40: package javax.jcr
does not exist
> import javax.jcr.NamespaceRegistry;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:41: package javax.jcr
does not exist
> import javax.jcr.Node;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:42: package javax.jcr
does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:43: package javax.jcr.observation
does not exist
> import javax.jcr.observation.Event;
>                              ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:44: package javax.jcr.observation
does not exist
> import javax.jcr.observation.EventIterator;
>                              ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:45: package javax.jcr.query
does not exist
> import javax.jcr.query.InvalidQueryException;
>                        ^
> C:\repotest\java\org\apache\jackrabbit\core\SearchManager.java:46: package javax.jcr.query
does not exist
> import javax.jcr.query.Query;
>                        ^
> C:\repotest\java\org\apache\jackrabbit\core\observation\SynchronousEventListener.java:19:
package javax.jcr.observation does not exist
> import javax.jcr.observation.EventListener;
>                              ^
> C:\repotest\java\org\apache\jackrabbit\core\observation\SynchronousEventListener.java:29:
cannot find symbol
> symbol: class EventListener
> public interface SynchronousEventListener extends EventListener {
>                                                   ^
> C:\repotest\java\org\apache\jackrabbit\core\observation\DelegatingObservationDispatcher.java:21:
package javax.jcr does not exist
> import javax.jcr.RepositoryException;
>                  ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:150: cannot find symbol
> symbol  : class ReferenceMap
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     private final ReferenceMap activeSessions =
>                   ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:170: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     protected RepositoryImpl(RepositoryConfig repConfig) throws RepositoryException {
>                                                                 ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:254: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     protected void acquireRepositoryLock() throws RepositoryException {
>                                                   ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:311: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     protected String loadRootNodeUUID(FileSystem fs) throws RepositoryException {
>                                                             ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:410: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>             throws RepositoryException {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:421: cannot find symbol
> symbol  : class NamespaceRegistry
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     protected NodeTypeRegistry createNodeTypeRegistry(NamespaceRegistry nsReg,
>                                                       ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:423: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>             throws RepositoryException {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:436: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>             throws RepositoryException {
>                    ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:454: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     private void initWorkspace(String wspName) throws RepositoryException {
>                                                       ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:508: cannot find symbol
> symbol  : class RepositoryException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>     private SearchManager getSystemSearchManager(String wspName) throws RepositoryException
{
>                                                                         ^
> C:\repotest\java\org\apache\jackrabbit\core\RepositoryImpl.java:581: cannot find symbol
> symbol  : class NoSuchWorkspaceException
> location: class org.apache.jackrabbit.core.RepositoryImpl
>             throws IllegalStateException, NoSuchWorkspaceException {
>                                           ^
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 100 errors
> ********************************************************************************************************************
> Need help, thank you in advance.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message