Problems with authentication

2001-07-26 Thread Mattias Karlsvaerd

Hello!

I've have problems with getting the authorization to
work in tomcat 3.2.2 and Apache 1.3.19. I have tried
to the example comes with tomcat. I get the login
page, but when I've typed the username and password I
get the following error:
The requested URL
/examples/jsp/security/login/j_security_check was not
found on this server.

I've searched on the web and found out that other
people have had the same problem. Is there a solution
to this problem.
What I understand j_security_check, j_username and
j_password is some kind of implicit variables. Is
there any document where this specified.

I use linux Redhat 7.1 and IBM's java2 1.3
I would be thankful for any help

=
/Mattias Karlsvärd

_
Do You Yahoo!?
[EMAIL PROTECTED] - skaffa en gratis mailadress på http://mail.yahoo.se



Re: Help w/ Tomcat 4.0b6 and Apache

2001-07-26 Thread Mark Dzmura

Pier:

(I sent this last night, also - but it never seemed to make it too the list.)

SUCCESS!!  But first...

The Java part of the webapp connector does not build for the lack of the
following constant definitions in class org.apache.catalina.connector.warp.Constants:

Constants.TYPE_CBK_DONE
Constants.TYPE_CBK_DATA
Constants.TYPE_CBK_READ

I looked in the C code for corresponding definitions, found them, and added them
to the Java code.  Built and installed the new stuff.  Checked the old example tests,
then went to the app using getParameter() and found them to WORK.  YES!!

Maybe the next thing is to run the JSP test suite...

Thanks for knocking out these fixes so quickly - great job!

Mark




> I just closed bug # 2777. Can you please check it works with the latest CVS
> snapshot? THANKYOUU! :) :) :)
>
> Pier

--
Mark Dzmura
Digital Mission LLC






Re: Forbidden error, you are unable to access /examples from this server: please help, very urgent

2001-07-26 Thread David Smith

Just a thought on this thread and I've been guilty of this one as well, but 
you might also want to check directory and file permissions.  If the user 
apache is running under does not have at least read permissions, the whole 
thing will fail regardless of settings in any .conf file.

On Thursday 26 July 2001 01:28 am, you wrote:
> hey,
> can anyone give nme their compiled binary of mod_jk.so for apache 1.3.11. 
> I am running tomcat 3.2.2
>
>
> "black holes are,
> when GOD is dividing by zero"
>   - Original Message -
>   From: Senthil Kumar Rajamanickam
>   To: [EMAIL PROTECTED]
>   Sent: Wednesday, July 25, 2001 6:11 PM
>   Subject: RE: Forbidden error, you are unable to access /examples from
> this server: please help, very urgent
>
>
>   With the info.. I could not think of any specific reasons which might
> stop you to set this up..
>
>   just try going through following tasks..
>
>   1. ref. to mod_jk how to manual which you have got along with tomcat, and
> set up your mod_jk with apache ( you have to mount mod_jk in apache like
> this (hey, are u doing your own mod_jk .dll file from source?if that is the
> case check your source for any possible error which can be induced in the
> source??)
>
>   "include  /jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto"
>   ( I would recommend using conf-auto file, so that your tomcat will give
> all the details)
>
>   2.check your apache and tomcat. (just test run your example servlet via 
> apache) If your example application works fine..
>
>   Go ahead and mount a alias directory and try calling jet speed.
>   in case you get some error, check them in apache log and tomcat log for
> error details, (I think that should help you solve the error)
>
>   let me know what is the error you are getting...So that I can try to get
> to the core issue.
>
>   Also note, if you are using winNT, check for environment variables
> setting too for tomcat_home, Apache_home and java_home settings, since in
> your tomcat configuration files, it picks up directory details calling this
> environment variables.
>
>   Note, check if your tools.jar file is accessible by your system(it should
> be in system path)
>
>   Hope this helps..
>   Cheers
>   Senthil Kumar.R
>
>
> -Original Message-
> From: raghu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 5:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Forbidden error, you are unable to access /examples from
> this server: please help, veryurgent
>
>
> i did as u said, but still i am getting the same error.  I now doubt if
> mod_jk.so is working properly or not? No, i am running only tomcat with
> apache, please help
>
>
>
> "black holes are,
> when GOD is dividing by zero"
>   - Original Message -
>   From: Senthil Kumar Rajamanickam
>   To: [EMAIL PROTECTED]
>   Sent: Wednesday, July 25, 2001 4:46 PM
>   Subject: RE: Forbidden error, you are unable to access /examples from
> this server: please help, veryurgent
>
>
>   try mounting a Alias directory named "jetspeed" and tell apache its
> location.. yes, as you tell mod_jk should take care of it. But I don't
> think their would be any harm in having a alias? (I have mounted all the
> dir with a alias name along with my mod_jk configuration)
>
>   one other possibility would be, check if you are running IIS or PWS 
> with Apache, if that is the case. either stop them or assign them a
> different port number.
>
>   Regards
>   Senthil Kumar.R
>
> -Original Message-
> From: raghu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 3:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Forbidden error, you are unable to access /examples
> from this server: please help, veryurgent
>
>
> Hello,
> I have included the mod_jk.conf-auto file in my httpd.conf.  Should
> i mount the directories separately?  My feeling is that mod_jk.conf takes
> care of it
>
>
> "black holes are,
> when GOD is dividing by zero"
>   - Original Message -
>   From: Senthil Kumar Rajamanickam
>   To: [EMAIL PROTECTED]
>   Sent: Wednesday, July 25, 2001 2:19 PM
>   Subject: RE: Forbidden error, you are unable to access /examples
> from this server: please help, veryurgent
>
>
>   Have you checked your Apache httpd.conf file ? have you mounted
> your directory in your apache?
>
>   Regards
>   Senthil Kumar.R
>
> -Original Message-
> From: raghu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 12:54 PM
> To: tomcat
> Subject: Fw: Forbidden error, you are unable to access
> /examples from this server: please help, veryurgent
>
>
> From: raghu
> To: tomcat
> Sent: Tuesday, July 24, 2001 6:30 PM
> Subject: 403: Forbidden error, you are unable to access

tomcat.sh stop = Connection refused?

2001-07-26 Thread Richard Draucker

When I attempt to shutdown Tomcat with the tomcat.sh script I get: 

java.net.ConnectionException Connection refused

This is new since I started running RH7.1 and Java1.3.1
with Tomcat 3.1. Anyone know why? 

Of course I can kill it just fine.  But, a nice clean stop would be 
preferable. 


Thanks,
Richard


-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




Multiple development using tomcat

2001-07-26 Thread Pete

Hi,

I currently am trying to setup tomcat (3.3) to connect to apache-1.3.20,
using mod_jk (apache isn't compiled with DSO support, but has mod_jk , ssl
and php4 support compiled in) .. I can get tomcat working with it fine (i am
still loading the mod_jk module for the tomcat side) ... However we have a
large userbase (students) , and each one will want there own jsp and servlet
directories for there own independant development.. Going through the
mailing list archive search i found one user that did this per user (which
if fine, i could script something to do that for all my users):

Alias /~userX "/home/userX/www"

Options Indexes FollowSymLinks

ApJServMount /~userX/servlet /~userX

However, i would rather not set the classpath for each individual user..
Also due to the large number of users, i would rather not have to restart
the server all the time (although at worst, i will have to set daily, and
users will just have to live with it).. Is it possible for each user to set
there own classpath etc? Anything else that i need to set to achieve this?

Cheers for help
Pete



installation of tomcat on debian failed

2001-07-26 Thread Fabrice Terrasson

I used this configure settings:
./configure --with-apxs=/usr/bin/apxs --prefix=/usr/local/jserv
--with-jdk-home=/usr/lo --with-JSDK=/usr/local/jakarta-tomcat-3.2.3/lib

no errors, but when I do make:

/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServConnection.java:85:
org.apache.jserv.JServConnection should be declared abstract; it does
not define flushBuffer() in org.apache.jserv.JServConnection
public class JServConnection
   ^
/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServContext.java:90:
org.apache.jserv.JServContext should be declared abstract; it does not
define getAttributeNames() in org.apache.jserv.JServContext
class JServContext implements ServletConfig, ServletContext,
JServSendError, JServLogChannels {
^
/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv/JServSession.java:74:
org.apache.jserv.JServSession should be declared abstract; it does not
define getAttribute(java.lang.String) in org.apache.jserv.JServSession
public class JServSession implements HttpSession, JServLogChannels,
Serializable {
   ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
3 errors
make[5]: *** [JServ.class] Error 1
make[5]: Leaving directory
`/home/fate/ApacheJServ-1.1.2/src/java/org/apache/jserv'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/fate/ApacheJServ-1.1.2/src/java/org/apache'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src/java/org'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fate/ApacheJServ-1.1.2/src'
make: *** [all-recursive] Error 1
root@brazil:~/ApacheJServ-1.1.2# uname -a
Linux brazil 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i686 unknown

Anyone got a clue ?

-- 
Cordialement,
Fabrice Terrasson. [EMAIL PROTECTED]



Re: apache+mod_jk+tomcat virtual host sample setting

2001-07-26 Thread Jerry QU

I fixed the problem

thanks 

Jerry


- Original Message - 
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 1:14 PM
Subject: Re: apache+mod_jk+tomcat virtual host sample setting


> Hi,
> 
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ is a wonderful
> place:
> 
> search for "httpd.conf server.xml virtual hosts example" and the sixth
> result is:
> 
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg24768.html
> 
> that should give you a start (o:
> 
> cheesr
> dim
> 
> On Thu, 26 Jul 2001, Jerry Qu wrote:
> 
> > Hi All,
> > 
> > is there any one has working sample(s) for setting apache+mod_jk+tomcat virtual 
>host in httpd.conf and server.xml (if needed )
> > 
> > thanks
> > 
> > Jerry Qu
> > 
> 



Re: virtual hosting conf question

2001-07-26 Thread Jerry QU

it works by using ajp12. what I missed was vhost setting in server.xml. and I did in 
right way but the code was actually comment out . a very very stupid mistake

thanks anyway

Jerry


 
- Original Message - 
From: "Kaneda K" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 4:45 PM
Subject: Re: virtual hosting conf question


> I Might be wrong, but in order to allow Apache to communicate with tomcat, 
> you need to use ajp13 instead of 12. and did you correctly set mod_jk.so. ?
> 
> At 07:01 26/07/2001 +0800, you wrote:
> >Hi All,
> >
> >We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.
> >
> >it works fine when use Directory:
> >
> > Alias /loc "/home/.../path"
> >
> > 
> > Options Indexes FollowSymLinks
> > 
> > JkMount /loc/servlet/* ajp12
> > JkMount /loc/*.jsp ajp12
> >
> >But when trying virtual hosting:
> >
> >NameVirutalHost ip
> >
> > 
> > ServerName www.domain.com
> > DocumentRoot "/home/.../path"
> > JkMount /servlet/* ajp12
> > JkMount /*.jsp ajp12
> > 
> > Options Includes Indexes FollowSymlinks
> > AllowOverride AuthConfig FileInfo Indexes Limit Options
> > Order allow, deny
> > Allow from all
> > 
> >
> > 
> >
> >WE are geting 404 error for all .jsp files and looks like the apache to 
> >tomcat redirect not works
> >
> >anything missing?
> >
> >
> >TIA
> >
> >Jerry
> >
> >
> >
> >
> >
> 



Re: Weird thread/security problem

2001-07-26 Thread Sam Joseph
Hi

Michael Weissenbacher wrote:

> that is a simple problem of understanding: there is only one servlet object
> that is used by multiple threads. by having this in mind, your object
> variables are also shared, as would be static variables...

Francis Pallini wrote:

> Application-wide data (within a container in the case of balanced servers)
> can be put in instance variables, but access must then be synchronized.
> User-related data must be put in the session object...

Thanks for the help here.  Gods, I've been writing various servlet applications
for over a year and it seems I've been working with a fundamental
misconception.

This is what comes from spending too much time by yourself, and more
importantly assuming that single user test results extend to multiple users

I guess I have two options, either make the servlet implement the
SingleThreadModel interface, or create some new classes to encapsulate the
appropriate data, and either store that in the session or in some instance
variable like a hashtable ...

Thanks again.

CHEERS> SAM





>
> -Original Message-
> From: Sam Joseph [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 26, 2001 11:18 AM
> To: [EMAIL PROTECTED]
> Subject: Weird thread/security problem
>
> Hi,
>
> So I think this is a thread/security issue, but I am not sure.  However
> it is definitely weird.
>
> I have been conducting some tests with multiple users.  Various servlets
> are contacted that supply pages to each user, that include information
> such as user name etc.  The version of tomcat in use is 3.2.1, and
> clearly I should upgrade to 3.2.3, but the tomcat is provided by my
> service provider so that might take some time.
>
> Anyway, the problem is that sometimes when two users are accessing the
> system simulatenously the information for one user will be displayed,
> briefly, to the other user.  The system I have developed is quite
> complicated so I can't rule out that this is a problem with the code,
> but I'm not using static variables or anything that would allow this
> swap over.  I mean each user has an object associated with them that
> contains their user name, but these are local variables to the servlet.
>
> Are there or have there been problems with tomcat that would explain
> this problem?  I mean tomcat creates a separate thread for each servlet
> right? Different user, different thread, so their data shouldn't be
> available to each other.
>
> Am I overlooking something here?  Should I be mailing to the developer's
> list?
>
> And on the same topic, does anyone know of any software that will
> simulate multiple users, without me having all my friends test the
> system.  I mean some software (ideally free or shareware) that would
> simulate the stream of http requests, I guess I could hack something
> together myself, but if there's something already out there that would
> be great.
>
> Thanks in advance.
>
> CHEERS> SAM


Re: Configutaion Problems NT <=> Linux

2001-07-26 Thread Jeff Hoare

ok,
so httpd -t will tell u for sure if you have a syntax problem.
I not really familiar with virtual host config, to know if this is correct/ 
or not. 

Is the directory readable by the use that runs the web server?

Should you DocumentRoot stop at webapps? as its seems to be looking for 
webapps/lol/lol ?

Maybe that someone else can assist further.

Jeff
On Thursday 26 July 2001 20:02, you wrote:
> In fact, I hink it's a VHost configuration problem, the Apache's 'ErrorLog'
> file
> indicates:
>
> [Thu Jul 26 08:15:29 2001] [error] [client 192.1.1.33] File does not exist:
> /usr/local/tomcat/jakarta-tomcat-3.2.3/webapps/lol/lol
>
> and my VHost is the following:
> 
> ServerName lol.fivia.com
> DocumentRoot /usr/local/tomcat/jakarta-tomcat-3.2.3/webapps/lol
>
> JkMount /lol/* ajp12
> JkMount /*.jsp ajp12
>
> RedirectMatch /index.html $1/start/index.html
>
> ErrorLog /usr/local/tomcat/log/lol_error_html.log
> TransferLog /usr/local/tomcat/log/lol_access_html.log
>
> RewriteEngine on
> RewriteLog /usr/local/tomcat/log/lol_rewrite.log
> RewriteLogLevel 9
>
> RewriteCond %{REQUEST_URI} ^/servlet* [NC]
> RewriteRule ^/servlet/(.*) /lol/$1 [PT]
>
> RewriteCond %{REQUEST_URI} !^/lol* [NC]
> RewriteCond %{REQUEST_URI} !^/Image* [NC]
> RewriteCond %{REQUEST_URI} !^/Elemtech* [NC]
> RewriteCond %{REQUEST_URI} !^/Erreur* [NC]
> RewriteCond %{REQUEST_URI} ^/.*/.*
> RewriteRule ^/(.*) /lol/AdFront?access=/$1 [PT,QSA]
>
> 
>
> so...
>
> Loïc Lefèvre
>
> -Message d'origine-
> De : Jeff Hoare [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 27 juillet 2001 07:48
> À : [EMAIL PROTECTED]
> Objet : Re: Configutaion Problems NT <=> Linux
>
>
> What happens?
> If this fits your situation then this may help.
> If u are using the sun jdk1.3.1 and u are using a 2.4 kernel then one thing
> that can happen is that the jdk won't start because of the default stack
> size. In this case you'll get nothing, the thing will try to start tehn
> die.
>
> If this sounds like you then try
> ulimit  -s 2048
>
> Jeff
> PS failing that u really need to provide more info, are any logs produced?
>
> On Thursday 26 July 2001 17:57, you wrote:
> > Hi
> >
> > It's me again... Last time, tomcat was configured perfectly
> > for NT4. Still I must install it on linux now and after copying
> > exactly (but directories ;) ) the result is not the one expected:
> > nothing appears !
> >
> > Any suggestion?
> >
> > Loïc Lefèvre



Re: Weird thread/security problem

2001-07-26 Thread Francis Pallini

Hi,

Application-wide data (within a container in the case of balanced servers) 
can be put in instance variables, but access must then be synchronized. 
User-related data must be put in the session object...

Regards,

Francis Pallini

At 06:18 PM 7/26/01 +0900, you wrote:
>Hi,
>
>So I think this is a thread/security issue, but I am not sure.  However
>it is definitely weird.
>
>I have been conducting some tests with multiple users.  Various servlets
>are contacted that supply pages to each user, that include information
>such as user name etc.  The version of tomcat in use is 3.2.1, and
>clearly I should upgrade to 3.2.3, but the tomcat is provided by my
>service provider so that might take some time.
>
>Anyway, the problem is that sometimes when two users are accessing the
>system simulatenously the information for one user will be displayed,
>briefly, to the other user.  The system I have developed is quite
>complicated so I can't rule out that this is a problem with the code,
>but I'm not using static variables or anything that would allow this
>swap over.  I mean each user has an object associated with them that
>contains their user name, but these are local variables to the servlet.
>
>Are there or have there been problems with tomcat that would explain
>this problem?  I mean tomcat creates a separate thread for each servlet
>right? Different user, different thread, so their data shouldn't be
>available to each other.
>
>Am I overlooking something here?  Should I be mailing to the developer's
>list?
>
>And on the same topic, does anyone know of any software that will
>simulate multiple users, without me having all my friends test the
>system.  I mean some software (ideally free or shareware) that would
>simulate the stream of http requests, I guess I could hack something
>together myself, but if there's something already out there that would
>be great.
>
>Thanks in advance.
>
>CHEERS> SAM




isapi_redirect.dl

2001-07-26 Thread Furer Alexander



Hi! I'm useing Tomcat3.2 with 
isapi_redirect.dll. 
Here is part of my server.xml config file: 
 
 

 When i run servlets directly 
(hostname:8080/servle/myservlet) the concurrency is OK, i see that requests 
arrive almost in the same time, but when i run through 
isapi_redirect.dll(hostname/servlet/myservlet), the requests arrive one 
after another. What am i doing wrong ? May be i should specify same 
configurations in some ather places ?
Is isapi_redirect.dll multithreaded 
?
 Thanks
 
 
Best regards,Furer 
Alexandertel.055-908925
 
When a password just isn't secure enough, and 
email confirmations don't quite cut it, You need Voice 
authentication.You need Sentry-Com.www.voiceprove.com


Re: WELCOME to tomcat-user@jakarta.apache.org (fwd)

2001-07-26 Thread Arne Meyer Hansen



--On torsdag, juli 26, 2001 14:17:22 +1000 Dmitri Colebatch 
<[EMAIL PROTECTED]> wrote:

> for those of you that are having trouble unsubscribing I have attached my
> copy of the initial mail that I received when I subscribed this
> address.  I suggest you try sending an email to the list owner.

Also, in every mail, you'll find the following "hidden" in the header of 
the mail:

  list-help: 
  list-unsubscribe: 
  list-post: 

Regards,
Arne Meyer Hansen

--
System Developer

Polygnosis AS
Gjerdrums vei 10A
0484 Oslo

Tlf: 22239040
WWW: http://www.polygnosis.com



RE: Configutaion Problems NT <=> Linux

2001-07-26 Thread Loïc Lefèvre

In fact, I hink it's a VHost configuration problem, the Apache's 'ErrorLog'
file
indicates:

[Thu Jul 26 08:15:29 2001] [error] [client 192.1.1.33] File does not exist:
/usr/local/tomcat/jakarta-tomcat-3.2.3/webapps/lol/lol

and my VHost is the following:

ServerName lol.fivia.com
DocumentRoot /usr/local/tomcat/jakarta-tomcat-3.2.3/webapps/lol

JkMount /lol/* ajp12
JkMount /*.jsp ajp12

RedirectMatch /index.html $1/start/index.html

ErrorLog /usr/local/tomcat/log/lol_error_html.log
TransferLog /usr/local/tomcat/log/lol_access_html.log

RewriteEngine on
RewriteLog /usr/local/tomcat/log/lol_rewrite.log
RewriteLogLevel 9

RewriteCond %{REQUEST_URI} ^/servlet* [NC]
RewriteRule ^/servlet/(.*) /lol/$1 [PT]

RewriteCond %{REQUEST_URI} !^/lol* [NC]
RewriteCond %{REQUEST_URI} !^/Image* [NC]
RewriteCond %{REQUEST_URI} !^/Elemtech* [NC]
RewriteCond %{REQUEST_URI} !^/Erreur* [NC]
RewriteCond %{REQUEST_URI} ^/.*/.*
RewriteRule ^/(.*) /lol/AdFront?access=/$1 [PT,QSA]



so...

Loïc Lefèvre

-Message d'origine-
De : Jeff Hoare [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 27 juillet 2001 07:48
À : [EMAIL PROTECTED]
Objet : Re: Configutaion Problems NT <=> Linux


What happens?
If this fits your situation then this may help.
If u are using the sun jdk1.3.1 and u are using a 2.4 kernel then one thing
that can happen is that the jdk won't start because of the default stack
size. In this case you'll get nothing, the thing will try to start tehn die.

If this sounds like you then try
ulimit  -s 2048

Jeff
PS failing that u really need to provide more info, are any logs produced?

On Thursday 26 July 2001 17:57, you wrote:
> Hi
>
> It's me again... Last time, tomcat was configured perfectly
> for NT4. Still I must install it on linux now and after copying
> exactly (but directories ;) ) the result is not the one expected:
> nothing appears !
>
> Any suggestion?
>
> Loïc Lefèvre




RE: howto redirect

2001-07-26 Thread Rams

this is not possible..

Rams

-Original Message-
From: Bernhard Wraase [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 3:12 PM
To: [EMAIL PROTECTED]
Subject: howto redirect


In the docs it seems simple...
Even in the thread recently

But it don't work.
Each request works:
http://127.0.0.1:8080 ->http://127.0.0.1:8080/index.html
https://127.0.0.1:8443 ->https://127.0.0.1:8443/index.html

But I want this:
http://127.0.0.1:8080 ->https://127.0.0.1:8443/index.html

The server.xml looks like:

  







  

 --snip--
--snap--
 

Any suggestions?
--
TIA Bernhard Wraase




howto redirect

2001-07-26 Thread Bernhard Wraase

In the docs it seems simple...
Even in the thread recently

But it don't work.
Each request works:
http://127.0.0.1:8080 ->http://127.0.0.1:8080/index.html
https://127.0.0.1:8443 ->https://127.0.0.1:8443/index.html

But I want this:
http://127.0.0.1:8080 ->https://127.0.0.1:8443/index.html

The server.xml looks like:

  







  

 --snip--
--snap--
 

Any suggestions?
--
TIA Bernhard Wraase





RE: Weird thread/security problem

2001-07-26 Thread Michael Weissenbacher
that is a simple problem of understanding: there is only one servlet object
that is used by multiple threads. by having this in mind, your object
variables are also shared, as would be static variables...


-Original Message-
From: Sam Joseph [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 11:18 AM
To: [EMAIL PROTECTED]
Subject: Weird thread/security problem


Hi,

So I think this is a thread/security issue, but I am not sure.  However
it is definitely weird.

I have been conducting some tests with multiple users.  Various servlets
are contacted that supply pages to each user, that include information
such as user name etc.  The version of tomcat in use is 3.2.1, and
clearly I should upgrade to 3.2.3, but the tomcat is provided by my
service provider so that might take some time.

Anyway, the problem is that sometimes when two users are accessing the
system simulatenously the information for one user will be displayed,
briefly, to the other user.  The system I have developed is quite
complicated so I can't rule out that this is a problem with the code,
but I'm not using static variables or anything that would allow this
swap over.  I mean each user has an object associated with them that
contains their user name, but these are local variables to the servlet.

Are there or have there been problems with tomcat that would explain
this problem?  I mean tomcat creates a separate thread for each servlet
right? Different user, different thread, so their data shouldn't be
available to each other.

Am I overlooking something here?  Should I be mailing to the developer's
list?

And on the same topic, does anyone know of any software that will
simulate multiple users, without me having all my friends test the
system.  I mean some software (ideally free or shareware) that would
simulate the stream of http requests, I guess I could hack something
together myself, but if there's something already out there that would
be great.

Thanks in advance.

CHEERS> SAM


Weird thread/security problem

2001-07-26 Thread Sam Joseph
Hi,

So I think this is a thread/security issue, but I am not sure.  However
it is definitely weird.

I have been conducting some tests with multiple users.  Various servlets
are contacted that supply pages to each user, that include information
such as user name etc.  The version of tomcat in use is 3.2.1, and
clearly I should upgrade to 3.2.3, but the tomcat is provided by my
service provider so that might take some time.

Anyway, the problem is that sometimes when two users are accessing the
system simulatenously the information for one user will be displayed,
briefly, to the other user.  The system I have developed is quite
complicated so I can't rule out that this is a problem with the code,
but I'm not using static variables or anything that would allow this
swap over.  I mean each user has an object associated with them that
contains their user name, but these are local variables to the servlet.

Are there or have there been problems with tomcat that would explain
this problem?  I mean tomcat creates a separate thread for each servlet
right? Different user, different thread, so their data shouldn't be
available to each other.

Am I overlooking something here?  Should I be mailing to the developer's
list?

And on the same topic, does anyone know of any software that will
simulate multiple users, without me having all my friends test the
system.  I mean some software (ideally free or shareware) that would
simulate the stream of http requests, I guess I could hack something
together myself, but if there's something already out there that would
be great.

Thanks in advance.

CHEERS> SAM


Re: Configutaion Problems NT <=> Linux

2001-07-26 Thread Jeff Hoare

oops...
ulimit applies to the user that you run tomcat as

Jeff
On Friday 27 July 2001 15:47, you wrote:
> What happens?
> If this fits your situation then this may help.
> If u are using the sun jdk1.3.1 and u are using a 2.4 kernel then one thing
> that can happen is that the jdk won't start because of the default stack
> size. In this case you'll get nothing, the thing will try to start tehn
> die.
>
> If this sounds like you then try
> ulimit  -s 2048
>
> Jeff
> PS failing that u really need to provide more info, are any logs produced?
>
> On Thursday 26 July 2001 17:57, you wrote:
> > Hi
> >
> > It's me again... Last time, tomcat was configured perfectly
> > for NT4. Still I must install it on linux now and after copying
> > exactly (but directories ;) ) the result is not the one expected:
> > nothing appears !
> >
> > Any suggestion?
> >
> > Loïc Lefèvre



Re: Configutaion Problems NT <=> Linux

2001-07-26 Thread Jeff Hoare

What happens?
If this fits your situation then this may help.
If u are using the sun jdk1.3.1 and u are using a 2.4 kernel then one thing 
that can happen is that the jdk won't start because of the default stack 
size. In this case you'll get nothing, the thing will try to start tehn die.

If this sounds like you then try
ulimit  -s 2048

Jeff
PS failing that u really need to provide more info, are any logs produced?

On Thursday 26 July 2001 17:57, you wrote:
> Hi
>
> It's me again... Last time, tomcat was configured perfectly
> for NT4. Still I must install it on linux now and after copying
> exactly (but directories ;) ) the result is not the one expected:
> nothing appears !
>
> Any suggestion?
>
> Loïc Lefèvre



Re: virtual hosting conf question

2001-07-26 Thread Kaneda K

I Might be wrong, but in order to allow Apache to communicate with tomcat, 
you need to use ajp13 instead of 12. and did you correctly set mod_jk.so. ?

At 07:01 26/07/2001 +0800, you wrote:
>Hi All,
>
>We are using Tomact3.2.3 and Apache1.3.20 with mod_jk.so.
>
>it works fine when use Directory:
>
> Alias /loc "/home/.../path"
>
> 
> Options Indexes FollowSymLinks
> 
> JkMount /loc/servlet/* ajp12
> JkMount /loc/*.jsp ajp12
>
>But when trying virtual hosting:
>
>NameVirutalHost ip
>
> 
> ServerName www.domain.com
> DocumentRoot "/home/.../path"
> JkMount /servlet/* ajp12
> JkMount /*.jsp ajp12
> 
> Options Includes Indexes FollowSymlinks
> AllowOverride AuthConfig FileInfo Indexes Limit Options
> Order allow, deny
> Allow from all
> 
>
> 
>
>WE are geting 404 error for all .jsp files and looks like the apache to 
>tomcat redirect not works
>
>anything missing?
>
>
>TIA
>
>Jerry
>
>
>
>
>




ClassCastException on a bean

2001-07-26 Thread Paul Foxton

Hi,

I've just had an odd problem I thought I'd see if anyone else had come
accross:
Running tomcat 3.2.2, apache 1.3.19 on RH linux 7.1, I got a
ClassCastException for a bean (called DbUtilities) I use in a JSP page.

The code from the compiled servlet of the jsp is as follows: 

DbUtilities db = null;
boolean _jspx_specialdb = false;
 synchronized(application) {
   db = (DbUtilities)  < this line caused the
ClassCastException
   pageContext.getAttribute("db",pageContext.APPLICATION_SCOPE);
 
Its odd because both the bean and JSP had been working fine for a week or so
& I hadn't modified either.

I restarted tomcat and apache and everything was fine again - just a little
concernred, I don't want this happenning when the site goes live!

Has anyone else seen anything like this?

cheers,

Paul



RE: starting problem for Tomcat

2001-07-26 Thread Loïc Lefèvre

Try this ;) and look at Gautam Sinha's answer:

http://mikal.org/interests/java/tomcat/archive/search?search=BindException

Loïc Lefèvre

-Message d'origine-
De : Mehul S Dave [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 26 juillet 2001 10:20
À : Tomcat User archive
Objet : starting problem for Tomcat


Hi
  I am getting this error when i try to start tomcat. i am under Linux 7.1

Error
please give me the solution to start my server
Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Permission denied
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:363)
at java.net.ServerSocket.(ServerSocket.java:138)
at java.net.ServerSocket.(ServerSocket.java:102)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
at
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.
java:186)
at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1
42)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

*
Mehul S Dave
Scientific Officer, (STCS Dept.),
Tata Institute of Fundamental Research
Phone - 2152971 Extn - 2372
Mumbai .
webpage:- http://www.csc.tifr.res.in/~mehul
*




problem when running on 8080 port

2001-07-26 Thread Mehul S Dave

Hello
 still i am trying to run my tomcat but it failed.
 I tried to run on port 8080 & it should me this error

java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.close(PlainSocketImpl.java:408)
at java.net.SocketImpl.reset(SocketImpl.java:227)
at java.net.ServerSocket.implAccept(ServerSocket.java:207)
at java.net.ServerSocket.accept(ServerSocket.java:181)
at
org.apache.tomcat.service.SimpleTcpEndpoint.acceptSocket(SimpleTcpEndpoint.java:267)
at
org.apache.tomcat.service.SimpleTcpEndpoint.acceptConnections(SimpleTcpEndpoint.java:248)
at
org.apache.tomcat.service.TcpListenerThread.run(SimpleTcpEndpoint.java:319)
at java.lang.Thread.run(Thread.java)
Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] shutdown
due to exception: java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.close(PlainSocketImpl.java:408)
at java.net.SocketImpl.reset(SocketImpl.java:227)
at java.net.ServerSocket.implAccept(ServerSocket.java:207)
at java.net.ServerSocket.accept(ServerSocket.java:181)
at
org.apache.tomcat.service.SimpleTcpEndpoint.acceptSocket(SimpleTcpEndpoint.java:267)
at
org.apache.tomcat.service.SimpleTcpEndpoint.acceptConnections(SimpleTcpEndpoint.java:248)
at
org.apache.tomcat.service.TcpListenerThread.run(SimpleTcpEndpoint.java:319)
at java.lang.Thread.run(Thread.java)
Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] shutdown
due to exception: java.net.SocketException: Socket closed

Thanks.


*
Mehul S Dave
Scientific Officer, (STCS Dept.),
Tata Institute of Fundamental Research
Phone - 2152971 Extn - 2372
Mumbai .
webpage:- http://www.csc.tifr.res.in/~mehul
*




Re: mod_jk on Solaris 2.6 : undefined symbols

2001-07-26 Thread Fabrice Colin

John Bazeley wrote:
> As a matter of interest, why no -G?
> 
> > my $CFG_LD_SHLIB  = q(ld);
> > my $CFG_LDFLAGS_SHLIB = q();  # I don't use -G
> > my $CFG_LIBS_SHLIB= q();

Because with -G ld ignores undefined symbols and when I start
Apache, it complains about that same exact symbol, ie :

[root@mybox /export/home/apache]# bin/apachectl start
Syntax error on line 979 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_jk.so: symbol __lshrdi3: referenced symbol
not found
bin/apachectl start: httpd could not be started

Fabrice



starting problem for Tomcat

2001-07-26 Thread Mehul S Dave

Hi
  I am getting this error when i try to start tomcat. i am under Linux 7.1

Error
please give me the solution to start my server
Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Permission denied
java.net.BindException: Permission denied
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:363)
at java.net.ServerSocket.(ServerSocket.java:138)
at java.net.ServerSocket.(ServerSocket.java:102)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97)
at
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.java:186)
at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:142)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

*
Mehul S Dave
Scientific Officer, (STCS Dept.),
Tata Institute of Fundamental Research
Phone - 2152971 Extn - 2372
Mumbai .
webpage:- http://www.csc.tifr.res.in/~mehul
*




Configutaion Problems NT <=> Linux

2001-07-26 Thread Loïc Lefèvre

Hi

It's me again... Last time, tomcat was configured perfectly
for NT4. Still I must install it on linux now and after copying
exactly (but directories ;) ) the result is not the one expected:
nothing appears !

Any suggestion?

Loïc Lefèvre




<    1   2