Dr. Exner,
It helps to understand classloading in Tomcat. I just
got Axis up and running on the following system.
Windows/2000 Professional
Java JDK 1.5.0_04
Tomcat 5.59
I will assume that this works the same on my Linux box
(Fedora Core 4) since Apache is great in making
cross-platform tools.
The reference in the Tomcat documentation you want is
the following:
http://localhost:8080/tomcat-docs/class-loader-howto.html
In particular, the following paragraph:
For classes and resources that must be shared across
all web applications, place unpacked classes and
resources under $CATALINA_BASE/shared/classes, or
place JAR files containing those classes and resources
under $CATALINA_BASE/shared/lib.
For my environment, this is what I did.
1) Downloaded axis-bin-1_3.zip
2) Unzipped it someplace convenient (C:\src\axis-1_3)
3) Copied the axis folder under webapps to my
$CATALINA_HOME\webapps
4) Ran the Axis Happiness Page and noted I needed the
following jars
a) activation.jar
b) mailapi.jar
c) xmlsec.jar
5) Read the instructions and picked up the jars from
the appropriate places. The first two are from Sun,
and the last one is from Apache.
6) Dropped the jars in $CATALINA_HOME\shared\lib since
I expect to write multiple webapps with Axis
7) Stopped and restated Tomcat
The Axis Happiness Page now reports "happiness".
In general, if you need jars in a single web
application, put them in WEB-INF\lib of the webapp.
If you need to share libraries across all web
applications, put the jar in
$CATALINA_HOME\shared\lib.
If you need to have Tomcat use them as well (for
example, JDBC drivers to set up JNDI datasources),
then you put the jars in $CATALINA_HOME\common\lib
(see
http://localhost:8080/tomcat-docs/jndi-datasource-examples-howto.html)
Hope this helps.
/mde/
--- "Dr. Exner" <[EMAIL PROTECTED]> wrote:
Thanks for this hint,
but it did not work. I copied the file into both
directories but got the
same old error on startup.
May be I did something wrong "from the beginning"?
But there is not much to
configure with the self extracting exe file.
D. Exner
----- Original Message ----- From: "Hadraba Petr" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, February 20, 2006 11:28 AM
Subject: Re: how to get help if no answer from this
list?
> Hi,
>
> did you try to copy the `activation.jar' in the
common/lib/ (or
> common/endorsed/ if newer version then in JRE)
directory? This path is
> _always_ included in the CLASSPATH by the startup
scripts...
>
> I have there JDBC drivers, xalan, xerces (in the
common/endorsed-) and
> it works fine.
>
> And the second benefit of this directories is
platform independence...
> Simply you copy tomcat directory to UNIX or other
Windoze with no
> Control Panel hacking or other problems...
>
> PETR
>
>
> On 2/20/06, Richard Schilling
<[EMAIL PROTECTED]> wrote:
>> Dr. Exner:
>>
>> Don't dismay. Sometimes it takes this listserve
of volunteers time to
>> answer questions.
>>
>> You didn't mention what platform you're using,
but it appears to be
>> Windows - by you mentioning the Windows control
panel.
>>
>> /WEB-INF/server-config.wsdd was created, but you
should check it for
>> settings appropriate for your installation. If
it was there to begin
>> with you might check the path your shortcut
executes Tomcat in.
>>
>> As for the .jar files not being found, you might
want to try setting the
>> path that Tomcat starts in in the shortcut link.
There's a place to
>> indicate what directory to run the program from.
>>
>> Richard Schilling
>> Cognition Group, Inc.
>> Seattle, WA
>>
>>
>>
>>
>>
>> Dr. Exner wrote:
>> > Hi,
>> >
>> > for a course including a short introduction and
demo on web services I
>> > have to decide, whether to base it on
java/tomcat/axis or on C#/.NET.
>> > Because I'm using xerces-j already in this
course (and for some other
>> > reasons), I preffered the java solution.
However, I hang with the test
>> > installation and I got no answer to my question
from this list. Is
>> > there
>> > another chance for support with tomcat/axis or
is C#/.NET the solution
>> > to my aim?
>> >
>> > The question was:
>> > --------------------------------
>> > with both, the preconfigured version from
>> > jakarta-tomcat-5.5.9-preconfigured.zip and the
installation from
>> > apache-tomcat-5.5.15.exe I get the following
startup messages:
>> >
>> > - "Unable to find config file. Creating new
servlet engine config
>> > file:
>> > /WEB-INF/server-config.wsdd"
>> > - "Unable to find required classes
(javax.activation.DataHandler and
>> > javax.mail.internet.MimeMultipart). ..."
>> >
>> > However, the activation.jar (from jaf-1.0.2) is
included in the
>> > CLASSPATH (via Windows Control Panel) correctly
and a test
>> > application successfully uses the
javax.activation.DataHandler class
>> > from this archive.
>> >
>> > I wouldn't care for this but the main reason
for using tomcat (at the
>> > moment) is the axis-j toolset. While validating
the axis installation
>> > with
>> > the "happy axis" page I get the same error:
>> > "Error: could not find class
javax.activation.DataHandler from file
>> > activation.jar
>> > Axis will not work."
>> > ---------------------------------
>> > For my understanding axis inherits the runtime
environment from the
>> > tomcat server.
>> > Of course I experienced with the settings in
the autoexec.bat file from
>> > the tomcat installation.
>> >
>> >
>> > Kind Regards
>> > D. Exner
>> >
>> >
>> >
---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
[EMAIL PROTECTED]
>> > For additional commands, e-mail:
[EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
---------------------------------------------------------------------
>> To unsubscribe, e-mail:
[EMAIL PROTECTED]
>> For additional commands, e-mail:
[EMAIL PROTECTED]
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]