RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Martin van den Bemt

I was just saying 2 mails ago : Who cares about customers ?? Tomcat-user
list is not a marketing list.. He just wants to know how he can get that
thing running on cd. he probably had a good reason to ask for this
solution.. 
My reamrks were made so it got back ON topic again..

Sorry about the grumpy attitude, just thought he was asking on how to do
that, not how to market it and do customer surveys.


Mvgr,
Martin

On Mon, 2002-07-15 at 15:41, [EMAIL PROTECTED] wrote:
> A little bit off-topic, but if it is not a custom-made software and if it
> targets a lot of not specific users, it cannot only rely on a particular
> configuration (imo).
> 
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 15:30
> To: Tomcat Users List
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> Agreed, but only with custom made software.. At the most you can ask
> your current customers to ask if they can agree to a certain solution,
> but hey : he is asking what the solution might be!
> Before he gets that answered customer contact is a big waste of time 
> 
> Mvgr,
> Martin
> 
> On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote:
> > Hello,
> > 
> > About the customers : they define the requirements.
> > 
> > Who does not meet their requirements, lose them (especially the big ones)...
> > 
> > Greetings,
> > 
> > André POWROZNIK
> > 
> > -Original Message-
> > From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> > Sent: 15 July 2002 14:23
> > To: Tomcat Users List
> > Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> > 
> > 
> > On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > > I am afraid it is not as as much easy as you think...
> > > 
> > > 1) Will your customer agree to run these applications on their computer?
> > > 2) What if they are not using a PC (Mac?) or if they are not using Windows 
>(Linux?)?
> > Who cares.. If they order it, they have to..
> > 
> > > 3) To run JSP you need a JDK, not a JRE.
> > 
> > Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
> > them..
> > 
> > > 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
> > >In order to run they need :
> > >- DLLs in Windows system directories;
> > >- keys in Windows registry;
> > >- write access to some of their files...
> > 
> > Use hsqldb instead which has a memory database..
> > 
> > > 5) What about AUTOEXEC.BAT?
> > >It will do nothing if you put it on a CD : it needs to be in C:\, and there 
>is already one there...
> > ??
> > > 6) What if your customers have problems running your CD?
> > >Will you create a hotline ;-) ?
> > 
> > Not your problem I guess ;).. He was asking HOW not a project plan of
> > things to resolve before hand..
> > 
> > 
> > TIP: Search the archives (maybe a year ago or something) there was a big
> > thread about it, which actually worked towards a solution.
> > 
> > 
> > Mvgr,
> > Martin
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> >  DISCLAIMER  
> > "This e-mail and any attachments thereto may contain information 
> > which is confidential and/or protected by intellectual property 
> > rights and are intended for the sole use of the recipient(s) named above. 
> > Any use of the information contained herein (including, but not limited to, 
> > total or partial reproduction, communication or distribution in any form) 
> > by persons other than the designated recipient(s) is prohibited. 
> > If you have received this e-mail in error, please notify the sender either 
> > by telephone or by e-mail and delete the material from any computer. 
> > Thank you for your cooperation."
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
>  DISCLAIMER  
> "This e-mail and any attachments thereto may contain information 
> which is confidential and/or protected by intellectual property 
> rights and are intended for the sole use of the recipient(s) named above. 
> Any use of the information contained herein (including, but not limited to, 
> total or partial reproduction, communication or distribution in any form) 
> by persons other than the designated recipient(s) is prohibited. 
> If you have received this e-mail in error, please notify the sender either 
> by telephone or by e-mail and delete the material from any computer. 
> Thank you for your cooperation."
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Martin van den Bemt

Agreed, but only with custom made software.. At the most you can ask
your current customers to ask if they can agree to a certain solution,
but hey : he is asking what the solution might be!
Before he gets that answered customer contact is a big waste of time 

Mvgr,
Martin

On Mon, 2002-07-15 at 15:19, [EMAIL PROTECTED] wrote:
> Hello,
> 
> About the customers : they define the requirements.
> 
> Who does not meet their requirements, lose them (especially the big ones)...
> 
> Greetings,
> 
> André POWROZNIK
> 
> -----Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 15 July 2002 14:23
> To: Tomcat Users List
> Subject: RE: Tomcat & MySQL Run On Read-Only Media ..
> 
> 
> On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> > I am afraid it is not as as much easy as you think...
> > 
> > 1) Will your customer agree to run these applications on their computer?
> > 2) What if they are not using a PC (Mac?) or if they are not using Windows 
>(Linux?)?
> Who cares.. If they order it, they have to..
> 
> > 3) To run JSP you need a JDK, not a JRE.
> 
> Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
> them..
> 
> > 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
> >In order to run they need :
> >- DLLs in Windows system directories;
> >- keys in Windows registry;
> >- write access to some of their files...
> 
> Use hsqldb instead which has a memory database..
> 
> > 5) What about AUTOEXEC.BAT?
> >It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
>already one there...
> ??
> > 6) What if your customers have problems running your CD?
> >Will you create a hotline ;-) ?
> 
> Not your problem I guess ;).. He was asking HOW not a project plan of
> things to resolve before hand..
> 
> 
> TIP: Search the archives (maybe a year ago or something) there was a big
> thread about it, which actually worked towards a solution.
> 
> 
> Mvgr,
> Martin
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
>  DISCLAIMER  
> "This e-mail and any attachments thereto may contain information 
> which is confidential and/or protected by intellectual property 
> rights and are intended for the sole use of the recipient(s) named above. 
> Any use of the information contained herein (including, but not limited to, 
> total or partial reproduction, communication or distribution in any form) 
> by persons other than the designated recipient(s) is prohibited. 
> If you have received this e-mail in error, please notify the sender either 
> by telephone or by e-mail and delete the material from any computer. 
> Thank you for your cooperation."
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Tomcat 4.1 with Sun ONE IDE

2002-07-15 Thread Martin van den Bemt

Better ask on the netbeans.org site, since they wrote the module.. There
can be problems though with the included jars (xml parser etc..), so
they probably now how to do that..

Mvgr,
Martin

On Mon, 2002-07-15 at 14:58, Turner, John wrote:
> 
> Has anyone integrated tomcat 4.1.x with Sun's SunONE IDE (Forte for Java)?
> >From the work I've done this morning, it looks like SunONE only supports
> tomcat 4.0.x.  Before I switch to another IDE, I just wanted to see if that
> was true, or if I was missing something.
> 
> Thanks in advance for any help.
> 
> - John
> 
> 
> John Turner
> [EMAIL PROTECTED] | 248-488-3466
> Advertising Audit Service
> http://www.aas.com
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Martin van den Bemt

On Mon, 2002-07-15 at 13:59, [EMAIL PROTECTED] wrote:
> I am afraid it is not as as much easy as you think...
> 
> 1) Will your customer agree to run these applications on their computer?
> 2) What if they are not using a PC (Mac?) or if they are not using Windows (Linux?)?
Who cares.. If they order it, they have to..

> 3) To run JSP you need a JDK, not a JRE.

Wrong here.. Just if you want your jsp's to be dynamic.. Just precompile
them..

> 4) If you copy JDK, Tomcat & MySQL files on the CD, will it work?
>In order to run they need :
>- DLLs in Windows system directories;
>- keys in Windows registry;
>- write access to some of their files...

Use hsqldb instead which has a memory database..

> 5) What about AUTOEXEC.BAT?
>It will do nothing if you put it on a CD : it needs to be in C:\, and there is 
>already one there...
??
> 6) What if your customers have problems running your CD?
>Will you create a hotline ;-) ?

Not your problem I guess ;).. He was asking HOW not a project plan of
things to resolve before hand..


TIP: Search the archives (maybe a year ago or something) there was a big
thread about it, which actually worked towards a solution.


Mvgr,
Martin


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Where can I find SCO binaries for Tomcat

2002-07-03 Thread Martin van den Bemt

If you follow the instructions (and use therefor ant to build the
mod_jk) from the jk directory, you should have adjusted the
build.properties file.
I couldn't get it running either, since the jni_md.h include file could
not be found. While investigating the jk/native/build.xml file, I found
that it checks for (in my case) the linux property.
Just set linux=true in your build.properties and it will build fine ;)
If it doesn't build for you anyway (using linux, not SCO), follow the
instructions is the docs directory, which provide pretty detailed on how
to build in manually.
The builds will end up in jk/build.
If it still doesn't work for you, you can try sending the error on which
it failed (i guess it is the include..)..

Mvgr,
Martin

On Wed, 2002-07-03 at 13:14, Yoav wrote:
> 
> - Original Message -----
> From: "Martin van den Bemt" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 03, 2002 11:54 AM
> Subject: RE: Where can I find SCO binaries for Tomcat
> 
> 
> > The binary releases are equal.. Omly for windows there is a nice
> > installer.
> > The apache -> tomcat connectors however are platform specific (best to
> > build it yourself..)
> 
> 
> Have you actually succeeded in compiling those ?
> I'm stuck with Apache 2.0.39 - found the binary for mod_jk2.so, but it's
> incampatible with the 2.0.39 version of apache...
> 
> Any hints on compiling the jakarta-tomcat-connectors-4.0.4-src on unix ??
> 
> Thank you..
> 
> Yoav.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Where can I find SCO binaries for Tomcat

2002-07-03 Thread Martin van den Bemt

The binary releases are equal.. Omly for windows there is a nice
installer.
The apache -> tomcat connectors however are platform specific (best to
build it yourself..)

Mvgr,
Martin

On Wed, 2002-07-03 at 12:10, will wrote:
> Hi,
> 
> I thought Tomcat was java. The binary distribution I am after is
> like the ones which are available from the Jakarta/Tomcat web site.
> They have different binary distributions for Linux and Win. Are
> these only different in the scripts needed to start/stop tomcat
> etc? I noticed that my Win version had a tomcat.exe binary is this
> because it has been compiled with apache or something?
> 
> Sorry about all the questions, I am just trying to get a handle on
> Tomcat.
> 
> Regards,
> 
> Wm. 
> 
> > -Original Message-
> > From: Adrian [mailto:[EMAIL PROTECTED]]
> > Sent: 03 July 2002 01:50
> > To: Tomcat Users List
> > Subject: Re: Where can I find SCO binaries for Tomcat
> > 
> > 
> > Are you talking about Tomcat itself ? Tomcat is a java "binary" cross
> > platform and all that.
> > I run the same version of Tomcat on Win98, Gentoo Linux, and Windows.
> > As for connectors, you can always role your own. If you have 
> > trouble, let me
> > know I
> > spent a couple years working with OpenServer, and can probably help.
> > 
> > Adrian
> > 
> > 
> > 
> > - Original Message -
> > From: "will" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 02, 2002 7:22 AM
> > Subject: Where can I find SCO binaries for Tomcat
> > 
> > 
> > > Hi,
> > >
> > > I have been using tomcat for a little while now, on Linux
> > > and Win2K and love it to bits. I have a need to run it on
> > > a SCO Openserver box, and I have been trying to locate
> > > some binaries for it.
> > >
> > > I checked the archives and found some references to a
> > > 3.0.3 binary, but was unable to locate it. Could any one
> > > point me in the right direction? I would prefer a 4.0.3
> > > binary but will take what is available.
> > >
> > > I was thinking of building it, but taking a look at the
> > > build help file fills me with dread.
> > >
> > > Regards,
> > >
> > > Wm.
> > >
> > > ---
> > > Outgoing mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/2002
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > > For additional commands, e-mail:
> > 
> > >
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
> >  
> > 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
>  
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: please fix my stupid classpath

2002-05-29 Thread Martin van den Bemt




Checkout http://jakarta.apache.org/ant/manual/CoreTasks/property.html
especially the parameter environment needs looking at ;)

Mvgr,
Martin

On Thu, 2002-05-30 at 00:45, Whitcomb, Roger wrote:
> Rich -
>   I have NO classpath defined and am doing almost minute-by-minute builds using 
>"Ant".  Here is my build.xml file as an example.  Notice the "tomcat-home" definition 
>at the top which probably would change and then the "servlet-path" element which 
>points to all the Tomcat servlet .jar files.
> 
> Roger Whitcomb
> Computer Associates
> Senior Software Engineer
> Development
> Phone: +1 408 965 8653
> FAX: +1 408 965 8805
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> 
> 
> -Original Message-
> From: Richard Diaz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 29, 2002 3:14 PM
> To: Tomcat Users List
> Subject: Re: please fix my stupid classpath
> 
> 
> I am using the command line (javac) to compile my java
> files. And now I am trying to .jar them...
> 
> Rich
> 
> --- Martin van den Bemt <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > Tomcat handles your classpath, you don't have to set
> > that.. I even think
> > you get some classloader issues with that.. 
> > If you need it for compiling, you should have a look
> > at ant, who can
> > arrange these things a lot easier..
> > 
> > Mvgr,
> > Martin
> > 
> > On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
> > > I set this up like a year ago and now that I look
> > at
> > > it, it seems wacked. Looks like I had to add all
> > the
> > > servlet jar files?
> > > 
> > > Suggestions most welcome.
> > > 
> > > I'm using Apache, Tomcat 4, Sun sdk 131
> > > 
> > > Rich
> > > 
> > > SET
> > >
> >
> 
>CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
> > > Files\Apache Tomcat
> > > 4.0\webapps\twc\Web-inf\lib;C:\Program
> > Files\Apache
> > > Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
> > > Tomcat 4.0\common\lib\servlet.jar;C:\Program
> > > Files\Apache Tomcat
> > > 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
> > > Tomcat 4.0\lib\naming-factory.jar;C:\Program
> > > Files\Apache Tomcat
> > > 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
> > > Tomcat 4.0\jasper\jasper-compiler.jar;
> > > 
> > > =
> > > 
> > > 
> > > __
> > > Do You Yahoo!?
> > > Yahoo! - Official partner of 2002 FIFA World Cup
> > > http://fifaworldcup.yahoo.com
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > 
> > > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> =
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 

> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: please fix my stupid classpath

2002-05-29 Thread Martin van den Bemt

Hi,

Tomcat handles your classpath, you don't have to set that.. I even think
you get some classloader issues with that.. 
If you need it for compiling, you should have a look at ant, who can
arrange these things a lot easier..

Mvgr,
Martin

On Thu, 2002-05-30 at 00:08, Richard Diaz wrote:
> I set this up like a year ago and now that I look at
> it, it seems wacked. Looks like I had to add all the
> servlet jar files?
> 
> Suggestions most welcome.
> 
> I'm using Apache, Tomcat 4, Sun sdk 131
> 
> Rich
> 
> SET
> 
>CLASSPATH=c:\sunsdk131;c:\sunsdk131\lib;c:\sunsdk131\src.jar;c:\sunsdk131\lib\tools.jar;C:\Program
> Files\Apache Tomcat
> 4.0\webapps\twc\Web-inf\lib;C:\Program Files\Apache
> Tomcat 4.0\lib\tools.jar;C:\Program Files\Apache
> Tomcat 4.0\common\lib\servlet.jar;C:\Program
> Files\Apache Tomcat
> 4.0\lib\jasper-runtime.jar;C:\Program Files\Apache
> Tomcat 4.0\lib\naming-factory.jar;C:\Program
> Files\Apache Tomcat
> 4.0\common\jasper\jaxp.jar;C:\Program Files\Apache
> Tomcat 4.0\jasper\jasper-compiler.jar;
> 
> =
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re[4]: Receipt of 16/05/102 17:27 message

2002-05-17 Thread Martin van den Bemt

If a mail server doesn't know anything about mailinglists, it will send
the receipt to the list indeed.. So the problem is yours to solve. 
Since those request for receipts for mails is pretty annoying, I will
try to figure out how to strip out the receipt requests from the mails
send to a mailing list. 

Mvgr,
Martin


On Fri, 2002-05-17 at 14:25, [EMAIL PROTECTED] wrote:
> 
> "Paul Balanoiu" <[EMAIL PROTECTED]>) wrote:
> 
>>You are right, no receipt requests should be sent to a list of >
>users. Still, you are (or your server is) sending the receipt to the one that requested it, but to the entire list (which
>>appears only in the "to" field of the message). This is not
>>right (and it's annoying for all the other users).
>>
>>Try to set your server or email client to send the receipt only >to
>the address that requested it (the address specified in the >"from"
>field). That should solve the problem.
> 
> 
> There is no client configuration for this on ccMail and I am not email
> admin at our company.  If the mail comes "from" the Tomcat mailing list
> with a return receipt requested then our server is correctly sending the
> receipt back "to" the list.
> 
> If the list is taking a posting from a user who sets a return receipt and
> passing that email (with associated return receipt in tact) onto all
> members of the list then either the list admin should stop this 'feature'
> or people shouldn't ask for receipts.
> 
> Andrew
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: building mod_jk on solaris

2002-05-10 Thread Martin van den Bemt

This is some info of how I built it on solaris sparc boxes. It was using
tomcat 33 though, and you have to change the directories accordingly.. Let
me remind you that some of the things can actually already been fixed or
working differently..


cd to
/usr/local/tomcat/native/mod_jk/apache1.3
If this file is not executable do chmod +x build-solaris.sh
vi build-solaris.sh
change the APACHE_HOME and JAVA_HOME lines to the correct directory
structure.

Since we need DEAPI to build mod_jk, we also have to change the line after
the line
echo Building mod_jk
$APXS 
Add -DEAPI as the first parameter. If you don't have a DEAPI apache install,
leave this one out.

If your ld is not in your path, do vi /usr/local/apache/bin/apxs and change
the ld
(the line reading my $CFG_LD_SHLIB = q(ld); to q(/usr/ccs/bin/ld);

and now run ./build-solaris.sh

It should be build ok ;)
(check to see if /usr/local/apache/libexec/mod_jk.so is present).




Mvgr,
Martin

> -Original Message-
> From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 16:02
> To: Tomcat Users List
> Subject: Re: building mod_jk on solaris
>
>
> apxs requires perl.  You must have perl installed prior to installation
> of apache httpd in order for the apache install to correctly configure
> apxs. Otherwise, I believe you are on the right track.
>
> Jeff
>
> - Original Message -
> From: "Peter Choe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 10, 2002 7:52 AM
> Subject: building mod_jk on solaris
>
>
> > i am trying to build mod_jk for tomcat4.0.  the only mod_jk i found is
> > actually in tomcat3.3 though.  so, i tried to compile it using the
> > build-solaris.sh script and i get the following error:
> >
> > bash-2.03# ./build-solaris.sh
> > Building mod_jk
> > cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include
> > -I../common -I/usr/java/include -I/usr/java/include/solaris
> -DSOLARIS  -c
> > ../common/jk_ajp12_worker.c
> > apxs:Break: Command failed with rc=16711680
> > Error with apxs
> >
> > does anyone know how i can fix this?
> >
> >
> > --
> > To unsubscribe, e-mail:

> For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Session Problem with Tomcat and Apache - URGENT - Please help!!!!

2002-05-10 Thread Martin van den Bemt

Do you actually create a session somewhere. Since you are only using
request.getSession(). This will get the session if it is there, or null if
it is not there. As safe bet is to use request.getSession(true); 

Mvgr,
Martin

> -Original Message-
> From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 10, 2002 14:29
> To: Tomcat Users List
> Subject: Session Problem with Tomcat and Apache - URGENT - Please
> help
>
>
> Hi All,
>
>  I am having a problem with the session objects, let me first
> explain how we have used the session object in our application
>
> we have an application which is initalizing an 'SESSION' object
> when the user log's into the system.
> This object is used to store three attributes,
> 1) we have used 'session.setAttribute()' and 'session.setValue()'
> methods for creating key pair value objects in the session.
> 2) We have also used the 'session.getAttribute()' and
> 'session.getValue()' for retriving the data from the session object.
> 3) We have not used the 'session.removeAttribute()' any where in
> our application.
> 4) But in all pages, to check the session object validity, we
> have used 'request.getSession()'.
>
> Does calling this creates a attribute set in a old session object
> to be incorrectly re-written?.
>
> The problem:
> We are getting this following problem randomly,
>
> The session object exists, but the attributes inside the session
> object unbinds and returns a null value!!.
>
>
> We are using 'Apache1.3.20+Tomcat3.2.2+JDK1.3.1+WINDOWS NT 4.0'
> for our application. we have also set our
> 'setMaxInactiveInterval(3)' when creating the session object
> for the first time.
>
> What is the cause of the attributes being removed from the
> session object, or in case is the session object itself is
> created as a new object during 'request.getSession()' calls and
> causing this problem.
>
> Have you people faced similar problems??.
>
> Please post your reply on this issue, this is a very urgent issue
> to be solved.
>
> Thanks in advance
>
> Regards
> H.Rajesh
> ([EMAIL PROTECTED])
> SSPL,India
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Forte user with Tomcat 3.2 installation problem under Linux

2002-03-08 Thread Martin van den Bemt

You have to untar it on your linux box, because of line conversions in text
files.

Mvgr,
Martin


> -Original Message-
> From: Burt Gildenhuys [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 14:31
> To: [EMAIL PROTECTED]
> Subject: Forte user with Tomcat 3.2 installation problem under Linux
>
>
> Dear Tomcat Community,
>
> I am using Tomcat 3.2 which is bundled in with Forte 3.0 for Java. This
> works fine in the development environment under Mandrake Linux 8.1. Now
> I want to deploy a web application, for this purpose I have Apache 1.3
> running to handle the static pages. For the *.war files I need Tomcat.
> Presumably I need to download Tomcat and run it without running up the
> Forte IDE??
>
> I downloaded the file 'jakarta-tomcat-3.2.4.tar.gz', used winzip to
> decompress the data and ftp'ed this onto my linux machine. I set up the
> environment variables as shown below. Then I needed to edit
> $TOMCAT_HOME/bin/startup.sh as follows:
>
> · uncomment the 2'nd line 'java -cp runner .'
> ·  chmod to make it executable.
>
> When I run it I get :
>
> bash: ./startup.sh: bad interpreter: no such file or directory
>
> executing '$java' from the command line with no arguments shows that the
> jre is being found in the path. The only other problem I can think of is
> that the CLASSPATH is incorrect. Can any body please help me to solve
> this problem??
>
> ---
> echo Welcome Tomcat!
> PATH=$PATH:/home/java/forte4j/bin/:/home/java/j2sdk1.4.0/bin ; export
> PATH
> echo PATH = $PATH
> JAVA_PATH=/home/java/j2sdk1.4.0/ ; export JAVA_PATH
> JDK_HOME=/home/java/j2sdk1.4.0/ ; export JDK_HOME
> echo JAVA_PATH = $JAVA_PATH
> TOMCAT_HOME=/home/tomcat/jakarta-tomcat-3.2.4 ; export TOMCAT_HOME
> echo TOMCAT_HOME = $TOMCAT_HOME
> NPX_PLUGIN_PATH=/home/java/j2sdk1.4.0/jre/plugin/i386/ns4/ ; export
> NPX_PLUGIN_PATH
> echo JDK_HOME = $JDK_HOME
> echo NPX_PLUGIN_PATH = $NPX_PLUGIN_PATH
> CLASSPATH=.:/usr/share/pgsql/jdbc7.0-1.2.jar ; export CLASSPATH
> echo CLASSPATH = $CLASSPATH
> JAVA_HOME=/home/java/j2sdk1.4.0/ ; export JAVA_HOME
> echo JAVA_HOME = $JAVA_HOME
> ---
>
> Regards,
>
> Burt Gildenhuys
> E-Mail:  [EMAIL PROTECTED]
> Tel: +2711-899-6079
> Fax: +2711-899-6378
> Mobile:  +2782-895-5796
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Upgrade to JDK1.4 --> unable to compile JSPs

2002-03-07 Thread Martin van den Bemt

it doesn't indeed, because if you that you would be breaking license rules.

Mvgr,
Martin

> -Original Message-
> From: Attila Szegedi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 16:01
> To: Tomcat Users List
> Subject: Re: Upgrade to JDK1.4 --> unable to compile JSPs
> 
> 
> Correct me if I'm wrong, but doesn't Tomcat 4 distribution come 
> with bundled
> javac?
> I'd expect JSP compiler uses the bundled (presumably 1.3) javac and no
> tweaking of your classpath will help...
> 
> Just my 2c
> Attila.
> 
> --
> Attila Szegedi
> home: http://www.szegedi.org
> 
> 
> > |-Original Message-
> > |From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> > |Sent: Thursday, March 07, 2002 3:36 PM
> > |To: 'Tomcat Users List'
> > |Subject: RE: Upgrade to JDK1.4 --> unable to compile JSPs
> > |
> > |
> > |Randy and Ralph,
> > |
> > |Thanks for you quick replies.
> > |
> > |I've quadruple checked - I deleted all JDKs and JVMs on my machine
> > |except for the one I just installed.  The problem remains, unmodified.
> > |
> > |Is it possible that some of my jar files need updating?
> > |
> > |Thanks,
> > |Scott
> > |
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Compilation error with ant...

2002-02-14 Thread Martin van den Bemt

javadoc is rather verbose while generating (in this case it doesn't know
where the javadoc of the jdk can be found..)

Mvgr,
Martin

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET
> Sent: Thursday, February 14, 2002 14:23
> To: Tomcat Users List
> Subject: Compilation error with ant...
>
>
> Hi all !
>
> Well, who can help for this non blockin' pb:
>
> When i compil tomcat 4.0.2 with ant, i've got 2 set of warnings:
>
>  [javadoc] Building tree for all the packages and classes...
>   [javadoc] Building index for all the packages and classes...
>   [javadoc] Building index for all classes...
>   [javadoc] javadoc: warning - Tag @see: Class or Package not found:
> java.lang.Runtime#exec(String command, String[]
>  envp,
>   [javadoc] File dir)
>   [javadoc] javadoc: warning - Tag @see: Class or Package not found:
> java.lang.Runtime#exec(String command, String[]
>  envp,
>   [javadoc] File dir)
>   [javadoc] Generating
> /usr/local/jakarta-tomcat-4.0.2-src/catalina/build/javadoc/stylesh
> eet.css...
>
>   [javadoc] 3 warnings
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/catal
> ina/docs/api
>
>  [copy] Copying 374 files to
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/catal
> ina/docs/api
>
> build-prepare:
>
> build-static:
>
> build-main:
>
> And the second one:
>
> javadoc:
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/jasper/build/javadoc
>   [javadoc] Generating Javadoc
>   [javadoc] Javadoc execution
>   [javadoc] Loading source files for package org.apache.jasper...
>   [javadoc] Loading source files for package org.apache.jasper.parser...
>
>   [javadoc] Loading source files for package
> org.apache.jasper.compiler...
>   [javadoc] Loading source files for package
> org.apache.jasper.runtime...
>   [javadoc] Loading source files for package
> org.apache.jasper.logging...
>   [javadoc] Loading source files for package org.apache.jasper.util...
>   [javadoc] Loading source files for package
> org.apache.jasper.servlet...
>   [javadoc] Loading source files for package org.apache.jasper.core...
>   [javadoc] Constructing Javadoc information...
>   [javadoc] javadoc: warning - Import not found: sun.tools.javac.Main -
> ignoring!
>   [javadoc] Building tree for all the packages and classes...
>   [javadoc] Building index for all the packages and classes...
>   [javadoc] Building index for all classes...
>   [javadoc] Generating
> /usr/local/jakarta-tomcat-4.0.2-src/jasper/build/javadoc/stylesheet.css...
>
>   [javadoc] 1 warning
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/jaspe
> r/docs/api
>
>  [copy] Copying 131 files to
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/jaspe
> r/docs/api
>
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/servletapi
>  [copy] Copying 154 files to
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/servletapi
>
> dist:
>
> BUILD SUCCESSFUL
>
> Total time: 2 minutes 22 seconds
>
> The build successful message is nice but i'd like to understand from
> where are commin' those warnings !
>
> Any help/clues appreciated.
>
> Regards.
>
> Jean-Luc B :O)
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: VAJava and Tomcat

2002-02-12 Thread Martin van den Bemt

Maybe it is an option to upgrade to eclipse, which has a tomcat module
integrated.

Mvgr,
Martin

> -Original Message-
> From: Patria Lukman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 16:23
> To: [EMAIL PROTECTED]
> Subject: VAJava and Tomcat
>
>
> Hello everyone
>
> this question might seems naive, but I have browse the IBM web site and
> revise some articles and unfortunately I have been unable to deal with the
> following question:
>
> I am using Visual Age for Java (VAJ) 3.5 Professional Edition and I added
> Tomcat v 4.01 as servlet engine to the VAJ to run and debug and develop
> servlets and JSP.
> So, my question is: has someone use Tomcat v 4.01 and VAJ to
> debug servlets
> and JSPs ?  i have tried several articles and ways without much avail.
> I would really appreciate any help you could give on this
> Thanks
> Patria
>
>
>
> __
> Patria Handatjaia Lukman
>
> NdexSystems Inc. 360 St-Jacques Ouest, Suite 2000
> Montréal, Qc. H2Y 1P5
> Office phone: 1-514-288-0908 Ext 110
> [EMAIL PROTECTED]
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: TOMCAT 4.0 on port 80

2002-02-08 Thread Martin van den Bemt

You have to be root to startup tomcat under port 80. 

Mvgr,
martin

> -Original Message-
> From: Kevin Passey [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 12:23
> To: Tomcat Users List
> Subject: TOMCAT 4.0 on port 80
> 
> 
> Hi  all,
> 
> We have temporarily given up on trying to get Tomcat working with 
> apache as
> we seemed to be getting nowhere. What we wanted to do was to only serve
> JSP's anyway, but thought it would be a good idea to run it 
> through apache -
> commercially we don't have the time to persue this and our static 
> pages are
> served by our ISP anyway.
> 
> The next problem I need to overcome is to get Tomcat running on 
> port 80 - we
> have changed the server.xml file so that both instances of 8080 
> were changed
> to 80. This works on windows but not on SuSE Linux 7.3 - please 
> can you give
> me any pointers.
> 
> Regards
> 
> Kevin Passey
> 
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.3a & IIS & JDBC

2002-02-07 Thread Martin van den Bemt

put the jar file in the WEB-INF/lib directory of your webapp..

Mvgr,
Martin

> -Original Message-
> From: Martin Jussel [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 07, 2002 18:42
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3a & IIS & JDBC
> 
> 
> Hi,
> 
> I'm a newbie: I installed Tomcat and the IIS redirector successfully and
> found the solution to host multiple webs with this configuration. But
> now I have to install a JDBC driver (SQLBase) and to get it run, I found
> only the solution to copy the complete JDBC driver path
> (com.centurasoft.java.sqlbase) to the WEB-INF\classes of each web and
> define the path in the web.xml.
> 
> Is there no *global* place for installing driver classes like this?
> 
> Regards,
> Martin Jussel
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: why use mod_webapp?

2002-01-31 Thread Martin van den Bemt

How about firewalls that most companies have that do not allow insternet
traffic on a port different then 80 ?
Could be a lot of users that you are missing that way ;)

Mvgr,
Martin

> -Original Message-
> From: Dave North [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 21:21
> To: [EMAIL PROTECTED]
> Subject: why use mod_webapp?
>
>
> Hi Folks,
>   I'm already using mod_webapp for handling my tomcat traffic via
> apache.  My question from a guy here is why do we do this and not just
> create a simple re-direct page?  ie. create a directory with a 1 line
> HTML page in it that re-directs to the tomcat HTTP server.  Are there
> other advantages to using the WARP connector?
>
> Thanks
>
> Dave
>
> Dave North
> SIGNIANT Inc.
> Trusted Data Transfer Services
> www.signiant.com
> Phone: 613-761-3623
> Fax: 613-761-3629
> EMail: [EMAIL PROTECTED]
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.3 getRemoteHost always returns "localHost" - Is there any 3.3 production version has patch applied

2002-01-31 Thread Martin van den Bemt

Use the cvs version. Works perfectly fine in production environments and is
very stable..
(running here without any problems)

Mvgr,
Martin

> -Original Message-
> From: Jayakumar Duraisamy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 20:22
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3 getRemoteHost always returns "localHost" - Is there
> any 3.3 production version has patch applied
>
>
> We have moved from tomcat 3.2.1 to 3.3. We have one of our functionality
> depend on identifying the client based on the client IP/Hostname.
>
> In 3.2.1 ServletRequest.getRemoteHost() returns the DHCP address for the
> client, where as in 3.3 it always returns as localhost. I have
> seen a bug no
> 3944 reported and the status says that it is fixed in 3.3 Release
> Candidate
> 1. I downloaded the nightly build "3.3.1 Dev" and tested for the bug. It
> looks fine and now returns the DHCP address.
>
> My question is which production release has this patch [Except 4.0, i am
> interested in 3.3.X]. If not, WHEN CAN I EXPECT THIS RELEASE.
>
> Thanks in advance
> Jayakumar
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: NullPointerException: causes?

2002-01-31 Thread Martin van den Bemt

Hmm. Happens a lot I guess.
The only thing I can think off, is that the classesX.zip (which includes the
oracle jdbc driver), was not renamed to classesX.jar. Tomcat only adds files
with a jar extension to the classloaders classpath. If that is the case,
this message should appear on the screen :


Get method = Class not found error

which is generated by the following lines (the exception should come from
the Class.forName() line.

catch(ClassNotFoundException cnfe) {
 out.println("Get method - Class not
found error:  " + cnfe)

If nothing appears on screen : add an out.close() to the finally, so the
stream to the browser is actually closed.

Mvgr,
Martin

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 19:35
> To: 'Tomcat Users List'
> Subject: RE: NullPointerException: causes?
>
>
> Martin,
>
> You said "So probably something is wrong in setting up the
> connection". Any
> ideas what?? I've checked that the database is open and the listener is
> listening. The JDBC drivers are in the right place. The user has
> sufficient
> privileges. I'm out of ideas!
> I'm just a lowly student who's ended up working for his Uni for a year. No
> one here knows anything about TomCat or Java Servlets. The Oracle
> DBA left a
> week ago (seriously) and there's no one but me to do everything.
> I get help
> on the Unix/networking side of things. The person who writes the servlets
> (that I'm trying to deploy) knows next to nothing about running
> them. Great
> situation, eh?
>
> Thanks,
>
> John
>
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 31 January 2002 17:46
> To: Tomcat Users List
> Subject: RE: NullPointerException: causes?
>
>
> Looks like the DriverManager is returning null, so dbCcon is null. (line
> 217). So probably something is wrong in setting up the connection.
>
> Mvgr,
> Martin
>
> > -Original Message-
> > From: John Wadkin [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 31, 2002 18:41
> > To: Tomcat Users List (E-mail)
> > Subject: NullPointerException: causes?
> >
> >
> > Can anyone offer any suggestions about the cause of the attached
> > NullPointerException trace?
> >
> > I've managed to setup and integrate Apache 1.3 and Tomcat 4.1 using
> > mod_WebApp on Solaris 8 (JDK 1.3). I ran the attached servlet (which I
> > didn't write) with the hope of testing that everything was working ok,
> > especially the Oracle/JDBC bit.
> >
> > As far as I can tell, everything is configured properly...
> >
> > The general aim is for me to verify that everything works (using the
> > attached servlet) before trying to deploy a second, more complex servlet
> > that's currently running under JServ.
> >
> > Apologies if this is a frequent question but I've only been able to find
> > vague references to it, and I'm only a novice Java programmer!
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: NullPointerException: causes?

2002-01-31 Thread Martin van den Bemt

Looks like the DriverManager is returning null, so dbCcon is null. (line
217). So probably something is wrong in setting up the connection.

Mvgr,
Martin

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 18:41
> To: Tomcat Users List (E-mail)
> Subject: NullPointerException: causes?
>
>
> Can anyone offer any suggestions about the cause of the attached
> NullPointerException trace?
>
> I've managed to setup and integrate Apache 1.3 and Tomcat 4.1 using
> mod_WebApp on Solaris 8 (JDK 1.3). I ran the attached servlet (which I
> didn't write) with the hope of testing that everything was working ok,
> especially the Oracle/JDBC bit.
>
> As far as I can tell, everything is configured properly...
>
> The general aim is for me to verify that everything works (using the
> attached servlet) before trying to deploy a second, more complex servlet
> that's currently running under JServ.
>
> Apologies if this is a frequent question but I've only been able to find
> vague references to it, and I'm only a novice Java programmer!
>
> Thanks,
>
> John
>
> Quote for the week:
>
> My fellow Americans, I am pleased to tell you I just signed legislation
> which outlaws Russia forever. The bombing begins in five minutes.
>
> Ronald Reagan, Radio microphone test, 11 Aug. 1984
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problems with .exe install for NT

2002-01-31 Thread Martin van den Bemt

Maybe I am mistaking, but I think I read somewhere that the windows
installer doesn't recognize the jdk 1.4. Maybe checking the archives for
this will find you an answer on how to solve that.

Mvgr,
Martin

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 19:32
> To: [EMAIL PROTECTED]
> Subject: RE: Problems with .exe install for NT
>
>
> Have you set JAVA_HOME to d:\java\JDK1.4 (assuming that's where your JDK
> is installed)?  Just a thought.
>
> Dennis
>
> -Original Message-
> From: jmh.tomcat [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 9:13 AM
> To: tomcat-user
> Subject: Re: Problems with .exe install for NT
>
>
> or does anyone have suggestions on how to get around this problem?
>
> >
> > From: <[EMAIL PROTECTED]>
> > Date: 2002/01/30 Wed AM 11:10:59 EST
> > To: [EMAIL PROTECTED]
> > Subject: Problems with .exe install for NT
> >
> > I can't get my .exe to install on my NT system.  It says that the path
> of the JDK can't be found.  My JDK is under D:\java\JDK1.4.
> >
> > Is there anyway that an optional argument can be added to the
> installer to allow for a different path for the JDK than the default?
> >
> > Thanks
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat / SOAP

2002-01-24 Thread Martin van den Bemt

see http://xml.apache.org/soap/docs/index.html
for a soap implementation..

Mvgr,
Martin

> -Original Message-
> From: Loïc Lefèvre [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 14:43
> To: Mailing List Tomcat
> Subject: Tomcat / SOAP
>
>
> Hi,
> Can someone tell me if tomcat supports SOAP?
>
> Best regards,
> Loïc
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: READER to InputStream

2002-01-24 Thread Martin van den Bemt

As I said, you have to play with it.. You can always stuff the array in a
String and do a getBytes() afterwards ;))

Mvgr,
Martin


> -Original Message-
> From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 14:20
> To: 'Tomcat Users List'
> Subject: AW: READER to InputStream
>
>
> But I need byte[] - how do I get that ?
>
> > AXA eSolutions GmbH
> > AXA Konzern AG Germany
> > Oliver Lauer
> > Web Architect
> > Wörthstraße 34
> > D-50668 Köln
> > Germany
> > Tel.: +49 221 148 31277
> > Fax: +49 221 148 43963
> > Mobil: +49 179 59 064 59
> > e-Mail: [EMAIL PROTECTED]
> > _
> >
>
>
> -Ursprüngliche Nachricht-
> Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 24. Januar 2002 13:41
> An: Tomcat Users List
> Betreff: RE: READER to InputStream
>
>
> Stuff your readers content in an array and open an InputStream with the
> array...(ByteArrayInputStream takes an array as a constructor)
> You have to
> play around with it though, since it could be that it needs some
> conversion
> of some sort to corrrectly end up in the inputstream..
>
> Mvgr,
> Martin
>
> > -Original Message-
> > From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 24, 2002 13:19
> > To: 'Tomcat Users List'
> > Subject: AW: READER to InputStream
> >
> >
> > No, I've a Reader and need an InputStream, sounds silly but the
> API needs
> > so...:-(
> >
> > > AXA eSolutions GmbH
> > > AXA Konzern AG Germany
> > > Oliver Lauer
> > > Web Architect
> > > Wörthstraße 34
> > > D-50668 Köln
> > > Germany
> > > Tel.: +49 221 148 31277
> > > Fax: +49 221 148 43963
> > > Mobil: +49 179 59 064 59
> > > e-Mail: [EMAIL PROTECTED]
> > > _
> > >
> >
> >
> > -Ursprüngliche Nachricht-
> > Von: Walter De Wit [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 24. Januar 2002 13:09
> > An: 'Tomcat Users List'
> > Betreff: RE: READER to InputStream
> >
> >
> > You need a Reader object pointing to an InputStream ?
> >
> > Reader r=new java.io.InputStreamReader(myInputStream);
> >
> > is it that what you want ?
> >
> > -Original Message-
> > From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> > Sent: donderdag 24 januari 2002 13:05
> > To: Tomcat Users List (E-Mail)
> > Subject: READER to InputStream
> >
> >
> > I know I'm a looser but can anybody tell me quickly how I can
> get a Reader
> > to an InputStream.
> > I've searched for quite a while but I didn't find anything yet !
> > PLEASE & Thanx
> > Oliver
> >
> >
> > > AXA eSolutions GmbH
> > > AXA Konzern AG Germany
> > > Oliver Lauer
> > > Web Architect
> > > Wörthstraße 34
> > > D-50668 Köln
> > > Germany
> > > Tel.: +49 221 148 31277
> > > Fax: +49 221 148 43963
> > > Mobil: +49 179 59 064 59
> > > e-Mail: [EMAIL PROTECTED]
> > > _
> > >
> > >
> >
> > --
> > --
> > --
> > Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
> > Information nicht rechtsverbindlich. Eine rechtsverbindliche
> Bestaetigung
> > reichen wir Ihnen gerne auf Anforderung in schriftlicher Form
> > nach. Beachten
> > Sie bitte, dass jede Form der unautorisierten Nutzung,
> Veroeffentlichung,
> > Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht
> > gestattet
> > ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten
> Adressaten
> > oder dessen Vertreter bestimmt. Sollten Sie nicht der
> vorgesehene Adressat
> > dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie,
> sich mit dem
> > Absender der E-Mail in Verbindung zu setzen.
> > 
> > For legal and security reasons the information provided in this
> e-mail is
> > not legally binding. Upon request we would be pleased to provide
> > you with a
> > legally binding confirmation in written form. Any form of
> > unauthorised use,
> > publication, reproduction, copying or disclosure of the content of this
> > e-mail is not permitted. This message is exclusively for the person
> > addressed or their representat

RE: JDBC drivers

2002-01-24 Thread Martin van den Bemt

just rename the file, you don't have unzip and rejar it (a jar is a zip
file..)

Mvgr
Martin

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 14:35
> To: Tomcat Users List (E-mail)
> Subject: JDBC drivers
>
>
> All,
>
> The JDBC drivers provided by Oracle are zipped but as I
> understand it, only
> jar files are recognised. Is this correct? If so, I guess I'll
> have to unzip
> and then jar? I'm using TC 4 on Solaris 8.
>
> Thanks,
>
> John
>
> Quote for the week:
>
> The men with the muck-rakes are often indispensable to the well-being of
> society; but only if they know when to stop raking the muck.
>
> Theodore Roosevelt, Speech in New York, 11 Nov. 1902
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: READER to InputStream

2002-01-24 Thread Martin van den Bemt

Stuff your readers content in an array and open an InputStream with the
array...(ByteArrayInputStream takes an array as a constructor)  You have to
play around with it though, since it could be that it needs some conversion
of some sort to corrrectly end up in the inputstream..

Mvgr,
Martin

> -Original Message-
> From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 24, 2002 13:19
> To: 'Tomcat Users List'
> Subject: AW: READER to InputStream
>
>
> No, I've a Reader and need an InputStream, sounds silly but the API needs
> so...:-(
>
> > AXA eSolutions GmbH
> > AXA Konzern AG Germany
> > Oliver Lauer
> > Web Architect
> > Wörthstraße 34
> > D-50668 Köln
> > Germany
> > Tel.: +49 221 148 31277
> > Fax: +49 221 148 43963
> > Mobil: +49 179 59 064 59
> > e-Mail: [EMAIL PROTECTED]
> > _
> >
>
>
> -Ursprüngliche Nachricht-
> Von: Walter De Wit [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 24. Januar 2002 13:09
> An: 'Tomcat Users List'
> Betreff: RE: READER to InputStream
>
>
> You need a Reader object pointing to an InputStream ?
>
> Reader r=new java.io.InputStreamReader(myInputStream);
>
> is it that what you want ?
>
> -Original Message-
> From: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 24 januari 2002 13:05
> To: Tomcat Users List (E-Mail)
> Subject: READER to InputStream
>
>
> I know I'm a looser but can anybody tell me quickly how I can get a Reader
> to an InputStream.
> I've searched for quite a while but I didn't find anything yet !
> PLEASE & Thanx
> Oliver
>
>
> > AXA eSolutions GmbH
> > AXA Konzern AG Germany
> > Oliver Lauer
> > Web Architect
> > Wörthstraße 34
> > D-50668 Köln
> > Germany
> > Tel.: +49 221 148 31277
> > Fax: +49 221 148 43963
> > Mobil: +49 179 59 064 59
> > e-Mail: [EMAIL PROTECTED]
> > _
> >
> >
>
> --
> --
> --
> Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
> Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
> reichen wir Ihnen gerne auf Anforderung in schriftlicher Form
> nach. Beachten
> Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
> Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht
> gestattet
> ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten
> oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
> dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem
> Absender der E-Mail in Verbindung zu setzen.
> 
> For legal and security reasons the information provided in this e-mail is
> not legally binding. Upon request we would be pleased to provide
> you with a
> legally binding confirmation in written form. Any form of
> unauthorised use,
> publication, reproduction, copying or disclosure of the content of this
> e-mail is not permitted. This message is exclusively for the person
> addressed or their representative. If you are not the intended
> recipient of
> this message and its contents, please notify the sender immediately.
>
> ==
> ==
> ==
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> 
> Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail
> gegebene Information nicht rechtsverbindlich. Eine
> rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf
> Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass
> jede Form der unautorisierten Nutzung, Veroeffentlichung,
> Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht
> gestattet ist.Diese Nachricht  ist ausschliesslich fuer den
> bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten
> Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen
> Vertreter sein, so bitten wir Sie, sich mit dem Absender der
> E-Mail in Verbindung zu setzen.
> 
> For legal and security reasons the information provided in this
> e-mail is not legally binding. Upon request we would be pleased
> to provide you with a legally binding confirmation in written
> form. Any form of unauthorised use, publication, reproduction,
> copying or disclosure of the content of this e-mail is not
> permitted. This message is exclusively for the person addressed
> or their representative. If you are not the intended recipient of
> this message and its contents, please notify the sender immediately.
>
> ==
> 
>
>

RE: IIS or Apache

2002-01-22 Thread Martin van den Bemt

Don't worry about me dude ;). I only use open source for my efforts and I
don't have a boss ;) . Just don't forget that a lot of companies (especially
bigger ones) don't make a technical decision, but a political, which leads
to the story you are telling me.. I'm seeing a huge increase at customers
for choosing .net which is still beta quality, and all those decisisions
MUST be based on politics or emotions, not on what their company requires
(talking about companies with eg windows, solaris, mainframe and as/400
combined in 1 environment).
But yeah, we can fill a huge newsgroup with this topic I guess...

Mvgr,
Martin

> -Original Message-
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 21, 2002 18:31
> To: Tomcat Users List
> Subject: RE: IIS or Apache
>
>
> >>Ever heard of managers ;)
> yes and what do they pay you for?
> tell you how to do your job or letting
> you do your job ie finding the best web server.
>
> If he willing to put his butt on the line for
> deploying the worth web server and take full
> responsibilities for breaking into your site,
> fine.
>
> Again do your job, compare which of apache and IIS
> had the most bug/securities hols issues which
> one tie you up to a specific platform ,which one
> makes it difficult to replicate/migrate to a different
> PC.
>
> As well if you go for IIS you gonna have to patch and
> keep up with them fairly frequently (look at how many
> patches had been released for IIS in the last year),
> therefore it means more down time.
>
> Apache is open source = if you find a bug that prevent
> your site to stay up or compromise it, providing that
> can code in C you can fix it there and then.
> With IIS pray that MS 1) can be asked to fix it 2) they
> do it quickly.
>
> If apache/Linux is good enough for amazon.com to commit
> there business on it why can't it be good enough for your
> boss?
>
> Dom
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2002 17:09
> To: Tomcat Users List
> Subject: RE: IIS or Apache
>
>
> Ever heard of managers ;)
>
> > -Original Message-
> > From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 21, 2002 18:08
> > To: Tomcat Users List
> > Subject: RE: IIS or Apache
> >
> >
> > From stability/bugs/security point of view the choice is easy,
> > use apache.
> > Why on earth anyone would run IIS? given it track record (code
> > red, nimba, etc...).
> > apache is portable, try to replicate a config on another platform
> > using IIS,
> > even on another MS platform it's not that easy.
> > With Apache on the other hand you bearly need to copy the structure and
> > httpd.conf
> >
> > Apache has 60% market share and IIS about 20%
> > yet IIS is top notch when it comes to the amount of bugs/security
> > holls uncovered, apache bearly none.
> >
> > Again why on earth anyone with a bit of common sense would consider
> > running IIS.
> >
> > Dom
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: 21 January 2002 16:51
> > To: [EMAIL PROTECTED]
> > Subject: IIS or Apache
> >
> >
> > Hi,
> > I have a JSP application (with java classes) to run on Windows 2000
> > server. For JSP i am using tomcat container. Can anyone please
> let me know
> > should I use Microsoft IIS web server or Apache web server for my
> > application. Please tell me which is better IIS or Apache on
> the following
> > basis:
> > 1. Stability
> > 2. Speed
> > 3. Load
> > 4. Overall (considering any other parameters)
> >
> > Sumit.
> > The information contained in this e-mail and any files
> transmitted with it
> > may be privileged and confidential.  If the reader of this message,
> > regardless of the address or routing, is not an intended
> > recipient, you are
> > hereby notified that you have received this transmittal in error and any
> > review, use, distribution, dissemination or copying is strictly
> > prohibited.
> > If you have received this message in error, please delete this
> e-mail and
> > all files transmitted with it from your system and notify the sender by
> > reply e-mail or by calling 1-888-338-6076.
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To un

RE: IIS or Apache

2002-01-21 Thread Martin van den Bemt

Ever heard of managers ;)

> -Original Message-
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 21, 2002 18:08
> To: Tomcat Users List
> Subject: RE: IIS or Apache
>
>
> From stability/bugs/security point of view the choice is easy,
> use apache.
> Why on earth anyone would run IIS? given it track record (code
> red, nimba, etc...).
> apache is portable, try to replicate a config on another platform
> using IIS,
> even on another MS platform it's not that easy.
> With Apache on the other hand you bearly need to copy the structure and
> httpd.conf
>
> Apache has 60% market share and IIS about 20%
> yet IIS is top notch when it comes to the amount of bugs/security
> holls uncovered, apache bearly none.
>
> Again why on earth anyone with a bit of common sense would consider
> running IIS.
>
> Dom
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2002 16:51
> To: [EMAIL PROTECTED]
> Subject: IIS or Apache
>
>
> Hi,
>   I have a JSP application (with java classes) to run on Windows 2000
> server. For JSP i am using tomcat container. Can anyone please let me know
> should I use Microsoft IIS web server or Apache web server for my
> application. Please tell me which is better IIS or Apache on the following
> basis:
> 1. Stability
> 2. Speed
> 3. Load
> 4. Overall (considering any other parameters)
>
> Sumit.
> The information contained in this e-mail and any files transmitted with it
> may be privileged and confidential.  If the reader of this message,
> regardless of the address or routing, is not an intended
> recipient, you are
> hereby notified that you have received this transmittal in error and any
> review, use, distribution, dissemination or copying is strictly
> prohibited.
> If you have received this message in error, please delete this e-mail and
> all files transmitted with it from your system and notify the sender by
> reply e-mail or by calling 1-888-338-6076.
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: basic servlet move doesn't work

2002-01-21 Thread Martin van den Bemt

Is dir your package name and is the servlet in the webapp or in a jar (read
something about tc4 not recognizing servlets in jars outside of the webapp)

Mvgr,
Martin

> -Original Message-
> From: Cressatti, Dominique [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 21, 2002 16:53
> To: Tomcat Users List
> Subject: basic servlet move doesn't work
>
>
> Hi,
>
> I have a very simple example app.
> For testing purposes I moved the servlet into a subdirectory.
> So before the move I had
> /webapps/Wide_World/WEB-INFO/classes/ForwardServlet.class
> and after the move I had
> /webapps/Wide_World/WEB-INFO/classes/dir/ForwardServlet.class
>
> according to the docs I've read I can do such a thing and reflect it
> I need edit /webapps/Wide_World/web.xml
>
> from:
> forward
> ForwardServlet
>
> to
> forward
> dir.ForwardServlet
>
> which I did (and restated tomcat).
> However how such simple change doesn't work?
> Now when I try to access again the servlet I get:
> ...HTTP error status 500...
> Error allocating a servlet instance
> root cause
> java.lang.NoClassDefFoundError: dir/ForwardServlet (wrong name:
> ForwardServlet)...
>
> What's going on!
>
> Thanks
> Dom
>
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: RE: jdk processes

2002-01-21 Thread Martin van den Bemt

See below..

> -Original Message-
> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 21, 2002 16:31
> To: Tomcat Users List
> Subject: Re: RE: jdk processes
>
>
> Hi
>
> Thanks for your comments.
>
> >You should have a look in the server.xml file and at your
> httpd.conf to see
> >if it is similar like this :
> >(maxTheads should be the same as the apache threads)
> >
> > >maxThreads="150"
> >maxSpareThreads="50"
> >minSpareThreads="10" />
> >
> >(thanx Henri..)
>
> We haven't used AJP13 since mod_webapp is the supposed to be the
> preferred method with TC 4.0.1. We used AJP12 with TC 3.2.3 and
> set the parameters as you show. We still got the same
> problems so we're not overconfident that AJP13 will fix them.

Ajp12 is not maintained anymore and my change to ajp13 solved a huge amount
of problems..

> Interesting to read what you say about the restarts - I'll try
> restarting TC with no Apache restarts.

The commit was done a week ago or something, so you have to build it from
cvs...

> On the session timeout, I have that set to 10 minutes (from the
> default 30). If there is one thread per session then maybe I
> ought to go to 5 minutes or less ! Where is the parameter that govens how
> often the session are checked. In Apache JServ, I recall
> something like checkInterval in the zone.properties file. Maybe
> TC4 is cleverer onthat one.

I don't know where it is in tc4, but I guess it is in the server.xml (don't
have huge loads here ;((...

Mvgr,
Martin




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: jdk processes

2002-01-21 Thread Martin van den Bemt

See inline below..

> We've been running Apache 1.3.12 and Tomcat (3.2.3 and 4.0.1), to
> service servlet content. We are using Sun's JDK 1.3.0_02 on Linux
> (RedHat). We are finding that the site runs reasonably well
> but we see that the number of JDK processes rises over a period
> of time and when it reaches over 120, it tends to lock up Apache
> - at which point we have to restart the whole site.

These are not processes, but threads btw.
You should have a look in the server.xml file and at your httpd.conf to see
if it is similar like this :
(maxTheads should be the same as the apache threads)



(thanx Henri..)

Advice is anyway  to run jdk13 instead of the ajp12 you specified.

> On Tomcat 3.2.3, we used the AJP12 connector and used the
> parameters for the minimum and maximum spare servers - all to no
> effect. With Tomcat 4.0.1, we are using the mod_webapp connector
> but I'm not sure whether there are similar parameters, the page
> at
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html
> isn't finished.Can anyone tell me whether there are similar
> parameters ?

Hmm.. don't know if it has these parameters, but the cvs version of
mod_webapp automatically tries to "deploy" an webapp when it is not
available directly after startup (which means : you can start apache after
tomcat or restart tomcat any time you like).

> The site gets about 250,000 to 300,000 hits per day (most of
> which just goes through Apache) and about 15000 requests of the
> various servlets. Is there  anything we can do to limit the way that the
> JVM/ JDK processes rise ? Is there anything in the servlets which
> might be causing this ?

Your session timeout is probably 30 minutes. As far as I know, every session
has is thread.. So that might explain the high number of threads..

Mvgr,
Martin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Mod_webApp Configuration - Tomcat 4.01, Apache 1.3.22 (Darwin)

2002-01-21 Thread Martin van den Bemt

>From your message I assume that you didn't get any errors when starting up
apache. Since your html attachments was left out of the post, I cannot see
if your webapps are deployed or not. (according to webapp info). The minimum
I can suggest is to use the version of mod_webapp from cvs (which I do),
which contains some fixes regarding automatic deployment of webapps when
they are not available at startup of apache (the order of starting httpd and
tomcat is not important anymore). In the "old" webapp you have to start
tomcat before apache to get requests through.

Mvgr,
Martin

> -Original Message-
> From: Terry J Fundak [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, January 20, 2002 08:54
> To: Tomcat User List
> Subject: Mod_webApp Configuration - Tomcat 4.01, Apache 1.3.22 (Darwin)
>
>
> After a couple of weeks of really struggling with this, I need to ask
> some really basic questions:
>
> Tomcat standalone configuration is EZ, quick and works perfectly the
> first time...
>
> Using mod_webapp is a real mystery...and I'm ready to get up? I really
> have tried a lot of things with little progress of getting the setup
> correct.
>
> I have attached the output from WebApp-info which is the only thing that
> I have gotten to respond with any information...Sorry it is HTML because
> that is what webapp-info gives...
>
> So My Question is:
>
> Where is mod_webapp supposed to get the "Local Deployment Path"?
> And if it isn't right where do I set it?
> And if mod_webapp is NOT looking in the server.xml file in my
> $JAKARTA_HOME/config/ directory, where is it looking or how do I set it
> to look elsewhere?
>
> Before someone says: Read the documentation, PLEASE I HAVE! I have read
> and searched literally for days on the web. I have tried the FAQ at the
> JAKARTA project which send you to the "documentation" which is
> incomplete. I have read 100's and 100's of posts to this group. I tried
> to read the FAQ, which do not yet exist apparently. So I know I'm not
> completely crazy when I ask these questions.
>
> And for completeness, here is my httpd.conf for a simple localhost.
>
> ...
>  LoadModule webapp_module
> libexec/httpd/mod_webapp.so
> ...
>  AddModule mod_webapp.c
> 
>
>  WebAppConnection tomcat4 warp
> localhost:8008
>  
>  WebAppDeploy examples
> tomcat4_connect /warp_examples
>  WebAppDeploy cocoon
> tomcat4_connect /warp_cocoon
>  WebAppDeploy henry
> tomcat4_connect /henry
>  WebAppInfo /webapp-info
>  
>
> At this point, I need someone who has succeeded to tell me EXACTLY what
> they have done.
>
> Thank you,
>
> Terry J Fundak
>
> P.S. If I get this working I will write up detailed directions and a lot
> of notes about what not to do. This is what the FAQ's for TOMCAT 4.0 and
> mod_webapp needs at this point.
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Newbie Advice needed - Developping Environment

2002-01-17 Thread Martin van den Bemt

Just use netbeans, almost all of the enterprise edition is added to the
netbeans core on which forte is build.

Mvgr,
Martin

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 17, 2002 12:45
> To: Tomcat Users List
> Subject: RE: Newbie Advice needed - Developping Environment
>
>
>
> Christopher,
>
> does the community edition support Database Connection ?
> I think you must buy the Enterprise Edition.
>
> Marcus
>
>
>
>
> "Cato,
>
> Christopher" To: 'Tomcat Users
> List' <[EMAIL PROTECTED]>
> 
> al.com>  Subject: RE: Newbie
> Advice needed - Developping Environment
>
>
> 17.01.2002
>
> 12:08
>
> Please
>
> respond to
>
> "Tomcat Users
>
> List"
>
>
>
>
>
>
>
>
>
> I can just tell you what I use as an IDE: Sun Forté for Java, Community
> edition.
>
> I think it works like a charm and it also integrates with CVS. It has ANT
> for builds and deployment and is built 100% in Java. I've also tried
> Borland
> Jbuilder which I really didn't like.
>
> Forté is built on NetBeans.
>
> /Christopher
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: den 17 januari 2002 11:49
> > To: [EMAIL PROTECTED]
> > Subject: Newbie Advice needed - Developping Environment
> >
> >
> > Hello ,
> >
> > I am new to this. So please apologize if this is discussed
> > frequently in
> > the list.
> > And all the installation guides I found couldn't help me out of this.
> >
> > We are getting a bit confused about setting up a developement
> > environement
> > with Tomcat 4.0.1
> >
> > What we want to do:
> >
> > Setup Tomcat on a Linux Mandrake 8.1 server .
> > Setup CVS on the same server
> >  Our application have a static part whith html files and a spare parts
> > store which should be programmed using
> > JSP and Beans Technologie .
> > Do we need any additionel Web Server like  Apache or any
> > Application Server
> > like Jboss?
> >
> > The developpers should work from their office PC using a IDE.
> > We decided to
> > use NetBeans to start with.
> > Cause of the complexity of the store application we would
> > like to follow
> > the MVC Modell. I think of installing Strouts,
> > or can Neatbeans ( any modules ? ) do the Job ?
> >
> > The application should be deployed for testing on the Tomcat
> > Linux Server.
> > Deployment for production should be
> > on a different server which is not defined so far.
> >
> > Thanks for any hints putting me into the right direction.
> >
> >
> > Regards
> >
> > Marcus
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: What is the manager password?

2002-01-15 Thread Martin van den Bemt

you have to set up a manager account yourself in
CATALINA_HOME/conf/tomcat-users.xml

Mvgr,
Martin

> -Original Message-
> From: August Detlefsen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 16, 2002 00:49
> To: Tomcat Users List
> Subject: What is the manager password?
>
>
> What is the default password for the manager app?
>
> Thx,
> August
>
> __
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Using request.getRemoteAddr() with tomcat

2002-01-15 Thread Martin van den Bemt

Let the development tomcats not run under localhost but under the network ip
adres (at least if that doesn't give you any security issues). Seems the
only solution in my eyes (don't have your app, so there could be better
ones..)

Mvgr,
Martin

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 22:20
> To: Tomcat Users List
> Subject: Using request.getRemoteAddr() with tomcat
>
>
> I need to store some information into a database that will store
> some unique
> information based on the computer that is accessing the application.  This
> works fine when clients are accessing the production server from different
> machines, but causes a problem when developers are running a copy
> of tomcat
> on their local machines.  Since everyone shares a database, all users that
> are developing are returning 127.0.0.1 for request.getRemoteAddr(), and
> causing multiple entries that are the same into the database.
>
> Does anyone know of a way that I can use request.getRemoteAddr() or
> something similiar to store unique information?  Can I change that IP
> address so that all development machines have a unique value?
>
> Brandon
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-15 Thread Martin van den Bemt

Maybe your firewall is too strict, or ping localhost doesn't work? (add it
to /etc/hosts if it doesn't..)

Mvgr,
Martin

> -Original Message-
> From: Steve [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 15, 2002 03:32
> To: Tomcat Users List
> Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
> Mode
>
>
> I didn't use an rpm so I guess I got the standard binaries.
>
> I tried both ports in my browser...8180 and 8080.
>
> I copied the same Tomcat 4.0.1 download to the windows 98 side of my
> hard drive.  I had no trouble getting it to work with
> http://localhost:8080 there.
>
>
> Cressatti, Dominique wrote:
>
> > Did you get the RPM or the standard binary?
> > The RPM open port 8180 (this is set in
> catalina_home/bin/conf/server.xml)
> > while the standard binary (jakarta-tomcat)open port 8080.
> >
> > I've found that with the rpm version, ./service tomcat4 start
> > doesn't start tomcat (even though it claim so).
> > I think it something to do with not being able to find the java
> > path (even if it is correctly defined in /etc/tomcat4/conf/tomcat4.conf)
> >
> > which binary did you get? RPM or standard binary?
> >
> > Dom
> >
> >
> > -Original Message-
> > From: John Niven [mailto:[EMAIL PROTECTED]]
> > Sent: 15 January 2002 12:50
> > To: Tomcat Users List
> > Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
> > Mode
> >
> >
> > Steve
> >
> > I'm not sure (I'm a relative newbie and my platform is
> typically Windows :(
> > ) but I thought the default port on Linux was 8180, not 8080.
> If you've not
> > changed the defaults, have you tried http://localhost:8180?
> >
> > Best wishes,
> > John
> >
> > John Niven
> > johnDOTnivenATmarcatDOTcom
> >
> >
> >
> >>-Original Message-
> >>From: Steve [mailto:[EMAIL PROTECTED]]
> >>Sent: 14 January 2002 10:33
> >>To: Tomcat Users List
> >>Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
> >>Mode
> >>
> >>
> >>Hi Nelson.
> >>
> >>I did download & install the jdk 1.3.1_02, tomcat 4.0.1
> >>
> >>I put my JAVA_HOME, TOMCAT_HOME, & CATALINA_HOME paths into
> >>/etc/profile
> >>( so I could use these things any where ).
> >>
> >>
> >>The paths are set and tomcat is reporting the correct paths back to me
> >>before it sits there and does nothing.
> >>
> >>
> >>
> >>
> >>Nelson Yip wrote:
> >>
> >> > FOLLOW THESE SIMPLE INSTRUCTIONS AND IT SHOULD WORK.
> >> > BTW, I INSTALLED TOMCAT ON REDHAT 7.2.
> >> >
> >> > 1.  Download both attached file "j2sdk-1_3_1_02-linux-i386.bin" and
> >> > "jakarta-tomcat-4.0.1.tar.gz"
> >> > 2.  Ftp the files over to your home directory.
> >> > 3.  Gunzip the file "gunzip jakarta-tomcat-4.0.1.tar.gz"
> >>after that you
> >> > should see a file name "jakarta-tomcat-4.0.1.tar"
> >> > 4.  Extract the tar file "tar -xvf
> >>jakarta-tomcat-4.0.1.tar" you should
> >> > get a folder called "jakarta-tomcat-4.0.1"
> >> > 5.  This is a binary file and we no compiling is needed.
> >> > 6.  The folder is currently in your home directory and all
> >>you need to
> >> > do is move it over to the path you want Tomcat to be located.  "mv
> >> > jakarta-tomcat-4.0.1 /usr/local/bin"
> >> > 7.  You cannot run Tomcat without installing the java jdk pack.
> >> > 8.  Next is to install j2sdk-1_3_1_02-linux-i386.bin
> >> > 9.  Just type the command "./j2sdk-1_3_1_02-linux-i386.bin"
> >> > 10.  Follow the on screen instruction for the install and
> >>you should
> >> > have specify the path to be /usr/local/bin
> >> > 11.  The next thing is to set your environment so it will
> >>recognized
> >> > JAVA_HOME and TOMCAT_HOME.
> >> > 12.  I am running the bash shell, so you must edit your
> >>".bash_profile",
> >> > the file is hidden and is located in your home directory.
> >> > 13.  Make sure your .bash_profile contains the following:
> >> >  # .bash_profile
> >> >
> >> >  # Get the aliases and functions
> >> >  if [ -f ~/.bashrc ]; then
> >> >  . ~/.bashrc
> >> >  fi
> >> >
> >> >  # User specific environment and startup programs
> >> >
> >> >  PATH=$PATH:$HOME/bin
> >> >  BASH_ENV=$HOME/.bashrc
> >> >  JAVA_HOME=$JAVA_HOME/usr/local/bin/jdk1.3.1_02
> >> >  TOMCAT_HOME=$TOMCAT_HOME/usr/local/bin/jakarta-tomcat-4.0.1
> >> >
> >> >  export TOMCAT_HOME JAVA_HOME BASH_ENV PATH
> >> >  unset USERNAME
> >> > 14.  The final step is to reboot the Linux box by typing
> >>"shutdown -r
> >> > now"
> >> > 15.  You can startup Tomcat by type
> >>"$TOMCAT_HOME/bin/catalina.sh start"
> >> > 16.  To check if Tomcat is working type this in your browser
> >> > "http://www.domain.com:8080";, make sure you use port 8080.
> >> > 17.  Done.
> >> > -Original Message-
> >> > From: Todd Wright [mailto:[EMAIL PROTECTED]]
> >> > Sent: Monday, January 14, 2002 4:37 PM
> >> > To: Tomcat Users List
> >> > Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In
> >>Stand Alone
> >> > Mode
> >> >
> >> > I have Suse 7.2 with jdk 1.4beta-3 fresh install and It
> >>came right up. I

RE: Auto starting Tomcat during boot?

2002-01-11 Thread Martin van den Bemt

rc.local definitely not, since it is executed after the other scripts. I
think the rc.sysinit can be succesfull (never tried that actually, but it is
setting some variables like HOSTNAME, so..)

Mvgr,
Martin

> -Original Message-
> From: Nelson Yip [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 11, 2002 19:00
> To: 'Tomcat Users List'
> Subject: RE: Auto starting Tomcat during boot?
>
>
> How about setting the environment in the "rc.local or rc.sysinit"
> files??
> Would that work too?
>
> Thanks
> Nelson
>
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 11, 2002 12:58 PM
> To: Tomcat Users List
> Subject: RE: Auto starting Tomcat during boot?
>
> Set the java_home in the startupscript (or catalina.sh or whatever place
> you
> prefer).
>
> Mvgr,
> Martin
>
> > -Original Message-
> > From: Nelson Yip [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, January 11, 2002 18:49
> > To: 'Tomcat Users List'
> > Subject: RE: Auto starting Tomcat during boot?
> >
> >
> > Hello,
> >
> > I did a cat boot.log:
> > Jan 11 14:00:58 corona tomcat: Guessing CATALINA_HOME from
> > catalina.shto/usr/local/bin/jakarta-tomcat-4.0.1/bin/..
> > Jan 11 14:00:59 corona tomcat: Setting CATALINA_HOME to
> > /usr/local/bin/jakarta-tomcat-4.0.1/bin/..
> > Jan 11 14:00:59 corona tomcat: You must set JAVA_HOME to point at your
> > Java Development Kit installation
> > Jan 11 14:00:59 corona rc: Starting tomcat:  failed
> >
> > I need to set the environment during boot but I'm wondering how can I
> do
> > that?  I setup the environment in my /home/users/.bash_profile but
> which
> > file do I edit in order to for the script to run?
> >
> > Thanks
> > Nelson
> >
> >
> > -Original Message-
> > From: Nelson Yip [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, January 10, 2002 1:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: Auto starting Tomcat during boot?
> >
> > Hi,
> >
> > I've just installed Tomcat 4.0.1 on my Red Hat 7.2 Linux box.
> > Everything works fine but Tomcat won't auto start after a reboot.
> >
> > I added a symbolic link to the Catalina.sh file in my rc3.d level.
> >
> > ln -s /usr/local/bin/tomcat/bin/Catalina.sh S99tomcat
> >
> > Am I doing something wrong?
> >
> > Thanks
> > Nelson
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Auto starting Tomcat during boot?

2002-01-11 Thread Martin van den Bemt

Set the java_home in the startupscript (or catalina.sh or whatever place you
prefer).

Mvgr,
Martin

> -Original Message-
> From: Nelson Yip [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 11, 2002 18:49
> To: 'Tomcat Users List'
> Subject: RE: Auto starting Tomcat during boot?
>
>
> Hello,
>
> I did a cat boot.log:
> Jan 11 14:00:58 corona tomcat: Guessing CATALINA_HOME from
> catalina.shto/usr/local/bin/jakarta-tomcat-4.0.1/bin/..
> Jan 11 14:00:59 corona tomcat: Setting CATALINA_HOME to
> /usr/local/bin/jakarta-tomcat-4.0.1/bin/..
> Jan 11 14:00:59 corona tomcat: You must set JAVA_HOME to point at your
> Java Development Kit installation
> Jan 11 14:00:59 corona rc: Starting tomcat:  failed
>
> I need to set the environment during boot but I'm wondering how can I do
> that?  I setup the environment in my /home/users/.bash_profile but which
> file do I edit in order to for the script to run?
>
> Thanks
> Nelson
>
>
> -Original Message-
> From: Nelson Yip [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: Auto starting Tomcat during boot?
>
> Hi,
>
> I've just installed Tomcat 4.0.1 on my Red Hat 7.2 Linux box.
> Everything works fine but Tomcat won't auto start after a reboot.
>
> I added a symbolic link to the Catalina.sh file in my rc3.d level.
>
> ln -s /usr/local/bin/tomcat/bin/Catalina.sh S99tomcat
>
> Am I doing something wrong?
>
> Thanks
> Nelson
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Shared jars of multiple web apps

2002-01-09 Thread Martin van den Bemt

Make a symolic link to the WEB-INF/lib directory (although I don't use it
myself, it could work.)

Mvgr,
Martin

-Original Message-
From: Ming Zhou [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 21:09
To: 'Tomcat Users List' (E-mail)
Subject: Shared jars of multiple web apps


I have two web apps that share a set of jars. Since these jars may be
conflict with some other web apps on the same server, I prefer not to
install them in the $CATALINA_HOME/lib directory.

I know one option is to let each of the two web apps to have its own copy of
all these jars in its WEB-INF/lib.

What I want to find out is if there is any other option to keep only one
copy of the shared jars?

Thanks.

-ming,



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Newbie mod_webapp/Oracle/jndi question

2002-01-09 Thread Martin van den Bemt

proxy module in apache of course ;)

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 15:05
To: Tomcat Users List
Subject: RE: Newbie mod_webapp/Oracle/jndi question


About the apache to tomcat directly to the httpconnector : use the proxy
module in tomcat (see the tomcat_docs on how to do that).
As for oracle : cannot help you there..

Mvgr,
Martin

-Original Message-
From: Barry Roberts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 22:47
To: [EMAIL PROTECTED]
Subject: Newbie mod_webapp/Oracle/jndi question


I'm new to the jndi part of J2EE and to tomcat.  I have my app almost
working in tomcat, but it needs to use Oracle.  I have a sample
servlet that connects to the Oracle database just fine, but only if I
connect directly to the tomcat server's http connector.

If I hit the servlet (below) throught apache, the DataSource returned
is null.  But no exception is thrown by javax.naming* calls.  I have
played endlessly with my server.xml to get the oracle resource, and my
latest one is included below.

My main question is, how do I configure this to use Oracle using
mod_webapp?  I would also like to know if it is possible to configure
tomcat so that I can use it through apache AND directly through the
http connector.

Thanks in advance,
Barry Roberts









  

  
  























  
  

  
  

  

  

  

  

  

  

  
  





















  
 


  



  

  

  
  






  
  

  
  
  
  


  
  
  

  user
  *


  password
  *


  driverClassName
  oracle.jdbc.driver.OracleDriver


  driverName
  jdbc:oracle:thin:@192.168.2.60:1521:mhsdev1

  
  
  

  user
  *


  xactnet
  *


  driverClassName
  oracle.jdbc.driver.OracleDriver


  driverName
  jdbc:oracle:thin:@10.168.1.199:1521:xnt1

  
 
 



  



/* Modified from HelloWorldExample
 *
 */

import java.io.*;
import java.text.*;
import java.util.*;
import javax.naming.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.sql.DataSource;
import java.sql.*;


public class TestOracle extends HttpServlet {


public void doGet(HttpServletRequest request,
  HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("");
out.println("");
out.println("Test Oracle Connection");
out.println("");
out.println("");
out.println("");

// note that all links are created to be relative. this
// ensures that we can move the web application that this
// servlet belongs to to a different place in the url
// tree and not have any harmful side effects.

// XXX
// making these absolute till we work out the
// addition of a PathInfo issue
try
{
InitialContext ic = new InitialContext();
if (ic == null) {
out.println("ic == null");
}
DataSource ds = (DataSource)ic.lookup("java:comp/env/Oracle");
if (ds == null) {
out.println("ds == null");
}
Connection conn = ds.getConnection();
if (conn == null) {
out.println("conn == null");
}
Statement stmt = conn.createStatement();

ResultSet rset = stmt.executeQuery("select * from configuration");
out.println("");
while (rset.next())
{
out.println("" + rset.getString(1) + "" +
rset.getString(2)+"");
}
out.println("");
rset.close();
stmt.close();
conn.close();
}
catch (Exception ex)
{
out.println("");
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
PrintStream exOut = new PrintStream(bytes);
System.setErr(exOut);
ex.printSt

RE: Newbie mod_webapp/Oracle/jndi question

2002-01-09 Thread Martin van den Bemt

About the apache to tomcat directly to the httpconnector : use the proxy
module in tomcat (see the tomcat_docs on how to do that).
As for oracle : cannot help you there..

Mvgr,
Martin

-Original Message-
From: Barry Roberts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 22:47
To: [EMAIL PROTECTED]
Subject: Newbie mod_webapp/Oracle/jndi question


I'm new to the jndi part of J2EE and to tomcat.  I have my app almost
working in tomcat, but it needs to use Oracle.  I have a sample
servlet that connects to the Oracle database just fine, but only if I
connect directly to the tomcat server's http connector.

If I hit the servlet (below) throught apache, the DataSource returned
is null.  But no exception is thrown by javax.naming* calls.  I have
played endlessly with my server.xml to get the oracle resource, and my
latest one is included below.

My main question is, how do I configure this to use Oracle using
mod_webapp?  I would also like to know if it is possible to configure
tomcat so that I can use it through apache AND directly through the
http connector.

Thanks in advance,
Barry Roberts









  

  
  























  
  

  
  

  

  

  

  

  

  

  
  





















  
 


  



  

  

  
  






  
  

  
  
  
  


  
  
  

  user
  *


  password
  *


  driverClassName
  oracle.jdbc.driver.OracleDriver


  driverName
  jdbc:oracle:thin:@192.168.2.60:1521:mhsdev1

  
  
  

  user
  *


  xactnet
  *


  driverClassName
  oracle.jdbc.driver.OracleDriver


  driverName
  jdbc:oracle:thin:@10.168.1.199:1521:xnt1

  
 
 



  



/* Modified from HelloWorldExample
 *
 */

import java.io.*;
import java.text.*;
import java.util.*;
import javax.naming.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.sql.DataSource;
import java.sql.*;


public class TestOracle extends HttpServlet {


public void doGet(HttpServletRequest request,
  HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType("text/html");
PrintWriter out = response.getWriter();

out.println("");
out.println("");
out.println("Test Oracle Connection");
out.println("");
out.println("");
out.println("");

// note that all links are created to be relative. this
// ensures that we can move the web application that this
// servlet belongs to to a different place in the url
// tree and not have any harmful side effects.

// XXX
// making these absolute till we work out the
// addition of a PathInfo issue
try
{
InitialContext ic = new InitialContext();
if (ic == null) {
out.println("ic == null");
}
DataSource ds = (DataSource)ic.lookup("java:comp/env/Oracle");
if (ds == null) {
out.println("ds == null");
}
Connection conn = ds.getConnection();
if (conn == null) {
out.println("conn == null");
}
Statement stmt = conn.createStatement();

ResultSet rset = stmt.executeQuery("select * from configuration");
out.println("");
while (rset.next())
{
out.println("" + rset.getString(1) + "" +
rset.getString(2)+"");
}
out.println("");
rset.close();
stmt.close();
conn.close();
}
catch (Exception ex)
{
out.println("");
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
PrintStream exOut = new PrintStream(bytes);
System.setErr(exOut);
ex.printStackTrace();
out.println(bytes.toString());
exOut.close();
out.println("");
}
out.println("");
out.println("");
out.println("");
out.println("");
}
}



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For 

RE: Help needed with package access

2002-01-07 Thread Martin van den Bemt

try using javac -cp . Good thing is also to read
something on how java works, since this is MUST know if you even want to
start thinking about java..


Mvgr,
Martin

-Original Message-
From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 07, 2002 17:15
To: [EMAIL PROTECTED]
Subject: Help needed with package access


I am using tomcat and i am unable to compile my servlet classes when i try
to make an instance of a class that i have created which lies in the same
folder as my servlet, ie WEB-INF/classes.  A error occurs telling me that it
cannot resolve the class.

The only way around this is to put these classes i need in the jre/classes
folder of my java home directory.

Does anybody know a way around this problem so that my servlets can 'see' my
java classes in the classes folder, or below.

Thanks  Glen


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: startup.sh not recognized

2001-12-28 Thread Martin van den Bemt

chmod +x startup.sh to make the file excecutable..

Mvgr,
martin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
Burke
Sent: Friday, December 28, 2001 01:08
To: [EMAIL PROTECTED]
Subject: startup.sh not recognized


When I try to run startup.sh I get a "no such file or directory"
message. I've tried to run it as root and user with the same result. I
try to start it as ./startup.sh in jakarta/bin directory (where it's
located). Any suggestions would be greatly appreciated.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Please Help

2001-12-24 Thread Martin van den Bemt

I don't think these question are ending up in the appropiate place..
Please check out http://www.linux.org/docs/index.html for more information
about linux.

Mvgr,
Martin

-Original Message-
From: Designing Department [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 09:51
To: Tomcat Users List
Subject: Re: Please Help


Thanks ! It worked

But now I want to 'cp httpsdctl apache-tomcat' while creating apache-tomcat
in
$APACHE_HOME/bin but get an error cp: cannot stat `httpsdctl': No such file
or directory

I am new.



Nikola Milutinovic wrote:

> > Hello All,
> >
> > I want to create new user and group "tomcat" for apache-tomcat. Can
> > anyone help me. How can I create new user and group on Linux
>
> Your Linux administrator should do it. If you are the "fresh admin", then
"adduser" or "useradd" is the command. Also, most Linux distributions today
have GUI tools for that.
>
> Nix.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Dynamic Servlet Loading

2001-12-14 Thread Martin van den Bemt

I don't have a single servlet in the web.xml, so tomcat can handle them
automatically. If there is no use for it : don't use it ;)) Saves a lot of
maintainance.. So only put things in the web.xml that should be there (you
have to check the servlet spec for that to see the options).

Mvgr,
Martin

-Original Message-
From: Krishnamurthy, Ramanathan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 14:32
To: 'Tomcat Users List'
Subject: Dynamic Servlet Loading


Hi,

I am new to Tomcat/Servlets.

As I understand the servlet registration happens at startup time when the
web.xml file is read.

Is there some way to make the Tomcat re-read the web.xml file OR does Tomcat
provide APIs to register servlet dynamically ?

Thank you for your help,

Regards,
ram

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: somebody trying hack me, what they really wanted?

2001-12-13 Thread Martin van den Bemt

There are scripts out there which do exactly what you want.. They will not
even hit the webserver and those ip addresses will get locked out..
http://www.adsl4linux.nl (it's a dutch site I'm sorry..)

Mvgr,
Martin

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 21:38
To: 'Tomcat Users List'
Subject: RE: somebody trying hack me, what they really wanted?


HA! your funny!  FBI stop building your Magic Lantern and come find the poor
sap that is trying to hack my free software nothing invested but time server
sitting in my broadband closet!
Ya Right!

-Original Message-
From: Dr. Evil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: somebody trying hack me, what they really wanted?



I get those all the time.  I wish I could put a sign on my computer
that says, "You're wasting your time.  This machine is running
Tomcat/Linux.  Find someone running Windows".  On a more serious note,
this is a computer hacking attack, and it comes accross state lines.
Could I get the FBI to investigate these things?  I'm sure this is a
Federal crime.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Please Help : need to restart tomcat to use new servlet

2001-12-11 Thread Martin van den Bemt

Reloading is not really good in 3.2.3. For good reloading you have to use
tomcat 3.3 and set reloadable to true in your webapp.

Mvgr,
Martin

> -Original Message-
> From: Mike [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 11, 2001 10:05 AM
> To: Tomcat Users List
> Subject: Please Help : need to restart tomcat to use new servlet
>
>
> I would like to know how to use Tomcat 3.2.3 to deploy new servlets.
>
> Each time I modify one servlet, I need to restart Tomcat. If I didn't
> restart Tomcat
> it seems that the JVM keeps in memory the servlet.
>
> If I empty Netscape or IE cache (without restarting Tomcat), the
> old servlet
> is used.
>
> Thanks in advance.
> Mike
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: is it possible to make tomcat as an apache module?

2001-12-07 Thread Martin van den Bemt

I could find this in the online cvs tree of java-jserv :

http://cvs.apache.org/viewcvs/~checkout~/java-jserv/docs/install/howto.unix_
install.html?rev=1.9&content-type=text/html

(clicking the link should give you an html file containing info about how to
build everything..)

Mvgr,
Martin

> -Original Message-
> From: louie miranda [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 08, 2001 4:59 AM
> To: Tomcat Users List
> Subject: Re: is it possible to make tomcat as an apache module?
>
>
> ty, but i cant use mod_jk, since i will include apache_jserv.
> i have read a document, i just can't remember where i found it.
> correct me if im wrong sir, ty.
>
>
> is their a doc or something?
>
>
>
>
> - Original Message -
> From: "Martin van den Bemt" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, December 08, 2001 11:46 AM
> Subject: RE: is it possible to make tomcat as an apache module?
>
>
> > Advise is to use mod_jk though.
> > To build on solaris here is a little hint (also don't forget to read the
> > README for solaris!!!):
> >
> > (replace /usr/local/tomcat with your TOMCAT_HOME and replace
> > /usr/local/apache with your APACHE_HOME..
> >
> > cd to
> > /usr/local/tomcat/native/mod_jk/apache1.3
> > If this file is not executable do chmod +x build-solaris.sh
> > vi build-solaris.sh
> > change the APACHE_HOME and JAVA_HOME lines to the correct directory
> > structure.
> >
> > Since we need DEAPI to build mod_jk, we also have to change the
> line after
> > the line
> > echo Building mod_jk
> > $APXS 
> > Add -DEAPI as the first parameter. If you don't have a DEAPI apache
> install,
> > leave this one out.
> >
> > If your ld is not in your path , do vi /usr/local/apache/bin/apxs and
> change
> > the ld
> > (the line reading my $CFG_LD_SHLIB = q(ld); to q(/usr/ccs/bin/ld);
> >
> > and now run ./build-solaris.sh
> >
> > It should be build ok ;)
> > (check to see if /usr/local/apache/libexec/mod_jk.so is present).
> >
> > Have fun ;))
> >
> > Mvgr,
> > Martin
> >
> >
> >
> >
> > > -Original Message-
> > > From: louie miranda [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, December 08, 2001 4:32 AM
> > > To: Tomcat Users List
> > > Subject: Re: is it possible to make tomcat as an apache module?
> > >
> > >
> > > mod_jserv / solaris sparc
> > >
> > > - Original Message -
> > > From: "Brian Adams" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Saturday, December 08, 2001 11:15 AM
> > > Subject: RE: is it possible to make tomcat as an apache module?
> > >
> > >
> > > > which module jk, webapp ...?
> > > > what platform?
> > > >
> > > >
> > > > -Original Message-
> > > > From: louie miranda [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, December 07, 2001 9:12 PM
> > > > To: Tomcat Users List
> > > > Subject: is it possible to make tomcat as an apache module?
> > > >
> > > >
> > > > if yes, is there a HOWTO DOC around how to do it?
> > > >
> > > > ty.
> > > >
> > > >
> > > > --
> > > > To unsubscribe:
<mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: is it possible to make tomcat as an apache module?

2001-12-07 Thread Martin van den Bemt

Advise is to use mod_jk though.
To build on solaris here is a little hint (also don't forget to read the
README for solaris!!!):

(replace /usr/local/tomcat with your TOMCAT_HOME and replace
/usr/local/apache with your APACHE_HOME..

cd to
/usr/local/tomcat/native/mod_jk/apache1.3
If this file is not executable do chmod +x build-solaris.sh
vi build-solaris.sh
change the APACHE_HOME and JAVA_HOME lines to the correct directory
structure.

Since we need DEAPI to build mod_jk, we also have to change the line after
the line
echo Building mod_jk
$APXS 
Add -DEAPI as the first parameter. If you don't have a DEAPI apache install,
leave this one out.

If your ld is not in your path , do vi /usr/local/apache/bin/apxs and change
the ld
(the line reading my $CFG_LD_SHLIB = q(ld); to q(/usr/ccs/bin/ld);

and now run ./build-solaris.sh

It should be build ok ;)
(check to see if /usr/local/apache/libexec/mod_jk.so is present).

Have fun ;))

Mvgr,
Martin




> -Original Message-
> From: louie miranda [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 08, 2001 4:32 AM
> To: Tomcat Users List
> Subject: Re: is it possible to make tomcat as an apache module?
>
>
> mod_jserv / solaris sparc
>
> - Original Message -
> From: "Brian Adams" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, December 08, 2001 11:15 AM
> Subject: RE: is it possible to make tomcat as an apache module?
>
>
> > which module jk, webapp ...?
> > what platform?
> >
> >
> > -Original Message-
> > From: louie miranda [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 07, 2001 9:12 PM
> > To: Tomcat Users List
> > Subject: is it possible to make tomcat as an apache module?
> >
> >
> > if yes, is there a HOWTO DOC around how to do it?
> >
> > ty.
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: tomcat 3.3 from RPM w/JDK 1.3.1 is missing Vector

2001-11-29 Thread Martin van den Bemt

try importing java.util.Vector in your jsp page?

Mvgr,
Martin

> -Original Message-
> From: Bang, Steinar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 29, 2001 2:51 PM
> To: 'Tomcat Users List'
> Subject: tomcat 3.3 from RPM w/JDK 1.3.1 is missing Vector
>
>
> Platform: Intel PIII, RedHat linux 7.2,
>   Sun JDK 1.3.1, tomcat 3.3 from jakarta-made RPM
>
> I'm getting exceptions from tomcat not finding the
> Vector class (see below).
>
> Does anyone know if this is because of incompatibilities
> between the javac that tomcat was built with, and
> the java runtime I'm using?
>
> Or are there some JAVA_HOME settings missing from
> tomcat?   I have a JAVA_HOME setting in
>   /var/tomcat/conf/tomcat.conf
> pointing at /usr/java/jdk1.3.1_01.
>
> Hmm... I can't find the string Vector, in any of the
> .jar files of /usr/java/jdk1.3.1_01/lib.  Am I missing
> something?
>
>
> Thanx!
>
>
> - Steinar
>
>
> Stack trace from exception follows:
>
> org.apache.jasper.JasperException: Unable to compile
> /var/spool/tomcat/DEFAULT/tps-sba/epg_view_pace_1.java:53: Class
> Vector not
> found.
>  Vector channelList =
> (Vector)session.getAttribute("channel list");
>  ^
> /var/spool/tomcat/DEFAULT/tps-sba/epg_view_pace_1.java:53: Class
> Vector not
> found.
>  Vector channelList =
> (Vector)session.getAttribute("channel list");
>^
> 2 errors at
> org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java)
> at
> org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java)
> at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java)
> at
> org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java)
> at
> org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDi
> spatcherIm
> pl.java)
> at
> org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDisp
> atcherImpl
> .java)
> at
> org.apache.struts.action.ActionServlet.processActionForward(Action
> Servlet.ja
> va:1758)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
> at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java)
> at org.apache.tomcat.core.Handler.invoke(Handler.java)
> at org.apache.tomcat.core.Handler.service(Handler.java)
> at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
> at
> org.apache.tomcat.modules.server.Ajp13Interceptor.processConnectio
> n(Ajp13Int
> erceptor.java)
> at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thre
> adPool.jav
> a)
> at java.lang.Thread.run(Thread.java:484)
> This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
> TANDBERG Television. If received in error please notify the sender and
> destroy the original message and attachments.
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.3 Startup

2001-11-16 Thread Martin van den Bemt

Why are you using a classpath? Tomcat handles that for you completely.
You shouldn't have any problems if the jar is added to the webapp lib..
(btw I believ you have to rename the zip to jar files so tomcat can read
them).


Mvgr,
Martin

> -Original Message-
> From: Douglas Brendle [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 2001 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.3 Startup
>
>
> I've been working with and using Tomcat3.3 for two weeks and it
> has been running fine.
> Yesterday, I added a new .jar file to my classpath and all of a
> sudden Tomcat stopped
> running. I started Tomcat with the run attribute so it would
> start in the same window
> and this is the stack trace I receieved:
>
> EmbededTomcat: exception initializing ContextManager
>   java.lang.NoClassDefFoundError:
> javax/xml/parsers/SAXParserFactory
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>
> And as you can see, the crimson.jar file is in my classpath.
>
> classpath=c:\Oracle\Ora81\orb\classes\yoj.jar;c:\Oracle\Ora81\orb\
> classes\share.zip;
> d:\tomcat3.3\jakarta\lib\container\xalan.jar;d:\tomcat3.3\jakarta\
> lib\common\tomcat_core.jar;
> d:\tomcat3.3\jakarta\lib\common\servlet.jar;d:\tomcat3.3\jakarta\l
> ib\common\jasper-runtime.jar;
> d:\tomcat3.3\jakarta\lib\container\jasper.jar;d:\tomcat3.3\jakarta
> \webapps\examples\web-inf\classes;
> d:\tomcat3.3\jakarta\lib\common\cos.jar;d:\tomcat3.3\jakarta\lib\c
> ontainer\crimson.jar
>
> Anyone know what is going on?
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Wrap an HttpServletRequest

2001-11-14 Thread Martin van den Bemt

Pas the request object to that servlet eg
BlahServlet servlet = new BlahServlet();
servlet.execute(req, resp);

Mvgr,
Martin

> -Original Message-
> From: Diego del Río [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 14, 2001 2:02 PM
> To: [EMAIL PROTECTED]
> Subject: Wrap an HttpServletRequest
>
>
> Is there any way to wrap an HttpServletRequest in Tomcat 3.2.x and then
> forward the wrapped request to anoher servlet?
> We need a 'decorated request' with added functionality, more precisely, we
> need to add 'extra-parameters' to that request and then forward it to
> another servlet that process both the original and the added parameters.
> Thanks,
> diego
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Got him...

2001-11-13 Thread Martin van den Bemt

nice job ;))
Why don't you put the subcriber email address in by default (in the text
footer of the mail or something).. Saves you working late ;))

Mvgr,
Martin

> -Original Message-
> From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 14, 2001 1:43 AM
> To: Tomcat Users List
> Subject: Got him...
>
>
> Since most of you complained, just to let you know that I found him...
> <[EMAIL PROTECTED]>
>
> Pier :)
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.2.3 and MS Access.

2001-11-13 Thread Martin van den Bemt

Best to check msn or technet on microsoft.com for this.. It seems like a
plain odbc error (too bad no errorcode is supplied), so something is
misconfigured for the user who runs tomcat as a service. If you search on
those things you probably end up with an answer..

Mvgr,
Martin

> -Original Message-
> From: Slava [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 14, 2001 12:04 AM
> To: Tomcat Users List
> Subject: RE: Tomcat 3.2.3 and MS Access.
>
>
> Thanks for reply.
> I change datasource from user to system but it doesn't work anyway.
> Same error message.
> Maybe something else?
> Any help welcome.
> Thanks.
>
>
> --- Martin van den Bemt <[EMAIL PROTECTED]> wrote:
> > As I remember from way back : datasources can be created a
> number of ways :
> > yours ir probably a user datasource and you need a system
> datasource (which
> > is as it says, known system wide). If you start tomcat.bat it
> will run as
> > you, if it starts as a service, it will start as whatever you
> defined, but I
> > guess it is not you ;))
> > You can get more feedback on this on a MS mailinglist..
> >
> > Mvgr,
> > Martin
> >
> > > -Original Message-
> > > From: Slava [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, November 13, 2001 11:37 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Tomcat 3.2.3 and MS Access.
> > >
> > >
> > > Hello,
> > > I'm accessing data base from login page.
> > > When I starting Tomcat from startup.but everything working fine.
> > > If I starting Tomcat from the Services I'm getting:
> > >
> > > See com.borland.dx.dataset.DataSetException error code:  BASE+66
> > > com.borland.dx.dataset.DataSetException: [Microsoft][ODBC Driver
> > > Manager] Data source name not
> > > found and no default driver specified
> > >   at com.borland.dx.dataset.DataSetException.a(Unknown Source)
> > >   at
> > > com.borland.dx.dataset.DataSetException.throwException(Unknown Source)
> > >   at
> > > com.borland.dx.dataset.DataSetException.SQLException(Unknown Source)
> > >   at
> > > com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
> > >   at
> > > com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknow
> > > n Source)
> > >   at com.borland.dx.sql.dataset.o.a(Unknown Source)
> > >   at com.borland.dx.sql.dataset.o.d(Unknown Source)
> > >   at com.borland.dx.sql.dataset.o.e(Unknown Source)
> > >   at com.borland.dx.sql.dataset.QueryProvider.h(Unknown Source)
> > >   at
> > > com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
> > >   at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
> > >   at com.borland.dx.dataset.DataSet.a(Unknown Source)
> > >   at com.borland.dx.dataset.DataSet.open(Unknown Source)
> > >   at payroll.HeaderServlet.doPost(HeaderServlet.java:90)
> > >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > >   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >   at
> > >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > >   at org.apache.tomcat.core.Handler.service(Handler.java:287)
> > >   at
> > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > >   at
> > > org.apache.tomcat.core.ContextManager.internalService(ContextManag
> > > er.java:812)
> > >   at
> > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> > >   at
> > > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process
> > > Connection(Ajp12ConnectionHandler.java:166)
> > >   at
> > >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > >   at
> > >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > >   at java.lang.Thread.run(Thread.java:484)
> > >
> > > But Data Source Name is correct.
> > > Maybe I miss some setting?
> > > Can somebody help me?
> > > Thanks.
> > >
> > > __
> > > Do You Yahoo!?
> > > Find the one for you at Yahoo! Personals
> > > http://personals.yahoo.com
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
>
>
> __
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Where to put .properties so web app finds it

2001-11-13 Thread Martin van den Bemt

We use our own configuration structure per server / host / virtual host. Se
maybe the home of that could be used for that. (more speciic : there are
only classes in our webapp, the rest (= about a 3000 files) our oustside the
webapp.. (excluding transactions).

Mvgr,
Martin

> -Original Message-
> From: MacDonald, Todd [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 14, 2001 12:00 AM
> To: Tomcat-User (E-mail)
> Subject: Where to put .properties so web app finds it
>
>
> I've got a .properties file for settings in the web app that might be
> configured differently depending on which server the .war might
> be dropped.
>
> It obviously doesn't belong in the .war itself.  Where is the recommended
> place to put such configuration files in Tomcat 4 so that the app
> will find
> it?
>
> I'm trying hard not to modify the default configuration of T4 much until I
> know more about it.
>
> -T
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 3.2.3 and MS Access.

2001-11-13 Thread Martin van den Bemt

As I remember from way back : datasources can be created a number of ways :
yours ir probably a user datasource and you need a system datasource (which
is as it says, known system wide). If you start tomcat.bat it will run as
you, if it starts as a service, it will start as whatever you defined, but I
guess it is not you ;))
You can get more feedback on this on a MS mailinglist..

Mvgr,
Martin

> -Original Message-
> From: Slava [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 11:37 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.2.3 and MS Access.
>
>
> Hello,
> I'm accessing data base from login page.
> When I starting Tomcat from startup.but everything working fine.
> If I starting Tomcat from the Services I'm getting:
>
> See com.borland.dx.dataset.DataSetException error code:  BASE+66
> com.borland.dx.dataset.DataSetException: [Microsoft][ODBC Driver
> Manager] Data source name not
> found and no default driver specified
>   at com.borland.dx.dataset.DataSetException.a(Unknown Source)
>   at
> com.borland.dx.dataset.DataSetException.throwException(Unknown Source)
>   at
> com.borland.dx.dataset.DataSetException.SQLException(Unknown Source)
>   at
> com.borland.dx.sql.dataset.Database.openConnection(Unknown Source)
>   at
> com.borland.dx.sql.dataset.Database.createPreparedStatement(Unknow
> n Source)
>   at com.borland.dx.sql.dataset.o.a(Unknown Source)
>   at com.borland.dx.sql.dataset.o.d(Unknown Source)
>   at com.borland.dx.sql.dataset.o.e(Unknown Source)
>   at com.borland.dx.sql.dataset.QueryProvider.h(Unknown Source)
>   at
> com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
>   at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
>   at com.borland.dx.dataset.DataSet.a(Unknown Source)
>   at com.borland.dx.dataset.DataSet.open(Unknown Source)
>   at payroll.HeaderServlet.doPost(HeaderServlet.java:90)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>   at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:812)
>   at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process
> Connection(Ajp12ConnectionHandler.java:166)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
>   at java.lang.Thread.run(Thread.java:484)
>
> But Data Source Name is correct.
> Maybe I miss some setting?
> Can somebody help me?
> Thanks.
>
> __
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: UnknownHostException thrown from SmtpClient

2001-11-13 Thread Martin van den Bemt

See below..

> On Tue, 13 Nov 2001, Martin van den Bemt wrote:
>
> > Date: Tue, 13 Nov 2001 22:49:12 +0100
> > From: Martin van den Bemt <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: RE: UnknownHostException thrown from SmtpClient
> >
> > I like the idea of a queue which holds the mails and tries
> until it works
> > (didn't have time to do that myself, just catching everything and not
> > throwing any exceptions, just logging to a mail log file if it doesn't
> > succeed).
>
> That's exactly what your local SMTP server (sendmail or whatever) does for
> you.  Why reinvent the wheel?
>

Sendmail is good at bouncing mails, and we need to know about that. Since
the return address is always someone external to our company (and don't even
know about) we need to handle bounces and retry again (sending it directly
btw). If after some time the mail still bounces, we need to be informed and
take appropiate action (which sendmail or qmail cannot handle, or I don't
like them to handle that..).

Mvgr,
Martin


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: UnknownHostException thrown from SmtpClient

2001-11-13 Thread Martin van den Bemt

I like the idea of a queue which holds the mails and tries until it works
(didn't have time to do that myself, just catching everything and not
throwing any exceptions, just logging to a mail log file if it doesn't
succeed).
So it depends on your time you can invest in it I guess..
I read somewhere that tomcat 4 has build in support for javamail and offers
services to send mail via javamail. I think searching on javamail on the
online backups of mailinglist backup might turn up some info. (eg
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2)

Have fun remodeling ;))

Mvgr,
Martin


> -Original Message-
> From: felix [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 10:43 PM
> To: Tomcat Users List
> Subject: Re: UnknownHostException thrown from SmtpClient
>
>
>
> Thanks, I think that's what needs to be done anyway.
>
> on a related topic,
> I've been trying to figure out if JavaMail threads / forks when it sends.
>
> Or if its worth writing an Emailer (implements Runnable) that would just
> take care of its business and let tomcat go on its merrry way.
>
> the user doesn't need to know what we are emailing or if it succeeds.
>
> anybody have any thoughts on that ?  extra thread overhead ? waste of my
> time ?
>
>
> > From: "Martin van den Bemt" <[EMAIL PROTECTED]>
> > Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Date: Tue, 13 Nov 2001 22:21:23 +0100
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Subject: RE: UnknownHostException thrown from SmtpClient
> >
> > Use JavaMail instead.. The SmtpClient (at least if that is the one in
> > com.sun or sun.) is as far as I know not even supported..
> > Never had any problems with that, unless the jvm couldn't find
> a host in the
> > first place, it tends to never find it again.
> >
> > Mvgr,
> > Martin
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: UnknownHostException thrown from SmtpClient

2001-11-13 Thread Martin van den Bemt

Use JavaMail instead.. The SmtpClient (at least if that is the one in
com.sun or sun.) is as far as I know not even supported..
Never had any problems with that, unless the jvm couldn't find a host in the
first place, it tends to never find it again.

Mvgr,
Martin

> -Original Message-
> From: felix [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 10:14 PM
> To: Tomcat Users List
> Subject: UnknownHostException thrown from SmtpClient
>
>
>
>
> Migrating some old code that uses the sun SmtpClient to a new server.
>
> the SmtpClient throws an UnknownHostException, I'm using the i.p.
> address of
> the mail server, which is actually on the same box.
>
> i tried 127.0.0.1 and localhost and the named host (but not yet dns
> transferred).
>
> all the same exception.  the mailserver (exim) is not even being
> contacted.
>
> i'm thinking its tomcat or jvm not knowing a dns host yet ?
>
> clues anyone ?
>
> I found one person relating the same thing:
>
> they moved stuff from one tomcat(nt) to tomcat(linux) using the same smtp
> server and it no longer worked. couldn't find the server.
>
>
> thanks!
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: cannot execute binary file

2001-11-13 Thread Martin van den Bemt

You don't have sufficient rights on the file
It probabably only has read access , so do a chmod 555 or something like
that (don't know your system, so you have to figure that out..)

Mvgr,
Martin

> -Original Message-
> From: Noble Long [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 9:42 PM
> To: [EMAIL PROTECTED]
> Subject: cannot execute binary file
>
>
> I am using the Oracle jdbc thin client in my application. I added
> it to my classpath /usr/local/classes12.zip , but when I start
> Tomcat I am getting -
>
> bin/tomcat.sh: /usr/local/classes12.zip: cannot execute binary file
>
> I tried other jar, files, etc. and everyone I transefered either
> in binary mode or ascii via FTP, XMODEM or ZMODEM gives me the
> same message.
>
> Is my file being corrupted between windows and linux. I am
> working with a remote telnet session so I can't exactly download
> from Oracle's website to that machine. Funny thing is ... I have
> the same Red Hat 6.2 environment here except I'm using tomcat
> 3.2.3 instead of 3.2.1 (would it make a difference?)
>
> Noble
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [servlets] Error when wrapping a response object

2001-11-13 Thread Martin van den Bemt

Close the writer you have opened to write to the html stream should (if I'm
not mistaking) make this work.

Mvgr,
Martin

> -Original Message-
> From: Jay Wright [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 8:09 PM
> To: '[EMAIL PROTECTED]'
> Subject: FW: [servlets] Error when wrapping a response object
>
>
>
> Has anyone using Tomcat seen a problem like this?  In short, I am
> wrapping a
> response object so I can write the HTML to a file.  Then, I would like to
> use the ReqeustDispatcher to forward the response or at the very least use
> the response objects sendRedirect to go to the next page.
>
> With Resin, this works fine.  In Tomcat, I get an error which
> wont allow me
> to do either becuase the response object is "committed."  The
> attached email
> explains further.
>
> Any one seen this before?
>
> Jay
>
> -Original Message-
> From: Jay Wright [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 02, 2001 10:36 AM
> To: Servlets
> Subject: [servlets] Error when wrapping a response object
>
>
>
> Hi all,
>
> I am getting a servlet error which has something to do with a wrapped
> response object.
>
> With Resin, I have created a servlet that wraps a response object for the
> purpose of writing the response's html to a file.  This complete
> successfully, then the RequestDispatcher forwards the request to a jsp,
> which in effect displays a thank you page.  It works wonderfully.
>
> When I deploy the same application to Tomcat, I get the following error:
>
> java.lang.IllegalStateException: Cannot forward after response has been
> committed
> at
> org.apache.catalina.core.ApplicationDispatcher.doForward(Unknown
> Source)
> at org.apache.catalina.core.ApplicationDispatcher.forward(Unknown
> Source)
> at atonce.mas.web.MainServlet.doGet(MainServlet.java:88)
>
> Apparently the two servlet containers handle this differently.  As curious
> as this is, I'm more concerned with getting the tomcat version
> working.  Is
> there anything I can do to "uncommit" the response?  I assume
> not.  I could
> use a sendRedirect, but would prefer to stick with the RequestDispatchers
> forward method to be consistent and standard with my servlet model.
>
> Any ideas?
>
> Thanks,
> Jay
>
> ---
> SIGS Conference for Java Development
> Targeted, focused classes, expertise level classes
> taught by Java gurus, rigorous tutorials, and
> exhibit floor makes SIGS Conference for Java
> Development a learning experience unlike any
> other. Join over 10,000 developers and programmers
> from across the U.S. and around the world who
> have benefited from attending SIGS/101 Conferences.
> http://www.javadevcon.com
> ---
> You are currently subscribed to servlets as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: cryptography - slow starting????

2001-11-13 Thread Martin van den Bemt

It think that tomcat is slow on first use. It's a ranodimizer of some sort,
that get's initialized when first calling a servlet.

Mvgr,
Martin

> -Original Message-
> From: Gerry Duhig [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 7:03 PM
> To: [EMAIL PROTECTED]
> Subject: cryptography - slow starting
>
>
> Hi!
>
> I have successfully built a servlet that uses JCE to encrypt data
> and deployed it under JBoss Tomcat 2.4.1-3.2.2.
>
> The very first access is VERY slow as the cryptography classes do
> some sort of initialisation. I don't know what.
>
> Subsequent actions seem very quick.
>
> Is this to be expected? Can I speed it up? Can I get this
> initialisation to take place at start-up before a user accesses
> the servlet?
>
> Gerry
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-13 Thread Martin van den Bemt

Thanx for the valuable info!

Mvgr,
Martin

> -Original Message-
> From: David Hamilton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 6:09 PM
> To: Tomcat Users List
> Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies
> session on open new window
>
>
> P3P = Platform for Privacy Preferences
> W3C spec for what sites do with your personal info.
>
> IIRC, default option for IE6 will not accept cookies (other that session
> scope ones) if a site does not have a P3P descriptor on your site.
> Obviously this can be changed, but since most IE users never get round to
> changing the default preferences...
>
> More info on setting your site to be P3P compliant:
> http://www.w3.org/P3P/usep3p.html
>
> HTH
>     david
>
> - Original Message -
> From: "Martin van den Bemt" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 13, 2001 4:42 PM
> Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
> nullifies session
> on open new window
>
>
> > I don't know what p3p is ... Enlighten me ;))
> >
> >
> > Mvgr,
> > Martin
> >
> > > -Original Message-
> > > From: David Hamilton [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, November 13, 2001 5:45 PM
> > > To: Tomcat Users List
> > > Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies
> > > session on open new window
> > >
> > >
> > > Would that be a P3P issue?
> > >
> > > If so, you need to define P3P policy descriptors on your site...
> > >
> > > david
> > >
> > >
> > > - Original Message -
> > > From: "Martin van den Bemt" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, November 13, 2001 3:54 PM
> > > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
> > > nullifies session
> > > on open new window
> > >
> > >
> > > > It seems that ie 6 isn't accepting cookies by default (collegue
> > > of mine is
> > > > also using ie 6 and had the same problem, even in 1
> window). He set a
> > > > certain option and everything was working again.  Can you
> confirm that
> > > that
> > > > is the default, else everyone must start using url rewriting to keep
> ie6
> > > > users happy
> > > >
> > > > Mvgr,
> > > > Martin
> > > >
> > > > > -Original Message-
> > > > > From: Jim Urban [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, November 13, 2001 4:21 PM
> > > > > To: Tomcat Users List
> > > > > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
> nullifies
> > > > > session on open new window
> > > > >
> > > > >
> > > > > Our application does the same thing (openning child browser
> > > windows and
> > > > > closing them) and we have no problems with IE 5.5.  We have not
> tried
> > > I.E.
> > > > > 6.0 yet, so I can't comment on that.  We are running Tomcat 4.0 on
> Win
> > > NT
> > > > > and 2K.
> > > > >
> > > > > Jim
> > > > >
> > > > > -Original Message-
> > > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, November 13, 2001 9:01 AM
> > > > > To: Tomcat Users List
> > > > > Subject: REPOST: NEED HELP URGENT:: internet explorer
> > > nullifies session
> > > > > on open new window
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, 13 November 2001 6:41 PM
> > > > > To: Tomcat Users List
> > > > > Subject: internet explorer nullifies session on open new window
> > > > >
> > > > > The application we are coding requires a new window to be opened.
> This
> > > new
> > > > > window may just contain a JavaScript calendar or a JSP page
> > > > > (dispatched by a
> > > > > servlet).
> > > > >
> > > > > We have been using Internet Explorer 5 till recently to run the
> > > > > application
&

RE: Quick clarification

2001-11-13 Thread Martin van den Bemt

You still have to do some work to actually have to 2 talking to eachother eg
install mod_webapp, or ajp module for apache, update the config files for
apache). It just states that tomcat is ready and waiting for apache (which
is I presume the default in the installation of tomcat). There is some
documentation regarding this in the installation and is well discussed here
on the mailinglists.

Mvgr,
Martin

> -Original Message-
> From: Paul Pattison [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: Quick clarification
>
>
> I'm a little confused and was hoping someone could clear something up for
> me.  I've recently downloaded Tomcat 4.0.1.  I've been using it
> non-stop for
> the last couple weeks and I love it.
>
> My confusion lies in the fact that I thought that Tomcat was
> built on top of
> the Apache web server and that when I did the Tomcat 4.0.1 install (which
> was extremely easy), that I had also installed Apache as my web
> server.  But
> from reading recent posts to this mailing list, it sounds as though I am
> just running Tomcat's web server?  Is this true?  Should I do a separate
> Apache install?
>
> If it helps, below is what is output when I start up Tomcat:
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.1
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.1
>
> Thanks,
>
> Paul
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-13 Thread Martin van den Bemt

I don't know what p3p is ... Enlighten me ;))


Mvgr,
Martin

> -Original Message-
> From: David Hamilton [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 5:45 PM
> To: Tomcat Users List
> Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies
> session on open new window
>
>
> Would that be a P3P issue?
>
> If so, you need to define P3P policy descriptors on your site...
>
> david
>
>
> - Original Message -
> From: "Martin van den Bemt" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 13, 2001 3:54 PM
> Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
> nullifies session
> on open new window
>
>
> > It seems that ie 6 isn't accepting cookies by default (collegue
> of mine is
> > also using ie 6 and had the same problem, even in 1 window). He set a
> > certain option and everything was working again.  Can you confirm that
> that
> > is the default, else everyone must start using url rewriting to keep ie6
> > users happy
> >
> > Mvgr,
> > Martin
> >
> > > -Original Message-
> > > From: Jim Urban [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, November 13, 2001 4:21 PM
> > > To: Tomcat Users List
> > > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
> > > session on open new window
> > >
> > >
> > > Our application does the same thing (openning child browser
> windows and
> > > closing them) and we have no problems with IE 5.5.  We have not tried
> I.E.
> > > 6.0 yet, so I can't comment on that.  We are running Tomcat 4.0 on Win
> NT
> > > and 2K.
> > >
> > > Jim
> > >
> > > -Original Message-
> > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, November 13, 2001 9:01 AM
> > > To: Tomcat Users List
> > > Subject: REPOST: NEED HELP URGENT:: internet explorer
> nullifies session
> > > on open new window
> > >
> > >
> > >
> > >
> > > -Original Message-
> > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, 13 November 2001 6:41 PM
> > > To: Tomcat Users List
> > > Subject: internet explorer nullifies session on open new window
> > >
> > > The application we are coding requires a new window to be opened. This
> new
> > > window may just contain a JavaScript calendar or a JSP page
> > > (dispatched by a
> > > servlet).
> > >
> > > We have been using Internet Explorer 5 till recently to run the
> > > application
> > > and this has been fine. But we recently upgraded to I.E. 5.5
> and 6.0. In
> > > both of the new versions, when a new window is opened and then closed,
> the
> > > session in the original window gets nullified.
> > >
> > > For example, there are places where I need to see a calendar, so
> > > I open this
> > > calendar in a new window, I use the calendar, then I close
> the calendar
> > > window. I then press a button (in the main window) to go to
> > > another page in
> > > my application, where all the session values are now
> displayed as null.
> > > Subsequent system error statements show that the session is
> indeed null.
> > >
> > > I am not sure this is a tomcat problem or a IE problem (probably a IE
> > > problem), but was wondering if anybody has experienced anything
> > > similar and
> > > if they have solved the problem...
> > >
> > > Note: I am using tomcat 4.01
> > >
> > > Thanks much in advance,
> > >
> > >
> > > Amit Kelkar
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >
>
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-13 Thread Martin van den Bemt

It seems that ie 6 isn't accepting cookies by default (collegue of mine is
also using ie 6 and had the same problem, even in 1 window). He set a
certain option and everything was working again.  Can you confirm that that
is the default, else everyone must start using url rewriting to keep ie6
users happy

Mvgr,
Martin

> -Original Message-
> From: Jim Urban [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 4:21 PM
> To: Tomcat Users List
> Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
> session on open new window
>
>
> Our application does the same thing (openning child browser windows and
> closing them) and we have no problems with IE 5.5.  We have not tried I.E.
> 6.0 yet, so I can't comment on that.  We are running Tomcat 4.0 on Win NT
> and 2K.
>
> Jim
>
> -Original Message-
> From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 9:01 AM
> To: Tomcat Users List
> Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session
> on open new window
>
>
>
>
> -Original Message-
> From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 13 November 2001 6:41 PM
> To: Tomcat Users List
> Subject: internet explorer nullifies session on open new window
>
> The application we are coding requires a new window to be opened. This new
> window may just contain a JavaScript calendar or a JSP page
> (dispatched by a
> servlet).
>
> We have been using Internet Explorer 5 till recently to run the
> application
> and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In
> both of the new versions, when a new window is opened and then closed, the
> session in the original window gets nullified.
>
> For example, there are places where I need to see a calendar, so
> I open this
> calendar in a new window, I use the calendar, then I close the calendar
> window. I then press a button (in the main window) to go to
> another page in
> my application, where all the session values are now displayed as null.
> Subsequent system error statements show that the session is indeed null.
>
> I am not sure this is a tomcat problem or a IE problem (probably a IE
> problem), but was wondering if anybody has experienced anything
> similar and
> if they have solved the problem...
>
> Note: I am using tomcat 4.01
>
> Thanks much in advance,
>
>
> Amit Kelkar
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat for Large Team Size

2001-11-13 Thread Martin van den Bemt

We are running tomcat 3.2 for about 20 developers. The reloading is very bad
and remotedebugging is horrible (depending on your development environment
btw). But besides the "downsides" it is working perfectly (we are running
unix btw..)

Mvgr,
Martin

> -Original Message-
> From: Denis Balazuc [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 13, 2001 3:48 PM
> To: Tomcat Users List
> Subject: Re: Tomcat for Large Team Size
>
>
> We use exactly the same environment.
>
> However, we found this approach not very satisfactory, as running
> Tomcat AND
> a Java IDE and other dev tools on the same machine eats up
> resources and our
> weak PCs sometimes slow down to a nearly-unusable state
>
> I am thinking at moving to a centralized Tomcat server with multiple
> instances but, we're using Tomcat 3.2 and this schema is best with Tomcat
> 4...
>
> Regards
> Denis
>
>
> - Original Message -
> From: "Jim Urban" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 13, 2001 08:46 AM
> Subject: RE: Tomcat for Large Team Size
>
>
> > I manage a team 7 server side Java developers.  Each member
> runs a copy of
> > Tomcat on their PC.  Each PC is configured the same.  We have a standard
> > directory structure and use Ant to do our builds.  We use SourceSafe for
> > source management.  Our Ant build.xml uses the VSSGET option of Ant to
> fetch
> > the latest version of each file prior to compiling (the VSSGET will not
> over
> > write a write able file).  We also use VSSGET to fetch all the
> supporting
> > files too (images, HTML, XSL, etc).  All files, including the build.xml
> are
> > maintained in VSS.  We have a team server which also runs Tomcat.  Each
> > night at midnight the build is run on the server and Tomcat is
> restarted.
> > We've been doing this for almost two years with no problems.
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: admin pages.

2001-11-01 Thread Martin van den Bemt

restart tomcat.. ;)) it does not reload the file..
and ehh.. for tomcat 4 it is manager and for tomcat 3 it is tomcat_admin or
tomcat (couldn't get that quite clear, never used it..)

Mvgr,
Martin

> -Original Message-
> From: McDowell, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 5:35 PM
> To: 'Tomcat Users List'
> Subject: RE: admin pages.
>
>
> I said thanks too soon... :(  I tried adding the "admin" role to a user
> in tomcat-users.xml file, but it seems to make no difference... Is there
> a list of predefined "roles" somewhere?
>
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 10:18 AM
> To: Tomcat Users List
> Subject: RE: admin pages.
>
>
> You have to manually add a user to the tomcat-users.xml file,
> which has the
> admin role.
>
> Mvgr,
> Martin
>
> > -Original Message-
> > From: McDowell, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 01, 2001 5:14 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.
> >
> >
> > Everyone,
> >
> > I have a simple question - I've looked in the documentation and
> > can't seem
> > to find it.  I'm in the process of trying to use JBoss and
> Tomcat, and am
> > poking around with Tomcat and wanted to use the admin pages.  Except...
> > I have NO IDEA what the user name and password is...  Any help???
> >
> > mark
> >
> > -Original Message-
> > From: Henrik Schultz [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 01, 2001 10:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.
> >
> >
> > What an excellent timing! I just subscribed to the mailing list
> today, and
> > quickly discovered that the traffic volume is quite high.
> > Wondered if there
> > was a discussion forum instead - and voila! Your mail popped
> up!!! Thanks
> > for a great initiative!
> >
> > Cheers - Henrik
> >
> > --
> > -
> > This message has been posted through the Jakarta Tomcat 4.0 F.A.Q.
> > on line forum, and can be seen at:
> > <http://nagoya.apache.org:8080/jive/thread.jsp?forum=1&thread=3>
> > For more informations about the on-line Jakarta forums, please go to:
> > <http://nagoya.apache.org:8080/jive/>
> > --
> > -
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: admin pages.

2001-11-01 Thread Martin van den Bemt

You have to manually add a user to the tomcat-users.xml file, which has the
admin role.

Mvgr,
Martin

> -Original Message-
> From: McDowell, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 5:14 PM
> To: 'Tomcat Users List'
> Subject: RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.
>
>
> Everyone,
>
> I have a simple question - I've looked in the documentation and
> can't seem
> to find it.  I'm in the process of trying to use JBoss and Tomcat, and am
> poking around with Tomcat and wanted to use the admin pages.  Except...
> I have NO IDEA what the user name and password is...  Any help???
>
> mark
>
> -Original Message-
> From: Henrik Schultz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 01, 2001 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.
>
>
> What an excellent timing! I just subscribed to the mailing list today, and
> quickly discovered that the traffic volume is quite high.
> Wondered if there
> was a discussion forum instead - and voila! Your mail popped up!!! Thanks
> for a great initiative!
>
> Cheers - Henrik
>
> --
> -
> This message has been posted through the Jakarta Tomcat 4.0 F.A.Q.
> on line forum, and can be seen at:
> 
> For more informations about the on-line Jakarta forums, please go to:
> 
> --
> -
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: reload servlet automatically

2001-10-28 Thread Martin van den Bemt

How about upgrading to 3.3, reloading is working there most of the time
(just for servlets, not for supporting classes btw).
In short : 3.3 is a big improvement (also in other ways) to the 3.2 versions
(at least that is my opinion).

Mvgr,
Martin

> -Original Message-
> From: Markus Kramer [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 28, 2001 8:58 AM
> To: [EMAIL PROTECTED]
> Subject: reload servlet automatically
>
>
> hi,
>
> I've a problem reloading my servlets without restarting tomcat.
>docBase="/usr/local/httpd/htdocs/myapp"
>   debug="1"
>   reloadable="true"
>   trusted="true" >
> 
> If i recompile my servlet, tomcat doesn't use the new .class-file.
>
> I have tomcat 3.2.3 running and cannot upgrade to tomcat 4.
>
> thanks,
> Markus
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Why I can't connect - part 2

2001-10-25 Thread Martin van den Bemt

First start tomcat, wait a bit, then start apache. try the url
/webapp-info/ to see if the DEPLOYED is set to true in both cases.
If you start it the other way around or start apache to soon, only the
/webapp-info/ is set the true and the rest is set to false.

Mvgr,
martin

> -Original Message-
> From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 3:51 PM
> To: '[EMAIL PROTECTED]'
> Subject: Why I can't connect - part 2
>
>
> Can someone explain why I can't connect in Windows 2000 with
> Tomcat 4.01 and
> Apache 1.3.22?
> 1.  I am using all binaries, and I put mod_webapp.so and libapp.dll in
> Apache directory Modules.
> 2.  I put this entry in Tomcat server.xml after the EJB entry
>  reloadable="true" />
> 3.  I put this in Apache httpd.conf at the end
> 
>ServerName localhost
>WebAppConnection conn warp localhost:8080
>WebAppDeploy examples conn /examples/
>WebAppDeploy onjava conn /onjava/
>WebAppInfo /webapp-info
>  
> Added following after commented out loadmods
> LoadModule webapp_module modules/mod_webapp.so
> AddModule mod_webapp.c
> 4.  I put my war file in the tomcat webapps directory.
> 5.  I can bring up localhost and localhost:8080 OK.
> 6.  If I type localhost/onjava/, the following entry is in the
> Apache error
> logs: (both Apache and Tomcat are started)
>
> Fri Oct 19 12:41:00 2001] [error] [client 127.0.0.1] File does not exist:
> c:/program files/apache group/apache/htdocs/onjava
> [Fri Oct 19 12:41:44 2001] [error] Connection "conn" cannot connect
> [Fri Oct 19 12:41:44 2001] [error] Cannot open connection "conn"
> [Fri Oct 19 15:21:00 2001] [error] Web-application not yet deployed
> [Fri Oct 19 15:22:08 2001] [error] Web-application not yet deployed
> [Fri Oct 19 15:22:21 2001] [error] Web-application not yet deployed
> [Fri Oct 19 15:24:42 2001] [error] Cannot deploy application examples
> [Fri Oct 19 15:24:42 2001] [error] Cannot deploy application examples
>
> What could I be missing?
>
>
>




RE: Looking for informations Apache/EAPI

2001-10-25 Thread Martin van den Bemt

It is pretty well explained in the building documents of apache.

mvgr,
Martin

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET
> Sent: Wednesday, October 24, 2001 2:40 PM
> To: Tomcat USER
> Subject: Looking for informations Apache/EAPI
> 
> 
> Hi All,
> 
> I looking for informations to compile Apache so that it includes support
> for EAPI.
> 
> Any help welcome.
> 
> Regards
> 
> Jean-Luc ;O<
> 
> 
> 
> 



RE: multipart form data

2001-10-22 Thread Martin van den Bemt

pass the request to the o'reilly stuff and request the objects from there
and you can also get a "new" request object from there servlets which
behaves the way you want..

Mvgr,
Martin

> -Original Message-
> From: Henry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 22, 2001 11:47 PM
> To: [EMAIL PROTECTED]
> Subject: multipart form data
>
>
> In a FORM data that uses POST method, I need to upload a file
> as well as other string data.
>
> according to oreily, forms should be ENCTYPE="multipart/form-data",
> however, when this thing is added, all the inputs in the form
> can not be reached by
> request.getParameter(...)
>
> how can i fix it?
>
>
> below is the html:
>
>   method="POST" action="manager">
> 
> ...
>
> below is the servlet:
>  public void service(HttpServletRequest request,HttpServletResponse
> response)
>   throws ServletException, IOException
> {
>   Enumeration paramNames = request.getParameterNames();
>   while(paramNames.hasMoreElements()) {
>   String paramName = (String)paramNames.nextElement();
>
>




RE: Why won't tomcat run with jre

2001-09-25 Thread Martin van den Bemt

See below..

>
> I tried running tomcat with the jre and it failed. It will work aqainst a
> full install of the jdk. If this is the case then why?

That is correct, tomcat needs tools.jar which is included in the jdk (at
least for compiling jsp pages).

> Does this mean that every machine I install tomcat on needs the
> full jdk?

For jsp's yes, for normal servlets : not sure.. (always using full jdk..)

> If I write a web app and I want to demo it for a customer my setup
> must include
> the jdk and not the jre but according to the license I am not allowed to
> include the jdk with my apps.

You have to talk to sun about this I think ;))

> As anyone figure out how to create a setup for Tomcat.

just make a zip file of a defualt install, or package in an installer your
create. Never did this, since I always build tomcat from source.

Mvgr,
Martin van den Bemt




RE: newbie Servlet

2001-09-25 Thread Martin van den Bemt

You have to use compiled classes.

Mvgr,
Martin

> -Original Message-
> From: Isak Rickyanto [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 23, 2001 3:21 PM
> To: Tomcat User Group
> Subject: newbie Servlet
> 
> 
> Sorry it is newbie..
> 
> I have myservlet.java
> and i place in
> tomcat/webapps/myapp/web-inf/classes
> and i had modified web.xml in web-inf..
> 
> I only want to ask... Is Tomcat not automatically compile it? or I must
> compile the servlet first?
> 
> 
> 



RE: Changing the Servlets Directory

2001-09-20 Thread Martin van den Bemt

You have to have the servlet.jar (or servlet classes) in your classpath when
you compile..

Mvgr,
Martin

> -Original Message-
> From: Ruben [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 20, 2001 9:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Changing the Servlets Directory
>
>
> this is the error when i try to compile a servlet using javac -g servlet
>
> Compiling C:\java\c05\SimpleServlet.java
> Command line: "E:\jdk1.3\bin\javac.exe" -g
> "C:\java\c05\SimpleServlet.java"
> The current directory is: C:\java\c05
> C:\java\c05\SimpleServlet.java:1: package javax.servlet does not exist
> import javax.servlet.*;
> ^
> C:\java\c05\SimpleServlet.java:2: package javax.servlet.http does
> not exist
> import javax.servlet.http.*;
> ^
> C:\java\c05\SimpleServlet.java:3: cannot resolve symbol
> symbol  : class HttpServlet
> location: class SimpleServlet
> public class SimpleServlet extends HttpServlet
>^
> C:\java\c05\SimpleServlet.java:8: cannot resolve symbol
> symbol  : class HttpServletRequest
> location: class SimpleServlet
>
>  _ Do You
> Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com




RE: How download file from servlet?

2001-09-06 Thread Martin van den Bemt

There is already a _response.getWriter() or getOutputStream() before your
code snippet

Mvgr,
Martin

> -Original Message-
> From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 5:44 PM
> To: Tomcat-User@Jakarta. Apache. Org
> Subject: How download file from servlet?
>
>
> HI
>
> I trying make servlet for downloading of files.
> When I use:
> FileInputStream fl=new FileInputStream(dir);
> byte b[]=new byte[4096];
> int len=0;
> ServletOutputStream souts=_response.getOutputStream();
> while(len!=-1){
>   len=fl.read(b);
>   if(len!=-1)souts.write(b,0,len);
> }
> I get:
> E:1933 java.lang.IllegalStateException: Writer is already being used for
> this request
> In this string:
> ServletOutputStream souts=_response.getOutputStream();
>
> Anyway, maybe you know better way how do this thing?
>
> Thanks
> Jenya
>
> ---
> NetZero Platinum
> Only $9.95 per month!
> Sign up in September to win one of 30 Hawaiian Vacations for 2!
> http://my.netzero.net/s/signup?r=platinum&refcd=PT97
>




RE: TRaX Transform Throwable Exception

2001-09-06 Thread Martin van den Bemt

Maybe it's better you ask the creators of the javax.xml package.. or step
through the source (source is provided as far as I know..)

Mvgr,
Martin

> -Original Message-
> From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 4:55 PM
> To: Tomcat-User@Jakarta. Apache. Org
> Subject: TRaX Transform Throwable Exception
>
>
> HI
>
> I have big XML (24 kB) and I try to make transformation to HTML.
> And I get:
> javax.xml.transform.TransformerException: TRaX Transform Throwable
>
> But if XML not so big everything well.
> What this exception means?
>
> Thanks
> Jenya
> ---
> NetZero Platinum
> Only $9.95 per month!
> Sign up in September to win one of 30 Hawaiian Vacations for 2!
> http://my.netzero.net/s/signup?r=platinum&refcd=PT97
>




RE: HANDLER THREAD PROBLEM

2001-09-06 Thread Martin van den Bemt

Your are doing a request to the port that talks to apache and tomcat talk
to.. That is not a protocol like http, it is the ajp protocol.. You have to
do a request to http:// or http://:8080.

Mvgr,
Martin

> -Original Message-
> From: Juan Andres Sanin Pineda [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 5:03 AM
> To: [EMAIL PROTECTED]
> Subject: HANDLER THREAD PROBLEM
>
>
>
> Hi.
>
> I startup tomcat and every thing es ok.
>
> but when I try to access http://:8007
> in the  console view the follow IOException:
>
> HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
> java.io.IOException: Stream broken
> at
> org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRe
> quest(Ajp12ConnectionHandler.java:426)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.process
> Connection(Ajp12ConnectionHandler.java:147)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> at java.lang.Thread.run(Thread.java:484)
>
>
> what happen?
>
> thanks!
>
> Juan
>
>




RE: Content-Length limited to 2^31-1???

2001-08-30 Thread Martin van den Bemt

tomcat 3.2.3 is not http 1.1.. 

Mvgr,
Martin

> -Original Message-
> From: David Daney [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 30, 2001 11:48 PM
> To: [EMAIL PROTECTED]
> Subject: Content-Length limited to 2^31-1???
> 
> 
> The problem I am having is that tomcat 3.2.3 seems to (kind of) limit 
> content length to Integer.MAX_VALUE (2^31-1 or 2GB).
> 
> If I want to serve very large objects things do not work so well.
> 
> I seems that ServletResponse.SetContentLength(int) is the prefered 
> manner to sent the content length of a servlet response and that the 
> default implemtation for the "HEAD" method in HttpServlet also is 
> limited to the range of int values.
> 
> My reading of the HTTP/1.1 spec does not indicate that there are any 
> limitations to content length in the HTTP protocol.
> 
> So my question is:  Am I all messed up, or is Tomcat and the servlet 
> spec/implementation sub-optimal?
> 
> David Daney
> 
> 



RE: charset problem

2001-08-27 Thread Martin van den Bemt

I will send a simple example tonight how to get this solved without too much
hassle..

Mvgr,
Martin

> -Original Message-
> From: yilmaz [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 27, 2001 3:01 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: charset problem
>
>
> hi Giannis
> i had the same problem
> no matter what i did, didn't help.
> at last the ParameterParser.class (which is bundled with oreilly
> package and
> can be downloaded from www.servlets.com) solved my problem.
> First try the straightforward method as below:
> String yourparameter=req.getPrameter("parametername");
> yourparameter=new String(yourparameter.getBytes("ISO-8859-1",
> "ISO-8859-7");
> if it doesn't help,  use the ParameterParser.class  to solve your problem.
> hope it helps
> a guy from your neighbour country (Turkey):)
> - Original Message -
> From: "Giannis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 27, 2001 7:45 PM
> Subject: charset problem
>
>
> > I make some JSP pages on Jacarta tomcat.
> > I have problem with the character set.
> > I use content type ISO-8859-7 but the server doesnt appear the
> characters
> > (it appear ?) even if  I use a META tag or a
> > page directive for the contentType.
> > The problem is especially on request.getParameter when I submit a form.
> > Please help
> >
> >
>
>
>




RE: charset problem

2001-08-27 Thread Martin van den Bemt

The simplest solution is to set you form to encode for UTF-8 and store the
data as UTF-8. This way you can output your greek characters as UTF-8 and
ISO-8859-7.

Mvgr,
Martin

> -Original Message-
> From: Giannis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 27, 2001 1:46 PM
> To: [EMAIL PROTECTED]
> Subject: charset problem
>
>
> I make some JSP pages on Jacarta tomcat.
> I have problem with the character set.
> I use content type ISO-8859-7 but the server doesnt appear the characters
> (it appear ?) even if  I use a META tag or a
> page directive for the contentType.
> The problem is especially on request.getParameter when I submit a form.
> Please help
>
>




RE: Does response.sendRedirect() work in tomcat3.3?

2001-08-23 Thread Martin van den Bemt

About 600 servlets at our site use the redirect (not using jsp's) and it
works great..

mvgr,
Martin

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 23, 2001 9:33 PM
> To: [EMAIL PROTECTED]
> Subject: Does response.sendRedirect() work in tomcat3.3?
>
>
> When using tomcat 3.2.1 with apache, no matter what trick we
> tried, we could
> not get response.sendRedirect() to work properly, the page printed up
> garbage 90% of the time.  Is anyone using response.sendRedirect() in their
> jsp code with 3.3 connected to apache?
>
>




RE: probing tomcat

2001-08-21 Thread Martin van den Bemt

Port 8007 shouldn't be available for that purpose.. It should only accept
connections from the webserver you are running. If you telnet in, you will
get a lot of bad packets and if you use an older version of tomcat, then
tomcat/apache connection will be down when you telnet in..
If you run standalone check to see if there is a reply on port 8080, if you
don't run standalone check to see if if a servlet gives a response.

Mvgr,
Martin

> -Original Message-
> From: Richard Draucker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 21, 2001 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: probing tomcat
>
>
> 1)  Try hitting it on its default port, e.g. 8080
> 2) Try to telnet to it on its ajp port, e.g.  8007
>
> On Tuesday 21 August 2001 08:32 am, you wrote:
> > Hi,
> > does anybody know whether there exists a way to probe from a remote
> > computer whether tomcat is still alive ?
> >
> > Steven
>
>




RE: Problem with page encoding for ISO-8859-2

2001-08-20 Thread Martin van den Bemt


- Is the data in the db stored as ISO-8859-2 ? (looks like it is stored is
8859-1)
- Use UTF-8 to store the data, this way you can use UTF-8 as well as the ISO
content type that corresponds with the data.

If you gonna use utf 8 and run into a lot of MalformedInputExceptions you
can be sure that the data is stored as 8859-1..

Mvgr,
Martin

> -Original Message-
> From: Marcin Jaskuła [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 20, 2001 8:39 PM
> To: Tomcat-User
> Subject: Problem with page encoding for ISO-8859-2
>
>
> Hi,
>
> I have change my JSP server form JServ to Tomcat (v. 3.2.3-1) recently and
> found several problems with page encoding.
> I have looked into the archive and found a lot of mails about the problem
> but no simple solutions.
>
> The problems are:
>
> 1. Compilation problem:
> I wrote some simple jsp page, which consists of some polish character:
>
> <%@ page contentType="text/html; charset=iso-8859-2" %>
> 
> 
> 
> 
> 
> 
> ą
> 
> 
>
> The server crashes with error 500:
>
> Internal Servlet Error:
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
> Found 1 semantic error compiling "_0002fa_0002ejspa_jsp_0.java":
>
> 56. out.write("\n\n\n\n\n\n\n\u00-$\u00)%
> <--\n\n\n");
>
> *** Error: The value of this "String" literal is invalid. Perhaps it
> contains a bad escape sequence?
>
> If I change "ą" to "a" it works !
> In my opinion the characters are translated to the Unicode in wrong way.
>
> 2. I cannot get proper values from the forms. When I use
> request.getParameter() method I get different characters then I write into
> form's fields (returned characters depend on the "page contentType" value
> but always are wrong).
>
> 3. When I try to print some data from a database I get wrong characters in
> the output !
>
>
> The best solution is to turn off all encoding of IO streams and before
> compilation of the jsp page. Maybe somebody has done it already
> or there is
> some other method to solve the problems.
>
> Bye
>   Marcin
>
>
>




RE: https, redirect

2001-08-20 Thread Martin van den Bemt

Got lucky here.. I was assuming tc 3..

Mvgr,
Martin

> -Original Message-
> From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
> R. McClanahan
> Sent: Monday, August 20, 2001 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: RE: https, redirect
>
>
>
>
> On Mon, 20 Aug 2001, Martin van den Bemt wrote:
>
> > I think you have to install the https protocol handler from the jsse
> > pacakage. Documentation is provided with jsse to get it working (I had
> > troubles with the non programming solution, the java.policy
> file, so if you
> > bump in to that, register it in your servlet
> >
>
> The need to do this has (correctly) been posted as a bug in Tomcat 4.  The
> problem is that the implementation of sendRedirect is creating a new
> java.net.URL in order to convert relative URLs to absolute (as required by
> the servlet spec), and this won't work unless there are URLStreamHandlers
> in place for the "https" scheme.
>
> Right now, Martin's workaround will fix the problem.  But we're going to
> change Tomcat 4 before final release so that you don't have to do it.
>
> > Mvgr,
> > Martin
> >
>
> Craig McClanahan
>
>




RE: https, redirect

2001-08-20 Thread Martin van den Bemt

I think you have to install the https protocol handler from the jsse
pacakage. Documentation is provided with jsse to get it working (I had
troubles with the non programming solution, the java.policy file, so if you
bump in to that, register it in your servlet

Mvgr,
Martin

> -Original Message-
> From: Erik Melkersson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 20, 2001 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: https, redirect
>
>
> Hi!
>
> I'm using Apache and tomcat version 4. Apache has ssl turned on and I
> use https.
>
> I'm trying to make a redirect using HttpServletResponse.sendRedirect(...)
>
> When I enter the absolute or relative url to the page it adds only http
> instead of https. This has been discussed before and the only real
> answer I've seen working is to hardcode the full url, like
> HttpServletResponse.sendRedirect("https://server/path/file";)
>
> But that doesnt work for me, I get a java.lang.IllegalArgumentException
>
> When I try to enter something with https.
>
>
> Thankful for any help!
>
> /Erik Melkersson
>
>
> ---
> Erik Melkersson
> [EMAIL PROTECTED]
> http://www.edu.isy.liu.se/~erime844
>
>




RE: tomcat and proxuy cache server problem

2001-08-18 Thread Martin van den Bemt

A problem I had recently that someone forgot to add the FQDN in the apache
configs (ServerName). There only was the hostname.. That confuses proxies
regularly and sometimes even browsers..
So if your servername says www , it should be www.example.com..

Hope this helps.. (cannot help you with loadbalancing issues, since I never
played with it.)

Mvgr,
Martin

> -Original Message-
> From: hatim [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 18, 2001 10:12 PM
> To: [EMAIL PROTECTED]
> Subject: tomcat and proxuy cache server problem
>
>
> Hello ,
> im using the latest release of mod_backhand with apache 1.3.20 and with
> jdk1.3 and tomcat .
>
> Desciption of my architecture :
>
> i have 2 web servers that make the same work , i use mod_backhand for the
> loadbalancing between them .
> and i use workers.properties in the Tomcat configuration to allow
> loadballancing between the two tomcat server .
> i have one dns server using bind who makes Round Robin with 1
> secondes TTL
> for the both entries ( server web 1 and server web 2 )
> they are accessible from the internet under the same name
www.server.com

for ex)

when a client connect for the first time in www.server.com , he is redirect
to server web 1 ( for exemple ) . then a session is created (jsessionid=...
)in this server , and when he makes another GET , he must be redirected to
the same server web where he has a session opened .

when i tried to connect from the internet to www.server.com with a direct
connection , it s work very well  session are always retrieved .
but when i tried to surf on www.server.com using a proxy -cache server
 like
squid ) to access to the internet , i have a problem with a JSP request .
the client isnot redirected to the right server , so he didnt retrive his
session .

and i dont know why ?

Any idea ? thank you from your help !!
do you thing that it is possible to  resolve this problem with installing a
cluster for the 2 server web  ?

Any solution ?

Hatim




RE: Why and How Tomcat before Apache?

2001-08-18 Thread Martin van den Bemt


> -Original Message-
> From: Pier P. Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 18, 2001 3:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Why and How Tomcat before Apache?
>
>
> Martin van den Bemt at [EMAIL PROTECTED] wrote:
>
> >>> down your server or delete your webapp or other data. You don't solve
> >>> that problem with running as a seperate user..
> >>
> >> Tomcats ports are not visible from the outside. Only access is through
> >> apache - ie mod_jk ...
> >
> > do a telnet to your port 8007 or 8009 and you'll see what I mean..
>
> It takes 5 minutes to write an AJP client that hacks into Tomcat.

I guess that only works when the ports are bot blocked by a firewall and eg
the address="127.0.0.1" is not added to the server.xml ?

> We started
> saying this in 1998, when we released Apache JServ 1.0 and I cry
> to see that
> still today people do not think about it... (BTW, in AJP version following
> the original, the authentication mechanism was disabled because of
> performance issues - and because I wasn't there when they "designed"
those)

Not everyone was around by then... And when growing up with MS, not a lot of
people are made aware of security issues, since it has nice ui to let you
handle everything.. (this was sarcasme btw..).. Hope people are alarmed by
the code red thing in IIS though that their systems are far from secure.


> Check out <http://www.apache.org/~stefano/papers/> in the 1998 section.
> (Both of them are quite nice readings, or at least I hope it will  be as
nice as it was writing them)

Didn't read it completely but I read the security section and it's a nice
overview of what can go wrong.. The problem is that not much companies have
the knowledge and willing to pay someone to prevent a lot of stuff from
happening. (how good is eg unix security when you run sendmail?) (I use djb
stuff btw).. Maby a nice security advisory should be made (just a couple of
links for those issues you mentioned in your paper and some extra tips) and
make that document highly noticeable.. You can stop crying (quoting you..)
then and say that everything was done to say to the user : do something
about security.. If they don't do it anyway : too bad for them..

Mvgr,
Martin





RE: Why and How Tomcat before Apache?

2001-08-17 Thread Martin van den Bemt

eh... addition : that is if you didn't change the defaults ;)) Would have
saved me extra firewall entries ;-((

Mvgr,
martin

> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, August 18, 2001 12:27 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Why and How Tomcat before Apache?
>
>
> > > down your server or delete your webapp or other data. You don't solve
> > > that
> > > problem with running as a seperate user..
> >
> > Tomcats ports are not visible from the outside. Only access is through
> > apache - ie mod_jk ...
>
> do a telnet to your port 8007 or 8009 and you'll see what I mean..
>
> Mvgr,
> Martin
>




RE: Why and How Tomcat before Apache?

2001-08-17 Thread Martin van den Bemt

> > down your server or delete your webapp or other data. You don't solve
> > that
> > problem with running as a seperate user..
> 
> Tomcats ports are not visible from the outside. Only access is through 
> apache - ie mod_jk ...

do a telnet to your port 8007 or 8009 and you'll see what I mean.. 

Mvgr,
Martin



RE: Tomcat before Apache

2001-08-17 Thread Martin van den Bemt

If you created the bash script not in vi, but eg adjusted stuff in write and
saved it, you need to fix the lineendings.. (there is a util for that which
was added again on rh7.1, but I forgot the name).. You can test if this is
the problem by moving the script to eg tomcat_old do a vi tomcat and do
something that show up at the screen.. If that works, you know for sure that
your bash file is messed up.. Also a hint : try running it after startup and
see if it works..

Mvgr,
Martin

> -Original Message-
> From: Roberto B. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 5:37 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat before Apache
>
>
> I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6
>
> I want to start automatically Tomcat before Apache.
> I made this things :
>
> 1) I created this script named "tomcat":
>
> #! /bin/sh
> TOMCAT_HOME=/usr/tomcat4b6
> # Test tomcat.sh
>  if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
>  then
> echo "Tomcat not found"
> exit
>  fi
>  case $1 in
>  start)
> # Start service
>  $TOMCAT_HOME/bin/startup.sh
>  echo -ne "Tomcat started \n"
>  ;;
>  stop)
>  $TOMCAT_HOME/bin/shutdown.sh
>  ;;
>  esac
>
> 2) I insert this script in dir /etc/init.d
> 3) chmod u+x tomcat
> 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this
> command (because i have @S91apache):
> ln -s ../init.d/tomcat S90tomcat
>
> 5) I rebooted the system and this is the result:
>
> :
> :
> etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory
> apache started
> :
>
> Why??
>
> Roberto
>
>
>
>




RE: Why and How Tomcat before Apache?

2001-08-17 Thread Martin van den Bemt

yep ;-))

> -Original Message-
> From: Roberto B. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 5:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Why and How Tomcat before Apache?
>
>
> Do I have to insert this script in my rc2.d dir. and link it in init.d ?
>
> R.
>
> - Original Message -
> From: "David Cassidy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 17, 2001 5:06 PM
> Subject: Re: Why and How Tomcat before Apache?
>
>
> > Ah what the hell try this ...
> > ( works for me !)
> >
> >
> > Watch out for the line wraps !
> >
> >
> > - 8< -- snip
> > #!/bin/sh
> >
> > # Init file for Jakarta Tomcat
> > #
> > # chkconfig: 345 98 00
> > # description: Jakarta tomcat daemon
> > #
> > # processname:
> > # config: /usr/local/tomcat/conf/server.xml
> >
> > RETVAL=0
> >
> > TOMCAT_HOME=/usr/local/tomcat
> > export TOMCAT_HOME
> >
> > case "$1" in
> >   start)
> > F=`$0 status`
> > if [ "$?" = "255" ] ; then
> > echo -n "Starting Tomcat : "
> > su - tomcat -c "cd $TOMCAT_HOME/bin;
> > $TOMCAT_HOME/bin/startup.sh > $TOMCAT_HOME/logs/tomcat_stdout.log 2>
> > $TOMCAT_HOME/logs/tomcat_stderr.log"
> > echo "  [ OK ] "
> > else
> > echo "Tomcat is already running"
> > fi
> > echo
> > ;;
> >   stop)
> > F=`$0 status`
> > if [ "$?" = "255" ] ; then
> > echo "Tomcat isn't running"
> > else
> > echo -n "Shutting down Tomcat : "
> > su - tomcat -c "cd $TOMCAT_HOME/bin ;
> > $TOMCAT_HOME/bin/shutdown.sh > $TOMCAT_HOME/logs/tomcat_down_stdout.log
> > 2> $TOMCAT_HOME/logs/tomcat_down_stderr.log"
> > echo "  [ OK ] "
> > fi
> > echo
> > ;;
> >   restart)
> > $0 stop
> > sleep 2
> > $0 start
> > RETVAL=$?
> > ;;
> >   status)
> > S=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | wc -l`
> > E=`expr $S`
> > if [ "$E" = "0" ] ;then
> > echo "Tomcat is stopped"
> > RETVAL=-1
> > else
> > PIDS=`ps auxww | grep org.apache.tomcat.startup.Tomca[t]
> > | awk '{FS=" "}{print $2}'`
> > P=`echo $PIDS`
> > echo "Tomcat ( $P ) is running"
> > RETVAL=0
> > fi
> > ;;
> >   *)
> > echo "Usage: tomcat {start|stop|restart|status}"
> > exit 1
> > esac
> >
> > exit $RETVAL
> >
> > - 8< -- snip
> >
> >
> > David Cassidy wrote:
> > >
> > > unless you want to run your tomcat as root ( Very unwise )
> > > makesure that you use a 'su' command in your
> > > call to tomcat's start script...
> > >
> > > David
> > >
> > > Rui Miguel Seabra wrote:
> > > >
> > > > Just hack apachectl script to launch tomcat just before
> apache, and to
> > > > shut it down right aftwards.
> > > >
> > > > On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote:
> > > > > Ok ! but.. do you know the way to make this in automatic ( with
> > > > scripts at
> > > > > system start ) ??
> > > > >
> > > > > - Original Message -
> > > > > From: "Barnabas Yohannes" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Friday, August 17, 2001 3:39 PM
> > > > > Subject: Re: Why and How Tomcat before Apache?
> > > > >
> > > > >
> > > > > > I cannot answer your "why" question, because, I am not
> one of the
> > > > > developers
> > > > > > of apache or tomcat.  But here is the answer to your "how"
> > > question:
> > > > > >
> > > > > > *To stop and start your tomcat:
> > > > > >
> > > > > > cd /usr/local/tomcat
> > > > > >
> > > > > > bin/shutdown.sh
> > > > > >
> > > > > > bin/startup.sh
> > > > > >
> > > > > > *Exit from tomcat and go to your apache server:
> > > > > >
> > > > > > su
> > > > > >
> > > > > > /usr/local/apache/bin/apachectl restart
> > > > > >
> > > > > > exit
> > > > > >
> > > > > > * Another way of stopping and starting apache:
> > > > > >
> > > > > > bin/apachectl stop
> > > > > > bin/apachectl start
> > > > > >
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Roberto B." <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Friday, August 17, 2001 4:50 AM
> > > > > > Subject: Why and How Tomcat before Apache?
> > > > > >
> > > > > >
> > > > > > > I have a Linux/Debian system.
> > > > > > > I want to use Apache as web-server and Tomcat only
> for JSP file.
> > > > > > >
> > > > > > > Is it true that it is necessary to make start Tomcat before
> > > > Apache?
> > > > > Why?..
> > > > > > > and if it is true.. how??
> > > > > > >
> > > > > > > Thanks!
> > > > > > > Roberto.
> > > > > > >
> > > > > > >
> > > > >
> > > > --
> > > > + No matter how much you do, you never do enough -- unknown
> > > > + Whatever you do will be insignificant,
> > > > 

RE: Why and How Tomcat before Apache?

2001-08-17 Thread Martin van den Bemt

> check out if you can do a rm -rf * from within java...

Yep works cool.. It saves a lot of work if I'm the admin, integrator and
programmer at the same time ;-)), so those things don't slip through (we
have a small team of programmers and all things are tested first.. a nice
form to type in rm -f that also gets invoked will never get through ;-))

> Don't know if you can, don't know how well the JVM will
> protect you but

Nope, if I want to do that, then it must work ;).. (we use all system
options quite heavily, also admin of /etc/passwd etc, so we need access
sometimes..)

> I run mine as a different user.

I you don't block 8007 and 8009 for unautharized access, you will get a lot
of bad packets (at least in 3.3 and ajp13, don't know what happens with
older versions though). Someone eventually could find a bug and exploit and
down your server or delete your webapp or other data. You don't solve that
problem with running as a seperate user..

> Do you run your apache as root ?

Nope as nobody (which is also not completely safe on default installs, since
it also used by some daemons..)


Mvgr,
Martin

> David
>
>
> Martin van den Bemt wrote:
> >
> > Please tell me what is dangerous about running tomcat as root? I've
> > taken
> > the following security measures :
> > port 8007 and 8009 is blocked from the outside (firewall)
> > tomcat is not running on 8080 and only allowing communications from
> > localhost (127.0.0.1).
> > The only potential problem is that if a tomcat /apache bug is exploited,
> > you potentially have a problem.
> >
> > Looks pretty solid to me though..
> >
> > Mvgr,
> > martin
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> > Behalf
> > > Of David Cassidy
> > > Sent: Friday, August 17, 2001 4:54 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Why and How Tomcat before Apache?
> > >
> > >
> > > unless you want to run your tomcat as root ( Very unwise )
> > > makesure that you use a 'su' command in your
> > > call to tomcat's start script...
> > >
> > >
> > >
> > > David
> > >
> > > Rui Miguel Seabra wrote:
> > > >
> > > > Just hack apachectl script to launch tomcat just before apache, and
> > to
> > > > shut it down right aftwards.
> > > >
> > > > On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote:
> > > > > Ok ! but.. do you know the way to make this in automatic ( with
> > > > scripts at
> > > > > system start ) ??
> > > > >
> > > > > - Original Message -
> > > > > From: "Barnabas Yohannes" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Friday, August 17, 2001 3:39 PM
> > > > > Subject: Re: Why and How Tomcat before Apache?
> > > > >
> > > > >
> > > > > > I cannot answer your "why" question, because, I am not one of
> > the
> > > > > developers
> > > > > > of apache or tomcat.  But here is the answer to your "how"
> > question:
> > > > > >
> > > > > > *To stop and start your tomcat:
> > > > > >
> > > > > > cd /usr/local/tomcat
> > > > > >
> > > > > > bin/shutdown.sh
> > > > > >
> > > > > > bin/startup.sh
> > > > > >
> > > > > > *Exit from tomcat and go to your apache server:
> > > > > >
> > > > > > su
> > > > > >
> > > > > > /usr/local/apache/bin/apachectl restart
> > > > > >
> > > > > > exit
> > > > > >
> > > > > > * Another way of stopping and starting apache:
> > > > > >
> > > > > > bin/apachectl stop
> > > > > > bin/apachectl start
> > > > > >
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Roberto B." <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Friday, August 17, 2001 4:50 AM
> > > > > > Subject: Why and How Tomcat before Apache?
> > > > > >
> > > > > >
> > > > > > > I have a Linux/Debian system.
> > > > > > > I want to use Apache as web-server and Tomcat only for JSP
> > file.
> > > > > > >
> > > > > > > Is it true that it is necessary to make start Tomcat before
> > > > Apache?
> > > > > Why?..
> > > > > > > and if it is true.. how??
> > > > > > >
> > > > > > > Thanks!
> > > > > > > Roberto.
> > > > > > >
> > > > > > >
> > > > >
> > > > --
> > > > + No matter how much you do, you never do enough -- unknown
> > > > + Whatever you do will be insignificant,
> > > > | but it is very important that you do it -- Ghandi
> > > > + So let's do it...?
> > >
>




RE: Cookies and IE5.5

2001-08-17 Thread Martin van den Bemt

If it returns null, then I read something about that this week.. Maby
searching on of the archives for cookies helps you find the problem /
solution...
Also tomcat version could be important and the exception (if any..)

Mvgr,
Martin

> -Original Message-
> From: David Oxley [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 5:28 PM
> To: '[EMAIL PROTECTED]'
> Subject: Cookies and IE5.5
>
>
> I am trying to set a cookie that can be picked up from a
> different server to
> the one setting it. They both belong to the same domain (daves.domain.com
> and daves2.domain.com).
> The first server sets the cookie and redirects to the second server where
> the cookie is read.
> On IE5.5 and above the cookie does not get set, but it works fine for IE5
> and Mozilla.
> Is this a bug with later versions of IE or am I doing something wrong.
> This is the code:
>   Cookie c = new Cookie("User", "DAVE");
>   c.setDomain("domain.com");
>   c.setPath("/servlet/LogonServlet");
>   c.setMaxAge(60);
>   c.setVersion(1);
>   resp.addCookie(c);
>   resp.sendRedirect (redirect_url) ;
>
> Dave.
> [EMAIL PROTECTED]
>




RE: Why and How Tomcat before Apache?

2001-08-17 Thread Martin van den Bemt

Please tell me what is dangerous about running tomcat as root? I've taken
the following security measures :
port 8007 and 8009 is blocked from the outside (firewall)
tomcat is not running on 8080 and only allowing communications from
localhost (127.0.0.1).
The only potential problem is that if a tomcat /apache bug is exploited, you
potentially have a problem.

Looks pretty solid to me though..

Mvgr,
martin

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of David Cassidy
> Sent: Friday, August 17, 2001 4:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Why and How Tomcat before Apache?
>
>
> unless you want to run your tomcat as root ( Very unwise )
> makesure that you use a 'su' command in your
> call to tomcat's start script...
>
>
>
> David
>
> Rui Miguel Seabra wrote:
> >
> > Just hack apachectl script to launch tomcat just before apache, and to
> > shut it down right aftwards.
> >
> > On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote:
> > > Ok ! but.. do you know the way to make this in automatic ( with
> > scripts at
> > > system start ) ??
> > >
> > > - Original Message -
> > > From: "Barnabas Yohannes" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, August 17, 2001 3:39 PM
> > > Subject: Re: Why and How Tomcat before Apache?
> > >
> > >
> > > > I cannot answer your "why" question, because, I am not one of the
> > > developers
> > > > of apache or tomcat.  But here is the answer to your "how" question:
> > > >
> > > > *To stop and start your tomcat:
> > > >
> > > > cd /usr/local/tomcat
> > > >
> > > > bin/shutdown.sh
> > > >
> > > > bin/startup.sh
> > > >
> > > > *Exit from tomcat and go to your apache server:
> > > >
> > > > su
> > > >
> > > > /usr/local/apache/bin/apachectl restart
> > > >
> > > > exit
> > > >
> > > > * Another way of stopping and starting apache:
> > > >
> > > > bin/apachectl stop
> > > > bin/apachectl start
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Roberto B." <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Friday, August 17, 2001 4:50 AM
> > > > Subject: Why and How Tomcat before Apache?
> > > >
> > > >
> > > > > I have a Linux/Debian system.
> > > > > I want to use Apache as web-server and Tomcat only for JSP file.
> > > > >
> > > > > Is it true that it is necessary to make start Tomcat before
> > Apache?
> > > Why?..
> > > > > and if it is true.. how??
> > > > >
> > > > > Thanks!
> > > > > Roberto.
> > > > >
> > > > >
> > >
> > --
> > + No matter how much you do, you never do enough -- unknown
> > + Whatever you do will be insignificant,
> > | but it is very important that you do it -- Ghandi
> > + So let's do it...?
>




RE: Why and How Tomcat before Apache?

2001-08-17 Thread Martin van den Bemt

I will see if I can find time this weekend to throw together a simple
example / manual.. You seem to know Debian, so you can change that
accordingly.. I'll send it to you when I'm done.. (maby someone can add the
solaris part and maby other linux disto's..) nice for a tomcat-unix howto or
something?

Mvgr,
Martin

> -Original Message-
> From: Rob S. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 4:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Why and How Tomcat before Apache?
>
>
> "How do i make something automatically startup in *nix?"
>
> This is more of a *nix question than a Tomcat question, really.
> You're better off searching the Internet or reading your *nix admin book.
>
> - r
>
> On Fri, 17 Aug 2001 16:43:41 +0200 [EMAIL PROTECTED] wrote:
> > Ok ! but.. do you know the way to make this in automatic ( with
> scripts at
> > system start ) ??
> >
> > - Original Message -
> > From: "Barnabas Yohannes" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, August 17, 2001 3:39 PM
> > Subject: Re: Why and How Tomcat before Apache?
> >
> >
> > > I cannot answer your "why" question, because, I am not one of the
> > developers
> > > of apache or tomcat.  But here is the answer to your
> "how" question:
> > >
> > > *To stop and start your tomcat:
> > >
> > > cd /usr/local/tomcat
> > >
> > > bin/shutdown.sh
> > >
> > > bin/startup.sh
> > >
> > > *Exit from tomcat and go to your apache server:
> > >
> > > su
> > >
> > > /usr/local/apache/bin/apachectl restart
> > >
> > > exit
> > >
> > > * Another way of stopping and starting apache:
> > >
> > > bin/apachectl stop
> > > bin/apachectl start
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Roberto B." <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, August 17, 2001 4:50 AM
> > > Subject: Why and How Tomcat before Apache?
> > >
> > >
> > > > I have a Linux/Debian system.
> > > > I want to use Apache as web-server and Tomcat only for JSP file.
> > > >
> > > > Is it true that it is necessary to make start Tomcat before Apache?
> > Why?..
> > > > and if it is true.. how??
> > > >
> > > > Thanks!
> > > > Roberto.
> > > >
> > > >
>
>
>
>




RE: REMOTE_HOST not showing up in Tomcat3.2

2001-08-17 Thread Martin van den Bemt

It should return an ip address if the host is not found.. so if you don't
have a connection to the internet, the host lookup fails (taking quite a
long time I must add) and will show the ip address. (at least that is
working for me like that..)

Mvgr,
Martin

> -Original Message-
> From: Mark Diggory [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 5:06 PM
> To: [EMAIL PROTECTED]
> Subject: Fwd: REMOTE_HOST not showing up in Tomcat3.2
>
>
>
> >Hello,
> >
> >Is there something I have to configure in mod_jk to get the remote host
> >information
> >to resolve. Its apparently available in Apache but seems to not show up
> >in Tomcat when I do request.getRemoteHost(). How, is this setup
> / configured?
> >
> >thank you,
> >Mark Diggory
>
>




RE: Odd Tomcat Behaviour [ArrayOutOfBounds Exception]

2001-08-17 Thread Martin van den Bemt

I thought this was fixed in the cvs version of tomcat (don't know if it made
3.3 b1.. (I was having a lot of these messages too, but after the fix
everything was ok..
(don't know the stacktrace, but it looks the same).

Mvgr,
Martin

> -Original Message-
> From: Rob S. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 1:36 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Odd Tomcat Behaviour [ArrayOutOfBounds Exception]
>
>
> Can you paste the stack trace?
>
> - r
>
> > -Original Message-
> > From: Naden [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 17, 2001 5:17 AM
> > To: [EMAIL PROTECTED]
> > Subject: Odd Tomcat Behaviour [ArrayOutOfBounds Exception]
> >
> >
> >
> > Hi,
> >
> > Simple question:
> >
> > I have a servlet package running using Tomcat 3.3m4 that is doing
> > some very
> > odd things. Tomcat is running using Apache/1.3.20 on FreeBSD
> > 4.3-RELEASE on
> > a x86.
> >
> > I am using a html form to change the name of a database entry given a
> > certain entry ID. Problem has been diagnosed to a certain
> condition. If I
> > enter more than a single word in the name box I get a nice
> > ArrayOutOfBounds
> > exception which get this, propagates through any running servlet
> > if I don't
> > do catch it at the end of my particular servlet.
> >
> > The weird part is that the error comes from the entry id being
> > equal to null
> > even though clearly it isn't (you can see it passed in the url field).
> >
> > Any help would be really great.
> >
> > Cheers,
> >
> > Naden
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>




RE: Why and How Tomcat before Apache?

2001-08-17 Thread Martin van den Bemt

this is for tomcat 3.3 :

Start tomcat first so requests, so tomcat has the time to fire up. Then
start apache and serving request will be ok right away. For production
servers I restart them both anyway, but for development : just restart
tomcat when you need it and don't look at apache..
This is the way it works for me ...

Mvgr,
Martin


> -Original Message-
> From: Roberto B. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 17, 2001 11:50 AM
> To: [EMAIL PROTECTED]
> Subject: Why and How Tomcat before Apache?
>
>
> I have a Linux/Debian system.
> I want to use Apache as web-server and Tomcat only for JSP file.
>
> Is it true that it is necessary to make start Tomcat before Apache? Why?..
> and if it is true.. how??
>
> Thanks!
> Roberto.
>
>




  1   2   >