You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Doug Nakken <DO...@cc.usu.edu> on 2001/05/14 18:15:51 UTC

NoClassDefFoundError

Hello,
I'm trying to use Xerces1.3.0/Soap2.1 on Windows 2000. I've finally got the 
Apache-Soap up, now when I try to deploy a service or start the TcpTunnelGui I 
get  NoClassDefFoundErrors for both the ServiceManagerClient and TcpTunnelGui. 
I believe this is a classpath problem but have put all the .jar files in the 
classpath that I've found in the documentation. Any Help Please?

Doug Nakken
USU Brigham City Campus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: NoClassDefFoundError

Posted by Greg Bondy <gl...@momentumsoftware.com>.
I had a similar problem. I had placed tomcat, xerces and soap in
the directory C:\Program Files\Apache Group. I found that the
spaces in the directory names causes a problem with the classpath. I
thought I had this cleared up by using the shortcut with no spaces
C:\Program~1\Apache~1, but I found that this also caused a
classpath problem. I created a root directory called webtools and
moved tomcat, xerces and soap to that location. I then had to
modify all of the related config files to point to the correct place
and I updated my CLASSPATH. After doing that, it worked
like a charm.

Doug Nakken wrote:

> Hello,
> I'm trying to use Xerces1.3.0/Soap2.1 on Windows 2000. I've finally got the
> Apache-Soap up, now when I try to deploy a service or start the TcpTunnelGui I
> get  NoClassDefFoundErrors for both the ServiceManagerClient and TcpTunnelGui.
> I believe this is a classpath problem but have put all the .jar files in the
> classpath that I've found in the documentation. Any Help Please?
>
> Doug Nakken
> USU Brigham City Campus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: NoClassDefFoundError

Posted by Greg Bondy <gl...@momentumsoftware.com>.
I had a similar problem. I had placed tomcat, xerces and soap in
the directory C:\Program Files\Apache Group. I found that the
spaces in the directory names causes a problem with the classpath. I
thought I had this cleared up by using the shortcut with no spaces
C:\Program~1\Apache~1, but I found that this also caused a
classpath problem. I created a root directory called webtools and
moved tomcat, xerces and soap to that location. I then had to
modify all of the related config files to point to the correct place
and I updated my CLASSPATH. After doing that, it worked
like a charm.

Doug Nakken wrote:

> Hello,
> I'm trying to use Xerces1.3.0/Soap2.1 on Windows 2000. I've finally got the
> Apache-Soap up, now when I try to deploy a service or start the TcpTunnelGui I
> get  NoClassDefFoundErrors for both the ServiceManagerClient and TcpTunnelGui.
> I believe this is a classpath problem but have put all the .jar files in the
> classpath that I've found in the documentation. Any Help Please?
>
> Doug Nakken
> USU Brigham City Campus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: NoClassDefFoundError

Posted by Tom Myers <to...@dreamscape.com>.
At 10:15 AM 5/14/2001 -0600, Doug Nakken wrote:
>Hello,
>I'm trying to use Xerces1.3.0/Soap2.1 on Windows 2000. I've finally got the 
>Apache-Soap up, now when I try to deploy a service or start the TcpTunnelGui I 
>get  NoClassDefFoundErrors for both the ServiceManagerClient and TcpTunnelGui. 
>I believe this is a classpath problem but have put all the .jar files in the 
>classpath that I've found in the documentation. Any Help Please?

The classpath you find in the documentation is the one constructed by your
server (e.g., Tomcat); the code for the services you offer has to be on this
classpath, e.g. samples.addressbook.AddressBook. When you open a console
window and say something like 

java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml

then this is a new "java virtual machine" that you're starting, and its
classpath is logically independent of the server-code classpath. So the 
code for "org.apache.soap.server.ServiceManagerClient",
which is stored in soap.jar has to be on the classpath for this
invocation of java, separately, as in
   java -cp C:\soapdist\soap.jar;%CLASSPATH% org.apache.soap.server.....
or something like that. (I hope I'm not putting in some obvious typo; of
course I don't know where your soapdistribution directory is. Oh well,
that's the general idea.)

Tom Myers


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: NoClassDefFoundError

Posted by Pekka Lehtikoski <pe...@msn.com>.
Hello,
I am somewhat a novice in this area, but I encontered somewhat similar
problem. In my case this seems to be problem also with CLASSPATH.  I changed
"C:\jakarta-tomcat-3.2.1\bin\tomcat.bat" file, I changed "set
CP=%CP%;%CLASSPATH%" to "CP=%CLASSPATH%;%CP%", and things it started to work
ok. This was in place as listed below:

	:chkClasspath
	if "%CLASSPATH%" == "" goto noClasspath
	set CP=%CLASSPATH%;%CP%

Other thing that I encountered before was that the SOAP 2.1 version needs
Java activation.jar and mail.jar. Many things started to work when I
downloaded these.

Good luck,
Pekka



-----Original Message-----
From: Doug Nakken [mailto:DOUGN@cc.usu.edu]
Sent: Monday, May 14, 2001 12:16 PM
To: soap-user@xml.apache.org
Subject: NoClassDefFoundError


Hello,
I'm trying to use Xerces1.3.0/Soap2.1 on Windows 2000. I've finally got the
Apache-Soap up, now when I try to deploy a service or start the TcpTunnelGui
I
get  NoClassDefFoundErrors for both the ServiceManagerClient and
TcpTunnelGui.
I believe this is a classpath problem but have put all the .jar files in the
classpath that I've found in the documentation. Any Help Please?

Doug Nakken
USU Brigham City Campus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


RE: NoClassDefFoundError

Posted by Pekka Lehtikoski <pe...@msn.com>.
Hello,
I am somewhat a novice in this area, but I encontered somewhat similar
problem. In my case this seems to be problem also with CLASSPATH.  I changed
"C:\jakarta-tomcat-3.2.1\bin\tomcat.bat" file, I changed "set
CP=%CP%;%CLASSPATH%" to "CP=%CLASSPATH%;%CP%", and things it started to work
ok. This was in place as listed below:

	:chkClasspath
	if "%CLASSPATH%" == "" goto noClasspath
	set CP=%CLASSPATH%;%CP%

Other thing that I encountered before was that the SOAP 2.1 version needs
Java activation.jar and mail.jar. Many things started to work when I
downloaded these.

Good luck,
Pekka



-----Original Message-----
From: Doug Nakken [mailto:DOUGN@cc.usu.edu]
Sent: Monday, May 14, 2001 12:16 PM
To: soap-user@xml.apache.org
Subject: NoClassDefFoundError


Hello,
I'm trying to use Xerces1.3.0/Soap2.1 on Windows 2000. I've finally got the
Apache-Soap up, now when I try to deploy a service or start the TcpTunnelGui
I
get  NoClassDefFoundErrors for both the ServiceManagerClient and
TcpTunnelGui.
I believe this is a classpath problem but have put all the .jar files in the
classpath that I've found in the documentation. Any Help Please?

Doug Nakken
USU Brigham City Campus


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: NoClassDefFoundError

Posted by Tom Myers <to...@dreamscape.com>.
At 10:15 AM 5/14/2001 -0600, Doug Nakken wrote:
>Hello,
>I'm trying to use Xerces1.3.0/Soap2.1 on Windows 2000. I've finally got the 
>Apache-Soap up, now when I try to deploy a service or start the TcpTunnelGui I 
>get  NoClassDefFoundErrors for both the ServiceManagerClient and TcpTunnelGui. 
>I believe this is a classpath problem but have put all the .jar files in the 
>classpath that I've found in the documentation. Any Help Please?

The classpath you find in the documentation is the one constructed by your
server (e.g., Tomcat); the code for the services you offer has to be on this
classpath, e.g. samples.addressbook.AddressBook. When you open a console
window and say something like 

java org.apache.soap.server.ServiceManagerClient http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml

then this is a new "java virtual machine" that you're starting, and its
classpath is logically independent of the server-code classpath. So the 
code for "org.apache.soap.server.ServiceManagerClient",
which is stored in soap.jar has to be on the classpath for this
invocation of java, separately, as in
   java -cp C:\soapdist\soap.jar;%CLASSPATH% org.apache.soap.server.....
or something like that. (I hope I'm not putting in some obvious typo; of
course I don't know where your soapdistribution directory is. Oh well,
that's the general idea.)

Tom Myers


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org