Re: Setting JCR:CREATED Fails

This is a discussion on Re: Setting JCR:CREATED Fails within the Apache forums in Application Servers & Tools category; bump, please help me get off Slide. ----- Original Message ---- From: Julian <cerebro70 @ yahoo.com> To: users@jackrabbit.apache.org Sent: Wednesday, April 4, 2007 1:09:22 PM Subject: Setting JCR:CREATED Fails Hi, I am porting my content repository from one system to jackrabbit. While doing this I want to keep the created dates intact, but I get an error when importing files (nt:file) into the repository. The error indicates the property jcr:created doesn't exist (see stack below, also I have tried setting jcr:autoCreated), but when I omit the code to set the property on the node before saving it, I have no ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-06-2007, 09:48 AM
Julian
Guest
 
Default Re: Setting JCR:CREATED Fails

bump, please help me get off Slide.

----- Original Message ----
From: Julian <cerebro70@yahoo.com>
To: users@jackrabbit.apache.org
Sent: Wednesday, April 4, 2007 1:09:22 PM
Subject: Setting JCR:CREATED Fails

Hi,

I am porting my content repository from one system to jackrabbit. While doing this I want to keep the created dates intact, but I get an
error when importing files (nt:file) into the repository. The error indicates the property jcr:created doesn't exist (see stack below, also I have tried setting jcr:autoCreated), but when I omit the code to set the property on the node before saving it, I have no problems. Is there a way around to set this value or do I need to make a custom node type to set the value?


Thanks,
Julian


no matching property definition found for {http://www.jcp.org/jcr/1.0}created
Caused by:
javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {http://www.jcp.org/jcr/1.0}created
at org.apache.jackrabbit.core.nodetype.EffectiveNodeT ype.getApplicablePropertyDef(EffectiveNodeType.jav a:771)
at org.apache.jackrabbit.core.NodeImpl.getApplicableP ropertyDefinition(NodeImpl.java:926)
at org.apache.jackrabbit.core.NodeImpl.getOrCreatePro perty(NodeImpl.java:457)
at org.apache.jackrabbit.core.NodeImpl.getOrCreatePro perty(NodeImpl.java:407)
at org.apache.jackrabbit.core.NodeImpl.setProperty(No deImpl.java:2362)
.....







__________________________________________________ __________________________________
The fish are biting.
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp...dsearch_v2.php







__________________________________________________ __________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:54 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.