You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mees <ho...@yahoo.com> on 2003/10/26 15:20:51 UTC

Problem with running testclient.java

I've set the environmental variables AXISCLASSPATH,
AXIS_LIB and AXIS_HOME.
I've runned the getQuote example it worked. It gave
back 55.25

But now that I've moved on to the user guide, to the
example with the TestClient.java.
It says run with the following command:
java samples.userguide.example1.TestClient 
So I did from the dir C:\axis

I tried from other dir but it won't work I keep
getting this error, when i run the following command
C:\axis\java samples.userguide.example1.TestClient 

---------------

Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/axis/client/Service
  at
samples.userguide.example1.TestClient.main(TestClient.java:70)
--------------------------------

Maybe it can't find the class Service, but I've looked
it up, it's in the axis.jar and I've got that jar in
the lib and the environmental variable directs to all
the jars that is needed.

So what is wrong?
HELP!




__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by "NJ Rogers, Learning and Research Technology" <Ni...@bristol.ac.uk>.
Hi

>From my private emails with you Mees, I think we've discovered that you 
should have been doing "set classpath= ...." instead of "set 
axisclasspath=...."

Hope you're all sorted out now,

Nikki

--On 26 October 2003 07:45 -0800 Mees <ho...@yahoo.com> wrote:

> The axisclasspath already directs to the axis.jar and
> alle the other jars... so i dunno what u mean with the
> classpath...
>
> --- Xavier Renard <Xa...@ulg.ac.be> wrote:
>> Mees wrote:
>>
>> > I've set the environmental variables AXISCLASSPATH,
>> > AXIS_LIB and AXIS_HOME.
>> > I've runned the getQuote example it worked. It gave
>> > back 55.25
>> >
>> > But now that I've moved on to the user guide, to
>> the
>> > example with the TestClient.java.
>> > It says run with the following command:
>> > java samples.userguide.example1.TestClient
>> > So I did from the dir C:\axis
>> >
>> > I tried from other dir but it won't work I keep
>> > getting this error, when i run the following
>> command
>> > C:\axis\java samples.userguide.example1.TestClient
>> >
>> > ---------------
>> >
>> > Exception in thread "main"
>> > java.lang.NoClassDefFoundError:
>> > org/apache/axis/client/Service
>> >  at
>>
>> samples.userguide.example1.TestClient.main(TestClient.java:70)
>> > --------------------------------
>> >
>> >
>>
>> add it to your classpath maybe :-)
>> set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
>>
>> Xavier
>>
>> > Maybe it can't find the class Service, but I've
>> looked
>> > it up, it's in the axis.jar and I've got that jar
>> in
>> > the lib and the environmental variable directs to
>> all
>> > the jars that is needed.
>> >
>> > So what is wrong?
>> > HELP!
>> >
>> >
>>
>>
>>
>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>



----------------------
NJ Rogers, Technical Researcher
(Semantic Web Applications Developer)
Institute for Learning and Research Technology (ILRT)
Email:nikki.rogers@bristol.ac.uk
Tel: +44(0)117 9287096 (Direct)
Tel: +44(0)117 9287193 (Office)

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
yes tomcat is up and running...
can it be something wrong with the firewall? I've
already tried shutting the firewall off, but that
didn't work...

orit's because of my router...?

--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >I've tried exactly what u said, but then i get
> this:
> >
> >C:\axis>set
>
>CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\a
>
>xis\lib\axis.jar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\
>
>lib\commons-logging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\
>
>log4j-1.2.8.jar;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >
> >C:\axis>java samples.userguide.example1.TestClient
> >java.net.ConnectException: Connection refused:
> connect
> >  
> >
> aaaaaahhhhh good news :-)
> 
> >what does that mean?
> >
> Well that simply means that you can not connect to
> the server.
> Assuming you are using  tomcat, is it started?
> 
> Xavier
> 
> >I've tried shutting down my firewall completely,
> but
> >that doesn't work either... :S
> >
> >
> >--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> >  
> >
> >>Mees wrote:
> >>
> >>    
> >>
> >>>I've tried 2 ways:
> >>>1 is the path to testclient.class
> >>>and 2 is to path example1 both failed :S
> >>>
> >>>C:\axis>set classpath
> >>>      
> >>>
>
>>classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
> >>
>
>>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
> >>
>
>>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
> >>
>
>>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >>    
> >>
> >>> 
> >>>
> >>>      
> >>>
> >>should be:
> >>
> >>C:\axis>set
> >>
> >>    
> >>
>
>CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
> >  
> >
>
>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
> >  
> >
>
>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
> >  
> >
>
>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >  
> >
> >>Note:
> >>1) the . at the begining  to find classes in the
> >>current directory
> >>2)set CLASSPATH=.;C:\axis\path\2\jar   (everything
> >>on a single line)
> >>
> >>hope it will be ok now
> >>
> >>Xavier
> >>
> >>
> >>
> >>    
> >>
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Exclusive Video Premiere - Britney Spears
> >http://launch.yahoo.com/promos/britneyspears/
> >
> >
> >  
> >
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
I FOUND THE PROBLEM!!!

after the previous post i found a similiar problem on
the mailinglist

"The example tries to connect to a service at
http://nagoya.apache.org:5049/axis/services/echo. 
This service is not
running (and has not been for weeks), hence the
connection is refused.
The "connection refused" is straight from Berkeley
sockets terminology."

but what i wonder now is, why does the axis people
keep using this example when the url is dead...

It had kept me busy for a whole day -_-

Well, thank you anyways, Xavier and Nikki! I really
appreciate it :)


--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >I've tried exactly what u said, but then i get
> this:
> >
> >C:\axis>set
>
>CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\a
>
>xis\lib\axis.jar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\
>
>lib\commons-logging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\
>
>log4j-1.2.8.jar;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >
> >C:\axis>java samples.userguide.example1.TestClient
> >java.net.ConnectException: Connection refused:
> connect
> >  
> >
> aaaaaahhhhh good news :-)
> 
> >what does that mean?
> >
> Well that simply means that you can not connect to
> the server.
> Assuming you are using  tomcat, is it started?
> 
> Xavier
> 
> >I've tried shutting down my firewall completely,
> but
> >that doesn't work either... :S
> >
> >
> >--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> >  
> >
> >>Mees wrote:
> >>
> >>    
> >>
> >>>I've tried 2 ways:
> >>>1 is the path to testclient.class
> >>>and 2 is to path example1 both failed :S
> >>>
> >>>C:\axis>set classpath
> >>>      
> >>>
>
>>classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
> >>
>
>>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
> >>
>
>>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
> >>
>
>>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >>    
> >>
> >>> 
> >>>
> >>>      
> >>>
> >>should be:
> >>
> >>C:\axis>set
> >>
> >>    
> >>
>
>CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
> >  
> >
>
>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
> >  
> >
>
>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
> >  
> >
>
>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >  
> >
> >>Note:
> >>1) the . at the begining  to find classes in the
> >>current directory
> >>2)set CLASSPATH=.;C:\axis\path\2\jar   (everything
> >>on a single line)
> >>
> >>hope it will be ok now
> >>
> >>Xavier
> >>
> >>
> >>
> >>    
> >>
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Exclusive Video Premiere - Britney Spears
> >http://launch.yahoo.com/promos/britneyspears/
> >
> >
> >  
> >
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Xavier Renard <Xa...@ulg.ac.be>.
Mees wrote:

>I've tried exactly what u said, but then i get this:
>
>C:\axis>set
>CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\a
>xis\lib\axis.jar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\
>lib\commons-logging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\
>log4j-1.2.8.jar;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
>
>C:\axis>java samples.userguide.example1.TestClient
>java.net.ConnectException: Connection refused: connect
>  
>
aaaaaahhhhh good news :-)

>what does that mean?
>
Well that simply means that you can not connect to the server.
Assuming you are using  tomcat, is it started?

Xavier

>I've tried shutting down my firewall completely, but
>that doesn't work either... :S
>
>
>--- Xavier Renard <Xa...@ulg.ac.be> wrote:
>  
>
>>Mees wrote:
>>
>>    
>>
>>>I've tried 2 ways:
>>>1 is the path to testclient.class
>>>and 2 is to path example1 both failed :S
>>>
>>>C:\axis>set classpath
>>>      
>>>
>>classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>>
>>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>>
>>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>>
>>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
>>    
>>
>>> 
>>>
>>>      
>>>
>>should be:
>>
>>C:\axis>set
>>
>>    
>>
>CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>  
>
>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>  
>
>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>  
>
>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
>  
>
>>Note:
>>1) the . at the begining  to find classes in the
>>current directory
>>2)set CLASSPATH=.;C:\axis\path\2\jar   (everything
>>on a single line)
>>
>>hope it will be ok now
>>
>>Xavier
>>
>>
>>
>>    
>>
>
>
>__________________________________
>Do you Yahoo!?
>Exclusive Video Premiere - Britney Spears
>http://launch.yahoo.com/promos/britneyspears/
>
>
>  
>




Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
I've tried exactly what u said, but then i get this:

C:\axis>set
CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\a
xis\lib\axis.jar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\
lib\commons-logging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\
log4j-1.2.8.jar;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar

C:\axis>java samples.userguide.example1.TestClient
java.net.ConnectException: Connection refused: connect

what does that mean?
I've tried shutting down my firewall completely, but
that doesn't work either... :S


--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >I've tried 2 ways:
> >1 is the path to testclient.class
> >and 2 is to path example1 both failed :S
> >
> >C:\axis>set classpath
>
>classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>
>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>
>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>
>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >  
> >
> should be:
> 
> C:\axis>set
>
CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> 
> 
> Note:
> 1) the . at the begining  to find classes in the
> current directory
> 2)set CLASSPATH=.;C:\axis\path\2\jar   (everything
> on a single line)
> 
> hope it will be ok now
> 
> Xavier
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >I've tried 2 ways:
> >1 is the path to testclient.class
> >and 2 is to path example1 both failed :S
> >
> >C:\axis>set classpath
>
>classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>
>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>
>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>
>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >  
> >
> should be:
> 
> C:\axis>set
>
CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> 
> 
> Note:
> 1) the . at the begining  to find classes in the
> current directory
> 2)set CLASSPATH=.;C:\axis\path\2\jar   (everything
> on a single line)
> 
> hope it will be ok now
> 
> Xavier
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >I've tried 2 ways:
> >1 is the path to testclient.class
> >and 2 is to path example1 both failed :S
> >
> >C:\axis>set classpath
>
>classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>
>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>
>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>
>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >  
> >
> should be:
> 
> C:\axis>set
>
CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> 
> 
> Note:
> 1) the . at the begining  to find classes in the
> current directory
> 2)set CLASSPATH=.;C:\axis\path\2\jar   (everything
> on a single line)
> 
> hope it will be ok now
> 
> Xavier
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Xavier Renard <Xa...@ulg.ac.be>.
Mees wrote:

>I've tried 2 ways:
>1 is the path to testclient.class
>and 2 is to path example1 both failed :S
>
>C:\axis>set classpath
>classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
>ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
>gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
>r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
>  
>
should be:

C:\axis>set CLASSPATH=.;C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar


Note:
1) the . at the begining  to find classes in the current directory
2)set CLASSPATH=.;C:\axis\path\2\jar   (everything on a single line)

hope it will be ok now

Xavier




Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
thanx for helping out! i really appreciate it.

But no, i'm not new to java, but I just suck at it...
as u have seen... :D

I'll let u know if i can get that example to work...

--- "NJ Rogers, Learning and Research Technology"
<Ni...@bristol.ac.uk> wrote:
> Hi
> 
> You've sorted out your classpath problem. Now you've
> got a connect problem.
> I suggest you search via "Connection refused" in the
> archives for this list 
> (http://ws.apache.org/axis/mail.html).
> 
> If you're new to java, servlet containers, web
> services in general. I 
> suggest you try some of the free, online tutorials
> or the developer pack
> at http://java.sun.com/webservices/
> 
> or http://java.sun.com/docs/books/tutorial/ (java
> tutorial from sun)
> 
> regards,
> Nikki
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --On 26 October 2003 11:03 -0800 Mees
> <ho...@yahoo.com> wrote:
> 
> > C:\axis>java samples.userguide.example1.TestClient
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError:
> samples/userguide/exa
> > mple1/TestClient
> >
> > this is what i get when i do what u say, so i
> tried it
> > with .; befor the path...
> > that doesn't work either... but it's another
> error,
> > sth bout refusal of connection, but i tried to
> solve
> > that with killing my firewall, but that doesn't
> work
> > either...
> >
> > anymore suggestions?
> >
> > --- "NJ Rogers, Learning and Research Technology"
> > <Ni...@bristol.ac.uk> wrote:
> >> Should not be:
> >>
> >> set classpath
> >> >
> >>
> >
>
classpath=C:\axis\samples\userguide\example1\TestClient.class
> >>
> >> should not be:
> >>
> >> > C:\axis>set classpath
> >> > classpath=C:\axis\samples\userguide\example1\;
> >>
> >> should instead be:
> >>
> >>  C:\axis>set classpath
> >> classpath=C:\axis\samples\userguide\example1;
> >>
> >> (take off slash at end)
> >>
> >> n
> >>
> >> --On 26 October 2003 09:07 -0800 Mees
> >> <ho...@yahoo.com> wrote:
> >>
> >> > I've tried 2 ways:
> >> > 1 is the path to testclient.class
> >> > and 2 is to path example1 both failed :S
> >> >
> >> > C:\axis>set classpath
> >> >
> >>
> >
>
classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib
> >> > \axis.j
> >> >
> >>
> >
>
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\com
> >> > mons-lo
> >> >
> >>
> >
>
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1
> >> > .2.8.ja
> >>
> >
>
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >> >
> >> > C:\axis>java
> >> samples.userguide.example1.TestClient.
> >> > Exception in thread "main"
> >> > java.lang.NoClassDefFoundError:
> >> samples/userguide/exa
> >> > mple1/TestClient/
> >> >
> >> > ------
> >> >
> >> > C:\axis>set classpath
> >> >
> >>
> >
>
classpath=C:\axis\samples\userguide\example1\;c:\axis\lib\axis.jar;c:\axi
> >> > s\lib\a
> >> >
> >>
> >
>
xis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-logging.jar
> >> > ;c:\axi
> >> >
> >>
> >
>
s\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis
> >> > \lib\xm l-apis.jar;c:\axis\lib\xercesImpl.jar
> >> >
> >> > C:\axis>java
> samples.userguide.example1.TestClient
> >> > Exception in thread "main"
> >> > java.lang.NoClassDefFoundError:
> >> samples/userguide/exa
> >> > mple1/TestClient
> >> >
> >> >
> >> > --- Xavier Renard <Xa...@ulg.ac.be>
> wrote:
> >> >> Mees wrote:
> >> >>
> >> >> > The axisclasspath already directs to the
> >> axis.jar
> >> >> and
> >> >> > alle the other jars... so i dunno what u
> mean
> >> with
> >> >> the
> >> >> > classpath...
> >> >> >
> >> >> well, should be on another mailing-list this
> >> >> question.
> >> >> However, trying to execute your class,there is
> >> some
> >> >> other classes that
> >> >> need to be found and loaded (as the Service
> >> class).
> >> >> In your case, they are not
> >> >> found(NoClassDefFoundError)
> >> >> To be found, they need to be referenced by the
> >> >> environnement variable
> >> >> CLASSPATH.
> >> >> That's all
> >> >> Be sure that your classpath contains . (for
> the
> >> >> current directory)
> >> >> So it should give something like
> >> >> set
> >> >>
> >> >
> >>
> >
>
CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
> >> >>
> >> >> Xavier
> >> >>
> >> >> >
> >> >> > --- Xavier Renard <Xa...@ulg.ac.be>
> >> wrote:
> >> >> >
> >> >> >
> >> >> >> Mees wrote:
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>> I've set the environmental variables
> >> >> AXISCLASSPATH,
> >> >> >>> AXIS_LIB and AXIS_HOME.
> >> >> >>> I've runned the getQuote example it
> worked.
> >> It
> >> >> gave
> >> >> >>> back 55.25
> >> >> >>>
> >> >> >>> But now that I've moved on to the user
> guide,
> >> to
> >> >> >>>
> >> >> >>>
> >> >> >> the
> >> >> >>
> >> >> >>
> >> >> >>> example with the TestClient.java.
> >> >> >>> It says run with the following command:
> >> >> >>> java samples.userguide.example1.TestClient
> >> >> >>> So I did from the dir C:\axis
> >> >> >>>
> >> >> >>> I tried from other dir but it won't work I
> >> keep
> >> >> >>> getting this error, when i run the
> following
> >> >> >>>
> >> >> >>>
> >> >> >> command
> >> >> >>
> >> >> >>
> >> >> >>> C:\axis\java
> >> >> samples.userguide.example1.TestClient
> >> >> >>>
> >> >> >>> ---------------
> >> >> >>>
> >> >> >>> Exception in thread "main"
> >> >> >>> java.lang.NoClassDefFoundError:
> >> >> >>> org/apache/axis/client/Service
> >> >> >>> at
> >> >> >>>
> >> >> >>>
> >> >>
> >> >>>
> >>
> >
>
samples.userguide.example1.TestClient.main(TestClient.java:70)
> >> >> >>
> >> >> >>
> >> >> >>> --------------------------------
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >> add it to your classpath maybe :-)
> >> >> >> set
> CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
> >> >> >>
> >> >> >> Xavier
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> > __________________________________
> >> > Do you Yahoo!?
> >> > Exclusive Video Premiere - Britney Spears
> >> > http://launch.yahoo.com/promos/britneyspears/
> >> >
> >>
> >>
> >>
> >> ----------------------
> >> NJ Rogers, Technical Researcher
> >> (Semantic Web Applications Developer)
> >> Institute for Learning and Research Technology
> >> (ILRT)
> >> Email:nikki.rogers@bristol.ac.uk
> >> Tel: +44(0)117 9287096 (Direct)
> >> Tel: +44(0)117 9287193 (Office)
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Exclusive Video Premiere - Britney Spears
> > http://launch.yahoo.com/promos/britneyspears/
> >
> 
> 
> 
> ----------------------
> NJ Rogers, Technical Researcher
> (Semantic Web Applications Developer)
> Institute for Learning and Research Technology
> (ILRT)
> Email:nikki.rogers@bristol.ac.uk
> Tel: +44(0)117 9287096 (Direct)
> Tel: +44(0)117 9287193 (Office)


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
on the post 
http://marc.theaimsgroup.com/?l=axis-user&m=105276538418974&w=2

he says try with telnet to see if it's a network
problem... well i tried and no it's not the network
that's giving me the error...

So what is it? :S


--- "NJ Rogers, Learning and Research Technology"
<Ni...@bristol.ac.uk> wrote:
> Hi
> 
> You've sorted out your classpath problem. Now you've
> got a connect problem.
> I suggest you search via "Connection refused" in the
> archives for this list 
> (http://ws.apache.org/axis/mail.html).
> 
> If you're new to java, servlet containers, web
> services in general. I 
> suggest you try some of the free, online tutorials
> or the developer pack
> at http://java.sun.com/webservices/
> 
> or http://java.sun.com/docs/books/tutorial/ (java
> tutorial from sun)
> 
> regards,
> Nikki
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --On 26 October 2003 11:03 -0800 Mees
> <ho...@yahoo.com> wrote:
> 
> > C:\axis>java samples.userguide.example1.TestClient
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError:
> samples/userguide/exa
> > mple1/TestClient
> >
> > this is what i get when i do what u say, so i
> tried it
> > with .; befor the path...
> > that doesn't work either... but it's another
> error,
> > sth bout refusal of connection, but i tried to
> solve
> > that with killing my firewall, but that doesn't
> work
> > either...
> >
> > anymore suggestions?
> >
> > --- "NJ Rogers, Learning and Research Technology"
> > <Ni...@bristol.ac.uk> wrote:
> >> Should not be:
> >>
> >> set classpath
> >> >
> >>
> >
>
classpath=C:\axis\samples\userguide\example1\TestClient.class
> >>
> >> should not be:
> >>
> >> > C:\axis>set classpath
> >> > classpath=C:\axis\samples\userguide\example1\;
> >>
> >> should instead be:
> >>
> >>  C:\axis>set classpath
> >> classpath=C:\axis\samples\userguide\example1;
> >>
> >> (take off slash at end)
> >>
> >> n
> >>
> >> --On 26 October 2003 09:07 -0800 Mees
> >> <ho...@yahoo.com> wrote:
> >>
> >> > I've tried 2 ways:
> >> > 1 is the path to testclient.class
> >> > and 2 is to path example1 both failed :S
> >> >
> >> > C:\axis>set classpath
> >> >
> >>
> >
>
classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib
> >> > \axis.j
> >> >
> >>
> >
>
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\com
> >> > mons-lo
> >> >
> >>
> >
>
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1
> >> > .2.8.ja
> >>
> >
>
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >> >
> >> > C:\axis>java
> >> samples.userguide.example1.TestClient.
> >> > Exception in thread "main"
> >> > java.lang.NoClassDefFoundError:
> >> samples/userguide/exa
> >> > mple1/TestClient/
> >> >
> >> > ------
> >> >
> >> > C:\axis>set classpath
> >> >
> >>
> >
>
classpath=C:\axis\samples\userguide\example1\;c:\axis\lib\axis.jar;c:\axi
> >> > s\lib\a
> >> >
> >>
> >
>
xis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-logging.jar
> >> > ;c:\axi
> >> >
> >>
> >
>
s\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis
> >> > \lib\xm l-apis.jar;c:\axis\lib\xercesImpl.jar
> >> >
> >> > C:\axis>java
> samples.userguide.example1.TestClient
> >> > Exception in thread "main"
> >> > java.lang.NoClassDefFoundError:
> >> samples/userguide/exa
> >> > mple1/TestClient
> >> >
> >> >
> >> > --- Xavier Renard <Xa...@ulg.ac.be>
> wrote:
> >> >> Mees wrote:
> >> >>
> >> >> > The axisclasspath already directs to the
> >> axis.jar
> >> >> and
> >> >> > alle the other jars... so i dunno what u
> mean
> >> with
> >> >> the
> >> >> > classpath...
> >> >> >
> >> >> well, should be on another mailing-list this
> >> >> question.
> >> >> However, trying to execute your class,there is
> >> some
> >> >> other classes that
> >> >> need to be found and loaded (as the Service
> >> class).
> >> >> In your case, they are not
> >> >> found(NoClassDefFoundError)
> >> >> To be found, they need to be referenced by the
> >> >> environnement variable
> >> >> CLASSPATH.
> >> >> That's all
> >> >> Be sure that your classpath contains . (for
> the
> >> >> current directory)
> >> >> So it should give something like
> >> >> set
> >> >>
> >> >
> >>
> >
>
CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
> >> >>
> >> >> Xavier
> >> >>
> >> >> >
> >> >> > --- Xavier Renard <Xa...@ulg.ac.be>
> >> wrote:
> >> >> >
> >> >> >
> >> >> >> Mees wrote:
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>> I've set the environmental variables
> >> >> AXISCLASSPATH,
> >> >> >>> AXIS_LIB and AXIS_HOME.
> >> >> >>> I've runned the getQuote example it
> worked.
> >> It
> >> >> gave
> >> >> >>> back 55.25
> >> >> >>>
> >> >> >>> But now that I've moved on to the user
> guide,
> >> to
> >> >> >>>
> >> >> >>>
> >> >> >> the
> >> >> >>
> >> >> >>
> >> >> >>> example with the TestClient.java.
> >> >> >>> It says run with the following command:
> >> >> >>> java samples.userguide.example1.TestClient
> >> >> >>> So I did from the dir C:\axis
> >> >> >>>
> >> >> >>> I tried from other dir but it won't work I
> >> keep
> >> >> >>> getting this error, when i run the
> following
> >> >> >>>
> >> >> >>>
> >> >> >> command
> >> >> >>
> >> >> >>
> >> >> >>> C:\axis\java
> >> >> samples.userguide.example1.TestClient
> >> >> >>>
> >> >> >>> ---------------
> >> >> >>>
> >> >> >>> Exception in thread "main"
> >> >> >>> java.lang.NoClassDefFoundError:
> >> >> >>> org/apache/axis/client/Service
> >> >> >>> at
> >> >> >>>
> >> >> >>>
> >> >>
> >> >>>
> >>
> >
>
samples.userguide.example1.TestClient.main(TestClient.java:70)
> >> >> >>
> >> >> >>
> >> >> >>> --------------------------------
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >> add it to your classpath maybe :-)
> >> >> >> set
> CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
> >> >> >>
> >> >> >> Xavier
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> > __________________________________
> >> > Do you Yahoo!?
> >> > Exclusive Video Premiere - Britney Spears
> >> > http://launch.yahoo.com/promos/britneyspears/
> >> >
> >>
> >>
> >>
> >> ----------------------
> >> NJ Rogers, Technical Researcher
> >> (Semantic Web Applications Developer)
> >> Institute for Learning and Research Technology
> >> (ILRT)
> >> Email:nikki.rogers@bristol.ac.uk
> >> Tel: +44(0)117 9287096 (Direct)
> >> Tel: +44(0)117 9287193 (Office)
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Exclusive Video Premiere - Britney Spears
> > http://launch.yahoo.com/promos/britneyspears/
> >
> 
> 
> 
> ----------------------
> NJ Rogers, Technical Researcher
> (Semantic Web Applications Developer)
> Institute for Learning and Research Technology
> (ILRT)
> Email:nikki.rogers@bristol.ac.uk
> Tel: +44(0)117 9287096 (Direct)
> Tel: +44(0)117 9287193 (Office)


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by "NJ Rogers, Learning and Research Technology" <Ni...@bristol.ac.uk>.
Hi

You've sorted out your classpath problem. Now you've got a connect problem.
I suggest you search via "Connection refused" in the archives for this list 
(http://ws.apache.org/axis/mail.html).

If you're new to java, servlet containers, web services in general. I 
suggest you try some of the free, online tutorials or the developer pack
at http://java.sun.com/webservices/

or http://java.sun.com/docs/books/tutorial/ (java tutorial from sun)

regards,
Nikki









--On 26 October 2003 11:03 -0800 Mees <ho...@yahoo.com> wrote:

> C:\axis>java samples.userguide.example1.TestClient
> Exception in thread "main"
> java.lang.NoClassDefFoundError: samples/userguide/exa
> mple1/TestClient
>
> this is what i get when i do what u say, so i tried it
> with .; befor the path...
> that doesn't work either... but it's another error,
> sth bout refusal of connection, but i tried to solve
> that with killing my firewall, but that doesn't work
> either...
>
> anymore suggestions?
>
> --- "NJ Rogers, Learning and Research Technology"
> <Ni...@bristol.ac.uk> wrote:
>> Should not be:
>>
>> set classpath
>> >
>>
> classpath=C:\axis\samples\userguide\example1\TestClient.class
>>
>> should not be:
>>
>> > C:\axis>set classpath
>> > classpath=C:\axis\samples\userguide\example1\;
>>
>> should instead be:
>>
>>  C:\axis>set classpath
>> classpath=C:\axis\samples\userguide\example1;
>>
>> (take off slash at end)
>>
>> n
>>
>> --On 26 October 2003 09:07 -0800 Mees
>> <ho...@yahoo.com> wrote:
>>
>> > I've tried 2 ways:
>> > 1 is the path to testclient.class
>> > and 2 is to path example1 both failed :S
>> >
>> > C:\axis>set classpath
>> >
>>
> classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib
>> > \axis.j
>> >
>>
> ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\com
>> > mons-lo
>> >
>>
> gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1
>> > .2.8.ja
>>
> r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
>> >
>> > C:\axis>java
>> samples.userguide.example1.TestClient.
>> > Exception in thread "main"
>> > java.lang.NoClassDefFoundError:
>> samples/userguide/exa
>> > mple1/TestClient/
>> >
>> > ------
>> >
>> > C:\axis>set classpath
>> >
>>
> classpath=C:\axis\samples\userguide\example1\;c:\axis\lib\axis.jar;c:\axi
>> > s\lib\a
>> >
>>
> xis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-logging.jar
>> > ;c:\axi
>> >
>>
> s\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis
>> > \lib\xm l-apis.jar;c:\axis\lib\xercesImpl.jar
>> >
>> > C:\axis>java samples.userguide.example1.TestClient
>> > Exception in thread "main"
>> > java.lang.NoClassDefFoundError:
>> samples/userguide/exa
>> > mple1/TestClient
>> >
>> >
>> > --- Xavier Renard <Xa...@ulg.ac.be> wrote:
>> >> Mees wrote:
>> >>
>> >> > The axisclasspath already directs to the
>> axis.jar
>> >> and
>> >> > alle the other jars... so i dunno what u mean
>> with
>> >> the
>> >> > classpath...
>> >> >
>> >> well, should be on another mailing-list this
>> >> question.
>> >> However, trying to execute your class,there is
>> some
>> >> other classes that
>> >> need to be found and loaded (as the Service
>> class).
>> >> In your case, they are not
>> >> found(NoClassDefFoundError)
>> >> To be found, they need to be referenced by the
>> >> environnement variable
>> >> CLASSPATH.
>> >> That's all
>> >> Be sure that your classpath contains . (for the
>> >> current directory)
>> >> So it should give something like
>> >> set
>> >>
>> >
>>
> CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
>> >>
>> >> Xavier
>> >>
>> >> >
>> >> > --- Xavier Renard <Xa...@ulg.ac.be>
>> wrote:
>> >> >
>> >> >
>> >> >> Mees wrote:
>> >> >>
>> >> >>
>> >> >>
>> >> >>> I've set the environmental variables
>> >> AXISCLASSPATH,
>> >> >>> AXIS_LIB and AXIS_HOME.
>> >> >>> I've runned the getQuote example it worked.
>> It
>> >> gave
>> >> >>> back 55.25
>> >> >>>
>> >> >>> But now that I've moved on to the user guide,
>> to
>> >> >>>
>> >> >>>
>> >> >> the
>> >> >>
>> >> >>
>> >> >>> example with the TestClient.java.
>> >> >>> It says run with the following command:
>> >> >>> java samples.userguide.example1.TestClient
>> >> >>> So I did from the dir C:\axis
>> >> >>>
>> >> >>> I tried from other dir but it won't work I
>> keep
>> >> >>> getting this error, when i run the following
>> >> >>>
>> >> >>>
>> >> >> command
>> >> >>
>> >> >>
>> >> >>> C:\axis\java
>> >> samples.userguide.example1.TestClient
>> >> >>>
>> >> >>> ---------------
>> >> >>>
>> >> >>> Exception in thread "main"
>> >> >>> java.lang.NoClassDefFoundError:
>> >> >>> org/apache/axis/client/Service
>> >> >>> at
>> >> >>>
>> >> >>>
>> >>
>> >>>
>>
> samples.userguide.example1.TestClient.main(TestClient.java:70)
>> >> >>
>> >> >>
>> >> >>> --------------------------------
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >> add it to your classpath maybe :-)
>> >> >> set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
>> >> >>
>> >> >> Xavier
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>> >
>> >
>> > __________________________________
>> > Do you Yahoo!?
>> > Exclusive Video Premiere - Britney Spears
>> > http://launch.yahoo.com/promos/britneyspears/
>> >
>>
>>
>>
>> ----------------------
>> NJ Rogers, Technical Researcher
>> (Semantic Web Applications Developer)
>> Institute for Learning and Research Technology
>> (ILRT)
>> Email:nikki.rogers@bristol.ac.uk
>> Tel: +44(0)117 9287096 (Direct)
>> Tel: +44(0)117 9287193 (Office)
>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>



----------------------
NJ Rogers, Technical Researcher
(Semantic Web Applications Developer)
Institute for Learning and Research Technology (ILRT)
Email:nikki.rogers@bristol.ac.uk
Tel: +44(0)117 9287096 (Direct)
Tel: +44(0)117 9287193 (Office)

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
C:\axis>java samples.userguide.example1.TestClient
Exception in thread "main"
java.lang.NoClassDefFoundError: samples/userguide/exa
mple1/TestClient

this is what i get when i do what u say, so i tried it
with .; befor the path...
that doesn't work either... but it's another error,
sth bout refusal of connection, but i tried to solve
that with killing my firewall, but that doesn't work
either...

anymore suggestions?

--- "NJ Rogers, Learning and Research Technology"
<Ni...@bristol.ac.uk> wrote:
> Should not be:
> 
> set classpath
> >
>
classpath=C:\axis\samples\userguide\example1\TestClient.class
> 
> should not be:
> 
> > C:\axis>set classpath
> > classpath=C:\axis\samples\userguide\example1\;
> 
> should instead be:
> 
>  C:\axis>set classpath
> classpath=C:\axis\samples\userguide\example1;
> 
> (take off slash at end)
> 
> n
> 
> --On 26 October 2003 09:07 -0800 Mees
> <ho...@yahoo.com> wrote:
> 
> > I've tried 2 ways:
> > 1 is the path to testclient.class
> > and 2 is to path example1 both failed :S
> >
> > C:\axis>set classpath
> >
>
classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib
> > \axis.j
> >
>
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\com
> > mons-lo
> >
>
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1
> > .2.8.ja
>
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
> >
> > C:\axis>java
> samples.userguide.example1.TestClient.
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError:
> samples/userguide/exa
> > mple1/TestClient/
> >
> > ------
> >
> > C:\axis>set classpath
> >
>
classpath=C:\axis\samples\userguide\example1\;c:\axis\lib\axis.jar;c:\axi
> > s\lib\a
> >
>
xis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-logging.jar
> > ;c:\axi
> >
>
s\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis
> > \lib\xm l-apis.jar;c:\axis\lib\xercesImpl.jar
> >
> > C:\axis>java samples.userguide.example1.TestClient
> > Exception in thread "main"
> > java.lang.NoClassDefFoundError:
> samples/userguide/exa
> > mple1/TestClient
> >
> >
> > --- Xavier Renard <Xa...@ulg.ac.be> wrote:
> >> Mees wrote:
> >>
> >> > The axisclasspath already directs to the
> axis.jar
> >> and
> >> > alle the other jars... so i dunno what u mean
> with
> >> the
> >> > classpath...
> >> >
> >> well, should be on another mailing-list this
> >> question.
> >> However, trying to execute your class,there is
> some
> >> other classes that
> >> need to be found and loaded (as the Service
> class).
> >> In your case, they are not
> >> found(NoClassDefFoundError)
> >> To be found, they need to be referenced by the
> >> environnement variable
> >> CLASSPATH.
> >> That's all
> >> Be sure that your classpath contains . (for the
> >> current directory)
> >> So it should give something like
> >> set
> >>
> >
>
CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
> >>
> >> Xavier
> >>
> >> >
> >> > --- Xavier Renard <Xa...@ulg.ac.be>
> wrote:
> >> >
> >> >
> >> >> Mees wrote:
> >> >>
> >> >>
> >> >>
> >> >>> I've set the environmental variables
> >> AXISCLASSPATH,
> >> >>> AXIS_LIB and AXIS_HOME.
> >> >>> I've runned the getQuote example it worked.
> It
> >> gave
> >> >>> back 55.25
> >> >>>
> >> >>> But now that I've moved on to the user guide,
> to
> >> >>>
> >> >>>
> >> >> the
> >> >>
> >> >>
> >> >>> example with the TestClient.java.
> >> >>> It says run with the following command:
> >> >>> java samples.userguide.example1.TestClient
> >> >>> So I did from the dir C:\axis
> >> >>>
> >> >>> I tried from other dir but it won't work I
> keep
> >> >>> getting this error, when i run the following
> >> >>>
> >> >>>
> >> >> command
> >> >>
> >> >>
> >> >>> C:\axis\java
> >> samples.userguide.example1.TestClient
> >> >>>
> >> >>> ---------------
> >> >>>
> >> >>> Exception in thread "main"
> >> >>> java.lang.NoClassDefFoundError:
> >> >>> org/apache/axis/client/Service
> >> >>> at
> >> >>>
> >> >>>
> >>
> >>>
>
samples.userguide.example1.TestClient.main(TestClient.java:70)
> >> >>
> >> >>
> >> >>> --------------------------------
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >> add it to your classpath maybe :-)
> >> >> set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
> >> >>
> >> >> Xavier
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Exclusive Video Premiere - Britney Spears
> > http://launch.yahoo.com/promos/britneyspears/
> >
> 
> 
> 
> ----------------------
> NJ Rogers, Technical Researcher
> (Semantic Web Applications Developer)
> Institute for Learning and Research Technology
> (ILRT)
> Email:nikki.rogers@bristol.ac.uk
> Tel: +44(0)117 9287096 (Direct)
> Tel: +44(0)117 9287193 (Office)


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by "NJ Rogers, Learning and Research Technology" <Ni...@bristol.ac.uk>.
Should not be:

set classpath
> classpath=C:\axis\samples\userguide\example1\TestClient.class

should not be:

> C:\axis>set classpath
> classpath=C:\axis\samples\userguide\example1\;

should instead be:

 C:\axis>set classpath classpath=C:\axis\samples\userguide\example1;

(take off slash at end)

n

--On 26 October 2003 09:07 -0800 Mees <ho...@yahoo.com> wrote:

> I've tried 2 ways:
> 1 is the path to testclient.class
> and 2 is to path example1 both failed :S
>
> C:\axis>set classpath
> classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib
> \axis.j
> ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\com
> mons-lo
> gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1
> .2.8.ja r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar
>
> C:\axis>java samples.userguide.example1.TestClient.
> Exception in thread "main"
> java.lang.NoClassDefFoundError: samples/userguide/exa
> mple1/TestClient/
>
> ------
>
> C:\axis>set classpath
> classpath=C:\axis\samples\userguide\example1\;c:\axis\lib\axis.jar;c:\axi
> s\lib\a
> xis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-logging.jar
> ;c:\axi
> s\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis
> \lib\xm l-apis.jar;c:\axis\lib\xercesImpl.jar
>
> C:\axis>java samples.userguide.example1.TestClient
> Exception in thread "main"
> java.lang.NoClassDefFoundError: samples/userguide/exa
> mple1/TestClient
>
>
> --- Xavier Renard <Xa...@ulg.ac.be> wrote:
>> Mees wrote:
>>
>> > The axisclasspath already directs to the axis.jar
>> and
>> > alle the other jars... so i dunno what u mean with
>> the
>> > classpath...
>> >
>> well, should be on another mailing-list this
>> question.
>> However, trying to execute your class,there is some
>> other classes that
>> need to be found and loaded (as the Service class).
>> In your case, they are not
>> found(NoClassDefFoundError)
>> To be found, they need to be referenced by the
>> environnement variable
>> CLASSPATH.
>> That's all
>> Be sure that your classpath contains . (for the
>> current directory)
>> So it should give something like
>> set
>>
> CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
>>
>> Xavier
>>
>> >
>> > --- Xavier Renard <Xa...@ulg.ac.be> wrote:
>> >
>> >
>> >> Mees wrote:
>> >>
>> >>
>> >>
>> >>> I've set the environmental variables
>> AXISCLASSPATH,
>> >>> AXIS_LIB and AXIS_HOME.
>> >>> I've runned the getQuote example it worked. It
>> gave
>> >>> back 55.25
>> >>>
>> >>> But now that I've moved on to the user guide, to
>> >>>
>> >>>
>> >> the
>> >>
>> >>
>> >>> example with the TestClient.java.
>> >>> It says run with the following command:
>> >>> java samples.userguide.example1.TestClient
>> >>> So I did from the dir C:\axis
>> >>>
>> >>> I tried from other dir but it won't work I keep
>> >>> getting this error, when i run the following
>> >>>
>> >>>
>> >> command
>> >>
>> >>
>> >>> C:\axis\java
>> samples.userguide.example1.TestClient
>> >>>
>> >>> ---------------
>> >>>
>> >>> Exception in thread "main"
>> >>> java.lang.NoClassDefFoundError:
>> >>> org/apache/axis/client/Service
>> >>> at
>> >>>
>> >>>
>>
>>> samples.userguide.example1.TestClient.main(TestClient.java:70)
>> >>
>> >>
>> >>> --------------------------------
>> >>>
>> >>>
>> >>>
>> >>>
>> >> add it to your classpath maybe :-)
>> >> set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
>> >>
>> >> Xavier
>> >>
>> >>
>> >>
>>
>>
>>
>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>



----------------------
NJ Rogers, Technical Researcher
(Semantic Web Applications Developer)
Institute for Learning and Research Technology (ILRT)
Email:nikki.rogers@bristol.ac.uk
Tel: +44(0)117 9287096 (Direct)
Tel: +44(0)117 9287193 (Office)

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
I've tried 2 ways:
1 is the path to testclient.class
and 2 is to path example1 both failed :S

C:\axis>set classpath
classpath=C:\axis\samples\userguide\example1\TestClient.class;c:\axis\lib\axis.j
ar;c:\axis\lib\axis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-lo
gging.jar;c:\axis\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.ja
r;c:\axis\lib\xml-apis.jar;c:\axis\lib\xercesImpl.jar

C:\axis>java samples.userguide.example1.TestClient.
Exception in thread "main"
java.lang.NoClassDefFoundError: samples/userguide/exa
mple1/TestClient/

------

C:\axis>set classpath
classpath=C:\axis\samples\userguide\example1\;c:\axis\lib\axis.jar;c:\axis\lib\a
xis.jar;c:\axis\lib\commons-discovery.jar;c:\axis\lib\commons-logging.jar;c:\axi
s\lib\jaxrpc.jar;c:\axis\lib\saaj.jar;c:\axis\lib\log4j-1.2.8.jar;c:\axis\lib\xm
l-apis.jar;c:\axis\lib\xercesImpl.jar

C:\axis>java samples.userguide.example1.TestClient
Exception in thread "main"
java.lang.NoClassDefFoundError: samples/userguide/exa
mple1/TestClient


--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >The axisclasspath already directs to the axis.jar
> and
> >alle the other jars... so i dunno what u mean with
> the
> >classpath...
> >
> well, should be on another mailing-list this
> question.
> However, trying to execute your class,there is some
> other classes that 
> need to be found and loaded (as the Service class).
> In your case, they are not
> found(NoClassDefFoundError)
> To be found, they need to be referenced by the
> environnement variable 
> CLASSPATH.
> That's all
> Be sure that your classpath contains . (for the
> current directory)
> So it should give something like
> set
>
CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
> 
> Xavier
> 
> >
> >--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> >  
> >
> >>Mees wrote:
> >>
> >>    
> >>
> >>>I've set the environmental variables
> AXISCLASSPATH,
> >>>AXIS_LIB and AXIS_HOME.
> >>>I've runned the getQuote example it worked. It
> gave
> >>>back 55.25
> >>>
> >>>But now that I've moved on to the user guide, to
> >>>      
> >>>
> >>the
> >>    
> >>
> >>>example with the TestClient.java.
> >>>It says run with the following command:
> >>>java samples.userguide.example1.TestClient 
> >>>So I did from the dir C:\axis
> >>>
> >>>I tried from other dir but it won't work I keep
> >>>getting this error, when i run the following
> >>>      
> >>>
> >>command
> >>    
> >>
> >>>C:\axis\java
> samples.userguide.example1.TestClient 
> >>>
> >>>---------------
> >>>
> >>>Exception in thread "main"
> >>>java.lang.NoClassDefFoundError:
> >>>org/apache/axis/client/Service
> >>> at
> >>>      
> >>>
>
>>samples.userguide.example1.TestClient.main(TestClient.java:70)
> >>    
> >>
> >>>--------------------------------
> >>> 
> >>>
> >>>      
> >>>
> >>add it to your classpath maybe :-)
> >>set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
> >>
> >>Xavier
> >>
> >>    
> >>
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
i already have 
Axisclasspath =
%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar

and now also a environmental variable classpath with
the same path to jars...

but i'm still getting the same error about the
testclient...

i'm still puzzled :S

--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >The axisclasspath already directs to the axis.jar
> and
> >alle the other jars... so i dunno what u mean with
> the
> >classpath...
> >
> well, should be on another mailing-list this
> question.
> However, trying to execute your class,there is some
> other classes that 
> need to be found and loaded (as the Service class).
> In your case, they are not
> found(NoClassDefFoundError)
> To be found, they need to be referenced by the
> environnement variable 
> CLASSPATH.
> That's all
> Be sure that your classpath contains . (for the
> current directory)
> So it should give something like
> set
>
CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile
> 
> Xavier
> 
> >
> >--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> >  
> >
> >>Mees wrote:
> >>
> >>    
> >>
> >>>I've set the environmental variables
> AXISCLASSPATH,
> >>>AXIS_LIB and AXIS_HOME.
> >>>I've runned the getQuote example it worked. It
> gave
> >>>back 55.25
> >>>
> >>>But now that I've moved on to the user guide, to
> >>>      
> >>>
> >>the
> >>    
> >>
> >>>example with the TestClient.java.
> >>>It says run with the following command:
> >>>java samples.userguide.example1.TestClient 
> >>>So I did from the dir C:\axis
> >>>
> >>>I tried from other dir but it won't work I keep
> >>>getting this error, when i run the following
> >>>      
> >>>
> >>command
> >>    
> >>
> >>>C:\axis\java
> samples.userguide.example1.TestClient 
> >>>
> >>>---------------
> >>>
> >>>Exception in thread "main"
> >>>java.lang.NoClassDefFoundError:
> >>>org/apache/axis/client/Service
> >>> at
> >>>      
> >>>
>
>>samples.userguide.example1.TestClient.main(TestClient.java:70)
> >>    
> >>
> >>>--------------------------------
> >>> 
> >>>
> >>>      
> >>>
> >>add it to your classpath maybe :-)
> >>set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
> >>
> >>Xavier
> >>
> >>    
> >>
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Xavier Renard <Xa...@ulg.ac.be>.
Mees wrote:

>The axisclasspath already directs to the axis.jar and
>alle the other jars... so i dunno what u mean with the
>classpath...
>
well, should be on another mailing-list this question.
However, trying to execute your class,there is some other classes that 
need to be found and loaded (as the Service class).
In your case, they are not found(NoClassDefFoundError)
To be found, they need to be referenced by the environnement variable 
CLASSPATH.
That's all
Be sure that your classpath contains . (for the current directory)
So it should give something like
set CLASSPATH=.;/path/to/whatever/jarfile/you/want;/other/jarfile

Xavier

>
>--- Xavier Renard <Xa...@ulg.ac.be> wrote:
>  
>
>>Mees wrote:
>>
>>    
>>
>>>I've set the environmental variables AXISCLASSPATH,
>>>AXIS_LIB and AXIS_HOME.
>>>I've runned the getQuote example it worked. It gave
>>>back 55.25
>>>
>>>But now that I've moved on to the user guide, to
>>>      
>>>
>>the
>>    
>>
>>>example with the TestClient.java.
>>>It says run with the following command:
>>>java samples.userguide.example1.TestClient 
>>>So I did from the dir C:\axis
>>>
>>>I tried from other dir but it won't work I keep
>>>getting this error, when i run the following
>>>      
>>>
>>command
>>    
>>
>>>C:\axis\java samples.userguide.example1.TestClient 
>>>
>>>---------------
>>>
>>>Exception in thread "main"
>>>java.lang.NoClassDefFoundError:
>>>org/apache/axis/client/Service
>>> at
>>>      
>>>
>>samples.userguide.example1.TestClient.main(TestClient.java:70)
>>    
>>
>>>--------------------------------
>>> 
>>>
>>>      
>>>
>>add it to your classpath maybe :-)
>>set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
>>
>>Xavier
>>
>>    
>>




Re: Problem with running testclient.java

Posted by Mees <ho...@yahoo.com>.
The axisclasspath already directs to the axis.jar and
alle the other jars... so i dunno what u mean with the
classpath...

--- Xavier Renard <Xa...@ulg.ac.be> wrote:
> Mees wrote:
> 
> >I've set the environmental variables AXISCLASSPATH,
> >AXIS_LIB and AXIS_HOME.
> >I've runned the getQuote example it worked. It gave
> >back 55.25
> >
> >But now that I've moved on to the user guide, to
> the
> >example with the TestClient.java.
> >It says run with the following command:
> >java samples.userguide.example1.TestClient 
> >So I did from the dir C:\axis
> >
> >I tried from other dir but it won't work I keep
> >getting this error, when i run the following
> command
> >C:\axis\java samples.userguide.example1.TestClient 
> >
> >---------------
> >
> >Exception in thread "main"
> >java.lang.NoClassDefFoundError:
> >org/apache/axis/client/Service
> >  at
>
>samples.userguide.example1.TestClient.main(TestClient.java:70)
> >--------------------------------
> >  
> >
> 
> add it to your classpath maybe :-)
> set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;
> 
> Xavier
> 
> >Maybe it can't find the class Service, but I've
> looked
> >it up, it's in the axis.jar and I've got that jar
> in
> >the lib and the environmental variable directs to
> all
> >the jars that is needed.
> >
> >So what is wrong?
> >HELP!
> >  
> >
> 
> 
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

Re: Problem with running testclient.java

Posted by Xavier Renard <Xa...@ulg.ac.be>.
Mees wrote:

>I've set the environmental variables AXISCLASSPATH,
>AXIS_LIB and AXIS_HOME.
>I've runned the getQuote example it worked. It gave
>back 55.25
>
>But now that I've moved on to the user guide, to the
>example with the TestClient.java.
>It says run with the following command:
>java samples.userguide.example1.TestClient 
>So I did from the dir C:\axis
>
>I tried from other dir but it won't work I keep
>getting this error, when i run the following command
>C:\axis\java samples.userguide.example1.TestClient 
>
>---------------
>
>Exception in thread "main"
>java.lang.NoClassDefFoundError:
>org/apache/axis/client/Service
>  at
>samples.userguide.example1.TestClient.main(TestClient.java:70)
>--------------------------------
>  
>

add it to your classpath maybe :-)
set CLASSPATH=%CLASSPATH%;%AXIS_LIB%\axis.jar;

Xavier

>Maybe it can't find the class Service, but I've looked
>it up, it's in the axis.jar and I've got that jar in
>the lib and the environmental variable directs to all
>the jars that is needed.
>
>So what is wrong?
>HELP!
>  
>