Thanks for the answer. We are registering our own service and action to do 
#{foo.mystuff}.

These are our contrib files:


----- JForumService.xml:

<?xml version="1.0"?>
<component name="org.orange.crdpp.jforum.service.JForumService">
  <implementation class="org.orange.crdpp.jforum.service.JForumService"/>
  <service>
     <provide interface="org.orange.crdpp.jforum.api.JForumManager"/>
  </service>
</component>

----- jforum-platform-contrib.xml:

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.orange.crdpp.jforum.service.binding.contrib">
  <require>org.orange.crdpp.jforum.service.JForumService</require>
  <extension target="org.nuxeo.runtime.api.ServiceManagement" point="services"> 
   
    <service class="org.orange.crdpp.jforum.api.JForumManager">
      <locator>%JForumManagerBean</locator>
    </service>
  </extension>
</component>

----- fragment in actions-contrib.xml:

<!-- Forum -->
    <action id="jforum" link="#{jForumManager.addCookie}" label="Forum" 
order="10" enabled="true">
      <category>USER_SERVICES</category>
    </action>



JForumService class extends DefaultComponent and does not override any method 
(it is an empty class). So far we are getting an error on startup when 
registering the service:

2009-10-28 09:12:00,035 ERROR [org.nuxeo.runtime.model.RegistrationInfo] Failed 
to register extension. Contributor: RegistrationInfo: 
service:org.orange.crdpp.jforum.service.binding.contrib to 
service:org.nuxeo.runtime.api.ServiceManagement; xpoint: services
java.lang.NullPointerException
 at org.nuxeo.runtime.api.ServiceManager.registerService(ServiceManager.java:89)
 at 
org.nuxeo.runtime.api.ServiceManagement.registerContribution(ServiceManagement.java:57)
 at 
org.nuxeo.runtime.model.DefaultComponent.registerExtension(DefaultComponent.java:41)
 at 
org.nuxeo.runtime.model.impl.ComponentInstanceImpl.registerExtension(ComponentInstanceImpl.java:172)
 at 
org.nuxeo.runtime.model.impl.ComponentManagerImpl.registerExtension(ComponentManagerImpl.java:377)
 at 
org.nuxeo.runtime.model.impl.RegistrationInfoImpl.activate(RegistrationInfoImpl.java:273)
 at 
org.nuxeo.runtime.model.impl.RegistrationInfoImpl.resolve(RegistrationInfoImpl.java:337)
 at 
org.nuxeo.runtime.model.impl.ComponentManagerImpl._register(ComponentManagerImpl.java:185)
 at 
org.nuxeo.runtime.model.impl.ComponentManagerImpl.register(ComponentManagerImpl.java:142)
 at 
org.nuxeo.runtime.model.impl.DefaultRuntimeContext.deploy(DefaultRuntimeContext.java:92)
 at 
org.nuxeo.runtime.osgi.OSGiRuntimeService.loadComponents(OSGiRuntimeService.java:202)
 at 
org.nuxeo.runtime.osgi.OSGiRuntimeService.createContext(OSGiRuntimeService.java:152)
 at 
org.nuxeo.runtime.osgi.OSGiComponentLoader.bundleChanged(OSGiComponentLoader.java:107)
 at org.nuxeo.osgi.OSGiAdapter.fireBundleEvent(OSGiAdapter.java:214)
 at org.nuxeo.osgi.BundleImpl.setResolved(BundleImpl.java:263)
 at org.nuxeo.osgi.BundleRegistry.doRegister(BundleRegistry.java:163)
 at org.nuxeo.osgi.BundleRegistry.register(BundleRegistry.java:120)
 at org.nuxeo.osgi.BundleRegistry.install(BundleRegistry.java:81)
 at org.nuxeo.osgi.OSGiAdapter.install(OSGiAdapter.java:160)
 at 
org.nuxeo.osgi.jboss.JBossOSGiAdapter.installBundle(JBossOSGiAdapter.java:110)
 at 
org.nuxeo.osgi.jboss.JBossOSGiAdapter.handleNotification2(JBossOSGiAdapter.java:255)
 at 
org.jboss.system.ListenerServiceMBeanSupport.handleNotification(ListenerServiceMBeanSupport.java:403)
 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
 at $Proxy64.handleNotification(Unknown Source)
 at 
org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
 at 
org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:110)
 at 
org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
 at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
 at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:523)
 at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 at 
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 at $Proxy35.start(Unknown Source)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
 at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
 at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
 at $Proxy25.deploy(Unknown Source)
 at 
org.nuxeo.runtime.jboss.deployment.NuxeoDeployer.start(NuxeoDeployer.java:264)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
 at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
 at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)



Any ideas?

Cheers.
--
Posted by "jiyarza" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2948#8686>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to