Found the cause of this. I needed to extend ServiceManagement as below:


<extension target="org.nuxeo.runtime.api.ServiceManagement"
   point="services">
   <service class="org.nuxeo.ecm.core.api.CoreSession" name="my_repo"
     group="core">
     <locator>%DocumentManagerBean</locator>
   </service>
 </extension>


Hi,

Just done a clean checkout, and configured the following by files in nuxeo.ear/config

1. Extended LocationManagerServer.location to disable the demo repository and enable (specify) my own: <extension target="org.nuxeo.ecm.platform.util.LocationManagerService" point="location">
   <locationManagerPlugin>
     <locationEnabled>false</locationEnabled>
     <locationName>demo</locationName>
   </locationManagerPlugin>
   <locationManagerPlugin>
     <locationEnabled>true</locationEnabled>
     <locationName>my_repo</locationName>
   </locationManagerPlugin>
 </extension>

2. Extended PlatformService.servers to be aware of my new repository
<extension target="org.nuxeo.ecm.platform.api.PlatformService" point="servers">
   <documentation>AddAction Platform Layout</documentation>
   <server name="default" host="localhost" port="1099">
<service class="org.nuxeo.ecm.core.api.CoreSession" jndiName="%DocumentManagerBean" private="true" /> <service class="org.nuxeo.ecm.platform.types.ejb.TypeManager" jndiName="%TypeManagerBean" />
     <repository name="my_repo"
class="org.nuxeo.ecm.core.api.CoreSession" description="My Repository" />
   </server>
 </extension>

3. Extended RepositoryManger.repsositories to be aware of my new repository: <extension target="org.nuxeo.ecm.core.api.repository.RepositoryManager" point="repositories">
   <documentation>The default repository</documentation>
       <repository name="my_repo" label="My Repository"/>
 </extension>

4. Configured my new repository by copying default-repository-config.xml and simply changing the name from demo. (no other changes, using the ObjectPersistenceManager).

Now when I log in I get to the main Nuxeo screen, but have the following stacktrace in the log:

Caused by: java.lang.reflect.UndeclaredThrowableException
       at $Proxy215.getContentRootDocuments(Unknown Source)
at org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean.getParent(ClipboardActionsBean.java:365) at org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean.getCanPaste(ClipboardActionsBean.java:486) at org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean.getCanPasteFromClipboard(ClipboardActionsBean.java:514)
       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.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) at org.nuxeo.ecm.webapp.shield.ErrorHandlingInterceptor.invokeAndWrapExceptions(ErrorHandlingInterceptor.java:67)
       ... 443 more
Caused by: java.io.NotSerializableException: org.nuxeo.ecm.core.repository.jcr.JCRSession at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
       at java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
at org.jboss.aop.joinpoint.MethodInvocation.writeExternal(MethodInvocation.java:318) at org.jboss.ejb3.stateful.StatefulRemoteInvocation.writeExternal(StatefulRemoteInvocation.java:71) at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58) at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275) at org.jboss.serial.objectmetamodel.DataContainer$DataContainerOutput.writeObject(DataContainer.java:386) at org.jboss.serial.io.MarshalledObjectForLocalCalls.<init>(MarshalledObjectForLocalCalls.java:38) at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:57) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
       ... 454 more

This doesn't happen if I don't make these configuration changes. But as far as I'm aware all I'm really doing is creating a duplicate of 'demo', just with a different name. Are my configuration changes incorrect? Any ideas?

Thanks,

Sean



--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to