Hi George,

jUDDI has a pluggable authentication architecture, so you can used an LDAP or whatever. So I don't know what your setup is, but by default it is set to "pass through". The only requirement is that the username you are using is a publisher in jUDDI.

Hope this helps. You can read some more about it in chapter 2 of the userguide we are preparing for jUDDIv3 (but it works the same in jUDDIv2)
http://svn.apache.org/repos/asf/webservices/juddi/branches/v3_trunk/docs/jUDDI-UserGuide.pdf

Cheers,

--Kurt



Orient, George E PWR wrote:

Greetings,


JAXR client throws JAXRException when attempting to connect to JUDDI.

---------------- CLIENT: JAXR client using jars from GlassFish v2.1 -------------

Client code snippet:

System.err.println("Registry URL for publishing: "+iRegistryURLForPublishing);
      System.err.println("Registry user name: "+iUserName);
      System.err.println("Registry password:  "+iPassword);
PasswordAuthentication passwordAuthentication=new PasswordAuthentication(
         iUserName, iPassword.toCharArray());
      Set credentials=new HashSet();
      credentials.add(passwordAuthentication);
      connection.setCredentials(credentials);    <---  FAILS!!!

Standard error: Registry URL for publishing: _http://localhost:7080/juddi/publish_
Registry user name: juddi
Registry password:  password
Exception occurred. Exception Message: Unexpected node type: null

Client classpath contains: javaee.jar webservices-rt.jar from Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)


---------- SERVER: juddi-2.0rc5 in Tomcat 6.0.18 with MySQL data source -------

Happy jUDDI!
jUDDI Version Information

jUDDI Version: 2.0rc5
UDDI Version:  2.0

jUDDI Dependencies: Class Files & Libraries

Looking for: org.apache.juddi.IRegistry
+Found in:
+C:\JavaModules\jUDDI\2.0rc5\webapp\WEB-INF\lib\juddi-2.0rc5.jar
Looking for: org.apache.axis.transport.http.AxisServlet
+Found in: C:\JavaModules\jUDDI\2.0rc5\webapp\WEB-INF\lib\axis-1.4.jar
Looking for: org.apache.commons.discovery.Resource
+Found in:
+C:\JavaModules\jUDDI\2.0rc5\webapp\WEB-INF\lib\commons-discovery-0.2.ja
+r
Looking for: org.apache.commons.logging.Log
+Found in:
+C:\JavaModules\jUDDI\2.0rc5\webapp\WEB-INF\lib\commons-logging-1.1.jar
Looking for: org.apache.log4j.Layout
+Found in:
+C:\JavaModules\jUDDI\2.0rc5\webapp\WEB-INF\lib\log4j-1.2.13.jar
Looking for: javax.xml.soap.SOAPMessage
+Found in an unknown location
Looking for: javax.xml.rpc.Service
+Found in:
+C:\JavaModules\jUDDI\2.0rc5\webapp\WEB-INF\lib\axis-jaxrpc-1.4.jar
Looking for: com.ibm.wsdl.factory.WSDLFactoryImpl
+Found in:
+C:\JavaModules\jUDDI\2.0rc5\webapp\WEB-INF\lib\axis-wsdl4j-1.5.1.jar
Looking for: javax.xml.parsers.SAXParserFactory
+Found in an unknown location

jUDDI Dependencies: Resource & Properties Files

jUDDI DataSource Validation

+ Got a JNDI Context!
+ Got a JDBC DataSource (dsname=java:comp/env/jdbc/juddiDB)
+ Got a JDBC Connection!
+ SELECT COUNT(*) FROM PUBLISHER = 0

System Properties

awt.toolkit: sun.awt.windows.WToolkit
catalina.base: C:\JavaModules\apache-tomcat-6.0.18
catalina.home: C:\JavaModules\apache-tomcat-6.0.18
catalina.useNaming: true
common.loader: ${catalina.home}/lib,${catalina.home}/lib/*.jar
file.encoding: Cp1252
file.encoding.pkg: sun.io
file.separator: \
java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
java.awt.printerjob: sun.awt.windows.WPrinterJob
java.class.path: C:\Progra~1\Java\jdk1.6.0_12\lib\tools.jar;C:\JavaModules\apache-tomcat-6.0.18\bin\bootstrap.jar
java.class.version: 50.0
java.endorsed.dirs: C:\JavaModules\apache-tomcat-6.0.18\endorsed
java.ext.dirs: C:\Progra~1\Java\jdk1.6.0_12\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.home: C:\Progra~1\Java\jdk1.6.0_12\jre
java.io.tmpdir: C:\JavaModules\apache-tomcat-6.0.18\temp
java.library.path: C:\Progra~1\Java\jdk1.6.0_12\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Intel\Fortran\compiler80\IA32\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\BIN;K:\PROD\WNT\LIB;K:\PROD\Share\Bin;F:\Oracle\Ora92\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\jEdit;C:\Program Files\Liquid Technologies\Liquid XML Studio 2009\XmlDataBinder7\Redist7\cpp\win32\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin

java.naming.factory.initial: org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs: org.apache.naming
java.runtime.name: Java(TM) SE Runtime Environment
java.runtime.version: 1.6.0_12-b04
java.specification.name: Java Platform API Specification
java.specification.vendor: Sun Microsystems Inc.
java.specification.version: 1.6
java.util.logging.config.file: C:\JavaModules\apache-tomcat-6.0.18\conf\logging.properties
java.util.logging.manager: org.apache.juli.ClassLoaderLogManager
java.vendor: Sun Microsystems Inc.
java.vendor.url: _http://java.sun.com/_
java.vendor.url.bug: _http://java.sun.com/cgi-bin/bugreport.cgi_
java.version: 1.6.0_12
java.vm.info: mixed mode, sharing
java.vm.name: Java HotSpot(TM) Client VM
java.vm.specification.name: Java Virtual Machine Specification
java.vm.specification.vendor: Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor: Sun Microsystems Inc.
java.vm.version: 11.2-b01
line.separator:

os.arch: x86
os.name: Windows XP
os.version: 5.1
package.access: sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans. package.definition: sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
path.separator: ;
server.loader:
shared.loader:
sun.arch.data.model: 32
sun.boot.class.path: C:\Progra~1\Java\jdk1.6.0_12\jre\lib\resources.jar;C:\Progra~1\Java\jdk1.6.0_12\jre\lib\rt.jar;C:\Progra~1\Java\jdk1.6.0_12\jre\lib\sunrsasign.jar;C:\Progra~1\Java\jdk1.6.0_12\jre\lib\jsse.jar;C:\Progra~1\Java\jdk1.6.0_12\jre\lib\jce.jar;C:\Progra~1\Java\jdk1.6.0_12\jre\lib\charsets.jar;C:\Progra~1\Java\jdk1.6.0_12\jre\classes

sun.boot.library.path: C:\Progra~1\Java\jdk1.6.0_12\jre\bin
sun.cpu.endian: little
sun.cpu.isalist: pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop: windows
sun.io.unicode.encoding: UnicodeLittle
sun.java.launcher: SUN_STANDARD
sun.jnu.encoding: Cp1252
sun.management.compiler: HotSpot Client Compiler
sun.os.patch.level: Service Pack 2
tomcat.util.buf.StringCache.byte.enabled: true
user.country: US
user.dir: C:\JavaModules\apache-tomcat-6.0.18\bin
user.home: D:\Documents and Settings\georient
user.language: en
user.name: georient
user.timezone: America/Los_Angeles
user.variant:


Platform: Apache Tomcat/6.0.18

--------------------------- TOMCAT ERROR LOG: --------------------------------

Mar 8, 2009 3:43:15 PM com.sun.xml.messaging.saaj.soap.ver1_1.Fault1_1Impl setFaultCode SEVERE: SAAJ0306: Namespace Error, Standard Faultcode Client, should be in SOAP1.1 Namespace


-------------- JUDDI CONFIGURATION IN juddi-users.xml: -----------------------

.
.
.
juddi-users.xml: <user userid="juddi" password="password" /> .
.
.

The message on the Tomcat error log generated when the JAXR client is trying to execute connection.setCredentials(credentials) is utterly incomprehensible to me. The root cause may be as simple as password mismatch.

Please help; I am trying to incorporate JUDDI in a class about SOA.

Regards,

George E. Orient, Ph. D.
Associate Technical Fellow
Pratt & Whitney Rocketdyne
6633 Canoga Ave
Canoga Park, CA 91309-7922
[email protected]
(818) 586-8040





Reply via email to