Author: kstam
Date: Thu May 9 01:49:03 2013
New Revision: 1480519
URL: http://svn.apache.org/r1480519
Log:
JUDDI-514 improving support for WSDL2UDDI adding deployment lifecycle example
Added:
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/
- copied from r1480312,
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/samples/
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Find.java
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Setup.java
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/classes/
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/classes/log4j.properties
juddi/trunk/juddi-examples/wsdl2uddi/src/test/resources/log4j.xml
Removed:
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/samples/
Modified:
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/BackGroundRegistration.java
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkManager.java
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkServlet.java
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/WebHelper.java
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorld.java
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/sales-uddi.xml
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/uddi-annotations.xml
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/beans.xml
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/classes/juddiv3.properties
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/ (props changed)
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/README.txt
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
Modified:
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/BackGroundRegistration.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/BackGroundRegistration.java?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/BackGroundRegistration.java
(original)
+++
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/BackGroundRegistration.java
Thu May 9 01:49:03 2013
@@ -36,6 +36,7 @@ public class BackGroundRegistration impl
log.debug("Starting UDDI Clerks for manager " +
manager.getClientConfig().getManagerName() + "...");
manager.saveClerkAndNodeInfo();
manager.registerAnnotatedServices();
+ manager.registerWSDLs();
manager.xRegister();
log.debug("Clerks started succesfully for
manager " + manager.getClientConfig().getManagerName());
} else {
Modified:
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkManager.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkManager.java?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkManager.java
(original)
+++
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkManager.java
Thu May 9 01:49:03 2013
@@ -93,7 +93,10 @@ public class UDDIClerkManager {
}
private void releaseResources() {
- unRegisterBindingsOfAnnotatedServices(true);
+ if (this.clientConfig.isRegisterOnStartup()) {
+ unRegisterWSDLs();
+ unRegisterBindingsOfAnnotatedServices(true);
+ }
}
/**
* Initializes the UDDI Clerk.
@@ -107,10 +110,11 @@ public class UDDIClerkManager {
log.info("Starting embedded Server");
startEmbeddedServer();
}
-
- Runnable runnable = new BackGroundRegistration(this);
- Thread thread = new Thread(runnable);
- thread.start();
+ if (this.clientConfig.isRegisterOnStartup()) {
+ Runnable runnable = new
BackGroundRegistration(this);
+ Thread thread = new Thread(runnable);
+ thread.start();
+ }
}
}
@@ -325,7 +329,7 @@ public class UDDIClerkManager {
* @throws ConfigurationException
* @throws RemoteException
*/
- public void registerWSDLs() throws WSDLException, RemoteException,
ConfigurationException, TransportException {
+ public void registerWSDLs() {
Map<String,UDDIClerk> uddiClerks = clientConfig.getUDDIClerks();
if (uddiClerks.size() > 0) {
for (UDDIClerk uddiClerk : uddiClerks.values()) {
@@ -334,7 +338,7 @@ public class UDDIClerkManager {
}
}
- public void unRegisterWSDLs() throws WSDLException, RemoteException,
ConfigurationException, TransportException, MalformedURLException {
+ public void unRegisterWSDLs() {
Map<String,UDDIClerk> uddiClerks = clientConfig.getUDDIClerks();
if (uddiClerks.size() > 0) {
for (UDDIClerk uddiClerk : uddiClerks.values()) {
Modified:
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkServlet.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkServlet.java?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkServlet.java
(original)
+++
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/UDDIClerkServlet.java
Thu May 9 01:49:03 2013
@@ -42,6 +42,9 @@ public class UDDIClerkServlet extends Ht
super.init(config);
try {
manager =
WebHelper.getUDDIClerkManager(config.getServletContext());
+ if (manager.getClientConfig().isRegisterOnStartup()) {
+ manager.registerWSDLs();
+ }
} catch (Exception e) {
logger.error("UDDI-client could not be started for
manager " + manager.getName() + ". "
+ e.getMessage(), e);
Modified:
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/WebHelper.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/WebHelper.java?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/WebHelper.java
(original)
+++
juddi/trunk/juddi-client/src/main/java/org/apache/juddi/v3/client/config/WebHelper.java
Thu May 9 01:49:03 2013
@@ -91,18 +91,6 @@ public class WebHelper {
throw new ConfigurationException("A manager
name needs to be specified in the client config file.");
}
- String baseUrl = servletContext.getRealPath("/");
- System.out.println("Realpath=" + baseUrl);
- try {
- URL url=new URL(baseUrl);
- String host = url.getHost();
- int port = url.getPort();
-
System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^" + host + ":" + port);
- } catch (MalformedURLException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
manager.start();
servletContext.setAttribute(JUDDI_CLIENT_MANAGER_NAME,
managerName);
return manager;
Modified:
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorld.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorld.java?rev=1480519&r1=1480312&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorld.java
(original)
+++
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorld.java
Thu May 9 01:49:03 2013
@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
-package org.apache.juddi.samples;
+package org.apache.juddi.example;
import javax.jws.WebParam;
import javax.jws.WebService;
Modified:
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorldImpl.java?rev=1480519&r1=1480312&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
(original)
+++
juddi/trunk/juddi-examples/uddi-annotations/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
Thu May 9 01:49:03 2013
@@ -14,7 +14,7 @@
* limitations under the License.
*
*/
-package org.apache.juddi.samples;
+package org.apache.juddi.example;
import javax.jws.WebService;
@@ -33,7 +33,7 @@ import org.apache.juddi.v3.annotations.U
accessPointType="wsdlDeployment",
accessPoint="http://${serverName}:${serverPort}/uddi-annotations/services/helloworld?wsdl")
@WebService(
- endpointInterface = "org.apache.juddi.samples.HelloWorld",
+ endpointInterface = "org.apache.juddi.example.HelloWorld",
serviceName = "HelloWorld")
public class HelloWorldImpl implements HelloWorld {
Modified:
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/sales-uddi.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/sales-uddi.xml?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/sales-uddi.xml
(original)
+++
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/sales-uddi.xml
Thu May 9 01:49:03 2013
@@ -24,7 +24,7 @@
</nodes>
<clerks registerOnStartup="true">
<clerk name="BobCratchit" node="default" publisher="sales"
password="sales">
- <class>org.apache.juddi.samples.HelloWorldImpl</class>
+ <class>org.apache.juddi.example.HelloWorldImpl</class>
</clerk>
</clerks>
</manager>
Modified:
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/uddi-annotations.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/uddi-annotations.xml?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/uddi-annotations.xml
(original)
+++
juddi/trunk/juddi-examples/uddi-annotations/src/main/resources/META-INF/uddi-annotations.xml
Thu May 9 01:49:03 2013
@@ -24,7 +24,7 @@
</nodes>
<clerks registerOnStartup="true">
<clerk name="ROOTClerk" node="default" publisher="root"
password="root">
- <class>org.apache.juddi.samples.HelloWorldImpl</class>
+ <class>org.apache.juddi.example.HelloWorldImpl</class>
</clerk>
</clerks>
</manager>
Modified:
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/beans.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/beans.xml?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/beans.xml
(original)
+++
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/beans.xml
Thu May 9 01:49:03 2013
@@ -24,7 +24,7 @@
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
- <jaxws:endpoint id="helloworld"
implementor="org.apache.juddi.samples.HelloWorldImpl"
+ <jaxws:endpoint id="helloworld"
implementor="org.apache.juddi.example.HelloWorldImpl"
address="/helloworld" />
</beans>
Modified:
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/classes/juddiv3.properties
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/classes/juddiv3.properties?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/classes/juddiv3.properties
(original)
+++
juddi/trunk/juddi-examples/uddi-annotations/src/main/webapp/WEB-INF/classes/juddiv3.properties
Thu May 9 01:49:03 2013
@@ -90,11 +90,6 @@ juddi.server.port=8080
# Duration of time for tokens to expire
juddi.auth.token.Timeout=15
-
-# As of 3.1.5
-# Duration of time for tokens to expire
-juddi.auth.token.Timeout=15
-
# As of 3.1.5
# This setting will force referential integrity for all tModels (except
keyGenerators),
# category bags, bindingTemplate/AccessPoint/hostingRedirector (referencing
another host),
Propchange: juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Thu May 9 01:49:03 2013
@@ -1,3 +1,4 @@
.settings
.classpath
.project
+target
Modified: juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/README.txt
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/README.txt?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
--- juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/README.txt (original)
+++ juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/README.txt Thu May 9
01:49:03 2013
@@ -7,36 +7,65 @@ This example is a command line demonstra
3. Create Joe Publisher and his keyGenerator and then register the services in
wsdl/helloworld.wsdl to jUDDI.
it creates a businessEntity with businessKey
'uddi:uddi.joepublisher.com:business-for-wsdl'
-mvn -Ppublish test
+mvn -Psetup test
You should see the following output being written to the console:
-[INFO] --- exec-maven-plugin:1.1.1:java (default) @ wsdl2uddi ---
-May 08, 2013 12:14:41 PM org.apache.juddi.v3.client.config.ClientConfig
loadConfiguration
-INFO: Reading UDDI Client properties file
file:/Users/kstam/osc/apache/dev/juddi-patch/juddi-examples/wsdl2uddi/target/classes/META-INF/wsdl2uddi-uddi.xml
-root AUTHTOKEN = authtoken:459d0ac2-cb6c-4dde-813f-1ddba4b99f20
-May 08, 2013 12:14:48 PM org.apache.juddi.v3.client.config.UDDIClerk register
-INFO: Registering tModel with key uddi:uddi.joepublisher.com:keygenerator
-May 08, 2013 12:14:49 PM org.apache.juddi.v3.client.config.UDDIClerk register
+...
+
+May 08, 2013 9:23:07 PM org.apache.juddi.v3.client.config.UDDIClerk register
INFO: Registering business WSDL-Business with key
uddi:uddi.joepublisher.com:business-for-wsdl
-Retrieving document at
'file:/Users/kstam/osc/apache/dev/juddi-patch/juddi-examples/wsdl2uddi/target/classes/wsdl/helloworld.wsdl'.
-May 08, 2013 12:14:49 PM org.uddi.JAXBContextUtil getContext
-INFO: Creating JAXB Context for org.uddi.api_v3
-May 08, 2013 12:14:49 PM org.apache.juddi.v3.client.config.UDDIClerk
checkForErrorInDispositionReport
-INFO: entityKey uddi:uddi.joepublisher.com:service_helloworld was not found in
the registry
-May 08, 2013 12:14:49 PM org.apache.juddi.v3.client.config.UDDIClerk register
-INFO: Registering tModel with key uddi:uddi.joepublisher.com:HelloWorld
-May 08, 2013 12:14:49 PM org.apache.juddi.v3.client.config.UDDIClerk register
-INFO: Registering tModel with key
uddi:uddi.joepublisher.com:HelloWorldSoapBinding
-May 08, 2013 12:14:49 PM org.apache.juddi.v3.client.config.UDDIClerk register
-INFO: Registering service HelloWorld with key
uddi:uddi.joepublisher.com:service_helloworld
-May 08, 2013 12:14:49 PM org.apache.juddi.v3.client.config.UDDIClerk register
-INFO: Registering bindingTemplate with key
uddi:uddi.joepublisher.com:binding_localhost_helloworld_helloworldimplport_8080
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
-4. Check that we can find this business in the registry by running from Queries
+4. Now that the business is there, we can deploy the wsdl2uddi.war which
contains the
+JAX-WS HelloWorld WebService and it deploys its wsdl (in
wsdl/HelloWorld.wsdl). So on deployment
+it brings up the WebService AND it registers it to UDDI.
+
+mvn -Pdeploy cargo:deploy
+
+[INFO] Scanning for projects...
+[INFO]
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jUDDI Example WSDL2UDDI Deployment Lifecycle 3.1.5-SNAPSHOT
+[INFO] ------------------------------------------------------------------------
+[INFO]
+[INFO] --- cargo-maven2-plugin:1.3.3:deploy (default-cli) @
wsdl2uddi-lifecycle ---
+[INFO] [edDeployerDeployMojo] Resolved container artifact
org.codehaus.cargo:cargo-core-container-tomcat:jar:1.3.3 for container tomcat6x
+[INFO] [stalledLocalDeployer] Deploying
[/Users/kstam/osc/apache/dev/juddi-patch/juddi-examples/wsdl2uddi-lifecyle/target/wsdl2uddi.war]
to
[/Users/kstam/osc/apache/dev/juddi-patch/juddi-examples/wsdl2uddi-lifecyle/../../juddi-tomcat/target/tomcat/apache-tomcat-6.0.26/webapps]...
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESS
+[INFO] ------------------------------------------------------------------------
+
+while on the server in the <tomcat>/logs/juddi.log it should say:
+
+Bringing up the endpoint:
+2013-05-08 21:31:51,763 INFO [org.springframework.web.context.ContextLoader] -
Root WebApplicationContext: initialization started
+2013-05-08 21:31:51,792 INFO
[org.springframework.web.context.support.XmlWebApplicationContext] - Refreshing
Root WebApplicationContext: startup date [Wed May 08 21:31:51 EDT 2013]; root
of context hierarchy
+2013-05-08 21:31:51,831 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML
bean definitions from ServletContext resource [/WEB-INF/beans.xml]
+2013-05-08 21:31:51,856 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML
bean definitions from class path resource [META-INF/cxf/cxf.xml]
+2013-05-08 21:31:51,875 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML
bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]
+2013-05-08 21:31:51,885 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML
bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
+2013-05-08 21:31:51,892 INFO
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML
bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml]
+2013-05-08 21:31:52,038 INFO
[org.springframework.beans.factory.support.DefaultListableBeanFactory] -
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@21e7937:
defining beans
[cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.Q
ueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,helloworld];
root of factory hierarchy
+2013-05-08 21:31:52,736 INFO [org.springframework.web.context.ContextLoader] -
Root WebApplicationContext: initialization completed in 973 ms
+2013-05-08 21:31:52,744 INFO [org.apache.cxf.bus.spring.BusApplicationContext]
- Refreshing org.apache.cxf.bus.spring.BusApplicationContext@f8ffe0b: startup
date [Wed May 08 21:31:52 EDT 2013]; parent: Root WebApplicationContext
+2013-05-08 21:31:52,769 INFO
[org.springframework.beans.factory.support.DefaultListableBeanFactory] -
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@e161e1f:
defining beans []; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@21e7937
+Reading the clientside config: wsdl2uddi-uddi.xml:
+2013-05-08 21:31:52,780 INFO [org.apache.juddi.v3.client.config.WebHelper] -
Reading the managerName from the clientConfig file /META-INF/wsdl2uddi-uddi.xml
+2013-05-08 21:31:52,822 INFO [org.apache.juddi.v3.client.config.ClientConfig]
- Reading UDDI Client properties file
file:/Users/kstam/osc/apache/dev/juddi-patch/juddi-tomcat/target/tomcat/apache-tomcat-6.0.26/webapps/wsdl2uddi/WEB-INF/classes/META-INF/wsdl2uddi-uddi.xml
+2013-05-08 21:31:52,869 INFO [org.apache.juddi.v3.client.config.WebHelper] -
Starting Clerk Manager example-manager...
+2013-05-08 21:31:56,996 INFO [org.uddi.JAXBContextUtil] - Creating JAXB
Context for org.uddi.api_v3
+Registering the WSDL:
+2013-05-08 21:31:57,083 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
entityKey uddi:uddi.joepublisher.com:service_helloworld was not found in the
registry
+2013-05-08 21:31:57,141 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
Registering tModel with key uddi:uddi.joepublisher.com:HelloWorld
+2013-05-08 21:31:57,366 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
Registering tModel with key uddi:uddi.joepublisher.com:HelloWorldSoapBinding
+2013-05-08 21:31:58,396 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
Registering service HelloWorld with key
uddi:uddi.joepublisher.com:service_helloworld
+2013-05-08 21:31:58,421 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
Registering bindingTemplate with key
uddi:uddi.joepublisher.com:binding_localhost_helloworld_helloworldimplport_8080
+
+
+5. Check that we can find this business in the registry by running from Queries
mvn -Pfind test
@@ -61,9 +90,36 @@ BindingTemplates: 1
So we got one Service, which one binding. Note that the descriptions were
provided in the wsdl file
using <wsdl:documentation> elements.
-5. Finally to remove all data structures call
+6. Finally to undeploy the wsdl2uddi.war call
+
+mvn -Pdeploy cargo:undeploy
+
+This removes the HelloWorld WebService and removes the data from the UDDI
server.
-mvn -Pdelete test
+ClientSide logging:
+[INFO] Scanning for projects...
+[INFO]
+[INFO] ------------------------------------------------------------------------
+[INFO] Building jUDDI Example WSDL2UDDI Deployment Lifecycle 3.1.5-SNAPSHOT
+[INFO] ------------------------------------------------------------------------
+[INFO]
+[INFO] --- cargo-maven2-plugin:1.3.3:undeploy (default-cli) @
wsdl2uddi-lifecycle ---
+[INFO] [DeployerUndeployMojo] Resolved container artifact
org.codehaus.cargo:cargo-core-container-tomcat:jar:1.3.3 for container tomcat6x
+[INFO] [stalledLocalDeployer] Undeploying context [wsdl2uddi] from
[/Users/kstam/osc/apache/dev/juddi-patch/juddi-examples/wsdl2uddi-lifecyle/../../juddi-tomcat/target/tomcat/apache-tomcat-6.0.26/webapps]...
+[INFO] [stalledLocalDeployer] Trying to delete WAR from
[/Users/kstam/osc/apache/dev/juddi-patch/juddi-examples/wsdl2uddi-lifecyle/../../juddi-tomcat/target/tomcat/apache-tomcat-6.0.26/webapps/wsdl2uddi.war]...
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESS
+[INFO] ------------------------------------------------------------------------
-This cleans up the business and the wsdl2uddi data structures.
+ServerSide:
+2013-05-08 21:40:39,067 INFO [org.apache.cxf.bus.spring.BusApplicationContext]
- Closing org.apache.cxf.bus.spring.BusApplicationContext@f8ffe0b: startup date
[Wed May 08 21:31:52 EDT 2013]; parent: Root WebApplicationContext
+2013-05-08 21:40:39,068 INFO
[org.springframework.beans.factory.support.DefaultListableBeanFactory] -
Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@e161e1f:
defining beans []; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@21e7937
+2013-05-08 21:40:39,068 INFO
[org.apache.juddi.v3.client.config.UDDIClerkManager] - Stopping UDDI Clerks for
manager example-manager
+2013-05-08 21:40:44,011 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
UnRegistering binding key
uddi:uddi.joepublisher.com:binding_localhost_helloworld_helloworldimplport_8080
+2013-05-08 21:40:44,047 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
UnRegistering the service uddi:uddi.joepublisher.com:service_helloworld
+2013-05-08 21:40:44,108 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
UnRegistering tModel key uddi:uddi.joepublisher.com:helloworldsoapbinding
+2013-05-08 21:40:44,132 INFO [org.apache.juddi.v3.client.config.UDDIClerk] -
UnRegistering tModel key uddi:uddi.joepublisher.com:helloworld
+2013-05-08 21:40:44,145 INFO
[org.apache.juddi.v3.client.config.UDDIClerkManager] - UDDI Clerks shutdown
completed for manager example-manager
+2013-05-08 21:40:44,146 INFO
[org.springframework.web.context.support.XmlWebApplicationContext] - Closing
Root WebApplicationContext: startup date [Wed May 08 21:31:51 EDT 2013]; root
of context hierarchy
+2013-05-08 21:40:44,147 INFO
[org.springframework.beans.factory.support.DefaultListableBeanFactory] -
Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@21e7937:
defining beans
[cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHan
dlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.servlet.ServletTransportFactory,helloworld];
root of factory hierarchy
Modified: juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
--- juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml (original)
+++ juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml Thu May 9 01:49:03
2013
@@ -156,6 +156,36 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>deploy</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <version>1.3.3</version>
+ <configuration>
+ <container>
+ <containerId>tomcat6x</containerId>
+ </container>
+ <configuration>
+ <type>existing</type>
+
<home>${basedir}/../../juddi-tomcat/target/tomcat/apache-tomcat-6.0.26</home>
+ <!--
<home>${basedir}/../../juddi-tomcat-${project.parent.version}</home> -->
+ </configuration>
+ <deployables>
+ <deployable>
+ <groupId>org.apache.juddi.example</groupId>
+ <artifactId>wsdl2uddi-lifecycle</artifactId>
+ <type>war</type>
+
+ </deployable>
+ </deployables>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<packaging>war</packaging>
</project>
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Find.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Find.java?rev=1480519&view=auto
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Find.java
(added)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Find.java
Thu May 9 01:49:03 2013
@@ -0,0 +1,75 @@
+/*
+ * Copyright 2001-2010 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.juddi.example.wsdl2uddi;
+
+import org.apache.juddi.v3.client.config.UDDIClerk;
+import org.apache.juddi.v3.client.config.UDDIClerkManager;
+import org.apache.juddi.v3.client.config.UDDIClientContainer;
+import org.uddi.api_v3.BindingTemplate;
+import org.uddi.api_v3.BusinessEntity;
+import org.uddi.api_v3.BusinessService;
+
+public class Find {
+
+ public void find() {
+ try {
+ UDDIClerkManager clerkManager = new
UDDIClerkManager("META-INF/wsdl2uddi-uddi.xml");
+ UDDIClerk clerk = clerkManager.getClerk("joe");
+ // register the clerkManager with the client side container
+ UDDIClientContainer.addClerkManager(clerkManager);
+
+ BusinessEntity businessEntity =
clerk.findBusiness("uddi:uddi.joepublisher.com:business-for-wsdl");
+ //
+ if (businessEntity!=null) {
+ System.out.println("Found business with name " +
businessEntity.getName().get(0).getValue());
+ if (businessEntity.getBusinessServices() !=null) {
+ System.out.println("Number of services: " +
businessEntity.getBusinessServices().getBusinessService().size());
+
+ for (BusinessService businessService:
businessEntity.getBusinessServices().getBusinessService()) {
+ System.out.println("Service Name
= '" + businessService.getName().get(0).getValue() + "'");
+ System.out.println("Service Key
= '" + businessService.getServiceKey() + "'");
+ System.out.println("Service Description
= '" + businessService.getDescription().get(0).getValue() + "'");
+ System.out.println("BindingTemplates: "
+ businessService.getBindingTemplates().getBindingTemplate().size());
+
+ for (int i=0;
i<businessService.getBindingTemplates().getBindingTemplate().size(); i++) {
+ BindingTemplate bindingTemplate
= businessService.getBindingTemplates().getBindingTemplate().get(i);
+
System.out.println("--BindingTemplate" + " " + i + ":");
+ System.out.println("
bindingKey = " + bindingTemplate.getBindingKey());
+ System.out.println("
accessPoint useType = " + bindingTemplate.getAccessPoint().getUseType());
+ System.out.println("
accessPoint value = " + bindingTemplate.getAccessPoint().getValue());
+ System.out.println("
description = " + bindingTemplate.getDescription().get(0).getValue());
+ }
+ }
+ }
+ }
+
+ businessEntity.getBusinessServices();
+
+ //TODO JUDDI-610
+ //FindTModel findBindingTModel =
WSDL2UDDI.createFindBindingTModelForPortType(portType, namespace);
+
+ }
+ catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static void main (String args[]) {
+ Find sp = new Find();
+ sp.find();
+ }
+}
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Setup.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Setup.java?rev=1480519&view=auto
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Setup.java
(added)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/Setup.java
Thu May 9 01:49:03 2013
@@ -0,0 +1,119 @@
+/*
+ * Copyright 2001-2010 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.juddi.example.wsdl2uddi;
+
+import java.rmi.RemoteException;
+
+import org.apache.commons.configuration.ConfigurationException;
+import org.apache.juddi.api_v3.Publisher;
+import org.apache.juddi.api_v3.SavePublisher;
+import org.apache.juddi.v3.client.config.UDDIClerk;
+import org.apache.juddi.v3.client.config.UDDIClerkManager;
+import org.apache.juddi.v3.client.transport.TransportException;
+import org.apache.juddi.v3_service.JUDDIApiPortType;
+import org.uddi.api_v3.AuthToken;
+import org.uddi.api_v3.BusinessEntity;
+import org.uddi.api_v3.CategoryBag;
+import org.uddi.api_v3.Description;
+import org.uddi.api_v3.GetAuthToken;
+import org.uddi.api_v3.KeyedReference;
+import org.uddi.api_v3.Name;
+import org.uddi.api_v3.OverviewDoc;
+import org.uddi.api_v3.OverviewURL;
+import org.uddi.api_v3.TModel;
+import org.uddi.v3_service.DispositionReportFaultMessage;
+import org.uddi.v3_service.UDDISecurityPortType;
+
+public class Setup {
+
+ static UDDIClerkManager clerkManager;
+
+ public void publishBusiness(UDDIClerk clerk) {
+ // Creating the parent business entity that will contain our
service.
+ BusinessEntity myBusEntity = new BusinessEntity();
+ Name myBusName = new Name();
+ myBusName.setValue("WSDL-Business");
+ myBusEntity.getName().add(myBusName);
+
myBusEntity.setBusinessKey("uddi:uddi.joepublisher.com:business-for-wsdl");
+ clerk.register(myBusEntity);
+ }
+
+ public static void main (String args[]) {
+
+ Setup sp = new Setup();
+ try {
+ clerkManager = new
UDDIClerkManager("META-INF/wsdl2uddi-uddi.xml");
+ UDDIClerk clerk = clerkManager.getClerk("joe");
+
+ //setting up the publisher
+ sp.setupJoePublisher(clerk);
+ //publish the business
+ sp.publishBusiness(clerk);
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ // This setup needs to be done once, either using the console or using
code like this
+ private void setupJoePublisher(UDDIClerk clerk) throws
DispositionReportFaultMessage, RemoteException, ConfigurationException,
TransportException {
+
+ UDDISecurityPortType security =
clerkManager.getTransport("default").getUDDISecurityService();
+
+ //login as root so we can create joe publisher
+ GetAuthToken getAuthTokenRoot = new GetAuthToken();
+ getAuthTokenRoot.setUserID("root");
+ getAuthTokenRoot.setCred("");
+ // Making API call that retrieves the authentication token for
the 'root' user.
+ AuthToken rootAuthToken =
security.getAuthToken(getAuthTokenRoot);
+ System.out.println ("root AUTHTOKEN = " +
rootAuthToken.getAuthInfo());
+ //Creating joe publisher
+ JUDDIApiPortType juddiApi =
clerkManager.getTransport("default").getJUDDIApiService();
+ Publisher p = new Publisher();
+ p.setAuthorizedName("joepublisher");
+ p.setPublisherName("Joe Publisher");
+ // Adding the publisher to the "save" structure, using the
'root' user authentication info and saving away.
+ SavePublisher sp = new SavePublisher();
+ sp.getPublisher().add(p);
+ sp.setAuthInfo(rootAuthToken.getAuthInfo());
+ juddiApi.savePublisher(sp);
+
+ //Joe should have a keyGenerator
+ TModel keyGenerator = new TModel();
+
keyGenerator.setTModelKey("uddi:uddi.joepublisher.com:keygenerator");
+ Name name = new Name();
+ name.setValue("Joe Publisher's Key Generator");
+ keyGenerator.setName(name);
+ Description description = new Description();
+ description.setValue("This is the key generator for Joe
Publisher's UDDI entities!");
+ keyGenerator.getDescription().add(description);
+ OverviewDoc overviewDoc = new OverviewDoc();
+ OverviewURL overviewUrl = new OverviewURL();
+ overviewUrl.setUseType("text");
+ overviewUrl.setValue("http://uddi.org/pubs/uddi_v3.htm#keyGen");
+ overviewDoc.setOverviewURL(overviewUrl);
+ keyGenerator.getOverviewDoc().add(overviewDoc);
+ CategoryBag categoryBag = new CategoryBag();
+ KeyedReference keyedReference = new KeyedReference();
+ keyedReference.setKeyName("uddi-org:types:keyGenerator");
+ keyedReference.setKeyValue("keyGenerator");
+
keyedReference.setTModelKey("uddi:uddi.org:categorization:types");
+ categoryBag.getKeyedReference().add(keyedReference);
+ keyGenerator.setCategoryBag(categoryBag);
+ clerk.register(keyGenerator);
+ }
+}
Modified:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
(original)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
Thu May 9 01:49:03 2013
@@ -12,14 +12,15 @@
<property name="serverPort" value="8080"/>
</properties>
<description>Main jUDDI node</description>
-
<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>
+ <!-- JAX-WS Transport -->
+
<proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
+
<custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer</custodyTransferUrl>
+
<inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl>
+
<publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl>
+
<securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl>
+
<subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl>
+
<subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener</subscriptionListenerUrl>
+
<juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api</juddiApiUrl>
</node>
</nodes>
<clerks registerOnStartup="true">
Modified:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml?rev=1480519&r1=1480518&r2=1480519&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
(original)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
Thu May 9 01:49:03 2013
@@ -24,7 +24,7 @@
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
- <jaxws:endpoint id="helloworld"
implementor="org.apache.juddi.samples.HelloWorldImpl"
+ <jaxws:endpoint id="helloworld"
implementor="org.apache.juddi.example.HelloWorldImpl"
address="/helloworld" />
</beans>
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/classes/log4j.properties
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/classes/log4j.properties?rev=1480519&view=auto
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/classes/log4j.properties
(added)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/classes/log4j.properties
Thu May 9 01:49:03 2013
@@ -0,0 +1,25 @@
+
+log4j.rootLogger=INFO, logfile
+
+# in case any output is given to stdout, format it
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
+
+log4j.appender.logfile=org.apache.log4j.RollingFileAppender
+log4j.appender.logfile.File=${catalina.home}/logs/juddi.log
+log4j.appender.logfile.MaxFileSize=512MB
+# Keep three backup files.
+log4j.appender.logfile.MaxBackupIndex=3
+# Pattern to output: date priority [category] - message
+log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
+log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n
+
+#log4j.category.org.springframework.beans.property
editors.CustomDateEditor=DEBUG
+
+log4j.debug=false
+
+# showing sql
+#log4j.category.org.hibernate.hql.ast.QueryTranslatorImpl=DEBUG
+#log4j.category.org.hibernate.SQL=DEBUG
+#log4j.category.org.hibernate.loader.hql.QueryLoad er=DEBUG
Added: juddi/trunk/juddi-examples/wsdl2uddi/src/test/resources/log4j.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi/src/test/resources/log4j.xml?rev=1480519&view=auto
==============================================================================
--- juddi/trunk/juddi-examples/wsdl2uddi/src/test/resources/log4j.xml (added)
+++ juddi/trunk/juddi-examples/wsdl2uddi/src/test/resources/log4j.xml Thu May
9 01:49:03 2013
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Target" value="System.out"/>
+ <param name="Threshold" value="DEBUG"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}]
%m%n"/>
+ </layout>
+ </appender>
+
+ <logger name="org">
+ <level value="INFO"/>
+ </logger>
+
+ <logger name="org.hibernate">
+ <level value="WARN"/>
+ </logger>
+
+ <logger name="com">
+ <level value="INFO"/>
+ </logger>
+
+ <root>
+ <appender-ref ref="CONSOLE"/>
+ </root>
+
+
+</log4j:configuration>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]