You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Dr. Exner" <ex...@fh-flensburg.de> on 2006/02/20 10:38:00 UTC

how to get help if no answer from this list?

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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to get help if no answer from this list?

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Dr. Exner wrote:
> 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 canonical place to ask for help with problems using axis is the axis-user 
mailing list. A browseable archive of this list is here:
http://mail-archives.apache.org/mod_mbox/ws-axis-user/
But since your problem seems basically a problem with Tomcat's classloading, I 
don't think this list is a too bad place either.

Anyway, there is no guarantee that your questions will be answered, since 
no-one writing here gets paid for it (at least AFAIK). But I don't think 
you'll get guaranteed support if you switch to C#/.NET - that is, unless you 
pay for it.
So, everything boils down for you to making your question as interesting as 
possible and, above all, as easy to answer as possible. I. e. give a 
*detailed* description of what you did (so that others have an easy time 
retracing your steps), what you expected from these actions and what was the 
actual outcome (error messages, stacktraces etc.).
IMO this is still an useful document to read:
http://www.catb.org/~esr/faqs/smart-questions.html

> 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.

Don't use CLASSPATH. It won't help you at all WRT Tomcat. This explains how 
classes are loaded by Tomcat:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

In essence, what you should do is copy activation.jar, mail.jar and 
xmlsec-x.y.z.jar to
common/lib
or
shared/lib
in your Tomcat installation directory to make the happyaxis.jsp really happy.

> 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.

See above.

Regards
  mks


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to get help if no answer from this list?

Posted by "Dr. Exner" <ex...@fh-flensburg.de>.
Thanks for your answer,

the system is Windows XP with a tomcat stand alone (Catalina?) installation. 
But there is no server-config.wsdd file at the whole system partition. So 
where to check and to modify the CLASSPATH setting?

D. Exner



----- Original Message ----- 
From: "Richard Schilling" <sc...@cognitiongroup.biz>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Monday, February 20, 2006 10:49 AM
Subject: Re: how to get help if no answer from this list?


> 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: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to get help if no answer from this list?

Posted by Richard Schilling <sc...@cognitiongroup.biz>.
It almost sounds like you need someone to sit at the computer you're 
installing Tomcat on and check things out.

Since that's not possible, you might try "starting from scratch":
1. write down the version of the JDK/JRE are you running.
2. make sure CLASSPATH is *not* set in the environment.
3. unpack Tomcat in a fresh directory
4. reboot
5. make sure that no applications are running on the server.
5. run Tomcat and note errors.

After you do that (if you haven't already), post your Tomcat error log, 
runtime log, and settings files so we can take a look at it.

Richard Schilling
Cognition Group, Inc.
Seattle, WA


Dr. Exner 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" <ha...@bluetone.cz>
> To: "Tomcat Users List" <us...@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 <sc...@cognitiongroup.biz> 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: users-unsubscribe@tomcat.apache.org
>>> > For additional commands, e-mail: users-help@tomcat.apache.org
>>> >
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to get help if no answer from this list? - thanks for the right answer

Posted by Richard Schilling <sc...@cognitiongroup.biz>.
Look for the directory WEB-INF.  Windows search of the file system might 
not pick up server-config.wsdd because the file name is longer than a 
traditional DOS file name.  Windows stores long file names in an 
abbreviated format.

But the file should be in the Tomcat directory, so restrict your search 
there.

Richard Schilling
Cognition Group, Inc.
Seattle, WA



Dr. Exner wrote:
> Thanks,
> 
> you were right that I don't really understand the tomcat classloading 
> yet. In the meantime I had noticed allready that the error messages 
> appeared in the tomcat log file as soon as I copied the axis directory 
> into the tomcat webapps directory. (The server being up) So I followed 
> your hints and it works!
> 
> The question left to me is: what about the /WEB-INF/server-config.wsdd 
> file which in the log file is reported to having been created whenever I 
> call the "List" link at the "happy axis" page? There is no such file in 
> the whole file system.
> 
> kind regards
>                     D. Exner
> 
> 
> 
> 
> ----- Original Message ----- From: "Mark Eggers" <it...@yahoo.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>; "Dr. Exner" 
> <ex...@fh-flensburg.de>
> Sent: Monday, February 20, 2006 7:07 PM
> Subject: *SPAM*Verdacht* Re: how to get help if no answer from this list?
> 
> 
>> 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" <ex...@fh-flensburg.de> 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" <ha...@bluetone.cz>
>>> To: "Tomcat Users List" <us...@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
>>> <sc...@cognitiongroup.biz> 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:
>>> users-unsubscribe@tomcat.apache.org
>>> >> > For additional commands, e-mail:
>>> users-help@tomcat.apache.org
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>>
>> ---------------------------------------------------------------------
>>
>>> >> To unsubscribe, e-mail:
>>> users-unsubscribe@tomcat.apache.org
>>> >> For additional commands, e-mail:
>>> users-help@tomcat.apache.org
>>> >>
>>> >>
>>> >
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>>
>>> To unsubscribe, e-mail:
>>> users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail:
>>> users-help@tomcat.apache.org
>>>
>>>
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re:how to get help if no answer from this list? - thanks for the right answer

Posted by "Dr. Exner" <ex...@fh-flensburg.de>.
Thanks,

you were right that I don't really understand the tomcat classloading yet. 
In the meantime I had noticed allready that the error messages appeared in 
the tomcat log file as soon as I copied the axis directory into the tomcat 
webapps directory. (The server being up) So I followed your hints and it 
works!

The question left to me is: what about the /WEB-INF/server-config.wsdd file 
which in the log file is reported to having been created whenever I call the 
"List" link at the "happy axis" page? There is no such file in the whole 
file system.

kind regards
                     D. Exner




----- Original Message ----- 
From: "Mark Eggers" <it...@yahoo.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>; "Dr. Exner" 
<ex...@fh-flensburg.de>
Sent: Monday, February 20, 2006 7:07 PM
Subject: *SPAM*Verdacht* Re: how to get help if no answer from this list?


> 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" <ex...@fh-flensburg.de> 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" <ha...@bluetone.cz>
>> To: "Tomcat Users List" <us...@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
>> <sc...@cognitiongroup.biz> 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:
>> users-unsubscribe@tomcat.apache.org
>> >> > For additional commands, e-mail:
>> users-help@tomcat.apache.org
>> >> >
>> >> >
>> >>
>> >>
>> >>
>>
> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail:
>> users-unsubscribe@tomcat.apache.org
>> >> For additional commands, e-mail:
>> users-help@tomcat.apache.org
>> >>
>> >>
>> >
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail:
>> users-help@tomcat.apache.org
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to get help if no answer from this list?

Posted by Mark Eggers <it...@yahoo.com>.
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" <ex...@fh-flensburg.de> 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" <ha...@bluetone.cz>
> To: "Tomcat Users List" <us...@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
> <sc...@cognitiongroup.biz> 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:
> users-unsubscribe@tomcat.apache.org
> >> > For additional commands, e-mail:
> users-help@tomcat.apache.org
> >> >
> >> >
> >>
> >>
> >>
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail:
> users-help@tomcat.apache.org
> >>
> >>
> > 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to get help if no answer from this list?

Posted by "Dr. Exner" <ex...@fh-flensburg.de>.
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" <ha...@bluetone.cz>
To: "Tomcat Users List" <us...@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 <sc...@cognitiongroup.biz> 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: users-unsubscribe@tomcat.apache.org
>> > For additional commands, e-mail: users-help@tomcat.apache.org
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to get help if no answer from this list?

Posted by Hadraba Petr <ha...@bluetone.cz>.
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 <sc...@cognitiongroup.biz> 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: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: how to get help if no answer from this list?

Posted by Richard Schilling <sc...@cognitiongroup.biz>.
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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org