jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sena Gbeckor-Kove" <sena...@gmail.com>
Subject proble registering NodeType's with CND file
Date Thu, 02 Mar 2006 12:05:57 GMT
Hi,

II am trying o register NodeType's from a CND file. I am using code
identical to the example in the JackRabbit documentation to load a CND file.
However I am getting a parseing error from the Lexer. As far as II can tell
my (very simple) CND file should work. Could somebody please have a look?

The CND in question is a s follows line 10 referred to in the exception is
the last one :

/* The JDepot Node Type Definitions expressed in CND */

// Namespace declaration
<ns = 'http://epo.org/jdepot'>

// Name
[ns:depot]

// Supertypes
> mix:referenceable

The following exception is reported :

org.apache.jackrabbit.core.nodetype.compact.ParseException: Error while
parsing 'mix:referencable' (src/test/config/depot.cnd, line 10)
        at org.apache.jackrabbit.core.nodetype.compact.Lexer.fail(Lexer.java
:147)
        at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.toQName
(CompactNodeTypeDefReader.java:641)
        at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.doSuperClasses
(CompactNodeTypeDefReader.java:283)
        at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.parse(
CompactNodeTypeDefReader.java:204)
        at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.<init>(
CompactNodeTypeDefReader.java:168)
        at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.<init>(
CompactNodeTypeDefReader.java:153)
        at org.epo.jdepot.depot.Depot.RegisterCustomNodeTypes(Depot.java
:301)
        at org.epo.jdepot.depot.DepotTest.testRegisterCustomNodeType(
DepotTest.java:106)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(
JUnitBattery.java:242)
        at org.apache.maven.surefire.battery.JUnitBattery.execute(
JUnitBattery.java:216)
        at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java
:215)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:163)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.SurefireBooter.runTestsInProcess(
SurefireBooter.java:285)
        at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java
:201)
        at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java
:366)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:415)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:531)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:472)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:139)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.jackrabbit.name.UnknownPrefixException: mix
        at org.apache.jackrabbit.name.QName.fromJCRName(QName.java:597)
        at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.toQName
(CompactNodeTypeDefReader.java:636)
        ... 52 more

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message