Progress :), and yes you want to add a clerk config to your example-manager, and reference your annotated classes --K

On 3/30/11 9:23 AM, everson santos wrote:

I forgot to clean clerk from esb.juddi.client.xml. After this change I think that example-manager must be loaded like uddi-portlet-manager don't ?

09:45:01,170 INFO [UDDIClerkManager] Starting UDDI Clerks for manager uddi-portlet-manager...


--- Em *qua, 30/3/11, Kurt T Stam /<[email protected]>/* escreveu:


    De: Kurt T Stam <[email protected]>
    Assunto: Re: Help to publish and find services into juddi using
    jboss and esb
    Para: [email protected]
    Data: Quarta-feira, 30 de Março de 2011, 10:11

    So I think 'uddi-portlet-manager' is the client config in the esb
    right? And I don't think you are deploying your
    'org.jboss.samples.HelloWorld' class there. So you should remove
    the that from the Clerk config in that file.

    You want to add a Clerk (who will do the registration, using the
    annotations info) in the war file with your webservices.
    Much like the juddiv3-samples.war.

    Hope this helps..

    --Kurt

    On 3/30/11 8:59 AM, everson santos wrote:


    Hi Kurt

    I put the jars as you said in deployers/esb.deployers/lib and
    replace jbossesb.sar/meta-inf/jboss-service.xml.
      The mbean doesn't appear when jboss is loading, but in the
    jmx-console I can see it, seems ok.
    I create  in web.xml of my .war
    <context-param>
    <param-name>uddi.client.manager.name</param-name>
    <param-value>example-manager</param-value>
    </context-param>

    But I get the notfoundexception yet. I looking at the tables from
    juddi schema and I didn't anything new in :
    j3_business_service, j3_business_name, j3_service_name

    I thing I must see in that tables the names from my annotations:
    @UDDIService(
      businessKey="uddi:eversonBusinessKey",
      serviceKey="uddi:eversonServiceKey",


    When jboss is loading:

    9:45:00,998 INFO  [InVMTemporaryTransport] Starting reaper thread
    09:45:01,094 INFO  [ClientConfig] Reading UDDI Client properties
    file
    
vfsfile:/home/everson.santos/Downloads/jboss-5.1.0.GA-testes-juddi/server/default/deploy/jbossesb.sar/esb.juddi.client.xml
    09:45:01,129 INFO  [ClientConfig] XRegistration 0 servicebindingKeys
    09:45:01,129 INFO  [ClientConfig] XRegistration 0 businessKeys
    09:45:01,170 INFO  [UDDIClerkManager] Starting UDDI Clerks for
    manager uddi-portlet-manager...
    09:45:01,171 INFO  [UDDIClerkManager] No home clerk found.
    09:45:01,177 ERROR [STDERR] java.lang.ClassNotFoundException:
    org.jboss.samples.HelloWorld
    09:45:01,177 ERROR [STDERR]     at
    java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    09:45:01,177 ERROR [STDERR]     at
    java.security.AccessController.doPrivileged(Native Method)
    09:45:01,177 ERROR [STDERR]     at
    java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    09:45:01,177 ERROR [STDERR]     at
    java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    09:45:01,177 ERROR [STDERR]     at
    java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    09:45:01,177 ERROR [STDERR]     at
    java.lang.Class.forName0(Native Method)
    09:45:01,177 ERROR [STDERR]     at
    java.lang.Class.forName(Class.java:169)
    09:45:01,177 ERROR [STDERR]     at
    org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
    09:45:01,177 ERROR [STDERR]     at
    
org.apache.juddi.v3.annotations.AnnotationProcessor.readServiceAnnotations(AnnotationProcessor.java:65)
    09:45:01,177 ERROR [STDERR]     at
    
org.apache.juddi.v3.annotations.AnnotationProcessor.readServiceAnnotations(AnnotationProcessor.java:53)
    09:45:01,178 ERROR [STDERR]     at
    
org.apache.juddi.v3.client.config.UDDIClerkManager.registerAnnotatedServices(UDDIClerkManager.java:137)
    09:45:01,178 ERROR [STDERR]     at
    
org.apache.juddi.v3.client.config.BackGroundRegistration.run(BackGroundRegistration.java:39)
    09:45:01,178 ERROR [STDERR]     at
    java.lang.Thread.run(Thread.java:662)
    09:45:01,178 INFO  [UDDIClerkManager] Starting cross registration...
    09:45:01,178 INFO  [UDDIClerkManager] Cross registration completed
    09:45:01,178 INFO  [UDDIClerkManager] Clerks started succesfully
    for manager uddi-portlet-manager



    I'm sending my uddi.xml and esb.juddi.client.xml if it is help to
    understand


    Thanks!


    --- Em *ter, 29/3/11, Kurt T Stam /<[email protected]>
    </mc/[email protected]>/* escreveu:


        De: Kurt T Stam <[email protected]>
        </mc/[email protected]>
        Assunto: Re: Help to publish and find services into juddi
        using jboss and esb
        Para: [email protected]
        </mc/[email protected]>, [email protected]
        </mc/[email protected]>
        Data: Terça-feira, 29 de Março de 2011, 17:47

        Hi Everson,

        I have attached 2 jars and an updated config file.

        1. Place the jars in deployers/esb.deployers/lib
        The juddi-client-service jar will start the manager and set 2
        system parameters (managerName and nodeName)
        The updated juddi-client.jar reads those parameters, which
        means that at this point we can handle multiple uddi.xml configs.

        2. Replace the jbossesb.sar/META-INF/jboss-service.xml, this
        will run the MBean in the juddi-client-service.jar.

        Make sure things work and then add your on war file with your
        endpoints, and your client uddi.xml config. Note that you can
        configure
        the name of the manager and uddi.xml file to something else
        in the web.xml using context-parameters
        (uddi.client.config.file, and
        uddi.client.manager.name), like

        <context-param>
        <param-name>uddi.client.manager.name</param-name>
        <param-value>example-manager</param-value>
        </context-param>

        If this works for you I will add all the new code to the
        jUDDI trunk.

        Cheers,

        --Kurt



Reply via email to