Hello John,
J M Craig/Alpha-G wrote:
> Yes, I think your setup might be similar enough to be useful (although
> it must be nearing the end of your day--or past it by now).
OK, so I'll try to tell you what I know. Sorry for the
delay, I was gone during part of the day yesterday...
> If you're using the JK2 connector, it'd be very similar, I'm sure.
> Are you using the JK2 connector?
Very honestly I don't know what the JK2 connector is or,
more fundamentally, what is a "connector" in this context.
If you are able to tell me where and what to look for
(in configuration or log files), I will.
I'll refer to the tomcat installation directory
as $CATALINA_HOME in the following.
> So, the first question is: did you have to rebuild the soap.war with the
> 1.4.1 JDK?
No, I took the soap.war file that came with the
soap-2_3_1 distribution and copied to the webapps
directory.
> Here's what I've got in the server.xml file (and I'm unsure about the
> correct form for the values for a .war file):
>
> <Context path="/soap"
> docBase="/var/tomcat4/webapps/soap"
> debug="1"
> reloadable="true">
> </Context>
>
> Should the PATH value be "/soap" for a .war file (that is, it looks like
> it's specifying a directory?). I assumed it should since the .war file
> gets expanded into a directory, doesn't it?
Somebody already answered that and I confirm that
I didn't edit the server.xml file at all. The
war file gets exploded automatically by tomcat.
I did the same with other web applications I
wrote: make a war file and put it in the
webapps directory without putting anything
about it in server.xml and it works just fine.
I don't know if a context declaration would
actually hurt, but I think that your context
declaration has anyway a problem, and that's
your next question:
> Should the DOCBASE value be the full path (ending as a directory, as I
> have it)?
>From some working contexts I have, I conclude
that the docBase should be the relative path
from the webapps directory, so it should probably
just be
docBase="soap"
for your case. Although again, it's actually
not needed.
> I do have this in the <Engine> tag:
>
> <Host name="localhost" debug="0" appBase="webapps"
> unpackWARs="true" autoDeploy="true">
This is mine:
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
looks quite the same too me, so it should be fine.
> As to the JK2 connector side, I've added this to the workers2.properties
> file (matches the pattern for the /examples/ directory that comes with
> Tomcat):
I don't know anything about this and I can't find
the file workers2.properties anywhere in the
tomcat tree so I guess that's part of your
example.
I'll comment on a few more things from your
initial message:
J M Craig/Alpha-G wrote:
> The instructions relating to Tomcat don't seem to match up with what's
> installed on my system (I don't find any .sh files, for
> instance--maybe I should look harder?)
The startup.sh and shutdown.sh scripts are
in $CATALINA_HOME/bin/ directory as are these
other scripts.
~/jakarta-tomcat-4.1.12-LE-jdk14 > ls bin/*.sh
bin/catalina.sh bin/jasper.sh bin/setclasspath.sh bin/startup.sh
bin/digest.sh bin/jspc.sh bin/shutdown.sh bin/tool-wrapper.sh
> --at any rate, I can't see how to change the
> CLASSPATH settings as described for earlier versions of Tomcat.
I may be doing the wrong thing, but I modified
the class path (added a few libraries to it)
by editing the file $CATALINA_HOME/bin/catalina.sh
On the other hand, I also have added a library
needed by several applications in
$CATALINA_HOME/shared/lib/
That's what you are really supposed to do I think.
Finally as for your question:
> I'm beginning to think I'm missing a bunch of JAR's for various things.
> Do you happen to know what's needed beyond the basic JDK to run the SOAP
> servlet?
According to the documentation on:
http://ws.apache.org/soap/docs/install/index.html
you need:
- mail.jar from JavaMail
- activation.jar from JavaBeans Activation Framework
- a JAXP compatible, namespace-aware XML parser such as Apache Xerces
(v1.1.2 or later).
If you have other non-namespace aware XML parsers on your classpath
then the
namespace-aware parser must be at the front of your classpath. Apache
SOAP will not
work otherwise.
I have included mail.jar, activation.jar and xerces.jar in
my CLASSPATH (by manual editing of catalina.sh, it would
probably be cleaner just to copy those in shared/lib/)
I hope this helps.
Regards,
Vuko
--
===========================================================|
Vuko Brigljevic, EP Research Fellow |
CERN - European Laboratory for Particle Physics |
--------------------------------------------------------- |
Mail Address: CERN, Div. EP, 1211 Geneve 23 (Switzerland) |
Office : B40-2B08 |
Phone : +41-22-767 1662 |
e-mail : [EMAIL PROTECTED] |
www : http://www.slac.stanford.edu/~vuko |
===========================================================|