Mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From susan wang <susanwang123...@yahoo.com>
Subject RE: How to run juddi-uddi4j sample?
Date Tue, 05 Apr 2005 20:45:04 GMT
Thanks.

I just tried samples in two ways.
If 
TransportClassName=org.uddi4j.transport.ApacheAxisTransport,

I got the following error. How to fix it?

susan@debian:~/uddi4j/samples$ java -cp
.:../lib/uddi4j.jar:../lib/axis.jar:../lib/jaxrpc.jar:../lib/saaj.jar:../lib/commons-logging.jar:../lib/commons-discovery.jar:../lib/activation.jar:../lib/mail.jar:../lib/soap.jar
FindBusinessExample

*********** Running FindBusinessExample ***********
TransportFactory: Using transport
name:org.uddi4j.transport.ApacheAxisTransport

Request message:
<find_business generic="2.0" maxRows="5"
xmlns="urn:uddi-org:api_v2"><findQualifiers><findQualifier>caseSensitiveMatch</findQualifier></findQualifiers><name>S</name></find_business>
org.uddi4j.transport.TransportException
        at
org.uddi4j.transport.ApacheAxisTransport.send(ApacheAxisTransport.java:95)
        at
org.uddi4j.transport.TransportBase.send(TransportBase.java:53)
        at
org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1778)
        at
org.uddi4j.client.UDDIProxy.find_business(UDDIProxy.java:475)
        at
FindBusinessExample.run(FindBusinessExample.java:74)
        at
FindBusinessExample.main(FindBusinessExample.java:44)

Nested exception:
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:396)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:222)
        at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
        at
org.apache.axis.Message.getSOAPEnvelope(Message.java:427)
        at
org.uddi4j.transport.ApacheAxisTransport.send(ApacheAxisTransport.java:93)
        at
org.uddi4j.transport.TransportBase.send(TransportBase.java:53)
        at
org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1778)
        at
org.uddi4j.client.UDDIProxy.find_business(UDDIProxy.java:475)
        at
FindBusinessExample.run(FindBusinessExample.java:74)
        at
FindBusinessExample.main(FindBusinessExample.java:44)


If
TransportClassName=org.uddi4j.transport.ApacheSOAPTransport,

then I got
susan@debian:~/uddi4j/samples$ java -cp
.:../lib/uddi4j.jar:../lib/axis.jar:../lib/jaxrpc.jar:../lib/saaj.jar:../lib/commons-logging.jar:../lib/commons-discovery.jar:../lib/activation.jar:../lib/mail.jar:../lib/soap.jar
FindBusinessExample

*********** Running FindBusinessExample ***********
TransportFactory: Using transport
name:org.uddi4j.transport.ApacheSOAPTransport

Request body:
<find_business generic="2.0" maxRows="5"
xmlns="urn:uddi-org:api_v2"><findQualifiers><findQualifier>caseSensitiveMatch</findQualifier></findQualifiers><name>S</name></find_business>

Response body:
<businessList generic="2.0" operator="jUDDI.org"
xmlns="urn:uddi-org:api_v2"><businessInfos/></businessList>

Is it right? If it is right, could you explain what's
meaning of it? Thanks.

Regards,
susan












--- Andy Cutright <Andy.Cutright@borland.com> wrote:

> using UDDI4J, you may not need to actually build
> UDDI4J or the samples,
> now that i think about it a little more :) 
> 
> have you tried simply running the samples? 
> 
> cheers,
> andy 
> 
> > -----Original Message-----
> > From: susan wang
> [mailto:susanwang123456@yahoo.com] 
> > Sent: Tuesday, April 05, 2005 12:04 PM
> > To: juddi-user@ws.apache.org
> > Subject: RE: How to run juddi-uddi4j sample?
> > 
> > Thanks for your reply. 
> > 
> > I downloaded uddi4j-bin-2_0_3.zip. Then I got the
> > following error when I built it.
> > 
> > susan@debian:~/uddi4j$ echo $JAVA_HOME
> > /usr/java/jdk1.5.0_01
> > susan@debian:~/uddi4j$ echo $PATH
> >
>
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/java
> >
>
/jdk1.5.0_01/bin:/home/susan/maven-1.0.2/bin:.:/usr/java/jdk1.
> > 5.0_01/bin:/home/susan/apache-ant-1.6.2/bin:.
> > susan@debian:~/uddi4j$ ant
> > Buildfile: build.xml
> > 
> > init:
> >     [mkdir] Created dir: /home/susan/uddi4j/build
> >      [echo] UDDI4J build classpath =
> >
>
/home/susan/uddi4j/xerces.jar;:/home/susan/uddi4j/jaxrpc.jar:/
> >
>
home/susan/uddi4j/saaj.jar:/home/susan/uddi4j/soap.jar:/home/s
> > usan/uddi4j/axis.jar:/home/susan/uddi4j/hpsoap.jar
> >      [echo] SOAP transport support will be built
> for
> > those transports.
> >      [echo] found in the classpath, indicating
> > available = true below.
> > 
> >      [echo] Apache SOAP available =
> > ${apache-soap.available}
> >      [echo] Apache Axis available =
> > ${apache-axis.available}
> >      [echo] HP SOAP available =
> ${hp-soap.available}
> > 
> > compile:
> >     [mkdir] Created dir:
> > /home/susan/uddi4j/build/classes
> >     [javac] Compiling 105 source files to
> > /home/susan/uddi4j/build/classes
> > 
> > BUILD FAILED
> > /home/susan/uddi4j/build.xml:157: Error running
> > javac.exe compiler
> > 
> > Total time: 2 seconds
> > 
> > Could you know what's problem with me? Also I
> found
> > all the java files has compiled in uddi4j/samples
> > directory. Do I need to build it?
> > 
> > Regards,
> > susan
> > 
> > 
> > 
> > I found 
> > 
> > 
> > --- Andy Cutright <Andy.Cutright@borland.com>
> wrote:
> > > we use the UDDI4J mostly as a testing engine. i
> > > don't believe we
> > > actually use the samples themselves, apart from
> the
> > > base classes used to
> > > initialize the UDDI4J client. 
> > > 
> > > if you'd like to run the UDDI4J samples, i'd
> suggest
> > > downloading the
> > > samples from http://uddi4j.org (that's a
> redirect to
> > > the sourceforge
> > > site where the source is actually stored). that
> > > includes a build.xml
> > > specifically for compiling the samples. 
> > > 
> > > once you get the samples built, you'll want to
> > > configure them for
> > > appropriate runtime usage, using the
> samples.prop
> > > file included with our
> > > distribution, or with the UDDI4J distribution.
> > > you'll need to modify the
> > > properties in that file to the appropriate
> values.
> > > the one included in
> > > our distribution should be setup to have the
> correct
> > > inquiry & publish
> > > URLs for a default jUDDI installation. 
> > > 
> > > you'll probably want to change the property
> > > "TransportClassName" from
> > > its default SOAP transport to the AXIS
> transport: 
> > > 
> > > ###
> > >
> >
>
TransportClassName=org.uddi4j.transport.ApacheSOAPTransport
> > > 
> > >
> >
>
TransportClassName=org.uddi4j.transport.ApacheAxisTransport
> > > 
> > > 
> > > one of these will work for you and the other
> > > probably won't :) 
> > > 
> > > you should now be able to use the samples to
> talk to
> > > the jUDDI servlet, 
> > > 
> > > cheers,
> > > andy 
> > > 
> > > > -----Original Message-----
> > > > From: susan wang
> > > [mailto:susanwang123456@yahoo.com] 
> > > > Sent: Tuesday, April 05, 2005 8:48 AM
> > > > To: juddi-user@ws.apache.org
> > > > Subject: How to run juddi-uddi4j sample?
> > > > 
> > > > Hi,
> > > > 
> > > > I am working on 
> > > > linux
> > > > jdk1.5.0_01
> > > > jakarta-tomcat-5.0.28
> > > > juddi-0.9rc3
> > > > mysql-standard-4.1.10a-pc-linux-gnu-i686
> > > > 
> > > > I can see
> > > http://localhost:8080/juddi/happyjuddi.jsp
> > > > without errors. I also downloaded
> > > juddi-0.9rc3-src. I
> > > > can find the source code in
> > > > juddi-0.9rc3-src/src/uddi4j. What do I need to
> do
> > > next
> > > > to run uddj4j sample? Thanks in advance.
> > > > 
> > > > Regard,
> > > > susan
> > > > 
> > > > 
> > > > 		
> > > > __________________________________ 
> > > > Do you Yahoo!? 
> > > > Yahoo! Personals - Better first dates. More
> second
> > > dates. 
> > > > http://personals.yahoo.com
> > > > 
> > > > 
> > > > 
> > > 
> > 
> > 
> > 		
> > __________________________________ 
> > Do you Yahoo!? 
> > Yahoo! Personals - Better first dates. More second
> dates. 
> > http://personals.yahoo.com
> > 
> > 
> > 
> 



		
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

Mime
View raw message