Hi Dylan,

It seems as if you are dealing with 3 separate problems:

1) Your server's classpath. This was indicated by the
"samples.addressbook.Address could not be resolved..." messages. You seem to
have worked this problem out. The server-side classpath requirements are
described in the installation documentation. In simple terms, if you want
your server to resolve resources, you must make the location of said
resources available to your server via a classpath entry. In this case, you
are asking the server to resolve the samples.addressbook.Address class, so
the location of the samples directory (i.e. the root of the package tree)
must be on your classpath.

2) javac being available to your JSP page compiler. If your JSP page
compiler can't find javac, it can't compile *.jsp files into servlets. javac
lives in tools.jar, and you seem to have worked this problem out. This has
to do with properly installing and configuring your JSP page compiler. It
varies from one implementation to the next, and this sort of information and
troubleshooting really belongs in the documentation that comes with a
particular JSP page compiler. For example, with Tomcat there is a faq file
in the doc directory which clearly spells out Tomcat's classpath
requirements. It appears as follows:

<quote>
Q: What do I need in my CLASSPATH?

A: All you need is a correct version of JDK (1.1.x or 1.2).

   Since the JSP engine also uses 'javac' it needs to be in the CLASSPATH.
   If you are using JDK 1.1.x it will automatically be included. If
   you are using JDK 1.2 you will need to set JAVA_HOME to the directory
   where JDK is installed or alternately you can put "tools.jar" in your
   CLASSPATH.
</quote>

3) Your client's classpath. The class samples.addressbook.GetAddress must be
available on your client's classpath. Add the location of the samples
directory to your client's classpath. Presumably, it's ...\soap-2_2. The
client-side classpath requirements are described in the installation
documentation.

Thanks,
-Matt

> -----Original Message-----
> From: Dylan J Browne [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 11:11 AM
> To: soap
> Subject: Classpath Wrong?
>
>
> Progress! That worked, (putting tools.jar into jre/lib/ext).
> Deploy/undeploy
> both working via browser now. Seem to have taken a step back with the
> classpath error, am now back to:
>
> Getting info for "Mr Good"
> Exception in thread "main" java.lang.NoClassDefFoundError:
> samples/addressbook/GetAddress
>
> When I get this sorted (thanks Tom for all your help!) I'll post it on the
> list as about 50% of the questions posted seem to be about classpaths.
>
> Cheers.
>

Reply via email to