Hi Kurt.
Any change you could send me in email the juddi bundle (code & war)
you are using in the videos on the blog and also the self-registering
example (code % war)?
Thanks.
-Gunnlaugur
2010/4/29 Gunnlaugur Sigurðsson <[email protected]
<mailto:[email protected]>>
Hi Kurt.
I've been working with the juddi bundle. I had it installed on a
linux box here in my workplace and then I made some
configurations to it.
Most of them involved changing the server name and port. I went
through all config files to make sure I got everything right, and
I'm confident I did.
I'm using port 80, so I'm not referencing serverPort attribute in
any of the config files.
Then I copied the uddi.xml.sales file over the uddi.xml in the
webapps/uddi-portlets/WEB-INF/classes/META-INF directory
The file looks as follows
<uddi>
<reloadDelay>5000</reloadDelay>
<manager name="uddi-portlet-manager">
<nodes>
<node isHomeJUDDI="true">
<name>default</name>
<properties>
<property name="serverName"
value="juddi.my.server.com <http://juddi.my.server.com>"/>
<property name="serverPort" value="8080"/>
<property name="rmiPort" value="1099"/>
</properties>
<description>Main jUDDI node</description>
<!-- JAX-WS Transport -->
<proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
<custodyTransferUrl>http://${serverName}/juddiv3/services/custody-transfer?wsdl</custodyTransferUrl>
<inquiryUrl>http://${serverName}/juddiv3/services/inquiry?wsdl</inquiryUrl>
<publishUrl>http://${serverName}/juddiv3/services/publish?wsdl</publishUrl>
<securityUrl>http://${serverName}/juddiv3/services/security?wsdl</securityUrl>
<subscriptionUrl>http://${serverName}/juddiv3/services/subscription?wsdl</subscriptionUrl>
<subscriptionListenerUrl>http://${serverName}/juddiv3/services/subscription-listener?wsdl</subscriptionListenerUrl>
<juddiApiUrl>http://${serverName}/juddiv3/services/juddi-api?wsdl</juddiApiUrl>
</node>
<node>
<name>marketing</name>
<properties>
<property name="serverName"
value="juddi.my.server.com <http://juddi.my.server.com>"/>
<property name="serverPort" value="8080"/>
</properties>
<description>jUDDI node in other
Department</description>
<proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
<custodyTransferUrl>http://${serverName}/juddiv3/services/custody-transfer?wsdl</custodyTransferUrl>
<inquiryUrl>http://${serverName}/juddiv3/services/inquiry?wsdl</inquiryUrl>
<publishUrl>http://${serverName}/juddiv3/services/publish?wsdl</publishUrl>
<securityUrl>http://${serverName}/juddiv3/services/security?wsdl</securityUrl>
<subscriptionUrl>http://${serverName}/juddiv3/services/subscription?wsdl</subscriptionUrl>
<subscriptionListenerUrl>http://${serverName}/juddiv3/services/subscription-listener?wsdl</subscriptionListenerUrl>
<juddiApiUrl>http://${serverName}/juddiv3/services/juddi-api?wsdl</juddiApiUrl>
</node>
</nodes>
<clerks registerOnStartup="true">
<clerk name="SalesCratchit" node="default"
publisher="sales" password="sales"/>
<clerk name="MarketingCratchit" node="marketing"
publisher="sales" password="sales"/>
</clerks>
</manager>
</uddi>
I renamed RENAME4SALES_juddi_custom_install_data to
juddi_custom_install_data and it contain all the xml files that
were there.
Now when I browse the portal I see the new node, e.g. Sales Node
and the services contained under it, e.g. Sales Subscription
Listener Service. Thats more than I got last time.
But I'm still unable to get my service to self-register :(
This is the interface I'm working with
package org.apache.juddi.samples;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService(name="HelloWorld")
public interface HelloWorld {
@WebMethod(operationName = "sayHi")
String sayHi(@WebParam(name="text") String text);
}
And the implementation for it
package org.apache.juddi.samples;
import javax.jws.WebService;
import org.apache.juddi.v3.annotations.UDDIService;
import org.apache.juddi.v3.annotations.UDDIServiceBinding;
import org.springframework.stereotype.Controller;
@UDDIService(
businessKey="uddi:${keyDomain}:${department}-asf",
serviceKey="uddi:${keyDomain}:services-hello${department}",
description = "Hello World test service")
@UDDIServiceBinding(
bindingKey="uddi:${keyDomain}:bindings-hello${department}-wsdl",
description="WSDL endpoint for the hello${department}
Service. This service is used for testing the jUDDI annotation
functionality",
accessPointType="wsdlDeployment",
accessPoint="http://${serverName}/annotation.test/HelloWorld?wsdl")
@WebService(endpointInterface =
"org.apache.juddi.samples.HelloWorld", serviceName="HelloWorld")
@Controller
public class HelloWorldImpl implements HelloWorld {
public String sayHi(String text) {
System.out.println("sayHi called");ren.siminn.is
<http://ren.siminn.is>
return "Hello " + text;
}
}
And the uddi.xml I have in my src/main/resources/META-INF
<?xml version="1.0" encoding="ISO-8859-1" ?>
<uddi>
<reloadDelay>5000</reloadDelay>
<manager name="example-manager">
<nodes>
<node isHomeJUDDI="true">
<name>Sales Node</name>
<description>Sales jUDDI node</description>
<properties>
<property name="serverName" value="juddi.my.server.com
<http://juddi.my.server.com>"/>
<property name="serverPort" value="8080"/>
<property name="keyDomain" value="sales.apache.org
<http://sales.apache.org>"/>
<property name="department" value="sales" />
</properties>
<!--
<proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
-->
<proxyTransport>org.apache.juddi.v3.client.transport.InVMTransport</proxyTransport>
<custodyTransferUrl>http://${serverName}/juddiv3/service/custody-transfer?wsdl</custodyTransferUrl>
<inquiryUrl>http://${serverName}/juddiv3/service/inquiry?wsdl</inquiryUrl>
<publishUrl>http://${serverName}/juddiv3/service/publish?wsdl</publishUrl>
<securityUrl>http://${serverName}/juddiv3/service/security?wsdl</securityUrl>
<subscriptionUrl>http://${serverName}/juddiv3/service/subscription?wsdl</subscriptionUrl>
<subscriptionListenerUrl>http://${serverName}/juddiv3/service/subscription-listener?wsdl</subscriptionListenerUrl>
<juddiApiUrl>http://${serverName}/juddiv3/service/juddi-api?wsdl</juddiApiUrl>
</node>
</nodes>
<clerks registerOnStartup="true">
<clerk name="SalesCratchit" node="default" publisher="sales"
password="sales">
<class>org.apache.juddi.samples.HelloWorldImpl</class>
</clerk>
</clerks>
</manager>
</uddi>
And the endpoint in my application context file
<jaxws:endpoint id="helloWorldEndpoint"
implementor="#helloWorldImpl" address="/HelloWorld" />
I can access my hello world service by entering the service url
in the browser and I get the wsdl file, but the service is not
self-registered into the registry.
I'm all out of ideas here :(
Thanks
Gunnlaugur.
2010/4/28 Gunnlaugur Sigurðsson <[email protected]
<mailto:[email protected]>>
Ok. No problem :)
Thanks.
-Gunnlaugur
On Wed, Apr 28, 2010 at 3:27 PM, Kurt T Stam
<[email protected] <mailto:[email protected]>> wrote:
Sorry Gunnlaugur,
Give me a day or so. Haven't forgotten about you :)!
--Kurt
Gunnlaugur Sigurðsson wrote:
Hi Kurt.
Have you had any time to look into the issue in my
last post?
Kind regards
-Gunnlaugur
2010/4/23 Gunnlaugur Sigurðsson
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>>
Hi Kurt.
I checked out the source and ran mvn install, but
maven is unable
to find the jdocbook-plugin
[INFO] Unable to find resource
'org.jboss.maven.plugins:maven-jdocbook-plugin:pom:2.2.0'
in
repository repository.jboss.org
<http://repository.jboss.org>
<http://repository.jboss.org>
(http://repository.jboss.org/maven2/)
I've browsed the jboss repo but could not find it.
Do you know where I can find it?
Thanks.
-Gunnlaugur
On Fri, Apr 23, 2010 at 6:12 PM, Kurt Stam
<[email protected] <mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hi Gunnlaugur,
Could you try the same with the code from the
trunk?
Just check it out and run
mvn install
Thx!
--Kurt
Sent from my iPhone
On Apr 23, 2010, at 3:05 AM, Gunnlaugur Sigurðsson
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hi Kurt.
I've watched all the demo's on the blog
site and still can't
get the web service to auto register.
I added the DEBUG to this line to the
logging.properties file
in the /opt/juddi-portal-bundle-3.0.1/conf
directory
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level
= INFO, DEBUG
juddi.log, host-manager.2010-04-23.log and
pluto.2010-04-23.log are empty after I
reloaded my web service
The following is an output from the other
logs in
/opt/juddi-portal-bundle-3.0.1/logs
# catalina.out
Apr 23, 2010 9:41:40 AM
org.apache.catalina.core.StandardContext
reload
INFO: Reloading this Context has started
2010-04-23 09:41:40,042 INFO
[org.apache.cxf.bus.spring.BusApplicationContext]
- Closing
org.apache.cxf.bus.spring.busapplicationcont...@19a8bf2:
display name
[org.apache.cxf.bus.spring.busapplicationcont...@19a8bf2];
startup date [Fri Apr 23 08:49:06 GMT
2010]; parent:
org.springframework.web.context.support.xmlwebapplicationcont...@1bf48de
Apr 23, 2010 9:41:41 AM
org.apache.cxf.endpoint.ServerImpl
initDestination
INFO: Setting the server's publish address
to be /App
Apr 23, 2010 9:41:41 AM
org.apache.cxf.transport.servlet.CXFServlet
updateContext
INFO: Load the bus with application context
2010-04-23 09:41:41,648 INFO
[org.apache.cxf.bus.spring.BusApplicationContext] -
Refreshing
org.apache.cxf.bus.spring.busapplicationcont...@849077:
display name
[org.apache.cxf.bus.spring.busapplicationcont...@849077];
startup date [Fri Apr 23 09:41:41 GMT
2010]; parent:
org.springframework.web.context.support.xmlwebapplicationcont...@6fc65
Apr 23, 2010 9:41:41 AM
org.apache.cxf.bus.spring.BusApplicationContext
getConfigResources
INFO: No cxf.xml configuration file
detected, relying on
defaults.
2010-04-23 09:41:41,673 INFO
[org.apache.cxf.bus.spring.BusApplicationContext]
- Bean
factory for application context
[org.apache.cxf.bus.spring.busapplicationcont...@849077]:
org.springframework.beans.factory.support.defaultlistablebeanfact...@12c6051
Apr 23, 2010 9:41:41 AM
org.apache.cxf.transport.servlet.AbstractCXFServlet
replaceDestinationFactory
INFO: Servlet transport factory already
registered
# localhost.2010-04-23.log
Apr 23, 2010 9:41:40 AM
org.apache.catalina.core.ApplicationContext log
INFO: Shutting down log4j
Apr 23, 2010 9:41:40 AM
org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root
WebApplicationContext
Apr 23, 2010 9:41:40 AM
org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root
WebApplicationContext
Apr 23, 2010 9:41:41 AM
org.apache.catalina.core.ApplicationContext log
INFO: Set web app root system property:
'annotation.test.root' =
[/opt/juddi-portal-bundle-3.0.1/webapps/annotation.test/]
Apr 23, 2010 9:41:41 AM
org.apache.catalina.core.ApplicationContext log
INFO: Initializing log4j from
[/opt/juddi-portal-bundle-3.0.1/webapps/annotation.test/WEB-INF/classes/log4j.properties]
# manager.2010-04-23.log
Apr 23, 2010 9:41:40 AM
org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: restart: Reloading web
application at
'/annotation.test'
Apr 23, 2010 9:41:41 AM
org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts
for virtual host
'localhost'
Here is the uddi.xml I use in my web service.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<uddi>
<reloadDelay>5000</reloadDelay>
<manager name="example-manager">
<nodes>
<node>
<name>App</name>
<description>Sales jUDDI
node</description> <properties>
<property name="serverName"
value="localhost"/>
<property name="serverPort"
value="8086"/>
<property name="keyDomain"
value="sales.apache.org <http://sales.apache.org>
<http://sales.apache.org>"/>
<property name="department"
value="sales" />
</properties>
<proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
<custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/service/custody-transfer?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/juddiv3/service/custody-transfer?wsdl></custodyTransferUrl>
<inquiryUrl>http://${serverName}:${serverPort}/juddiv3/service/inquiry?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/juddiv3/service/inquiry?wsdl></inquiryUrl>
<publishUrl>http://${serverName}:${serverPort}/juddiv3/service/publish?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/juddiv3/service/publish?wsdl></publishUrl>
<securityUrl>http://${serverName}:${serverPort}/juddiv3/service/security?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/juddiv3/service/security?wsdl></securityUrl>
<subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/service/subscription?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/juddiv3/service/subscription?wsdl></subscriptionUrl>
<subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/service/subscription-listener?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/juddiv3/service/subscription-listener?wsdl></subscriptionListenerUrl>
<juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/service/juddi-api?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/juddiv3/service/juddi-api?wsdl></juddiApiUrl>
</node>
</nodes>
<clerks registerOnStartup="true">
<clerk name="BobCratchit"
node="default" publisher="sales"
password="sales">
<class>my.domain.juddi.ws.AppImpl</class>
</clerk>
</clerks>
</manager>
</uddi>
My web service implementation
@UDDIService(
businessKey="uddi:myBusinessKey",
serviceKey="uddi:myServiceKey",
description = "Hello World test
service")
@UDDIServiceBinding(
bindingKey="uddi:myServiceBindingKey",
description="WSDL endpoint for the
hello${department} Service. This service
is used for testing
the jUDDI annotation functionality",
accessPointType="wsdlDeployment",
accessPoint="http://${serverName}:${serverPort}/annotation.test/App?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/annotation.test/App?wsdl>")
@WebService(endpointInterface =
"is.siminn.juddi.ws.App",
serviceName="App",
targetNamespace="http://annotation.test.dev.ut.siminn.is/ws")
@Controller
public class AppImpl implements App {
private static final Log log =
LogFactory.getLog(AppImpl.class);
@Autowired
private AppInfoService appService;
public AppInfo Hello(String
appName) {
log.debug("got a request with a
name: " + appName);
return appService.getAppInfo(appName);
}
}
Thanks.
-Gunnlaugur
On Wed, Apr 21, 2010 at 3:32 PM, Kurt Stam
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Yup you can, you just can't use an
InVM transport in that
case.
--K
On Apr 21, 2010, at 8:04 AM,
Gunnlaugur Sigurðsson
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hi Kurt.
Just so I have this clear.
Can I deploy my web service to one
tomcat instance and
have it register the service to
juddi on another tomcat
instance that's responsible for
running the registry ?
Or is my war file deployed into
the juddi tomcat instance?
Thanks.
Kind regards.
Gunnlaugur
On Wed, Apr 21, 2010 at 2:06 PM,
Kurt T Stam
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
Hi Gunnlaugur,
Here some suggestions that
maybe helpful:
1. Follow the screencast on
our blog to deploy the
juddi-sample.war
which does just what you want.
2. Turn on debug level logging
and post that so we
can see what's going on.
--Kurt
On Tuesday, April 20, 2010,
Gunnlaugur Sigurðsson
<[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>> wrote:
> Hello.
>
> I sent this message earlier,
but I had not
registered to the list so I
thought I needed to do
that before.
> But if the message did get
to the list in my prior
post, I apologize for this
message.
>
> I'm new to juddi.
> I've installed jUDDI version
3.0.1 using the
default configuration and can
browse the registry
using UDDIBrowser Portlet.
>
> Now I'm trying to register
service I created for a
test I'm performing.
> I'm using eclipse and have a
tomcat instance
running (ports 8080, 8015, 8019)
>
> I followed the example on
the blog site
>
http://apachejuddi.blogspot.com/2009/11/uddi-annotations-how-do-i-self-register.html
> But the service is not
getting registered in the
juddi registry. The service is
deployed to my
tomcat/eclipse server
successfully and I get the
wsdl page in the eclipse Web
Service Explorer.
> I'm I missing something in
my test? Thanks.
>
>
> Here is the code I have for
my service.
> # App.java
> @WebService(name="App",
targetNamespace="http://annotation.test.dev.my.domain.com/ws")
> public interface App {
>
> @UDDIService(
>
businessKey="uddi:myBusinessKey",
>
serviceKey="uddi:myServiceKey",
> description =
"Hello World test
service")
> @UDDIServiceBinding(
>
bindingKey="uddi:myServiceBindingKey",
>
description="WSDL endpoint for the
hello${department} Service.
This service is used for
testing the jUDDI annotation
functionality",
>
accessPointType="wsdlDeployment",
>
accessPoint="http://${serverName}:${serverPort}/annotation.test/App?wsdl
<http://%24%7BserverName%7D%3A$%7BserverPort%7D/annotation.test/App?wsdl>")
>
> @WebMethod(operationName
= "Hello")
> @WebResult(name="AppInfo")
> AppInfo
Hello(@WebParam(name="AppName") String
appName);
> }
>
> # uddi.xml
> <?xml version="1.0"
encoding="ISO-8859-1" ?>
> <uddi>
> <reloadDelay>5000</reloadDelay>
> <manager
name="example-manager">
> <nodes>
> <node>
> <name>App</name>
> <description>Sales jUDDI
node</description>
> <properties>
> <property
name="serverName" value="localhost"/>
> <property
name="serverPort" value="8086"/>
> <property
name="keyDomain"
value="juddi.my.domain.com
<http://juddi.my.domain.com>
<http://juddi.my.domain.com>"/>
> <property
name="department"
value="development" />
> </properties>
>
<proxyTransport>org.apache.juddi.v3.client.transport.InVMTransport</proxyTransport>
>
<custodyTransferUrl>org.apache.juddi.api.impl.UDDICustodyTransferImpl</custodyTransferUrl>
>
<inquiryUrl>org.apache.juddi.api.impl.UDDIInquiryImpl</inquiryUrl>
>
<publishUrl>org.apache.juddi.api.impl.UDDIPublicationImpl</publishUrl>
>
<securityUrl>org.apache.juddi.api.impl.UDDISecurityImpl</securityUrl>
>
<subscriptionUrl>org.apache.juddi.api.impl.UDDISubscriptionImpl</subscriptionUrl>
>
<subscriptionListenerUrl>org.apache.juddi.api.impl.UDDISubscriptionListenerImpl</subscriptionListenerUrl>
>
<juddiApiUrl>org.apache.juddi.api.impl.JUDDIApiImpl</juddiApiUrl>
> </node>
> </nodes>
> <clerks
registerOnStartup="true">
> <clerk name="BobCratchit"
node="default"
publisher="development"
password="development">
>
<class>my.domain.com.juddi.ws.AppImpl</class>
> </clerk>
> </clerks>
> </manager>
> </uddi>
>
> --
>
> Kveðja/Regards
> Gunnlaugur Sigurðsson
> [email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
> Mobile: (+354) 896-7963
> Home: (+354) 565-5229
>
--
Kveðja/Regards
Gunnlaugur Sigurðsson
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
Mobile: (+354) 896-7963
Home: (+354) 565-5229
--
Kveðja/Regards
Gunnlaugur Sigurðsson
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
Mobile: (+354) 896-7963
Home: (+354) 565-5229
--
Kveðja/Regards
Gunnlaugur Sigurðsson
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
Mobile: (+354) 896-7963
Home: (+354) 565-5229
--
Kveðja/Regards
Gunnlaugur Sigurðsson
[email protected]
<mailto:[email protected]>
<mailto:[email protected]
<mailto:[email protected]>>
Mobile: (+354) 896-7963
Home: (+354) 565-5229
--
Kveðja/Regards
Gunnlaugur Sigurðsson
[email protected] <mailto:[email protected]>
Mobile: (+354) 896-7963
Home: (+354) 565-5229
--
Kveðja/Regards
Gunnlaugur Sigurðsson
[email protected] <mailto:[email protected]>
Mobile: (+354) 896-7963
Home: (+354) 565-5229
--
Kveðja/Regards
Gunnlaugur Sigurðsson
[email protected] <mailto:[email protected]>
Mobile: (+354) 896-7963
Home: (+354) 565-5229