jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niu, Xuetao" <Xuetao....@fiserv.com>
Subject RE: "Bad Request" exception using DavEx
Date Thu, 18 Mar 2010 12:40:46 GMT
Sorry, cannot get the attachment through the mail server, please see the
pasted log file:

18.03.2010 13:29:50 *INFO * root: Logging initialized.
(LoggingServlet.java, line 87)
18.03.2010 13:29:50 *INFO * RepositoryStartupServlet:
RepositoryStartupServlet initializing... (RepositoryStartupServlet.java,
line 235)
18.03.2010 13:29:50 *INFO * AbstractConfig: Configuration of
BootstrapConfig (AbstractConfig.java, line 101)
18.03.2010 13:29:50 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 102)
18.03.2010 13:29:50 *INFO * AbstractConfig:   jndiConfig:
org.apache.jackrabbit.j2ee.JNDIConfig@2f729e (AbstractConfig.java, line
106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   rmiConfig:
org.apache.jackrabbit.j2ee.RMIConfig@10deb5f (AbstractConfig.java, line
106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   repositoryHome: rtde
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   repositoryConfig:
rtde/repository.xml (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   class: class
org.apache.jackrabbit.j2ee.BootstrapConfig (AbstractConfig.java, line
106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   valid: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   repositoryName:
jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 108)
18.03.2010 13:29:50 *INFO * AbstractConfig: Configuration of JNDIConfig
(AbstractConfig.java, line 101)
18.03.2010 13:29:50 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 102)
18.03.2010 13:29:50 *INFO * AbstractConfig:   jndiName:
jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   class: class
org.apache.jackrabbit.j2ee.JNDIConfig (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   jndiEnv:
{java.naming.provider.url=http://www.apache.org/jackrabbit,
java.naming.factory.initial=org.apache.jackrabbit.core.jndi.provider.Dum
myInitialContextFactory} (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   valid: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   jndiEnabled: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 108)
18.03.2010 13:29:50 *INFO * AbstractConfig: Configuration of RMIConfig
(AbstractConfig.java, line 101)
18.03.2010 13:29:50 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 102)
18.03.2010 13:29:50 *INFO * AbstractConfig:   rmiName:
jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   rmiUri:
//localhost:1099/jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   rmiEnabled: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   rmiPort: 1099
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   rmiHost: localhost
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   class: class
org.apache.jackrabbit.j2ee.RMIConfig (AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:   valid: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:50 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 108)
18.03.2010 13:29:50 *WARN * ConfigurationErrorHandler: Warning parsing
the configuration at line 2 using system id null:
org.xml.sax.SAXParseException: Document root element "Repository", must
match DOCTYPE root "null". (ConfigurationErrorHandler.java, line 43)
18.03.2010 13:29:50 *WARN * ConfigurationErrorHandler: Warning parsing
the configuration at line 2 using system id null:
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
(ConfigurationErrorHandler.java, line 43)
18.03.2010 13:29:50 *INFO * RepositoryImpl: Starting repository...
(RepositoryImpl.java, line 304)
18.03.2010 13:29:51 *INFO * NodeTypeRegistry: no custom node type
definitions found (NodeTypeRegistry.java, line 828)
18.03.2010 13:29:51 *INFO * ConnectionRecoveryManager: Database: Oracle
/ Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
(ConnectionRecoveryManager.java, line 345)
18.03.2010 13:29:51 *INFO * ConnectionRecoveryManager: Driver: Oracle
JDBC driver / 10.2.0.1.0 (ConnectionRecoveryManager.java, line 346)
18.03.2010 13:29:51 *INFO * RepositoryImpl: initializing workspace
'default'... (RepositoryImpl.java, line 1993)
18.03.2010 13:29:51 *INFO * ConnectionRecoveryManager: Database: Oracle
/ Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
(ConnectionRecoveryManager.java, line 345)
18.03.2010 13:29:51 *INFO * ConnectionRecoveryManager: Driver: Oracle
JDBC driver / 10.2.0.1.0 (ConnectionRecoveryManager.java, line 346)
18.03.2010 13:29:51 *INFO * RepositoryImpl: workspace 'default'
initialized (RepositoryImpl.java, line 1997)
18.03.2010 13:29:51 *INFO * RepositoryImpl: Repository started
(RepositoryImpl.java, line 402)
18.03.2010 13:29:51 *INFO * RepositoryStartupServlet: Repository bound
via RMI with name: //localhost:1099/jackrabbit.repository
(RepositoryStartupServlet.java, line 562)
18.03.2010 13:29:51 *INFO * RepositoryStartupServlet: Repository bound
to JNDI with name: jackrabbit.repository (RepositoryStartupServlet.java,
line 452)
18.03.2010 13:29:51 *INFO * RepositoryStartupServlet:
RepositoryStartupServlet initialized. (RepositoryStartupServlet.java,
line 241)
18.03.2010 13:29:51 *INFO * RepositoryAccessServlet:
RepositoryAccessServlet initialized. (RepositoryAccessServlet.java, line
98)
18.03.2010 13:29:51 *INFO * SimpleWebdavServlet: resource-path-prefix =
'/repository' (SimpleWebdavServlet.java, line 158)
18.03.2010 13:29:51 *INFO * SimpleWebdavServlet: WWW-Authenticate header
= 'Basic realm="Jackrabbit Webdav Server"' (SimpleWebdavServlet.java,
line 164)
18.03.2010 13:29:53 *INFO * AbstractConfig: Configuration of
BootstrapConfig (AbstractConfig.java, line 101)
18.03.2010 13:29:53 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 102)
18.03.2010 13:29:53 *INFO * AbstractConfig:   jndiConfig:
org.apache.jackrabbit.j2ee.JNDIConfig@e41d4a (AbstractConfig.java, line
106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   rmiConfig:
org.apache.jackrabbit.j2ee.RMIConfig@3f265b (AbstractConfig.java, line
106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   repositoryHome: rtde
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   repositoryConfig:
rtde/repository.xml (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   class: class
org.apache.jackrabbit.j2ee.BootstrapConfig (AbstractConfig.java, line
106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   valid: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   repositoryName:
jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 108)
18.03.2010 13:29:53 *INFO * AbstractConfig: Configuration of JNDIConfig
(AbstractConfig.java, line 101)
18.03.2010 13:29:53 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 102)
18.03.2010 13:29:53 *INFO * AbstractConfig:   jndiName:
jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   class: class
org.apache.jackrabbit.j2ee.JNDIConfig (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   jndiEnv:
{java.naming.provider.url=http://www.apache.org/jackrabbit,
java.naming.factory.initial=org.apache.jackrabbit.core.jndi.provider.Dum
myInitialContextFactory} (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   valid: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   jndiEnabled: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 108)
18.03.2010 13:29:53 *INFO * AbstractConfig: Configuration of RMIConfig
(AbstractConfig.java, line 101)
18.03.2010 13:29:53 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 102)
18.03.2010 13:29:53 *INFO * AbstractConfig:   rmiName:
jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   rmiUri:
//localhost:1099/jackrabbit.repository (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   rmiEnabled: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   rmiPort: 1099
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   rmiHost: localhost
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   class: class
org.apache.jackrabbit.j2ee.RMIConfig (AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:   valid: true
(AbstractConfig.java, line 106)
18.03.2010 13:29:53 *INFO * AbstractConfig:
---------------------------------------------- (AbstractConfig.java,
line 108)
18.03.2010 13:29:53 *INFO * RepositoryAccessServlet: Acquired repository
via JNDI. (RepositoryAccessServlet.java, line 207)
18.03.2010 13:29:53 *INFO * SimpleSecurityManager: init: using
Repository LoginModule configuration for Jackrabbit
(SimpleSecurityManager.java, line 137)
18.03.2010 13:29:53 *INFO * RepositoryImpl: SecurityManager = class
org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
(RepositoryImpl.java, line 484)
18.03.2010 13:29:53 *WARN * AbstractLoginModule: No credentials
available -> try default (anonymous) authentication.
(AbstractLoginModule.java, line 299)
18.03.2010 13:29:55 *WARN * AbstractLoginModule: No credentials
available -> try default (anonymous) authentication.
(AbstractLoginModule.java, line 299)
18.03.2010 13:29:55 *INFO * LRUNodeIdCache: num=191/10240 hits=9769
miss=231 (LRUNodeIdCache.java, line 70)
18.03.2010 13:29:55 *INFO * LRUNodeIdCache: num=177/10240 hits=9779
miss=221 (LRUNodeIdCache.java, line 70)
18.03.2010 13:29:55 *ERROR* JsonDiffHandler: Node locked.
(JsonDiffHandler.java, line 575)
18.03.2010 13:29:55 *WARN * JcrRemotingServlet: Invalid DIFF format
(JcrRemotingServlet.java, line 336)
18.03.2010 13:29:55 *WARN * LockManagerImpl: Bad lock token: Bad check
digit. (LockManagerImpl.java, line 790)
18.03.2010 13:29:55 *WARN * LockManagerImpl: Bad lock token: Bad check
digit. (LockManagerImpl.java, line 790)

-----Original Message-----
From: Niu, Xuetao 
Sent: Thursday, March 18, 2010 1:36 PM
To: users@jackrabbit.apache.org
Subject: RE: "Bad Request" exception using DavEx

Hi Angela,

Thanks for your help. What I was trying to do, functionally, is to
1) make "/" versionable,
2) register namespace for "rtde:" if not registered yet for each
session,
3) remove "/rtde:root" if exists
4) save session
5) create "/rtde:root" 
6) save session (this gives exception)

To answer your questions:

- I create every node as "nt:unstructured".
- Each node is not set as referenceable.
- I just deployed the standalone WAR of jackrabbit2.0.0 into tomcat6,
without specific configuration for the DavEx repo, except for the
repository.xml file attached. 
- I am not aware of how to do any security settings, so probably they
are default. Do I set it in the repository.xml ? If so, I have <param
name="anonymousId" value="anonymous"/>
- A simple log file is attached, the only ERROR is: JsonDiffHandler:
Node locked. (JsonDiffHandler.java, line 575), and I did delete the
.lock file and the "workspaces" folder before starting Tomcat.

Thanks again!
Xuetao

Mime
View raw message