[ome-users] Extending OMERO fails

Harri Jäälinoja harri.jaalinoja at helsinki.fi
Thu Mar 22 15:59:56 GMT 2012


> This looks like a bug in the server itself. This line:
>
>    https://github.com/openmicroscopy/openmicroscopy/blob/dev_4_3/components/server/src/ome/logic/LdapImpl.java#L474
>
> doesn't strip off the ":bean:" prefix as is done in the other beans, e.g.
>
>    https://github.com/openmicroscopy/openmicroscopy/blob/dev_4_3/components/server/src/ome/security/auth/QueryNewUserGroupBean.java#L46
>
> You can try to rename your bean :bean:hyHcNewUserGroupBean and see if that works. And I'll look into fixing this as soon as possible.
>
> Thanks for hanging in there!
> ~Josh.
>

Hi Josh,

your example was great help, thanks! Much quicker now :)

---
BUILD SUCCESSFUL
Total time: 3 seconds
---


I still get the same error, though:

2012-03-22 17:37:50,831 WARN  [        ome.services.util.ServiceHandler] 
(l.Server-3) Unknown exception thrown.

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean 
named ':bean:hyldapbean' is defined


So I have the fresh hyldap.jar in [OMERO]/lib/server

[omero at lmu-omero2 OMERO.server-Beta-4.3.3]$ mkdir tmp
[omero at lmu-omero2 OMERO.server-Beta-4.3.3]$ cd tmp
[omero at lmu-omero2 tmp]$ jar xvf ../lib/server/hyldap.jar
   created: META-INF/
  inflated: META-INF/MANIFEST.MF
   created: ome/
   created: ome/services/
  inflated: ome/services/service-hyldap.xml
  inflated: omero.properties
   created: hyldap/
  inflated: hibernate.properties
  inflated: hyldap/HyHcNewUserGroupBean.class
  inflated: hyldap/HyNewUserGroupBean$1.class
  inflated: hyldap/HyNewUserGroupBean.class
  inflated: hyldap/NewUserGroupBean.class

[omero at lmu-omero2 tmp]$ cat ome/services/service-hyldap.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" 
"http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

     <bean id=":bean:hyldapbean" class="hyldap.HyHcNewUserGroupBean"/>

</beans>
[omero at lmu-omero2 tmp]$

Is there maybe something else I need to do to make OMERO aware of the 
hyldap.jar?

Cheers,
Harri

-- 
__________________________________________________
Harri Jäälinoja
Light Microscopy Unit
Institute of Biotechnology, University of Helsinki
http://www.biocenter.helsinki.fi/bi/lmu/
+358 9 191 59370 fax +358 9 191 59366




More information about the ome-users mailing list