You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Leandro de Oliveira e Ferreira <le...@persogo.com.br> on 2001/08/22 15:08:49 UTC

Re: Sending email from servlet?

Download javamail from www.javasoft.com
There you'll find the classes and lots of examples , including this one.

[]s
Leandro


At 16:05 22/08/01 +0200, you wrote:
>can someone please explain to me how to send email from a servlet.
>
>Regards,
>
>Yuval
>Domain The Net Technologies Ltd.
>6 Weitzman Blvd.
>Ramat-Hasharon
>Israel 47211
>Tel: 972-3-5474443
>Fax: 972-3-5474446
>www.DomainTheNet.com
>
>"This email message and any attachments hereto are intended only for use by
>the addressee(s) named above, and may contain legally privileged and/or
>confidential information. If you are not the intended addressee, you are
>hereby kindly notified that any dissemination, distribution or copying of
>this email and any attachments hereto is strictly prohibited. If you have
>received this email in error, kindly delete it from your computer system,
>and notify us at the telephone number or email address appearing above.
>Thank you"


Re: Overriding jar files in /tomcat/lib

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 22 Aug 2001, Stuart Clement wrote:

> Hi all,
>
> I'm running Tomcat 3.2.1 on Suse Linux 7.0 with JDK 1.3. I have an
> application that runs with xalan-j_2_0_1 and Xerces-J-1.4.0 which
> support namespaces, and the only way I can get tomcat to pick them up
> seems to be by removing jaxp.jar and parser.jar and putting the new
> xalan and xerces jar files (as well as the xalanj1compat.jar) in the
> /tomcat/lib/.. directory in their place.
>
> I have tried putting them in my applications /lib directory as per the
> spec, but tomcat only seems to pick up the other jars (jdbc drivers
> etc...) and I always get an exception from tomcat saying that
> namespaces are not supported etc...
>
> I have also tried adding them to my custom worker.properties file classpath
> _before_ the standard includes, but that has not brought success either.
>
> Am I missing something simple here, or is there an elegant way to do this?
>
> cheers
>
> Stu
>
>

Tomcat 3.2.x requires an XML parser to do its own processing (such as
reading web.xml files), placed in $TOMCAT_HOME/lib.  Because of the way it
is architected, this parser is also available to all web apps -- but it
*cannot* be overridden by a parser in /WEB-INF/lib of a web app.

Tomcat 4.0 lets you deal with this, because it separates the logic Tomcat
uses to parse XML documents into a separate class loader.  Apps can use
whatever class loader they want.

Craig



Overriding jar files in /tomcat/lib

Posted by Stuart Clement <st...@harvestroad.com.au>.
Hi all,

I'm running Tomcat 3.2.1 on Suse Linux 7.0 with JDK 1.3. I have an application
that runs with xalan-j_2_0_1 and Xerces-J-1.4.0 which support namespaces, and
the only way I can get tomcat to pick them up seems to be by removing jaxp.jar
and parser.jar and putting the new xalan and xerces jar files (as well as the
xalanj1compat.jar) in the /tomcat/lib/.. directory in their place.

I have tried putting them in my applications /lib directory as per the spec, but
tomcat only seems to pick up the other jars (jdbc drivers etc...) and I always
get an exception from tomcat saying that namespaces are not supported etc...

I have also tried adding them to my custom worker.properties file classpath
_before_ the standard includes, but that has not brought success either.

Am I missing something simple here, or is there an elegant way to do this?

cheers

Stu


Re: Sending email from servlet?

Posted by Jonathan Eric Miller <to...@shark.uchicago.edu>.
Yeah, that's what I'm doing and it seems to work well.

Jon

----- Original Message -----
From: "Leandro de Oliveira e Ferreira" <le...@persogo.com.br>
To: <to...@jakarta.apache.org>
Sent: Wednesday, August 22, 2001 8:08 AM
Subject: Re: Sending email from servlet?


> Download javamail from www.javasoft.com
> There you'll find the classes and lots of examples , including this one.
>
> []s
> Leandro
>
>
> At 16:05 22/08/01 +0200, you wrote:
> >can someone please explain to me how to send email from a servlet.
> >
> >Regards,
> >
> >Yuval
> >Domain The Net Technologies Ltd.
> >6 Weitzman Blvd.
> >Ramat-Hasharon
> >Israel 47211
> >Tel: 972-3-5474443
> >Fax: 972-3-5474446
> >www.DomainTheNet.com
> >
> >"This email message and any attachments hereto are intended only for use
by
> >the addressee(s) named above, and may contain legally privileged and/or
> >confidential information. If you are not the intended addressee, you are
> >hereby kindly notified that any dissemination, distribution or copying of
> >this email and any attachments hereto is strictly prohibited. If you have
> >received this email in error, kindly delete it from your computer system,
> >and notify us at the telephone number or email address appearing above.
> >Thank you"
>
>


Re: mod_webapp and make !!!

Posted by Pier Fumagalli <pi...@betaversion.org>.
"Bekkali Hatim - Soamaï" <hb...@soamai.com> wrote:

> Le Vendredi 24 Août 2001 13:40, vous avez écrit :
>> Quoting hatim <ha...@free.fr>:
> 
>> 
>> You downloaded the wrong version of the binary... There's one for GLIBC
>> 2.2 and one for GLIBC 2.1
>> 
> 
> Where can i find the version for Glibc 2.1 ? i didn't find it ine the
> download section .

Here:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/bin/

>> Your system has a broken APXS support.
> 
> how can i correct the problem ?
> i read many messages in the archive list which talk about this problem , i
> contacted many people who had this problem , and all didn t found solution
> and leaved the instal of the webapp module

What version of Apache are you using? Did you compile it on your own or you
used a pre-packaged RPM??? I believe there's something wrong with a major
Apache distribution out there...

    Pier


Re: mod_webapp and make !!!

Posted by Bekkali Hatim - Soamaï <hb...@soamai.com>.
Le Vendredi 24 Août 2001 13:40, vous avez écrit :
> Quoting hatim <ha...@free.fr>:

>
> You downloaded the wrong version of the binary... There's one for GLIBC
> 2.2 and one for GLIBC 2.1
>

Where can i find the version for Glibc 2.1 ? i didn't find it ine the 
download section .


> > make[1]: *** [mod_webapp.so] Error 127
> > make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-
>
> 1.3'
>
> > make: *** [local-all] Error 2
> >
> > any idea ? any help ?
>
> Your system has a broken APXS support.

how can i correct the problem ?
i read many messages in the archive list which talk about this problem , i 
contacted many people who had this problem , and all didn t found solution 
and leaved the instal of the webapp module 

thank you for your help

Hatim


Re: mod_webapp and make !!!

Posted by Pier Fumagalli <pi...@betaversion.org>.
Quoting hatim <ha...@free.fr>:

> Hi
> 
> i have redhat 6.2 with kernel 2.2.18 ( Va linux) , apache 1.3.20 
> i tried to use the mod-webapp.so comming from 
> webapp-module-1.0-tc40b7-linux.tar.gz
> but apache didnt start because of error 
> Cannot load /usr/local/apache/libexec/mod_webapp.so into server: 
> /lib/libc.so.6: version `GLIBC_2.2' not found (required by 
> /usr/local/apache/libexec/mod_webapp.so , my glibc is 
> glibc-2.1.3-22.1
> glibc-devel-2.1.3-22.1
> and for resean dependances i can't upgrade to glibc-2.2....

You downloaded the wrong version of the binary... There's one for GLIBC 
2.2 and one for GLIBC 2.1


> then i tried ( today) to install the source of webapp to compile it ,
> from 
> CVS , i read the README.TXT , and i follow exactelly the explication :
> i can configure , but when  i type make i have this error 
> Compiling sources in /app/webapp-module-1.0-tc40b7/apache-1.3...
> make[1]: Entering directory `/app/webapp-module-1.0-tc40b7/apache-
1.3'
> Linking Apache 1.3 WebApp Module
> /app/webapp-module-1.0-tc40b7/apr/libtool: mod_webapp.lo: 
command not
> found
> make[1]: *** [mod_webapp.so] Error 127
> make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-
1.3'
> make: *** [local-all] Error 2
> 
> any idea ? any help ?

Your system has a broken APXS support.

    Pier

Re: mod_webapp and make !!!

Posted by Pier Fumagalli <pi...@betaversion.org>.
"jean-frederic clere" <jf...@fujitsu-siemens.com> wrote:
> 
> Would it make sense to test this in configure and use ld/cc when apxs is
> broken?

Yes... Definitely so...

    Pier


Re: mod_webapp and make !!!

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Pier Fumagalli wrote:
> 
> "hatim" <ha...@free.fr> wrote:
> 
> > Hi
> >
> > i have redhat 6.2 with kernel 2.2.18 ( Va linux) , apache 1.3.20
> > i tried to use the mod-webapp.so comming from
> > webapp-module-1.0-tc40b7-linux.tar.gz
> > but apache didnt start because of error
> > Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
> > /lib/libc.so.6: version `GLIBC_2.2' not found (required by
> > /usr/local/apache/libexec/mod_webapp.so , my glibc is
> > glibc-2.1.3-22.1
> > glibc-devel-2.1.3-22.1
> > and for resean dependances i can't upgrade to glibc-2.2....
> 
> There is a GLIBC-2.1 version available for download too...
> 
> > then i tried ( today) to install the source of webapp to compile it , from
> > CVS , i read the README.TXT , and i follow exactelly the explication :
> > i can configure , but when  i type make i have this error
> > Compiling sources in /app/webapp-module-1.0-tc40b7/apache-1.3...
> > make[1]: Entering directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
> > Linking Apache 1.3 WebApp Module
> > /app/webapp-module-1.0-tc40b7/apr/libtool: mod_webapp.lo: command not found
> > make[1]: *** [mod_webapp.so] Error 127
> > make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
> > make: *** [local-all] Error 2
> >
> > any idea ? any help ?
> 
> Ah, yes.. Your APXS is screwed. For some reason (that I don't understand)
> some systems don't come with a correctly configured APXS.
> If you try to do:
>    apxs -q CC
> and
>    apxs -q LD_SHLIB
> you won't see any output, while on my system they come out correctly as "cc"
> and "ld"...

Would it make sense to test this in configure and use ld/cc when apxs is broken?

> 
>     Pier

Re: mod_webapp and make !!!

Posted by Pier Fumagalli <pi...@betaversion.org>.
"hatim" <ha...@free.fr> wrote:

> Hi
> 
> i have redhat 6.2 with kernel 2.2.18 ( Va linux) , apache 1.3.20
> i tried to use the mod-webapp.so comming from
> webapp-module-1.0-tc40b7-linux.tar.gz
> but apache didnt start because of error
> Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
> /lib/libc.so.6: version `GLIBC_2.2' not found (required by
> /usr/local/apache/libexec/mod_webapp.so , my glibc is
> glibc-2.1.3-22.1
> glibc-devel-2.1.3-22.1
> and for resean dependances i can't upgrade to glibc-2.2....

There is a GLIBC-2.1 version available for download too...

> then i tried ( today) to install the source of webapp to compile it , from
> CVS , i read the README.TXT , and i follow exactelly the explication :
> i can configure , but when  i type make i have this error
> Compiling sources in /app/webapp-module-1.0-tc40b7/apache-1.3...
> make[1]: Entering directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
> Linking Apache 1.3 WebApp Module
> /app/webapp-module-1.0-tc40b7/apr/libtool: mod_webapp.lo: command not found
> make[1]: *** [mod_webapp.so] Error 127
> make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
> make: *** [local-all] Error 2
> 
> any idea ? any help ?

Ah, yes.. Your APXS is screwed. For some reason (that I don't understand)
some systems don't come with a correctly configured APXS.
If you try to do:
   apxs -q CC
and 
   apxs -q LD_SHLIB
you won't see any output, while on my system they come out correctly as "cc"
and "ld"...

    Pier


mod_webapp and make !!!

Posted by hatim <ha...@free.fr>.
Hi

i have redhat 6.2 with kernel 2.2.18 ( Va linux) , apache 1.3.20 
i tried to use the mod-webapp.so comming from 
webapp-module-1.0-tc40b7-linux.tar.gz
but apache didnt start because of error 
Cannot load /usr/local/apache/libexec/mod_webapp.so into server: 
/lib/libc.so.6: version `GLIBC_2.2' not found (required by 
/usr/local/apache/libexec/mod_webapp.so , my glibc is 
glibc-2.1.3-22.1
glibc-devel-2.1.3-22.1
and for resean dependances i can't upgrade to glibc-2.2....


then i tried ( today) to install the source of webapp to compile it , from 
CVS , i read the README.TXT , and i follow exactelly the explication :
i can configure , but when  i type make i have this error 
Compiling sources in /app/webapp-module-1.0-tc40b7/apache-1.3...
make[1]: Entering directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
Linking Apache 1.3 WebApp Module
/app/webapp-module-1.0-tc40b7/apr/libtool: mod_webapp.lo: command not found
make[1]: *** [mod_webapp.so] Error 127
make[1]: Leaving directory `/app/webapp-module-1.0-tc40b7/apache-1.3'
make: *** [local-all] Error 2

any idea ? any help ?

thanks you a lot

Hatim .


Re: From tomcat 3.2 to tomcat 4

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 22 Aug 2001, hatim wrote:

> Hi All
> i was using Tomcat 3.2 with apache , to configure tomcat i used  in httpd.conf
> include /app/jakarta-tomcat/conf/mod_jk.conf-auto
> I tried to do the same thing with tomcat 4 , but :) it doesn t work ,
> so how can i do that ?
> tomcat 4 is it very different from the 3.2 ?
>

Although it is possible to use mod_jk with Tomcat 4, you might also
investigate using mod_webapp instead.  With that, you can totally dispense
with auto-generated files, because deploying individual web applications
comes down to adding a single line to httpd.conf.  All the rest of the
configuration information is read from the web.xml file, and automatically
used to configure Apache.

Precompiled versions of mod_webapp are available for several platforms in
the same directory where you downloaded Tomcat 4.0-beta-7 from:

  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b7/

Sources are available as well, if you need to build it for your platform.

> thank you !
>
> Hatim
>

Craig



From tomcat 3.2 to tomcat 4

Posted by hatim <ha...@free.fr>.
Hi All
i was using Tomcat 3.2 with apache , to configure tomcat i used  in httpd.conf
include /app/jakarta-tomcat/conf/mod_jk.conf-auto 
I tried to do the same thing with tomcat 4 , but :) it doesn t work , 
so how can i do that ? 
tomcat 4 is it very different from the 3.2 ?

thank you !

Hatim