RE: [OT] Apache and Tomcat together

2004-01-15 Thread Ralph Einfeldt
I think the main benefit is the simpler configuration.

mod_proxy has some drawbacks:

- The http request has to be processed twice (once in apache
  and a second time in the tomcat connector). This may 
  effect the performance.
  Test your application, against your expected 
  load. Don't beleave anyone who claims that something will 
  be slower/faster than another thing

- You can't use unix sockets or in process

- Loadbalancing on the apache level migth get less simple 
  than with mod_jk

- I'm not shure if the ease of configuration keeps as simple
  if you start to use https. I'm not shure if ssl has to be 
  configured in apache and tomcat.

If that's ok for you, you can use mod_proxy

> -Original Message-
> From: Green, Jeffrey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 15, 2004 7:51 PM
> To: 'Tomcat Users List'
> Subject: RE: [OT] Apache and Tomcat together
> 
> 
> Anyone know about the benefits / detriments of using 
> mod_proxy?  It sets up
> a heck of a lot easier than mod_jk2 and seems to offer the same
> functionality.  A great doc on this is at
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104441321803644&w=2.
> Anyone have any insights?  Having set up both mod_proxy and 
> mod_jk2, I can
> safely say that mod_proxy was much easier for me.
> 
> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 15, 2004 10:36 AM
> To: Tomcat Users List
> Subject: Re: [OT] Apache and Tomcat together
> 
> 
> Mike,
> 
> >>Apache is faster for static content.
> > 
> > Don't get Yoav started...
> 
> :) I have gotton him started on this, before. It's funny, 
> though... last 
> time I looked at the Tomcat Connector FAQ, it actually says flat out 
> "Apache is faster than Tomcat at serving static content": 
> http://jakarta.apache.org/tomcat/faq/connectors.html. It does qualify 
> that statement by saying that unless you're talking about 
> high traffic, 
> then it doesn't really matter. However, they *do* make that claim.
> 
> -chris
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --
> 
> This message is intended only for the personal and 
> confidential use of the
> designated recipient(s) named above.  If you are not the 
> intended recipient of
> this message you are hereby notified that any review, dissemination,
> distribution or copying of this message is strictly prohibited.  This
> communication is for information purposes only and should not 
> be regarded as
> an offer to sell or as a solicitation of an offer to buy any financial
> product, an official confirmation of any transaction, or as 
> an official
> statement of Lehman Brothers.  Email transmission cannot be 
> guaranteed to be
> secure or error-free.  Therefore, we do not represent that 
> this information is
> complete or accurate and it should not be relied upon as such.  All
> information is subject to change without notice.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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



Re: [OT] Apache and Tomcat together

2004-01-15 Thread Nikola Milutinovic
> >>Apache is faster for static content. 
> > 
> > Don't get Yoav started...
> 
> :) I have gotton him started on this, before. It's funny, though... last 
> time I looked at the Tomcat Connector FAQ, it actually says flat out 
> "Apache is faster than Tomcat at serving static content": 
> http://jakarta.apache.org/tomcat/faq/connectors.html. It does qualify 
> that statement by saying that unless you're talking about high traffic, 
> then it doesn't really matter. However, they *do* make that claim.

OK, so for low traffic, test environment, you can rely on TC. Even for high traffic, 
if you do your dynamic vs static separation rather cleanly (place all GIFs outside 
web-app, which might be an ugly thing to do), you could just make Apache redirect or 
proxy for TC's URLs. I think that the real need for mod_jk1/2 comes when you want to 
have modularity.

Anyway, I think mod_jk1/2 is a cleaner way to do it. It worked for me rather 
painlessly, so I'm going that way.

Nix.

Re: LogSetter in

2004-01-15 Thread Howard Watson
I'll try to do that in the morning. If it works better I can send it direct to you and 
post what matters to the list afterwards.

Thanks for the effort.
Howard

Howard Watson
Database Administrator
Easter Seals-Goodwill Northern Rocky Mountain
4400 Central Avenue
Great Falls, Montana  59405
(406) 771-3759
[EMAIL PROTECTED]
>>> [EMAIL PROTECTED] 01/15/04 23:27 PM >>>
If you could strip-down your web-app to a minimal version that reproduces
this problem, and post it to BugZilla (or even here, if you don't mind
p**sing off everyone on the list with a big download :), I'd really like to
take a look at it.  With a quick eyeballing, I can't see anything in the
code that would produce what you describe.

"Howard Watson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for the reply:
>
> I'm using Tomcat3.3.1a for Netware. Took a look at what you talked
> about and had the same problems. But, I did learn a little more about
> the problem. Apparently, I was hacking the context file, deleting log
> files and restarting Tomcat before results were being written.
>
> The problem is not a failure to write to the log, but that it is taking
> about 5 minutes after restarting Tomcat before it will write to the log.
> Then I have exit out of the browser, start a new browser session and
> recreate the error. It then writes everything for that 5 minutes and up
> to the most recent error.
>
> Later, if I generate an error in a new browser session it will write
> that one error, but if I generate multiple errors in a browser session
> (the same error) I have to start a new browser session, recreate the
> error and then it writes all the missing errors including the most
> current one.
>
> Howard
>
> >>> [EMAIL PROTECTED] 01/14/04 11:31PM >>>
> Using the CVS HEAD (aka 3.3.2-dev), I have no problems with the
> default
> setup (which defines a  in the 'examples' Context).
>
> "Howard Watson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Does any know of good document or a tutorial for using LogSetter
> within
> > a Tomcat3.3 ? The log file is created but nothing is written
> to
> > it.
> >
> > I've searched the list and the Internet and find nothing explicit
> about
> > using name= or servletLogger= in .
> >
> > If I don't use LogSetter within the ; servlet:inits are
> > written and getServletContext().log("Test ServertLog:  ", eSQL);
> writes
> > an error to the  servlet_log correctly.
> >
> > Any ideas?
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



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



Re: virtual hosting and tomcat wt Apache 2 and JK2

2004-01-15 Thread Howard Watson
Are the Apache connector properties set to match the connector you defined in 
server.xml? And is a  the right place to set a worker property?

>>> [EMAIL PROTECTED] 01/15/04 21:56 PM >>>
 
Dear usergroup, 

When I activated the following in my Apache 2 config within the VirtualHost
block for x.xxx.net: 

JkUriSet worker ajp13:localhost:8009



ALL of my virtual hosts stopped working and started complaining of not being
able to find /index.jsp

It is like the  wasn't confined to the VirtualHost but rather
became a server wide configuration.

When I activated the apache<-->tomcat connection it took over ALL of the
virtual hosts and was routing them through Tomcat, does anyone know how to
stop that?
 
Is it my Apache 2 and JK2 connectors, where do I turn now?
Thank you in advance,

Brennon Obst 


Java Security Programmer
iEnergy Main Branch 
39 Melbourne St. / Brisbane 
p. (617) 3846- 
[EMAIL PROTECTED] 

 


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



Re: LogSetter in

2004-01-15 Thread Bill Barker
If you could strip-down your web-app to a minimal version that reproduces
this problem, and post it to BugZilla (or even here, if you don't mind
p**sing off everyone on the list with a big download :), I'd really like to
take a look at it.  With a quick eyeballing, I can't see anything in the
code that would produce what you describe.

"Howard Watson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for the reply:
>
> I'm using Tomcat3.3.1a for Netware. Took a look at what you talked
> about and had the same problems. But, I did learn a little more about
> the problem. Apparently, I was hacking the context file, deleting log
> files and restarting Tomcat before results were being written.
>
> The problem is not a failure to write to the log, but that it is taking
> about 5 minutes after restarting Tomcat before it will write to the log.
> Then I have exit out of the browser, start a new browser session and
> recreate the error. It then writes everything for that 5 minutes and up
> to the most recent error.
>
> Later, if I generate an error in a new browser session it will write
> that one error, but if I generate multiple errors in a browser session
> (the same error) I have to start a new browser session, recreate the
> error and then it writes all the missing errors including the most
> current one.
>
> Howard
>
> >>> [EMAIL PROTECTED] 01/14/04 11:31PM >>>
> Using the CVS HEAD (aka 3.3.2-dev), I have no problems with the
> default
> setup (which defines a  in the 'examples' Context).
>
> "Howard Watson" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Does any know of good document or a tutorial for using LogSetter
> within
> > a Tomcat3.3 ? The log file is created but nothing is written
> to
> > it.
> >
> > I've searched the list and the Internet and find nothing explicit
> about
> > using name= or servletLogger= in .
> >
> > If I don't use LogSetter within the ; servlet:inits are
> > written and getServletContext().log("Test ServertLog:  ", eSQL);
> writes
> > an error to the  servlet_log correctly.
> >
> > Any ideas?
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



Apache + tomcat +ssl

2004-01-15 Thread Omkar Joshi
Hi,

Thanks a lot for all the help, it is working fine now.

I added *.jsp and *.gif in Jkmount, as ony '*'  redirects everything to 
tomcat.

Thanks again

_
Get head-hunted by 10,000 recruiters. http://go.msnserver.com/IN/35984.asp 
Post your CV on naukri.com today.

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


virtual hosting and tomcat wt Apache 2 and JK2

2004-01-15 Thread Brennon Obst
 
Dear usergroup, 

When I activated the following in my Apache 2 config within the VirtualHost
block for x.xxx.net: 

JkUriSet worker ajp13:localhost:8009



ALL of my virtual hosts stopped working and started complaining of not being
able to find /index.jsp

It is like the  wasn't confined to the VirtualHost but rather
became a server wide configuration.

When I activated the apache<-->tomcat connection it took over ALL of the
virtual hosts and was routing them through Tomcat, does anyone know how to
stop that?
 
Is it my Apache 2 and JK2 connectors, where do I turn now?
Thank you in advance,

Brennon Obst 


Java Security Programmer
iEnergy Main Branch 
39 Melbourne St. / Brisbane 
p. (617) 3846- 
[EMAIL PROTECTED] 

 


Re: How do you get Tomcat 4.x to use the same classloader for a web-app's servlets and JSP's?

2004-01-15 Thread Michael Reilly
Filip, Thanks. 
That didn't totally fix it as but when I converted my constants 
class into a servlet and pushed into servlet init, it works as
 I wanted it now.





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



RE: How do you get Tomcat 4.x to use the same classloader for a web-app's servlets and JSP's?

2004-01-15 Thread Filip Hanik
use

ResourceBundle.getBundle(String baseName,
 Locale locale,
 ClassLoader loader)


that should take care of your problem with different classloaders
as a classloader, if you are unsure, just pass in
MyUtilClass.class.getClassLoader() where my util class sits under
web-inf/classes or lib


Filip

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Michael Reilly
Sent: Thursday, January 15, 2004 8:05 PM
To: [EMAIL PROTECTED]
Subject: Re: How do you get Tomcat 4.x to use the same classloader for a
web-app's servlets and JSP's?


Filip,

> but why do you need the JSPs and servlets class loader to be the same,
> just use a shared util class (web-inf/classes or lib), load the resource
> bundles through that one
> one level down, that way the classloader is the same

I have some properties files located under web-inf/classes.

the ant script I am using puts them in there, along with class files.

So when I use

ResourceBundle msg = ResourceBundler.getBundle("util.Messages.properties"),

it uses the class loader to obtain the actual resource.

So, if they are different class loaders, you can't use that mechanism.

Even so, I don't want Tomcat to be running the servlet init method
twice like
it currently does.

That just seems like a waste of resources.

When I add 1 to web.xml, it runs
it twice.

That is the behaviour I also want to stop.



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


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



Re: How do you get Tomcat 4.x to use the same classloader for a web-app's servlets and JSP's?

2004-01-15 Thread Michael Reilly
Filip,

> but why do you need the JSPs and servlets class loader to be the same,
> just use a shared util class (web-inf/classes or lib), load the resource
> bundles through that one
> one level down, that way the classloader is the same

I have some properties files located under web-inf/classes.

the ant script I am using puts them in there, along with class files.

So when I use 

ResourceBundle msg = ResourceBundler.getBundle("util.Messages.properties"), 

it uses the class loader to obtain the actual resource. 

So, if they are different class loaders, you can't use that mechanism.

Even so, I don't want Tomcat to be running the servlet init method twice like 
it currently does.

That just seems like a waste of resources.

When I add 1 to web.xml, it runs it twice.

That is the behaviour I also want to stop.



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



Re: jk2

2004-01-15 Thread Nick
I noticed this as well and wrote an email about it, no response though.


On Thu, 2004-01-15 at 20:18, Brennon Obst wrote:
> Just noticed this morning that when I activated the apache<-->tomcat
> connection it took over ALL of the virtual hosts and was routing them
> 
> through Tomcat. ARGH!
> 
> Know anything about Apache 2 and JK2 connectors?
> 
>  
> 
> Brennon Obst 
> 
> 
> Java Security Programmer
> iEnergy Main Branch 
> 39 Melbourne St. / Brisbane 
> p. (617) 3846- 
> [EMAIL PROTECTED] 
> 
>  
-- 
Nick (Nix) Gray
Senior Systems Engineer
Bruzenak Inc.
(512) 331-7998

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



jk2

2004-01-15 Thread Brennon Obst
Just noticed this morning that when I activated the apache<-->tomcat
connection it took over ALL of the virtual hosts and was routing them

through Tomcat. ARGH!

Know anything about Apache 2 and JK2 connectors?

 

Brennon Obst 


Java Security Programmer
iEnergy Main Branch 
39 Melbourne St. / Brisbane 
p. (617) 3846- 
[EMAIL PROTECTED] 

 


Re: How do you get Tomcat 4.x to use the same classloader for a web-app's servlets and JSP's?

2004-01-15 Thread Filip Hanik
you can pre compile your JSPs into servlets, the drawback is that you can't
reload JSPs

but why do you need the JSPs and servlets class loader to be the same,
just use a shared util class (web-inf/classes or lib), load the resource
bundles through that one
one level down, that way the classloader is the same
Filip

- Original Message -
From: "Michael Reilly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 5:49 PM
Subject: How do you get Tomcat 4.x to use the same classloader for a
web-app's servlets and JSP's?


> How do you get Tomcat 4.x to use the same classloader for a web-app's
servlets
> and JSP's?
>
> I have a class that initialises logging, constants, database settings,
> resource bundles, property files etc.
>
> I setup the web.xml to load the servlet on startup, which setups the class
> correctly.
>
> I was recieving some funny messages about missing resource bundles in the
JSP
> while it looked fine in servlet.
>
> I put some Log4j logging into the static init method of the constant
class.
>
> Then, I loaded the servlet, which worked. After giving it about 10 or so
> seconds, I loaded the JSP, which failed.
>
> When I checked the logs, I saw quickly what was happening. The servlet was
> being loaded twice. Upon checking the class loader faq and other
> documentation, I found a note that says JSP's are loaded in a different
> classloader!!
>
> 2004-01-16 11:34:18,419 [utils.Constants] [INFO ] [] ***
> Servlet initialisation starting
> 2004-01-16 11:34:18,419 [utils.Constants] [INFO ] [] Loading Constants
> 2004-01-16 11:34:29,252 [utils.Constants] [INFO ] [] ***
> Servlet initialisation starting
> 2004-01-16 11:34:29,268 [utils.Constants] [INFO ] [] Loading Constants
>
> Something to do with PropertiesResourceBundles seems to stop them being
loaded
> successfully by two different class-loaders.
>
> Does anyone have any suggestions on a) how to fix this glaring problem, or
b)
> obtain a reference to the JSP class loader so I can load config and
properties
> resource bundles through it?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



How do you get Tomcat 4.x to use the same classloader for a web-app's servlets and JSP's?

2004-01-15 Thread Michael Reilly
How do you get Tomcat 4.x to use the same classloader for a web-app's servlets 
and JSP's?

I have a class that initialises logging, constants, database settings, 
resource bundles, property files etc.

I setup the web.xml to load the servlet on startup, which setups the class 
correctly.

I was recieving some funny messages about missing resource bundles in the JSP 
while it looked fine in servlet.

I put some Log4j logging into the static init method of the constant class.

Then, I loaded the servlet, which worked. After giving it about 10 or so 
seconds, I loaded the JSP, which failed.

When I checked the logs, I saw quickly what was happening. The servlet was 
being loaded twice. Upon checking the class loader faq and other 
documentation, I found a note that says JSP's are loaded in a different 
classloader!!

2004-01-16 11:34:18,419 [utils.Constants] [INFO ] [] *** 
Servlet initialisation starting
2004-01-16 11:34:18,419 [utils.Constants] [INFO ] [] Loading Constants
2004-01-16 11:34:29,252 [utils.Constants] [INFO ] [] *** 
Servlet initialisation starting
2004-01-16 11:34:29,268 [utils.Constants] [INFO ] [] Loading Constants

Something to do with PropertiesResourceBundles seems to stop them being loaded 
successfully by two different class-loaders.

Does anyone have any suggestions on a) how to fix this glaring problem, or b) 
obtain a reference to the JSP class loader so I can load config and properties 
resource bundles through it?


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



SV: Realm & SQL 2000 developer edition

2004-01-15 Thread Søren Blidorf
I didn't think that there would be a difference, other than stuff like
that. 

Can anybody see something in the Realm that might be wrong?





I am a bit lost so any ideas are very welcome

Soren

-Oprindelig meddelelse-
Fra: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sendt: 16. januar 2004 00:56
Til: 'Tomcat Users List'
Emne: RE: Realm & SQL 2000 developer edition

AFAIK the only difference is that the developer edition is designed to
give poor
performance if you have more than 5 concurrent connections. Otherwise
they
should be the same.

Mark

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 11:04 PM
To: [EMAIL PROTECTED]
Subject: Realm & SQL 2000 developer edition

Does anybody know of any difference between SQL 2000 standard and
Developer edition?

I am having problems with my realm:





I have connection to the database and I get an error if I type in wrong
user/pass. But when signing in I does not seem to be logged on.

Every thing works on win2000 and sql 2000 server standard.


Please help.

Soren


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




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



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



Re: Tomcat 4.x running in-process on IIS 5.0

2004-01-15 Thread Filip Hanik
take a look at jk2, I know that building this has been something in
progress, but I am not working with windows or IIS, so I wouldn't know that
status of that one, so jk2, look in that direction, let us know what you
find out

Filip
- Original Message -
From: "Rasmus Munk" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 4:07 PM
Subject: RE: Tomcat 4.x running in-process on IIS 5.0


> I am aware of this fact, and would like to minimize the overhead (and the
> strange errors I sometimes get from using the redirector.dll). I know it
is
> possible to configure tomcat 3.3 to run in-process and communicate to the
> IIS, not through HTTP, but by JNI. I was wondering if this is possible for
> Tomcat 4.x as well?
>
> -Rasmus
>
> -Original Message-
> From: Filip Hanik [mailto:[EMAIL PROTECTED]
> Sent: 16. januar 2004 00:59
> To: Tomcat Users List
> Subject: Re: Tomcat 4.x running in-process on IIS 5.0
>
> >and also seems some what
> > slower compared to communicating directly to Tomcat
>
> anything you put in front of tomcat will make it slower.
> those are just the laws of physics.
> Going to tomcat directly is like me asking you to bake a load of bread.
> Going through IIS is like me telling your buddy telling you to bake the
> bread.
> obviously there is some overhead with me going through your buddy to get
you
> to bake some bread.
>
> Filip
>
> - Original Message -
> From: "Rasmus Munk" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Thursday, January 15, 2004 3:53 PM
> Subject: Tomcat 4.x running in-process on IIS 5.0
>
>
> > Hi
> >
> > Is it possible to run tomcat 4.x in-process on IIS? I have some
> > problems using the ISAPI which shows very strange behavior, .
> >
> > Has anyone got any experience on this matter?
> >
> > Thanks
> >
> > Regards,
> >
> > Rasmus
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Tomcat 4.x running in-process on IIS 5.0

2004-01-15 Thread Rasmus Munk
I am aware of this fact, and would like to minimize the overhead (and the
strange errors I sometimes get from using the redirector.dll). I know it is
possible to configure tomcat 3.3 to run in-process and communicate to the
IIS, not through HTTP, but by JNI. I was wondering if this is possible for
Tomcat 4.x as well?

-Rasmus

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: 16. januar 2004 00:59
To: Tomcat Users List
Subject: Re: Tomcat 4.x running in-process on IIS 5.0

>and also seems some what
> slower compared to communicating directly to Tomcat

anything you put in front of tomcat will make it slower.
those are just the laws of physics.
Going to tomcat directly is like me asking you to bake a load of bread.
Going through IIS is like me telling your buddy telling you to bake the
bread.
obviously there is some overhead with me going through your buddy to get you
to bake some bread.

Filip

- Original Message -
From: "Rasmus Munk" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 3:53 PM
Subject: Tomcat 4.x running in-process on IIS 5.0


> Hi
>
> Is it possible to run tomcat 4.x in-process on IIS? I have some 
> problems using the ISAPI which shows very strange behavior, .
>
> Has anyone got any experience on this matter?
>
> Thanks
>
> Regards,
>
> Rasmus
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



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



Re: Tomcat 4.x running in-process on IIS 5.0

2004-01-15 Thread Filip Hanik
>and also seems some what
> slower compared to communicating directly to Tomcat

anything you put in front of tomcat will make it slower.
those are just the laws of physics.
Going to tomcat directly is like me asking you to bake a load of bread.
Going through IIS is like me telling your buddy telling you to bake the
bread.
obviously there is some overhead with me going through your buddy to get you
to bake some bread.

Filip

- Original Message -
From: "Rasmus Munk" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 3:53 PM
Subject: Tomcat 4.x running in-process on IIS 5.0


> Hi
>
> Is it possible to run tomcat 4.x in-process on IIS? I have some problems
> using the ISAPI which shows very strange behavior, .
>
> Has anyone got any experience on this matter?
>
> Thanks
>
> Regards,
>
> Rasmus
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: How can I count the number of active requests/servlets for Tomcat?

2004-01-15 Thread Christopher Schultz
Tom,

I'm running a web service using Axis with Tomcat.  How can I count 
the number of active requests?
I think you want to use a Filter for your requests:

public class ConnectionCounter
implements javax.servlet.Filter
{
private int _activeConnections = 0;
public void init(FilterConfig fc) { }
public void destroy() { }
public doFilter(ServletRequest req,
ServletResponse rsp,
FilterChain fc)
throws ServletException, IOException
{
synchronized(this) {
++_activeConnections;
}
		fc.doFilter();

synchronized(this) {
--_activeConnections;
}
}
public int getActiveConnectionCount()
{
// Need not be synchronized, int access is atomic
return _activeConnections;
}
}
Of course, you'll need to get a reference to your filter in order to
read the connection count, but that is an exercise left to the reader :)
I used the HttpListener interace but the sessionDestroyed method
doesn't seem to get called until 5 minutes after the servlet ends.
Ouch. You have web services that use sessions? You should probably turn 
off http sessions for those...

-chris

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


RE: Realm & SQL 2000 developer edition

2004-01-15 Thread Mark Thomas
AFAIK the only difference is that the developer edition is designed to give poor
performance if you have more than 5 concurrent connections. Otherwise they
should be the same.

Mark

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 11:04 PM
To: [EMAIL PROTECTED]
Subject: Realm & SQL 2000 developer edition

Does anybody know of any difference between SQL 2000 standard and
Developer edition?

I am having problems with my realm:





I have connection to the database and I get an error if I type in wrong
user/pass. But when signing in I does not seem to be logged on.

Every thing works on win2000 and sql 2000 server standard.


Please help.

Soren


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




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



Re: Need an Idea - appending #tag after someurl.jsp ?

2004-01-15 Thread Mufaddal Khumri
Could you elaborate? you presented just a normal  tag. I am 
trying to jump to an anchor within First.jsp when I am forwarded from a 
servlet. Any ideas?

On Jan 15, 2004, at 4:47 PM, Howard Watson wrote:

I have some links that pass parameters like this:

Add Client IPs

[EMAIL PROTECTED] 01/15/04 03:45PM >>>
hi,

I have a page called First.jsp. I have a  on it. When i
submit a form to a servlet, the servlet needs to forward me to
First.jsp#tag. Problem is i get the following message when i try to do
this:
type: Status report
message: /First.jsp#tag
description: The requested resource (/First.jsp#tag) is not available.
if it were: First.html#tag it would have worked, but for a jsp .. Any
Ideas to get the same effect?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


Tomcat 4.x running in-process on IIS 5.0

2004-01-15 Thread Rasmus Munk
Hi

Is it possible to run tomcat 4.x in-process on IIS? I have some problems
using the ISAPI which shows very strange behavior, and also seems some what
slower compared to communicating directly to Tomcat.

Has anyone got any experience on this matter?

Thanks

Regards,

Rasmus


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



Re: How can I count the number of active requests/servlets for Tomcat?

2004-01-15 Thread Filip Hanik
or use a filter or a valve,
and register the request when it enters, and deregister it when it
completes.
that way you can track how many are active at any given time

Filip
- Original Message -
From: "James Black" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 3:45 PM
Subject: RE: How can I count the number of active requests/servlets for
Tomcat?


> Write each request into a table with the session id?
>
> " Work like you don't need the money, love like you've never been hurt,
and
> dance like no one is watching."
> --- Satchel Paige
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: How can I count the number of active requests/servlets for Tomcat?

2004-01-15 Thread James Black
Write each request into a table with the session id?

" Work like you don't need the money, love like you've never been hurt, and
dance like no one is watching." 
--- Satchel Paige 



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



Re: How can I count the number of active requests/servlets for Tomcat 4.1.29?

2004-01-15 Thread Tom Ly
i'm using tomcat 4.1.29

Tom Ly <[EMAIL PROTECTED]> wrote:I'm running a web service using Axis with Tomcat. How 
can I count the number of active requests? I used the HttpListener interace but the 
sessionDestroyed method doesn't seem to get called until 5 minutes after the servlet 
ends.


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Re: Need an Idea - appending #tag after someurl.jsp ?

2004-01-15 Thread Howard Watson
I have some links that pass parameters like this:

Add Client IPs

>>> [EMAIL PROTECTED] 01/15/04 03:45PM >>>
hi,

I have a page called First.jsp. I have a  on it. When i 
submit a form to a servlet, the servlet needs to forward me to 
First.jsp#tag. Problem is i get the following message when i try to do 
this:

type: Status report
message: /First.jsp#tag
description: The requested resource (/First.jsp#tag) is not available.

if it were: First.html#tag it would have worked, but for a jsp .. Any 
Ideas to get the same effect?


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



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



How can I count the number of active requests/servlets for Tomcat?

2004-01-15 Thread Tom Ly
I'm running a web service using Axis with Tomcat.  How can I count the number of 
active requests?  I used the HttpListener interace but the sessionDestroyed method 
doesn't seem to get called until 5 minutes after the servlet ends.


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Realm & SQL 2000 developer edition

2004-01-15 Thread Søren Blidorf
Does anybody know of any difference between SQL 2000 standard and
Developer edition?

I am having problems with my realm:





I have connection to the database and I get an error if I type in wrong
user/pass. But when signing in I does not seem to be logged on.

Every thing works on win2000 and sql 2000 server standard.


Please help.

Soren


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



Re: Signal 11 crash and mod_jk, mod_jk2, apache2

2004-01-15 Thread Oscar Carrillo
I thought later about mentioning this, and that's exactly right.

I always use the free memtest86 http://memtest86.com to test the
memory sub-system before deploying.

Sometimes I turn down the FSB and the memory bus speed, makes the crashes
go away.

Oscar

On Thu, 15 Jan 2004, Christopher Schultz wrote:

> All,
> 
> > With RH8, I assume that at the very least you'll need to set 
> > LD_KERNEL_ASSUME.
> > 
> > I would consider that the first course of action, and likely would not 
> > need to do anything else. I could see hyperthreading a problem if the 
> > kernel didn't support it very well. You could try the latest 2.4.x kernel.
> 
> If the LD_ASSUME_KERNEL doesn't help, try disabling both SMP and 
> hyperthreading at the same time. I think that's your next most likely fix.
> 
> Just a note: I've had big, beefy servers die with SIG11 on Linux before 
> (or course, that was back when a dual athlon 1GHz was considered 'beefy' 
> :). Anyway, we tried everything, including hiring BEA consultants for a 
> bazillion dollars per hour to help us tune both Weblogic and our VM.
> 
> It turned out to be bad hardware. We had six identical machines and two 
> of 'em kept crapping out. They just sucked. The only solution was to 
> send them back to the manufacturer and ask for more. It turns out that 
> not only did those two (production!) machines suck, but two QA machines 
> and one dev machine (all the same) sucked, too. They all died when we 
> put them under high load. They seemed to do okay under development load 
> (about zero).
> 
> I'll never buy a machine from "Penguin Computing" again.
> 
> Just wanted to mention that sometimes it's not the software's fault. Do 
> you have other similar machines that you can try this on?
> 
> -chris
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



pass session from one app to another app

2004-01-15 Thread Chiming Huang
Hi,
 
We have several web applications all running under one Tomcat 4.1.24.  Users need to 
logon each application to use each individual software.  Is there a way to logon once 
and user can access to other allowed applications?
 
Thanks,
Chiming


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

Need an Idea - appending #tag after someurl.jsp ?

2004-01-15 Thread Mufaddal Khumri
hi,

I have a page called First.jsp. I have a  on it. When i 
submit a form to a servlet, the servlet needs to forward me to 
First.jsp#tag. Problem is i get the following message when i try to do 
this:

type: Status report
message: /First.jsp#tag
description: The requested resource (/First.jsp#tag) is not available.
if it were: First.html#tag it would have worked, but for a jsp .. Any 
Ideas to get the same effect?

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


Wrapping response causing premature stream closure

2004-01-15 Thread Derek Richardson
I am attempting to wrap the HttpServletResponse to apply gzip compression on data sent 
to the client when gzip is supported. I have written a filter (based on published 
code) that works fine with static content. I, however, have a problem when applying it 
to dynamic content. The dynamic content is written using Struts and it seems to be 
breaking during the tiles includes. However, struts does not seem to be the culprit - 
the same code works fine without the filter.

The problem is straightforward - I receive a "java.io.IOException: Stream closed" 
message. I am not including the stack trace because, in my mind (which I am out of 
with frustration at this moment), the problem is not where the closed stream is 
detected, but where it is closed. I placed a log statement in my wrapper to dump a 
stack trace when close() is called and this stack trace is included below. It seems 
that close() is being called from 
org.apache.catalina.core.ApplicationDispatcher.doForward(). But my confusion is how my 
wrapper could be causing this closure, since the application works fine without the 
wrapper.

My question is: what could I be doing in the request or output stream wrappers that 
would cause the stream to be closed?

The wrapper source code is also below.

Thanks,

Derek Richardson



2004-01-15 16:34:21,092 [http8080-Processor3] DEBUG com.appiancorp.ap2.Compressi
onResponseStream -  Closing...
java.lang.Exception
at com.appiancorp.ap2.CompressionResponseStream.close(Unknown Source)
at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:431)
at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
at java.io.PrintWriter.close(PrintWriter.java:137)
at org.apache.jasper.runtime.JspWriterImpl.close(JspWriterImpl.java:223)

at java.io.PrintWriter.close(PrintWriter.java:137)
at org.apache.jasper.runtime.JspWriterImpl.close(JspWriterImpl.java:223)

at java.io.PrintWriter.close(PrintWriter.java:137)
at org.apache.jasper.runtime.JspWriterImpl.close(JspWriterImpl.java:223)

at java.io.PrintWriter.close(PrintWriter.java:137)
at org.apache.jasper.runtime.JspWriterImpl.close(JspWriterImpl.java:223)

at java.io.PrintWriter.close(PrintWriter.java:137)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:453)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.
java:1069)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestP
rocessor.java:274)
at org.apache.struts.action.RequestProcessor.processForwardConfig(Reques
tProcessor.java:455)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ti
lesRequestProcessor.java:320)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
2)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:575)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:498)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
.java:822)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.jav
a:398)
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:13
7)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756
)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(Inser
tTag.java:881)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)

at org.apache.jsp.portlet_default_jsp._jspx_meth_t_insert_0(portlet_defa
ult_jsp.java:1099)
at org.apache.jsp.portlet_default_jsp._jspService(portlet_default_jsp.ja
va:364)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.se

Re: TOMCAT authentication

2004-01-15 Thread Howard Watson
It sounds like you may need to configure IIS require authentication from the user no 
matter how they get there by requireing authentication to the directory(s) with the 
dynamic content. But, don't know enough about IIS to tell you how to do that.

>>> [EMAIL PROTECTED] 01/15/04 02:54PM >>>
Hello

I'm pretty sure this is a known issue, even though I didn't find much about
it; I'm having a problem with authenticating users in TomCat. I have an IIS
server to server static content and Tomcat to serve dynamic content, if
users knows URL that goes directly to Tomcat then Tomcat wont even ask for
use to enter his/her username and password while if user goes through first
page of IIS (where it redirects to tomcat) IIS askes user for his/her
username and password.

How do I enable authentication at Tomcat so that even if users knows direct
URL it would still ask him/her for his/her username and password?

Thank you in advance


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



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



SV: TOMCAT authentication

2004-01-15 Thread Jonas Karlsson


Hi!
If you make use of Tomcats web.xml and set appropriate security constraint
(se http://www.servlets.com/jservlet2/examples/ch08/web.xml) in combination
with the use of Session-objects, you should be able to do what you want to
do, e.g. ask the user for a correct username and password.

Kind regards

Jonas

Hello

I'm pretty sure this is a known issue, even though I didn't find much about
it; I'm having a problem with authenticating users in TomCat. I have an IIS
server to server static content and Tomcat to serve dynamic content, if
users knows URL that goes directly to Tomcat then Tomcat wont even ask for
use to enter his/her username and password while if user goes through first
page of IIS (where it redirects to tomcat) IIS askes user for his/her
username and password.

How do I enable authentication at Tomcat so that even if users knows direct
URL it would still ask him/her for his/her username and password?

Thank you in advance


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


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



TOMCAT authentication

2004-01-15 Thread John Smith
Hello

I'm pretty sure this is a known issue, even though I didn't find much about
it; I'm having a problem with authenticating users in TomCat. I have an IIS
server to server static content and Tomcat to serve dynamic content, if
users knows URL that goes directly to Tomcat then Tomcat wont even ask for
use to enter his/her username and password while if user goes through first
page of IIS (where it redirects to tomcat) IIS askes user for his/her
username and password.

How do I enable authentication at Tomcat so that even if users knows direct
URL it would still ask him/her for his/her username and password?

Thank you in advance


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



RE: Calling a JSP from a virtual host

2004-01-15 Thread Howard Watson
Are all of your named VirturalHosts registered in DNS? What error are
you getting?

Just for funnies try using:

Listen ipAddrOfVirtualHost.com

   ServerName defaultVirtualHost.com
 more  working defaultVirtualHost.com stuff
   jkMount webapp


Listen ipAddrOfVirtualHost.com:5

   ServerName defaultVirtualHost.com
  more virtualHost2 stuff
   jkMount webapp


This should still work:
http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp

This should access the webapp from VH2:
http://www.defaultVirtualHost.com:5/anyTomcatApp/myJspPage.jsp

Howard

>>> [EMAIL PROTECTED] 01/15/04 02:08AM >>>
Hi,

Thank you guys for your answers.
Oscar, I followed the instructions in your HOWTO but it didn't work.
I'm not sure if I made myself clear yesterday explaining my problem.
What I
want to do is to have, for each virtual host in Apache, its respective
web
application in Tomcat so as I can isolate the JSP code for every
Apache
domain inside its own Tomcat application.
Right now I can only access the JSP pages from one of the virtual
hosts, the
first one, the default one. If I want to access from any other virtual
host
(let's say from www.anyVirtualHost.com) I must use
http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead
of
http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp 

Any help would be appreciated. Thanks again,
Dolores

-Original Message-
From: Oscar Carrillo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 14 January, 2004 22:50
To: Tomcat Users List
Subject: Re: Calling a JSP from a virtual host


Hi,

I believe you need to do the jkmounts in each  config in
httpd.conf.

And, I think, you must not use the auto-generated mod_jk.conf.

It should work as explained in my HOWTO:
http://daydream.stanford.edu/tomcat/install_web_services.html 

Eventhough, I reference Linux, Tomcat and Apache configuration should
be
the same, I presume.

Oscar

On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:

>  Hi everyone.
>
> I have the next configuration in my server:
> - Windows 2000 - sorry, no chance to use Linux :-(
> - Apache 2, with some virtual hosts
> - Tomcat 1.4, with some JSP webapps
> - mod_jk, to communicate Apache and Tomcat.
>
>
> I have the whole static code in Apache, and the JSP code in Tomcat.
> Everything works fine, but I think there is something that it's not
going
as
> it should. I'll explain it:
>
> Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the
primary
one,
> the "default" one), myvirtualhost2 and myvirtualhost3, and a copy of
> index.html and index.jsp pages is inside each of those applications.
> http://www.myvirtualhost1.com/index.html --> shows ok
> http://www.myvirtualhost2.com/index.html --> shows ok
> http://www.myvirtualhost3.com/index.html --> shows ok
>
> And I have 1 webapp defined in Tomcat, myWebapp:
> http://www.myvirtualhost1.com/myWebapp/index.jsp --> shows ok
>
> The problem comes here, as I can only call a JSP page through the
"default"
> website in Apache:
> http://www.myvirtualhost2.com/myWebapp/index.jsp or
> http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't
find
the
> page). The only thing that works is
> http://www.myvirtualhost1.com/myWebapp/index.jsp 
>
> Is it possible to make this work? How can I call any JSP page in
Tomcat
from
> any of my virtual hosts in Apache?
>
> I've looked for information all over the Internet and the archives of
this
> mailing list, but I couldn't find any solution (found one but it's
only
> valid for mod_jk2 - it didn't work for mod_jk)
>
> Thanks in advance
>
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED]

>


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


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


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



Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
[EMAIL PROTECTED] wrote:

Then try a servlet filter (this is what I normally do).  That should save you from having code on each JSP page.  Search the web for a good tutorial.

But you still have to decide what action you want to take when a user is not logged, since your URL is being hit and some response is required.

b.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of ext Michael E. Allen
Sent: Thursday, January 15, 2004 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: restricting access to jsp pages
[EMAIL PROTECTED] wrote:


A trivial solution is to store something (anything) in the user session during login, and then retrieve it in the JSP.  If the retrieved value is not null, then the user is logged in.  If the user is not logged in, you can redirect him to the login or an error page.

Of course, this is only one possible solution.  Others exist.  Which is best depends on what you are trying to accomplish in your site.

b.



Yes; but I don't want to check for whether user is logged in or not in 
every page... I want the page to only be accessible to a logged in user. 
Basically I want single sign on; the webapp should not be accessible 
at all except to an authenticated user.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I ended up doing this.  Actually, I had more kinds of files than just 
jsp that I wanted to restrict access to, so I moved everything but the 
Logon.jsp and index.jsp to subdirectories and set up a filter to block 
them if the session didn't have user info stored in the context.

Thank you for your help!



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


Re: isapi_redirector2.dll fails - red arrow

2004-01-15 Thread Frank Febbraro
I looks as if you are following the instructions for the JK1.x connector and
not the JK 2.0.2 instructions.

The best step-by-step I found was here and it worked like a charm.

http://nagoya.apache.org/wiki/apachewiki.cgi?WinJK2IIs

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 1:46 PM
Subject: Re: isapi_redirector2.dll fails - red arrow


>
> I couldn't find the isapi_redirector.dll, just the isapi_redirector2.dll.
>
> Registry:
> extension_uri =  /tomcat/isapi_redirector2.dll
> worker_file  = D:\Program Files\Tomcat 4.1\conf\workers.properties
> worker_mount_file  = D:\Program Files\Tomcat
4.1\conf\uriworkermap.properties
> log_file  = D:\Program Files\Tomcat 4.1\logs\jk_iis.log
> log_level  = debug
>
> Maybe I'll try your setup program if I can't get this to work.
> Thanks
>
>
>
>
>   Daniel Schmitt
>   <[EMAIL PROTECTED]To:   Tomcat Users List
<[EMAIL PROTECTED]>
>   e>   cc:
>Subject:  Re:
isapi_redirector2.dll fails - red arrow
>   01/15/2004 12:38
>   PM
>   Please respond to
>   "Tomcat Users
>   List"
>
>
>
>
>
>
> [EMAIL PROTECTED] wrote:
>
> > I followed http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html for
> > instructions.
> They are out of date -> jk1.2 Connector
>
> are you pointing to isapi_redirector2.dll not isapi_redirector.dll?
> could you post your reg entrys here?
>
>
> You can also try our jk2.02 installer at:
> http://www.shiftomat.com/opensource
> but you have to undo your manual install first to get it working
>
>
> hope this helps
>
> --
> Daniel Schmitt
> http://www.shiftomat.de
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: Configuring Tomcat connections

2004-01-15 Thread Christian Cryder
Ok, so I tried upgrading to Tomcat 5.0.16, and I am still seeing similar
results (slightly better).

I am hitting the standard HelloWorld servlet
(http://localhost:8080/servlets-examples/servlet/HelloWorldExample). When I
get over about 16-17 simultaneous connections, I start getting connect
expections.

I am using the default server configuration from server.xml (and once again,
changing these values does not seem to make any difference whatsoever):



So how come I can't get more than 20 connections at a time? What gives???

Christian

(I am running on Win2K Pro, by the way; latest service packs, 512 MB Ram)
--
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
--
"Coffee? I could quit anytime, just not today"


> -Original Message-
> From: Christian Cryder [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 15, 2004 2:32 PM
> To: Tomcat-User
> Subject: Configuring Tomcat connections
>
>
> Can someone offer some suggestions on configuring the number of
> connections
> Tomcat 4.1 will accept? I am using a stress tester to access the sample
> servlet (http://localhost:8080/examples/servlet/HelloWorldExample).
> Somewhere around 14-15 concurrent requests, I start seeing
> "java.net.ConnectException: Connection refused: connect"
>
> Looking in the Tomcat server.xml file, I see
>
> port="8080" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort="8443"
>acceptCount="10" debug="0" connectionTimeout="2"
>useURIValidationHack="false" />
>
> I assume this is the connector I'm going through (since my URL is
> referring
> to port 8080). According to the docs
> (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/webapp.html)
> acceptCount and maxProcessors should affect this behavior, but I am not
> seeing any changes when I adjust them upwards. Should I be looking
> elsewhere? Anyone have any suggestions?
>
> Thanks,
> Christian
> --
> Christian Cryder
> Internet Architect, ATMReports.com
> Project Chair, BarracudaMVC - http://barracudamvc.org
> --
> "Coffee? I could quit anytime, just not today"
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: Calling a JSP from a virtual host

2004-01-15 Thread Oscar Carrillo
I've only setup one Virtual Host. Tomorrow I'm setting up multiple, so 
I'll let you know how it goes and provide the configuration.

I understand that you're wanting a different webapp for each virtual host.

Oscar

On Thu, 15 Jan 2004, Dolores García-Izquierdo Jaén wrote:

> Hi,
> 
> Thank you guys for your answers.
> Oscar, I followed the instructions in your HOWTO but it didn't work.
> I'm not sure if I made myself clear yesterday explaining my problem. What I
> want to do is to have, for each virtual host in Apache, its respective web
> application in Tomcat so as I can isolate the JSP code for every Apache
> domain inside its own Tomcat application.
> Right now I can only access the JSP pages from one of the virtual hosts, the
> first one, the default one. If I want to access from any other virtual host
> (let's say from www.anyVirtualHost.com) I must use
> http://www.defaultVirtualHost.com/anyTomcatApp/myJspPage.jsp instead of
> http://www.anyVirtualHost.com/anyTomcatApp/myJspPage.jsp
> 
> Any help would be appreciated. Thanks again,
> Dolores
> 
> -Original Message-
> From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 14 January, 2004 22:50
> To: Tomcat Users List
> Subject: Re: Calling a JSP from a virtual host
> 
> 
> Hi,
> 
> I believe you need to do the jkmounts in each  config in
> httpd.conf.
> 
> And, I think, you must not use the auto-generated mod_jk.conf.
> 
> It should work as explained in my HOWTO:
> http://daydream.stanford.edu/tomcat/install_web_services.html
> 
> Eventhough, I reference Linux, Tomcat and Apache configuration should be
> the same, I presume.
> 
> Oscar
> 
> On Wed, 14 Jan 2004, Dolores García-Izquierdo Jaén wrote:
> 
> >  Hi everyone.
> >
> > I have the next configuration in my server:
> > - Windows 2000 - sorry, no chance to use Linux :-(
> > - Apache 2, with some virtual hosts
> > - Tomcat 1.4, with some JSP webapps
> > - mod_jk, to communicate Apache and Tomcat.
> >
> >
> > I have the whole static code in Apache, and the JSP code in Tomcat.
> > Everything works fine, but I think there is something that it's not going
> as
> > it should. I'll explain it:
> >
> > Let's say I have 3 virtual hosts in Apache: myvirtualhost1 (the primary
> one,
> > the "default" one), myvirtualhost2 and myvirtualhost3, and a copy of
> > index.html and index.jsp pages is inside each of those applications.
> > http://www.myvirtualhost1.com/index.html --> shows ok
> > http://www.myvirtualhost2.com/index.html --> shows ok
> > http://www.myvirtualhost3.com/index.html --> shows ok
> >
> > And I have 1 webapp defined in Tomcat, myWebapp:
> > http://www.myvirtualhost1.com/myWebapp/index.jsp --> shows ok
> >
> > The problem comes here, as I can only call a JSP page through the
> "default"
> > website in Apache:
> > http://www.myvirtualhost2.com/myWebapp/index.jsp or
> > http://www.myvirtualhost3.com/myWebapp/index.jsp don't work (can't find
> the
> > page). The only thing that works is
> > http://www.myvirtualhost1.com/myWebapp/index.jsp
> >
> > Is it possible to make this work? How can I call any JSP page in Tomcat
> from
> > any of my virtual hosts in Apache?
> >
> > I've looked for information all over the Internet and the archives of this
> > mailing list, but I couldn't find any solution (found one but it's only
> > valid for mod_jk2 - it didn't work for mod_jk)
> >
> > Thanks in advance
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: Trying to write my own startup script, but seems to missed something....

2004-01-15 Thread Oscar Carrillo
You can take a look at my daemon script if it helps.

http://daydream.stanford.edu/tomcat/install_web_services.html#daemons

Oscar

On Thu, 15 Jan 2004, Johan Bång 
wrote:

> Hi!
> I am trying to write my own init script to tomcat 5 for Fedora Core 1
> I have tryed to decode what the startup.sh, catalina.sh and 
> setclasspath.sh
> is doing, and I think that I have figured out some of it, but according 
> to catalina.out
> it isn't enought.
> 
> Could someone who knows how tomcat is support to start please tell me 
> what I hacve done wrong?
> 
> I get this error message when I tries to start Tomcat:
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/catalina/startup/Bootstrap
> 
> My .conf file, witch is supposed to set the nessesary env variables 
> looks someting like this:
> # Where the tomcat installations lives.
> CATALINA_HOME="/home/johan/download/tomcat"
> CATALINA_BASE="/home/johan/download/tomcat"
> CATALINA_TMPDIR="/home/johan/download/tomcat/tmp"
> 
> # Tomcat options. These are passed to Tomcat as-is.
> CATALINA_OPTS=""
> 
> # Java settings. If you use Sun's JDK, you might want to add -server 
> here.
> JAVA_HOME="/usr/java/j2sdk1.4.2_03"
> JAVA_OPTS="-server"
> 
> # Classpath settings. You migth add your custom classes here.
> CLASSPATH=""
> 
> And the part of the init script, where the magic is suppose to happend:
> # Get tomcat config options
> . /etc/tomcat.conf
> 
> # Functions
> start()
> {
>  echo -n "Starting tomcat: "
>  # Adding stuff to classpath
>  CLASSPATH="$JAVA_HOME"/lib/tools.jar
>  CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar
>  
> CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/commons-logging-api.jar
> 
>  JAVA_ENDORSED_DIRS="$CATALINA_HOME"/common/endorsed
> 
>  # Starting Tomcat
>  $JAVA_HOME/bin/java $JAVA_OPTS $CATALINA_OPTS \
>  -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath 
> "$CLASSPATH" \
>  -Dcatalina.base="$CATALINA_BASE" \
>  -Dcatalina.home="$CATALINA_HOME" \
>  -Djava.io.tmpdir="$CATALINA_TMPDIR" \
>  org.apache.catalina.startup.Bootstrap "$@" start \
>  >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
> 
>  echo $! > $CATALINA_PID
> 
>  retun $RETVAL
> }
> 
> Regards
> Johan
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: isapi_redirector2.dll fails - red arrow

2004-01-15 Thread Daniel Schmitt
[EMAIL PROTECTED] wrote:

I couldn't find the isapi_redirector.dll, just the isapi_redirector2.dll.
isapi_redirector2.dll ia correct

Registry:
extension_uri =  /tomcat/isapi_redirector2.dll
worker_file  = D:\Program Files\Tomcat 4.1\conf\workers.properties
worker_mount_file  = D:\Program Files\Tomcat 4.1\conf\uriworkermap.properties
log_file  = D:\Program Files\Tomcat 4.1\logs\jk_iis.log
log_level  = debug
This can't work, should be something like

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
Redirector\2.0]
"serverRoot"="D:\\Program Files\\Tomcat 4.1"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="D:\\Program Files\\Tomcat 4.1\\conf\\workers2.properties"
"authComplete"="0"
"threadPool"="20"
@="D:\\Program Files\\Tomcat 4.1"

Delete and backup your config and give the installer a try!

--
Daniel Schmitt
http://www.shiftomat.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Successful build of mod_jk2 on Mac OS X Panther

2004-01-15 Thread Timothy Stone
List,

I have successfully built mod_jk2 on Mac OS X Panther (10.3.2).

I document my success at:

http://forums.serverlogistics.com/viewtopic.php?t=644

*where comments are welcome.* NB: My success in part may be due to using 
ServerLogistic's Complete Apache 2.0.48 distro, so it is somewhat 
specific to this Apache build, however, I intend to extend my experience 
with an Apache build from source on Mac OS X, something that I have done 
serveral times on Linux.

For posterity and convenience, I'm including my notes posted at 
ServerLogistics here:

How did you build mod_jk2 for Mac OS X? I answer my own question but 
solicit review and feedback as IANAUD (I Am Not A UNIX Developer). I 
made "best guesses" about what should be done to fix build errors I 
encountered from my experiences with building software on Linux.

!!! I have not tested this build in a test or production environment 
very extensively.

Make sure you have installed the Developer Tools for Panther. You will 
find these on the XCode CD.

The following guide may require that you have installed Complete Apache 
2.0.48 from ServerLogistics.

[Complete Apache 2.0.48]
http://www.serverlogistics.com/apache2.php#download
   1. Download and unpack the JTC source. Where you download it to is 
not important, but will be referred to later as ${JTC_SRC_ROOT}.
  Code:
  % tar xvzf ${JTC_SRC}.tar.gz

[JTC_SRC]
http://jakarta.apache.org/site/sourceindex.cgi
   2. Download and unpack the PERL Compatability Regular Expression 
Library. Again, I will refer to it as ${PCRE_SRC_ROOT}. I used v4.4. It 
is stated on the home page (1/7/2004) as the most recent version. 
However, FTP has a v4.5 available.
  Code:
  % tar xvzf ${PCRE_SRC}.tar.gz

[PCRE_SRC]
http://www.pcre.org/
   3. PCRE builds out-of-the-box on Mac OS X Panther. I built the 
default configuration save support for UTF-8.
  Code:
  % cd ${PCRE_SRC_ROOT}
  % ./configure --enable-utf8
  ...
  ...
  % make
  % make install

  This installs the pcre libs in /usr/local/lib. One can use the 
--prefix=[DIR] flag during configure if wanted. ./configure --help 
explains this and much more.

   4. I originally said something about the Apache Portable Runtime. 
APR is included with Complete Apache 2.0.48. See note above about 
installing Complete Apache2 before continuing further.

   5. Fix ${JTC_SRC_ROOT}/jk/native2/buildconf.sh. Mac OS X does not 
have the libtoolize tool, but a "generic" libtoolize. vi/bbedit the 
first line and replace "libtoolize" with "glibtoolize".
  Code:
  % cd ${JTC_SRC_ROOT}/jk/native2
  vi buildconf.sh

   6. Run the fixed buildconf.sh.
  Code:
  % ./buildconf.sh


   7. Now you're ready to run the configure script.
  Code:
  % ./configure \
  > --with-apxs2=${APACHE_ROOT}/bin/apxs \
  > --with-tomcat41=${TOMCAT_ROOT} \
  > --with-java-home=/Library/Java/Home \
  > --with-jni \
  > --with-pcre
  [from Tomcat User and Jakarta Tip]
  http://marc.theaimsgroup.com/?l=tomcat-user&m=105103815630094&w=2
  The configure script is going to create a bunch of Makefiles. The 
Makefiles do not seem to account for the idiosyncroacies of Mac OS X 
Panther. You have to find references to "-lcrypt". The -lcrypt flag is 
not supported in Mac OS X. These functions are builtin to the OS and 
found in unistd.

[lcrypt flag support notes]
http://developer.apple.com/technotes/tn2002/tn2071.html#Section17
  Also, configure is going to build a libtool in the current 
directory, but the Makefiles are going to reference the libtool found in 
/Library/Apache2. I don't know why. So we need to edit this variable too.

   8. Two files are of interest... ${JTC_SRC_ROOT} 
/jk/native2/server/apache2/Makefile and ${JTC_SRC_ROOT} 
/jk/native2/server/apache2/Makefile.in. Find the JK_LDFLAGS and remove 
"-lcrypt" references.

  Also replace the LIBTOOL value with LIBTOOL=../../libtool .

  9. Now you're ready to make.
  Code:
  % cd ${JTC_SRC_ROOT}/jk/native2
  % make
  10. Hopefully you should have a successful build.

  11. At the end of make there is a request that one invoke libtool to 
finish with:
  Code:
  libtool --finish ...

  This has never work for me so I just manually copy the files.

  Code:
  % cp ${JTC_SRC_ROOT}/jk/build/jk2/apache2/mod_jk2.so 
${APACHE_ROOT}/modules
  % cp ${JTC_SRC_ROOT}/jk/build/jk2/apache2/jkjni.so 
${TOMCAT_ROOT}/server/lib

  Double check your module permissions!

  12. The rest of the configuration is well documented at Jakarta.

I'm very interested in feedback and will attempt to answer questions 
when possible.

Tim



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


Configuring Tomcat connections

2004-01-15 Thread Christian Cryder
Can someone offer some suggestions on configuring the number of connections
Tomcat 4.1 will accept? I am using a stress tester to access the sample
servlet (http://localhost:8080/examples/servlet/HelloWorldExample).
Somewhere around 14-15 concurrent requests, I start seeing
"java.net.ConnectException: Connection refused: connect"

Looking in the Tomcat server.xml file, I see



I assume this is the connector I'm going through (since my URL is referring
to port 8080). According to the docs
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/webapp.html)
acceptCount and maxProcessors should affect this behavior, but I am not
seeing any changes when I adjust them upwards. Should I be looking
elsewhere? Anyone have any suggestions?

Thanks,
Christian
--
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
--
"Coffee? I could quit anytime, just not today"


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



creating virtual directories

2004-01-15 Thread Gabriel Oyarzabal
how i change the default document root directory?
and
how i create a virtual document directory?
ps.: im using tomcat 5 - windows XP

Gabriel


Re: LogSetter in

2004-01-15 Thread Howard Watson
Thanks for the reply:

I'm using Tomcat3.3.1a for Netware. Took a look at what you talked
about and had the same problems. But, I did learn a little more about
the problem. Apparently, I was hacking the context file, deleting log
files and restarting Tomcat before results were being written.

The problem is not a failure to write to the log, but that it is taking
about 5 minutes after restarting Tomcat before it will write to the log.
Then I have exit out of the browser, start a new browser session and
recreate the error. It then writes everything for that 5 minutes and up
to the most recent error. 

Later, if I generate an error in a new browser session it will write
that one error, but if I generate multiple errors in a browser session
(the same error) I have to start a new browser session, recreate the
error and then it writes all the missing errors including the most
current one.

Howard

>>> [EMAIL PROTECTED] 01/14/04 11:31PM >>>
Using the CVS HEAD (aka 3.3.2-dev), I have no problems with the
default
setup (which defines a  in the 'examples' Context).

"Howard Watson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does any know of good document or a tutorial for using LogSetter
within
> a Tomcat3.3 ? The log file is created but nothing is written
to
> it.
>
> I've searched the list and the Internet and find nothing explicit
about
> using name= or servletLogger= in .
>
> If I don't use LogSetter within the ; servlet:inits are
> written and getServletContext().log("Test ServertLog:  ", eSQL);
writes
> an error to the  servlet_log correctly.
>
> Any ideas?




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


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



RE: [OT] Apache and Tomcat together

2004-01-15 Thread Green, Jeffrey
Anyone know about the benefits / detriments of using mod_proxy?  It sets up
a heck of a lot easier than mod_jk2 and seems to offer the same
functionality.  A great doc on this is at
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104441321803644&w=2.
Anyone have any insights?  Having set up both mod_proxy and mod_jk2, I can
safely say that mod_proxy was much easier for me.

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 10:36 AM
To: Tomcat Users List
Subject: Re: [OT] Apache and Tomcat together


Mike,

>>Apache is faster for static content.
> 
> Don't get Yoav started...

:) I have gotton him started on this, before. It's funny, though... last 
time I looked at the Tomcat Connector FAQ, it actually says flat out 
"Apache is faster than Tomcat at serving static content": 
http://jakarta.apache.org/tomcat/faq/connectors.html. It does qualify 
that statement by saying that unless you're talking about high traffic, 
then it doesn't really matter. However, they *do* make that claim.

-chris

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



--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



Re: javax.servlet.jsp.JspException: Premature end of file

2004-01-15 Thread Michael Duffy
Once again, my problems were self-inflicted, and the
Java Forum has saved me again:

http://forum.java.sun.com/thread.jsp?forum=33&thread=482127

I had a serious pilot error: my  JSTL tag
didn't have the correct attributes.  Once that was
pointed out to me, all was well. 

Sorry for the bother.  Two silly questions in one day!
 I hope I'm done now. - MOD


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Re: isapi_redirector2.dll fails - red arrow

2004-01-15 Thread KKolle

I couldn't find the isapi_redirector.dll, just the isapi_redirector2.dll.

Registry:
extension_uri =  /tomcat/isapi_redirector2.dll
worker_file  = D:\Program Files\Tomcat 4.1\conf\workers.properties
worker_mount_file  = D:\Program Files\Tomcat 4.1\conf\uriworkermap.properties
log_file  = D:\Program Files\Tomcat 4.1\logs\jk_iis.log
log_level  = debug

Maybe I'll try your setup program if I can't get this to work.
Thanks



   

  Daniel Schmitt   

  <[EMAIL PROTECTED]To:   Tomcat Users List <[EMAIL 
PROTECTED]>
  e>   cc: 

   Subject:  Re: isapi_redirector2.dll 
fails - red arrow   
  01/15/2004 12:38 

  PM   

  Please respond to

  "Tomcat Users

  List"

   

   





[EMAIL PROTECTED] wrote:

> I followed http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html for
> instructions.
They are out of date -> jk1.2 Connector

are you pointing to isapi_redirector2.dll not isapi_redirector.dll?
could you post your reg entrys here?


You can also try our jk2.02 installer at:
http://www.shiftomat.com/opensource
but you have to undo your manual install first to get it working


hope this helps

--
Daniel Schmitt
http://www.shiftomat.de


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







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



RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
AHA!  That worked like gold.  Thanks for the info!  I didn't realize that
Tomcat's Response was a superclass of HttpServletResponse.  One thing I did
note though, is that one can't invoke the next valve in the chain after
sending a redirect (as far as I can tell).  I suppose this just means that a
valve  that behaves in such a manner must be the last one in the chain or
must break out of the chain midway by simply returning.  Again, thanks.

-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 1:26 PM
To: Tomcat Users List
Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves




Green, Jeffrey wrote:

>Regarding the last post on this topic:
>
>1) sendRedirect() doesn't seem to work because ValveBase's invoke() 
>method takes an org.apache.catalina.Response object and that class has 
>no
>sendRedirect() method.  Am I missing something here?
>  
>
Yes :-) Downcast the object to 
((HttpServletResponse)response).sendRedirect(...)

>2) if I put the valve at the engine level, will it be invoked before 
>the Mapper, allowing me to call setRequestURI()?
>  
>
No.

>3) that looks as you say, to be no trivial task, so I'll avoid it.
>  
>
I really think sendRedirect is a way you should explore

>Thanks again for the responses.
>  
>
-- Jeanfrancois

>
>
>
>  
>
>>Aaah.  I see.  Unfortunately sendRedirect() does not work at the valve 
>>level.
>>
>>
>>
>That's not true ;-) SunOne AppServ is using that technique :-) Why are 
>you saying it doesn't work at the valve level?
>
>  
>
>>I could use that solution only if I implemented the redirect for each 
>>specific webapp, but this is a bit too much code duplication to be 
>>productive / condusive to change.
>>
>>
>>
>Why? It depends where you put the valve? Remember you can also place 
>your valve at the engine level.
>
>  
>
>>It seems that this decision has crippled
>>some of Tomcat's functionality - whereas before, I could redirect 
>>requests across a whole host, now I can only do that per webapp.
>>Was anything else implemented to achieve such functionality instead? 
>>
>>
>>
>Yes, by using the mapper directly. But that's a lot of works (you need 
>to understand how the mapper works, etc.).  The main object to look at 
>is MappingData where the result of the mapping is stored.
>
>-- Jeanfrancois
>
>
>
>
>  
>
>>Thanks
>>again.
>>
>>-Original Message-
>>From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, January 15, 2004 11:21 AM
>>To: Tomcat Users List
>>Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves
>>
>>
>>
>>
>>Green, Jeffrey wrote:
>>
>> 
>>
>>
>>
>>>Hello all.  Using valves in Tomcat 4, we successfully managed to
>>>intercept requests to specific contexts and direct them elsewhere.  For 
>>>example, we could intercept all requests to /SECRETWEBAPP and redirect
>>>  
>>>
>them
>  
>
>>>   
>>>
>>>  
>>>
>>to /.
>> 
>>
>>
>>
>>>In order to accomplish this, we used valves which would call
>>>setRequestURI("/") on all requests that were prefixed with
>>>"/SECRETWEBAPP". Unfortunately, this technique no longer seems to work 
>>>with Tomcat 5.  Does anyone know if anything changed regarding such 
>>>usage of this method or if there is a better way to do this?
>>>
>>>
>>>   
>>>
>>>  
>>>
>>Yes, the HTTP Mapper has been completely re-written. The mapping occurs
>>*before* entering the pipeline (valve) instead of *after* in Tomcat 4. 
>>You may want to try a re-direct instead. Something like:
>>
>>if ( bla bla)
>>   hresponse.sendRedirect(
>>   hresponse.encodeRedirectURL("/"));
>>
>>
>>-- Jeanfrancois
>>
>>
>> 
>>
>>
>>
>>>Thanks.
>>>
>>>--
>>>-
>>>---
>>>This message is intended only for the personal and confidential use of
the
>>>designated recipient(s) named above.  If you are not the intended
>>>  
>>>
>recipient
>  
>
>>>   
>>>
>>>  
>>>
>>of
>> 
>>
>>
>>
>>>this message you are hereby notified that any review, dissemination, 
>>>distribution or copying of this message is strictly prohibited.  This 
>>>communication is for information purposes only and should not be 
>>>regarded
>>>   
>>>
>>>  
>>>
>>as
>> 
>>
>>
>>
>>>an offer to sell or as a solicitation of an offer to buy any financial 
>>>product, an official confirmation of any transaction, or as an 
>>>official statement of Lehman Brothers.  Email transmission cannot be 
>>>guaranteed to
>>>   
>>>
>>>  
>>>
>>be
>> 
>>
>>
>>
>>>secure or error-free.  Therefore, we do not represent that this 
>>>information
>>>   
>>>
>>>  
>>>
>>is
>> 
>>
>>
>>
>>>complete or accurate and it should not be relied upon as such.  All 
>>>information is subject to change without notice.
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additi

Re: isapi_redirector2.dll fails - red arrow

2004-01-15 Thread Daniel Schmitt
[EMAIL PROTECTED] wrote:

I followed http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html for
instructions.
They are out of date -> jk1.2 Connector

are you pointing to isapi_redirector2.dll not isapi_redirector.dll?
could you post your reg entrys here?
You can also try our jk2.02 installer at:
http://www.shiftomat.com/opensource
but you have to undo your manual install first to get it working
hope this helps

--
Daniel Schmitt
http://www.shiftomat.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand


Green, Jeffrey wrote:

Regarding the last post on this topic:

1) sendRedirect() doesn't seem to work because ValveBase's invoke() method
takes an org.apache.catalina.Response object and that class has no
sendRedirect() method.  Am I missing something here?
 

Yes :-) Downcast the object to 
((HttpServletResponse)response).sendRedirect(...)

2) if I put the valve at the engine level, will it be invoked before the
Mapper, allowing me to call setRequestURI()?
 

No.

3) that looks as you say, to be no trivial task, so I'll avoid it.  
 

I really think sendRedirect is a way you should explore

Thanks again for the responses.
 

-- Jeanfrancois



 

Aaah.  I see.  Unfortunately sendRedirect() does not work at the valve 
level.

   

That's not true ;-) SunOne AppServ is using that technique :-) Why are 
you saying it doesn't work at the valve level?

 

I could use that solution only if I implemented the redirect for each 
specific webapp, but this is a bit too much code duplication to be 
productive / condusive to change.

   

Why? It depends where you put the valve? Remember you can also place 
your valve at the engine level.

 

It seems that this decision has crippled
some of Tomcat's functionality - whereas before, I could redirect 
requests across a whole host, now I can only do that per webapp.
Was anything else implemented to achieve such functionality instead? 

   

Yes, by using the mapper directly. But that's a lot of works (you need 
to understand how the mapper works, etc.).  The main object to look at 
is MappingData where the result of the mapping is stored.

-- Jeanfrancois



 

Thanks
again.
-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 11:21 AM
To: Tomcat Users List
Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves


Green, Jeffrey wrote:



   

Hello all.  Using valves in Tomcat 4, we successfully managed to
intercept requests to specific contexts and direct them elsewhere.  For 
example, we could intercept all requests to /SECRETWEBAPP and redirect
 

them
 

  

 

to /.

   

In order to accomplish this, we used valves which would call
setRequestURI("/") on all requests that were prefixed with
"/SECRETWEBAPP". Unfortunately, this technique no longer seems to work 
with Tomcat 5.  Does anyone know if anything changed regarding such 
usage of this method or if there is a better way to do this?

  

 

Yes, the HTTP Mapper has been completely re-written. The mapping occurs
*before* entering the pipeline (valve) instead of *after* in Tomcat 4. 
You may want to try a re-direct instead. Something like:

if ( bla bla)
  hresponse.sendRedirect(
  hresponse.encodeRedirectURL("/"));
-- Jeanfrancois



   

Thanks.

--
-
---
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended
 

recipient
 

  

 

of

   

this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be 
regarded
  

 

as

   

an offer to sell or as a solicitation of an offer to buy any financial 
product, an official confirmation of any transaction, or as an 
official statement of Lehman Brothers.  Email transmission cannot be 
guaranteed to
  

 

be

   

secure or error-free.  Therefore, we do not represent that this 
information
  

 

is

   

complete or accurate and it should not be relied upon as such.  All 
information is subject to change without notice.

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


  

 

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


---
---
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
   

of
 

this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded
   

as
 

an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to
   

be
 

secure or error-free.  Therefore, we do not represent that this information
   

is
 

complete or accurate and it should not be relied upon as such.  All
information is subject to change without not

Trying to compile jsvc from tomcat 5

2004-01-15 Thread Johan Bång
Hi!
I'm currently trying to compile jsvc witch are included in the binary 
release of Tomcat5
I'm following the instructions and the compilation ends without any 
errors, but nothing
happends when I try to execute the Tomcat.sh script (after I have 
updated it with my settings).

The only error message I get is:
 jsvc.exec error: Cannot find daemon loader 
org/apache/commons/daemon/support/DaemonLoader

But what I can see, is commons-daemon.jar included in the classpath  
($CATALINA_HOME/bin)

Have I missed someting?

Regards
Johan
-: Det är av misstagen man lär sig, om inte av andras så väl av egna. :-

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


RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
Regarding the last post on this topic:

1) sendRedirect() doesn't seem to work because ValveBase's invoke() method
takes an org.apache.catalina.Response object and that class has no
sendRedirect() method.  Am I missing something here?

2) if I put the valve at the engine level, will it be invoked before the
Mapper, allowing me to call setRequestURI()?

3) that looks as you say, to be no trivial task, so I'll avoid it.  

Thanks again for the responses.




>Aaah.  I see.  Unfortunately sendRedirect() does not work at the valve 
>level.
>
That's not true ;-) SunOne AppServ is using that technique :-) Why are 
you saying it doesn't work at the valve level?

>I could use that solution only if I implemented the redirect for each 
>specific webapp, but this is a bit too much code duplication to be 
>productive / condusive to change.
>
Why? It depends where you put the valve? Remember you can also place 
your valve at the engine level.

>It seems that this decision has crippled
>some of Tomcat's functionality - whereas before, I could redirect 
>requests across a whole host, now I can only do that per webapp.
>Was anything else implemented to achieve such functionality instead? 
>
Yes, by using the mapper directly. But that's a lot of works (you need 
to understand how the mapper works, etc.).  The main object to look at 
is MappingData where the result of the mapping is stored.

-- Jeanfrancois




> Thanks
>again.
>
>-Original Message-
>From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 15, 2004 11:21 AM
>To: Tomcat Users List
>Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves
>
>
>
>
>Green, Jeffrey wrote:
>
>  
>
>>Hello all.  Using valves in Tomcat 4, we successfully managed to
>>intercept requests to specific contexts and direct them elsewhere.  For 
>>example, we could intercept all requests to /SECRETWEBAPP and redirect
them
>>
>>
>to /.
>  
>
>>In order to accomplish this, we used valves which would call
>>setRequestURI("/") on all requests that were prefixed with
>>"/SECRETWEBAPP". Unfortunately, this technique no longer seems to work 
>>with Tomcat 5.  Does anyone know if anything changed regarding such 
>>usage of this method or if there is a better way to do this?
>> 
>>
>>
>>
>Yes, the HTTP Mapper has been completely re-written. The mapping occurs
>*before* entering the pipeline (valve) instead of *after* in Tomcat 4. 
>You may want to try a re-direct instead. Something like:
>
>if ( bla bla)
>hresponse.sendRedirect(
>hresponse.encodeRedirectURL("/"));
>
>
>-- Jeanfrancois
>
>
>  
>
>>Thanks.
>>
>>--
>>-
>>---
>>This message is intended only for the personal and confidential use of the
>>designated recipient(s) named above.  If you are not the intended
recipient
>>
>>
>of
>  
>
>>this message you are hereby notified that any review, dissemination, 
>>distribution or copying of this message is strictly prohibited.  This 
>>communication is for information purposes only and should not be 
>>regarded
>>
>>
>as
>  
>
>>an offer to sell or as a solicitation of an offer to buy any financial 
>>product, an official confirmation of any transaction, or as an 
>>official statement of Lehman Brothers.  Email transmission cannot be 
>>guaranteed to
>>
>>
>be
>  
>
>>secure or error-free.  Therefore, we do not represent that this 
>>information
>>
>>
>is
>  
>
>>complete or accurate and it should not be relied upon as such.  All 
>>information is subject to change without notice.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> 
>>
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>---
>---
>This message is intended only for the personal and confidential use of the
>designated recipient(s) named above.  If you are not the intended recipient
of
>this message you are hereby notified that any review, dissemination,
>distribution or copying of this message is strictly prohibited.  This
>communication is for information purposes only and should not be regarded
as
>an offer to sell or as a solicitation of an offer to buy any financial
>product, an official confirmation of any transaction, or as an official
>statement of Lehman Brothers.  Email transmission cannot be guaranteed to
be
>secure or error-free.  Therefore, we do not represent that this information
is
>complete or accurate and it should not be relied upon as such.  All
>information is subject to change without notice.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED

isapi_redirector2.dll fails - red arrow

2004-01-15 Thread KKolle
Tomcat = 4.1
IIS = 5.0
OS = windows2000
DLL = isapi_redirector2.dll (downloaded from
http://apache.mirrors.pair.com/jakarta/tomcat-connectors/jk2/binaries/win32/)

I followed http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html for
instructions.

I've made double sure my entries in the registry are correct. I checked
read/write/execute when adding the filter to the virtual directory.
I have my workers.properties, uriworkermap.properties, and I added the connector
tag in the server.xml. All of these are in /conf.

Once I was done with all of this configuration, I restarted the server (warm
boot, not cold boot).
Now, in IIS under ISAPI Filters in the 'default web site' I have a red arrow.
The status is 'Not Loaded.'

Any suggestions on getting the arrow green?



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



RE: Cannot start Tomcat 5.0.16.

2004-01-15 Thread George Leeman Jr




Here's the complete information on the java JDK:
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cn130-20010925 (JIT enabled:
jitc))
--



   

  "Shapira, Yoav"  

  <[EMAIL PROTECTED]To:   "Tomcat Users List" <[EMAIL 
PROTECTED]>  
  .com>cc: 

   Subject:  RE: Cannot start Tomcat 
5.0.16.   
  01/15/2004 11:22 

  AM   

  Please respond to

  "Tomcat Users

  List"

   

   




Howdy
What JDK are you using?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: George Leeman Jr [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 15, 2004 11:15 AM
>To: [EMAIL PROTECTED]
>Subject: Cannot start Tomcat 5.0.16.
>Importance: High
>
>
>
>
>
>Today I downloaded and installed Tomcat 5.0.16.  I get the sequence
shown
>below.  How do I fix this problem?
>Thanks, George Leeman
>
>c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bin>catalina run
>
>Using CATALINA_BASE:   ..
>Using CATALINA_HOME:   ..
>Using CATALINA_TMPDIR: ..\temp
>Using JAVA_HOME:   C:\e\j2se1.3.0
>java.lang.reflect.InvocationTargetException:
java.lang.NoSuchMethodError:
>javax.xml.parsers.SAXParser: method
getXMLReader()Lorg/xml/sax/XMLReader;
>not found
>  at
>org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)
>  at org.apache.commons.digester.Digester.parse(Digester.java:1548)
>  at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>  at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bin>






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



Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand


Green, Jeffrey wrote:

Aaah.  I see.  Unfortunately sendRedirect() does not work at the valve
level.  

That's not true ;-) SunOne AppServ is using that technique :-) Why are 
you saying it doesn't work at the valve level?

I could use that solution only if I implemented the redirect for
each specific webapp, but this is a bit too much code duplication to be
productive / condusive to change.  

Why? It depends where you put the valve? Remember you can also place 
your valve at the engine level.

It seems that this decision has crippled
some of Tomcat's functionality - whereas before, I could redirect requests
across a whole host, now I can only do that per webapp.  
Was anything else implemented to achieve such functionality instead? 

Yes, by using the mapper directly. But that's a lot of works (you need 
to understand how the mapper works, etc.).  The main object to look at 
is MappingData where the result of the mapping is stored.

-- Jeanfrancois




Thanks
again.
-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 11:21 AM
To: Tomcat Users List
Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves



Green, Jeffrey wrote:

 

Hello all.  Using valves in Tomcat 4, we successfully managed to 
intercept requests to specific contexts and direct them elsewhere.  For 
example, we could intercept all requests to /SECRETWEBAPP and redirect them
   

to /.
 

In order to accomplish this, we used valves which would call
setRequestURI("/") on all requests that were prefixed with 
"/SECRETWEBAPP". Unfortunately, this technique no longer seems to work 
with Tomcat 5.  Does anyone know if anything changed regarding such 
usage of this method or if there is a better way to do this?

   

Yes, the HTTP Mapper has been completely re-written. The mapping occurs 
*before* entering the pipeline (valve) instead of *after* in Tomcat 4. 
You may want to try a re-direct instead. Something like:

if ( bla bla)
   hresponse.sendRedirect(
   hresponse.encodeRedirectURL("/"));
-- Jeanfrancois

 

Thanks.

---
---
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
   

of
 

this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded
   

as
 

an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to
   

be
 

secure or error-free.  Therefore, we do not represent that this information
   

is
 

complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



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


--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Trying to write my own startup script, but seems to missed something....

2004-01-15 Thread Johan Bång
Hi!
I am trying to write my own init script to tomcat 5 for Fedora Core 1
I have tryed to decode what the startup.sh, catalina.sh and 
setclasspath.sh
is doing, and I think that I have figured out some of it, but according 
to catalina.out
it isn't enought.

Could someone who knows how tomcat is support to start please tell me 
what I hacve done wrong?

I get this error message when I tries to start Tomcat:
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/catalina/startup/Bootstrap

My .conf file, witch is supposed to set the nessesary env variables 
looks someting like this:
# Where the tomcat installations lives.
CATALINA_HOME="/home/johan/download/tomcat"
CATALINA_BASE="/home/johan/download/tomcat"
CATALINA_TMPDIR="/home/johan/download/tomcat/tmp"

# Tomcat options. These are passed to Tomcat as-is.
CATALINA_OPTS=""
# Java settings. If you use Sun's JDK, you might want to add -server 
here.
JAVA_HOME="/usr/java/j2sdk1.4.2_03"
JAVA_OPTS="-server"

# Classpath settings. You migth add your custom classes here.
CLASSPATH=""
And the part of the init script, where the magic is suppose to happend:
# Get tomcat config options
. /etc/tomcat.conf
# Functions
start()
{
echo -n "Starting tomcat: "
# Adding stuff to classpath
CLASSPATH="$JAVA_HOME"/lib/tools.jar
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar

CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/commons-logging-api.jar

JAVA_ENDORSED_DIRS="$CATALINA_HOME"/common/endorsed

# Starting Tomcat
$JAVA_HOME/bin/java $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath 
"$CLASSPATH" \
-Dcatalina.base="$CATALINA_BASE" \
-Dcatalina.home="$CATALINA_HOME" \
-Djava.io.tmpdir="$CATALINA_TMPDIR" \
org.apache.catalina.startup.Bootstrap "$@" start \
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

echo $! > $CATALINA_PID

retun $RETVAL
}
Regards
Johan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: restricting access to jsp pages

2004-01-15 Thread Bruno.Melloni
Then try a servlet filter (this is what I normally do).  That should save you from 
having code on each JSP page.  Search the web for a good tutorial.

But you still have to decide what action you want to take when a user is not logged, 
since your URL is being hit and some response is required.

b.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of ext Michael E. Allen
Sent: Thursday, January 15, 2004 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: restricting access to jsp pages


[EMAIL PROTECTED] wrote:

> A trivial solution is to store something (anything) in the user session during 
> login, and then retrieve it in the JSP.  If the retrieved value is not null, then 
> the user is logged in.  If the user is not logged in, you can redirect him to the 
> login or an error page.
> 
> Of course, this is only one possible solution.  Others exist.  Which is best depends 
> on what you are trying to accomplish in your site.
> 
> b.
> 

Yes; but I don't want to check for whether user is logged in or not in 
every page... I want the page to only be accessible to a logged in user. 
Basically I want single sign on; the webapp should not be accessible 
at all except to an authenticated user.



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


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



RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
Aaah.  I see.  Unfortunately sendRedirect() does not work at the valve
level.  I could use that solution only if I implemented the redirect for
each specific webapp, but this is a bit too much code duplication to be
productive / condusive to change.  It seems that this decision has crippled
some of Tomcat's functionality - whereas before, I could redirect requests
across a whole host, now I can only do that per webapp.  
Was anything else implemented to achieve such functionality instead?  Thanks
again.

-Original Message-
From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 11:21 AM
To: Tomcat Users List
Subject: Re: org.apache.catalina.HttpRequest.setRequestURI() and valves




Green, Jeffrey wrote:

>Hello all.  Using valves in Tomcat 4, we successfully managed to 
>intercept requests to specific contexts and direct them elsewhere.  For 
>example, we could intercept all requests to /SECRETWEBAPP and redirect them
to /.
>
>In order to accomplish this, we used valves which would call
>setRequestURI("/") on all requests that were prefixed with 
>"/SECRETWEBAPP". Unfortunately, this technique no longer seems to work 
>with Tomcat 5.  Does anyone know if anything changed regarding such 
>usage of this method or if there is a better way to do this?
>  
>
Yes, the HTTP Mapper has been completely re-written. The mapping occurs 
*before* entering the pipeline (valve) instead of *after* in Tomcat 4. 
You may want to try a re-direct instead. Something like:

if ( bla bla)
hresponse.sendRedirect(
hresponse.encodeRedirectURL("/"));


-- Jeanfrancois


>Thanks.
>
>---
>---
>This message is intended only for the personal and confidential use of the
>designated recipient(s) named above.  If you are not the intended recipient
of
>this message you are hereby notified that any review, dissemination,
>distribution or copying of this message is strictly prohibited.  This
>communication is for information purposes only and should not be regarded
as
>an offer to sell or as a solicitation of an offer to buy any financial
>product, an official confirmation of any transaction, or as an official
>statement of Lehman Brothers.  Email transmission cannot be guaranteed to
be
>secure or error-free.  Therefore, we do not represent that this information
is
>complete or accurate and it should not be relied upon as such.  All
>information is subject to change without notice.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


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



--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: RTFM

2004-01-15 Thread Januski, Ken
and let us know if it worked.

-Original Message-
From: Carlos Pereira [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 5:09 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: RTFM 


> no, I'm not returning anything from the servlet.
It's not "returning anything"! You must return after using sendRedirect,
otherwise your servlet will continue running. That's probably the problem,
as it redirects you to another page, but continues it's execution. Try
returning.

Carlos Pereira





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


RE: Manager - STOP application fails to stop session!!!

2004-01-15 Thread Bruno.Melloni
SUMMARY OF PROBLEM - for future people scanning the archives: 

Needed to disable session persistence for an application.

SOLUTION:

To turn off session persistence for an application, include a Manager clause (similar 
to this one) in the application context file:



 

It does not seem to be necessary for the logs/sessions directory to actually exist.

To safely deploy an application you can use the manager webapp 
(http://localhost:8080/manager/html) stop command before deploying and start command 
afterwards.  Or use the manager http interface from a script or ant build, to stop, 
deploy, start the application.

REASON FOR DISABLING PERSISTENCE:

For an application that is stable and unchanging, and that has ONLY serializable 
objects in the session, persistence is highly desirable.  Admins may stop and start 
the servers (provided they are reasonably quick) without significant effect to the 
users.

For an application that is likely to be updated with new versions, where the list of 
objects in the session may change from one version to the next, or where there are 
non-serializable objects in the session, disabling session persistence is a must.

SUGGESTION FOR DEVELOPERS:

It seems silly to have to fully define the PersistentManager in order to disable it.  
It would be nice if there was a simple clause to disable session persistence for an 
application.

bruno

P.S.: My thanks to Yoav Shapira for helping resolve this issue, and to Steven Job for 
having the opposite problem and posting his application Context, which helped me 
clarify my understanding.

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



Re: restricting access to jsp pages

2004-01-15 Thread Andres Ledesma

> I thought about that... and I would like to set up a role in
> tomcat-users to accomplish that.  However, I don't want the user to have
> to log in, rather I want to have my "guard" servlet authenticate the
> user and then forward the request with the role filled in
> programmatically.  However, I can't find in the docs how Tomcat knows
> whether the user has logged in yet, so I can't programmatically fill in
> the user name.
>
> Can someone direct me to the documentation (or source code) that looks
> for the user/role?
>

Well, the servlet can set attributes on the user's session and latter you can 
check whether this attributes have been set, you can even know whether it's a 
new session or an older one. 

There is a book 'moreservlets ans jsp' thar explains it very well, but is a 
sage of 'core servlets and jsp', that is entirely in 'www.moreservlets.com'.
Any way, I send you a snippet of code where I verify and set something in the 
session 

  /** Processes requests for both HTTP GET and POST 
methods.
 * @param request servlet request
 * @param response servlet response
 */
protected void processRequest(HttpServletRequest request, 
HttpServletResponse response)
throws ServletException, IOException {

String username = request.getParameter("username");
String password = request.getParameter("password");

HttpSession session = request.getSession(true);

try{
aUser usr = new aUser();

if( usr.IsAValidUser(username, password) ) 
{

UserSession user = (UserSession)session.getAttribute("user");
if ( user == null)
{
user = new UserSession();
user.setIsLogged(true);
user.setIsClient(true);

session.setAttribute("user", user);

}
else
{
user.setIsLogged(true);
user.setIsClient(true);
}


}

}
catch(Exception e)
{
;
}

..  ;

}

Hope this help 

Andrew


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



Re: restricting access to jsp pages

2004-01-15 Thread Merrill Cornish
>>> I don't want to check for whether user is logged in or not in every page


Is there any particular reason why?  The extra time is in the noise.  The code is 
boilerplate, and you can hige that behind a function call if you want.


Merrill

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



RE: Cannot start Tomcat 5.0.16.

2004-01-15 Thread Shapira, Yoav

Howdy
What JDK are you using?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: George Leeman Jr [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 15, 2004 11:15 AM
>To: [EMAIL PROTECTED]
>Subject: Cannot start Tomcat 5.0.16.
>Importance: High
>
>
>
>
>
>Today I downloaded and installed Tomcat 5.0.16.  I get the sequence
shown
>below.  How do I fix this problem?
>Thanks, George Leeman
>
>c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bin>catalina run
>
>Using CATALINA_BASE:   ..
>Using CATALINA_HOME:   ..
>Using CATALINA_TMPDIR: ..\temp
>Using JAVA_HOME:   C:\e\j2se1.3.0
>java.lang.reflect.InvocationTargetException:
java.lang.NoSuchMethodError:
>javax.xml.parsers.SAXParser: method
getXMLReader()Lorg/xml/sax/XMLReader;
>not found
>  at
>org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)
>  at org.apache.commons.digester.Digester.parse(Digester.java:1548)
>  at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>  at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>  at java.lang.reflect.Method.invoke(Native Method)
>  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bin>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: -security with 5.0.16 doesn't work

2004-01-15 Thread Jeanfrancois Arcand


Marten Lehmann wrote:

Hello,

I was setting fine grained permissions to my webapp, but always an 
exception was thrown. So I tried to use

grant {
permission java.security.AllPermission;
};
but even with that, my application doesn't run (which it does without 
-security). When calling the site, I get:

javax.servlet.ServletException: Servlet.init() for servlet action 
threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509) 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696) 

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677) 

java.lang.Thread.run(Thread.java:568)

root cause

java.lang.SecurityException: java.lang.reflect.InvocationTargetException
javax.security.auth.Subject$5.run(Subject.java:733)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.createContext(Subject.java:717)
javax.security.auth.Subject.doAsPrivileged(Subject.java:708)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306) 

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200) 

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:153) 

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509) 

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696) 

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677) 

java.lang.Thread.run(Thread.java:568)

catalina.log says:

INFO: Server startup in 8985 ms
StandardWrapperValve[action]: Allocate exception for servlet action
javax.servlet.ServletException: Servlet.init() for servlet action 
threw exception
javax.servlet.ServletException: Servlet.init() for servlet action 
threw exception
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1086) 

at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712) 

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:186) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) 

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:509) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) 

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805) 

at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696) 

at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) 

at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677) 

at java.lang.Thread.run(Thread.java:568)

I really don't have an idea wh

Re: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Jeanfrancois Arcand


Green, Jeffrey wrote:

Hello all.  Using valves in Tomcat 4, we successfully managed to intercept
requests to specific contexts and direct them elsewhere.  For example, we
could intercept all requests to /SECRETWEBAPP and redirect them to /.  

In order to accomplish this, we used valves which would call
setRequestURI("/") on all requests that were prefixed with "/SECRETWEBAPP".
Unfortunately, this technique no longer seems to work with Tomcat 5.  Does
anyone know if anything changed regarding such usage of this method or if
there is a better way to do this? 
 

Yes, the HTTP Mapper has been completely re-written. The mapping occurs 
*before* entering the pipeline (valve) instead of *after* in Tomcat 4. 
You may want to try a re-direct instead. Something like:

if ( bla bla)
   hresponse.sendRedirect(
   hresponse.encodeRedirectURL("/"));
-- Jeanfrancois


Thanks.

--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: InitParameters Question

2004-01-15 Thread Michael Duffy
Found the answer at the Java Forum:

http://forum.java.sun.com/thread.jsp?forum=33&thread=482125

I think it's a case of RTFM here.  I should have
understood that difference between ServletConfig and
ServletContext.  Now I do. - MOD


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Cannot start Tomcat 5.0.16.

2004-01-15 Thread George Leeman Jr




Today I downloaded and installed Tomcat 5.0.16.  I get the sequence shown
below.  How do I fix this problem?
Thanks, George Leeman

c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bin>catalina run

Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\e\j2se1.3.0
java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
javax.xml.parsers.SAXParser: method getXMLReader()Lorg/xml/sax/XMLReader;
not found
  at
org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)
  at org.apache.commons.digester.Digester.parse(Digester.java:1548)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
  at java.lang.reflect.Method.invoke(Native Method)
  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)

c:\e\Tomcat5.0.16\jakarta-tomcat-5.0.16\bin>


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



RE: NoClassDefFoundError

2004-01-15 Thread Larry Isaacs
Xavier,

This structure looks fine.  It should be noted that Tomcat 3.3.x
follows the JDK classloader delegation model, i.e. always
delegate to a parent classloader before looking for a class
locally.  This means that the SmsDriverSOAP and org.apache.soap
classes must not exist in any other classloader in Tomcat 3.3.x.

Note that in your stack trace the class:

sun.misc.Launcher$AppClassLoader

appears as the first "loader" class above the:

org.apache.soap.rpc.SOAPContext.loadClass()

call. This seems to imply that the org.apache.soap classes
may be on the classpath.  If so, those classes will be used
instead of the ones in WEB-INF/classes.  From the classpath
classloader, no classes under WEB-INF/classes would be
accessible.  If you find them on the classpath, remove
them.

Cheers,
Larry

> -Original Message-
> From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 15, 2004 10:04 AM
> To: Tomcat Users List
> Subject: RE: NoClassDefFoundError
> 
> 
> My structure of tomcat is :
> 
>  
> 
> /usr/tomcat : Tomcat Directory
> 
> /usr/tomcat/webapps/soap/ : my app directory
> 
> /usr/tomcat/webapps/soap/WEB-INF/classes/ my app's classes 
> where there are lib12.soap.sms.SmsDriverSOAP and 
> org.apache.soap.* classes
> 
>  
> 
> Xavier André
> 
>  
> 
>  
> 
> -Message d'origine-
> De : Larry Isaacs [mailto:[EMAIL PROTECTED] 
> Envoyé : jeudi 15 janvier 2004 15:53
> À : Tomcat Users List
> Objet : RE: NoClassDefFoundError
> 
>  
> 
> Where exactly is the lib123.soap.sms.SmsDriverSOAP class
> 
> located (jar and directory) and where are the
> 
> org.apache.soap.* classes listed in the stack trace
> 
> located (jar and directory)?
> 
>  
> 
> Cheers,
> 
> Larry
> 
>  
> 
> > -Original Message-
> 
> > From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
> 
> > Sent: Thursday, January 15, 2004 8:56 AM
> 
> > To: Tomcat Users List
> 
> > Subject: RE: NoClassDefFoundError
> 
> > 
> 
> > 
> 
> > Thankds Stephen for the idea but it doesn't work also.
> 
> > This is my error :
> 
> > 
> 
> > 
> 
> >  
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
> 
> > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; 
> 
> > xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
> > 
> 
> >  
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
> 
> > SOAP-ENV:Server.BadTargetObjectURI
> 
> > Unable to resolve target object: 
> 
> > lib123.soap.sms.SmsDriverSOAP
> 
> > /soap/servlet/messagerouter/
> 
> > 
> 
> > java.lang.ClassNotFoundException: 
> 
> > lib123.soap.sms.SmsDriverSOAP
> 
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
> 
> > at 
> java.security.AccessController.doPrivileged(Native Method)
> 
> > at 
> java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> 
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> 
> > at 
> 
> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> 
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> 
> > at 
> 
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> 
> > at java.lang.Class.forName0(Native Method)
> 
> > at java.lang.Class.forName(Class.java:219)
> 
> > at 
> 
> > org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> 
> > at 
> 
> > org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(Se
> 
> > rverHTTPUtils.java:274)
> 
> > at 
> 
> > org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvid
> 
> > er.java:113)
> 
> > at 
> 
> > org.apache.soap.server.http.MessageRouterServlet.doPost(Messag
> 
> > eRouterServlet.java:267)
> 
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> 
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> 
> > at 
> 
> > org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
> 
> > at org.apache.tomcat.core.Handler.invoke(Unknown Source)
> 
> > at org.apache.tomcat.core.Handler.service(Unknown Source)
> 
> > at 
> 
> > org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
> 
> > at 
> 
> > 
> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> 
> > at 
> 
> > org.apache.tomcat.core.ContextManager.service(Unknown Source)
> 
> > at 
> 
> > org.apache.tomcat.modules.server.Http10Interceptor.processConn
> 
> > ection(Unknown Source)
> 
> > at 
> 
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> 
> > at 
> 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> 
> > Unknown Source)
> 
> > at java.lang.Thread.run(Thread.java:534)
> 
> > 
> 
> > 
> 
> > 
> 
> > Xavier André
> 
> >  
> 
> > 
> 
> > -Message d'origine-
> 
> > De : Stuart Stephen [mailto:[EMAIL PROTECTED] 
> 
> > Envoyé : jeudi 15 janvier 2004 14:50
> 
> > À : Tomcat Users List
> 
> > Objet : RE: NoClassDefFoundError
> 
> > 
> 
> 

RE: restricting access to jsp pages

2004-01-15 Thread Shapira, Yoav

Howdy,

>Yes; but I don't want to check for whether user is logged in or not in
>every page... I want the page to only be accessible to a logged in
user.
>Basically I want single sign on; the webapp should not be
accessible
>at all except to an authenticated user.

I may have missed the earlier discussion, but what's wrong with a filter
(mapped to /* or *.jsp perhaps) that checks the session for the presence
of an authentication token?  Did you already consider and dismiss this
approach for other reasons?

Yoav Shapira
Millennium ChemInformatics




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: LogSetter in

2004-01-15 Thread Shapira, Yoav

Howdy,

>I did not ask anybody to care. I asked for a reference to documentation
>that I was unable to find myself. I don't remember reading that the
list
>was version specific or only for users that support a single platform.
>But, thanks for the reply anyhow.

The list is not version-specific.  I was explaining why you got no
replies to your original question: it's not because everyone was
"stumped."

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
[EMAIL PROTECTED] wrote:

A trivial solution is to store something (anything) in the user session during login, and then retrieve it in the JSP.  If the retrieved value is not null, then the user is logged in.  If the user is not logged in, you can redirect him to the login or an error page.

Of course, this is only one possible solution.  Others exist.  Which is best depends on what you are trying to accomplish in your site.

b.

Yes; but I don't want to check for whether user is logged in or not in 
every page... I want the page to only be accessible to a logged in user. 
   Basically I want single sign on; the webapp should not be accessible 
at all except to an authenticated user.



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


RE: LogSetter in

2004-01-15 Thread Howard Watson
Howdy,

I did not ask anybody to care. I asked for a reference to documentation
that I was unable to find myself. I don't remember reading that the list
was version specific or only for users that support a single platform.
But, thanks for the reply anyhow.

>>> [EMAIL PROTECTED] 01/15/04 07:06AM >>>

Howdy,

>Stumped you all, huh?

More like very few people care.  Bill Barker is the man for tomcat 3.x
support, maintenance, development.  I don't think anyone else is
working
on that branch, I don't think anyone else is supporting that branch,
and
I know there are very few tomcat 3.x users on the list.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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



RE: Signal 11 crash and mod_jk, mod_jk2, apache2

2004-01-15 Thread Ralph Einfeldt
An additional remark,

hardware shops are sometimes quite floppy with the ram they 
use. Even if you order specific ram you may get something
different. (E.G. if you order infineon ram, you sometimes
just get noname modules with infineon chips, which is a 
completly different thing) This caused us all kind of 
trouble with stability. (Certaily we verify what we get,
but sometime there was not enough time to wait for the
replacement)

> -Original Message-
> From: Christopher Schultz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 15, 2004 4:44 PM
> To: Tomcat Users List
> Subject: Re: Signal 11 crash and mod_jk, mod_jk2, apache2
> 

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



RE: restricting access to jsp pages

2004-01-15 Thread Bruno.Melloni
A trivial solution is to store something (anything) in the user session during login, 
and then retrieve it in the JSP.  If the retrieved value is not null, then the user is 
logged in.  If the user is not logged in, you can redirect him to the login or an 
error page.

Of course, this is only one possible solution.  Others exist.  Which is best depends 
on what you are trying to accomplish in your site.

b.

-Original Message-
From: ext Merrill Cornish [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 9:37 AM
To: Tomcat Users List
Subject: Re: restricting access to jsp pages


I'm confused.

>>> I don't want the user to have to log in, ...  
>>> I can't find in the docs how Tomcat knows whether the user has logged in yet,

Question:  Do you want your users to log in or not--nevermind who does it?

>>> I want to have my "guard" servlet authenticate the user 

How is that different from log in?  Regardless of what you call it or whether it's 
done by a JSP page or a servlet, the user is going to have to identify himself to the 
guard servlet--and that's logbin, even if the phrase "log in" is never shown to the 
user.

In my own application, each of the JSP pages that needs the user to be logged in 
before coming to the page start with this:

<%
  if (Util.verifyLogin(session, response)) {
 // then we are logged in
 
 ... // other Java code needed for the page initialization
%>

... 

<% }//then logged in %>


If Util.verifyLogin() determine--in whatever manner--that the user is not yet logged 
in, it redirected to the login page (or whatever you are using to determine who the 
user is) and returns false.  It it returns false, the rest of the JSP page is skipped, 
since the loggin page is being displayed.

In my case, Util.verifyLogin() determines that the user is logged in by checking that 
session is not null and that a certain session attribute set by the login servlet is 
not null.  

In servlets, the test is

  if (Util.verifyLogin(session, response)) { return; }

Merrill





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


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



Re: Signal 11 crash and mod_jk, mod_jk2, apache2

2004-01-15 Thread Christopher Schultz
All,

With RH8, I assume that at the very least you'll need to set 
LD_KERNEL_ASSUME.

I would consider that the first course of action, and likely would not 
need to do anything else. I could see hyperthreading a problem if the 
kernel didn't support it very well. You could try the latest 2.4.x kernel.
If the LD_ASSUME_KERNEL doesn't help, try disabling both SMP and 
hyperthreading at the same time. I think that's your next most likely fix.

Just a note: I've had big, beefy servers die with SIG11 on Linux before 
(or course, that was back when a dual athlon 1GHz was considered 'beefy' 
:). Anyway, we tried everything, including hiring BEA consultants for a 
bazillion dollars per hour to help us tune both Weblogic and our VM.

It turned out to be bad hardware. We had six identical machines and two 
of 'em kept crapping out. They just sucked. The only solution was to 
send them back to the manufacturer and ask for more. It turns out that 
not only did those two (production!) machines suck, but two QA machines 
and one dev machine (all the same) sucked, too. They all died when we 
put them under high load. They seemed to do okay under development load 
(about zero).

I'll never buy a machine from "Penguin Computing" again.

Just wanted to mention that sometimes it's not the software's fault. Do 
you have other similar machines that you can try this on?

-chris

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


Re: problem with arabic in multilanguage jsp

2004-01-15 Thread Christopher Schultz
Thomas,

Until now, our solution was indeed to put

into the html code. (> Tomcat 4.1.24)
If the browser finds a content type in the HTTP header, it 
ignores the HTML header.
What? The whole point of the META tag is actually to *trump* the HTTP 
header. That's the whole reason that the META HTTP-EQUIV tag exists. For 
the browser to ignore what you put in there pretty much breaks the 
rules, right?

-chris

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


Re: restricting access to jsp pages

2004-01-15 Thread Merrill Cornish
I'm confused.

>>> I don't want the user to have to log in, ...  
>>> I can't find in the docs how Tomcat knows whether the user has logged in yet,

Question:  Do you want your users to log in or not--nevermind who does it?

>>> I want to have my "guard" servlet authenticate the user 

How is that different from log in?  Regardless of what you call it or whether it's 
done by a JSP page or a servlet, the user is going to have to identify himself to the 
guard servlet--and that's logbin, even if the phrase "log in" is never shown to the 
user.

In my own application, each of the JSP pages that needs the user to be logged in 
before coming to the page start with this:

<%
  if (Util.verifyLogin(session, response)) {
 // then we are logged in
 
 ... // other Java code needed for the page initialization
%>

... 

<% }//then logged in %>


If Util.verifyLogin() determine--in whatever manner--that the user is not yet logged 
in, it redirected to the login page (or whatever you are using to determine who the 
user is) and returns false.  It it returns false, the rest of the JSP page is skipped, 
since the loggin page is being displayed.

In my case, Util.verifyLogin() determines that the user is logged in by checking that 
session is not null and that a certain session attribute set by the login servlet is 
not null.  

In servlets, the test is

  if (Util.verifyLogin(session, response)) { return; }

Merrill





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



Re: [OT] Apache and Tomcat together

2004-01-15 Thread Christopher Schultz
Mike,

Apache is faster for static content. 
Don't get Yoav started...
:) I have gotton him started on this, before. It's funny, though... last 
time I looked at the Tomcat Connector FAQ, it actually says flat out 
"Apache is faster than Tomcat at serving static content": 
http://jakarta.apache.org/tomcat/faq/connectors.html. It does qualify 
that statement by saying that unless you're talking about high traffic, 
then it doesn't really matter. However, they *do* make that claim.

-chris

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


maxProcessors vs maxThreads

2004-01-15 Thread Apu Shah

using tomcat 5.0.16

the JK2 AJP connector
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html) docs
doesn't list any directive like maxProcessors or maxThreads. the HTTP
connector does
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html) list a
maxThreads directive.

1. is maxProcessors deprecated?

2. does maxProcessors and/or maxThreads apply to the AJP connector?

3. if i do set maxProcessors/maxThreads does the total number of
maxThreads/maxProcessors across all tomcat instances in a load balanced
setup need to equal/less than/greater than the apache serverlimit?
example:
- 2 apache servers with serverlimit 1024 each => total server limit = 2048
- 4 tomcat instances.
- should maxProcessors be set to 2048/4 = 512 or less than/greater than that?

4. similiar questions as 1&2 for maxSpareThreads/maxIdleProcessors and
minSpareThreads/minIdleProcessors.

5. does acceptCount work for both HTTP and AJP connectors?

thanks in advance for clarifications. here is the ajp connector element in
my server.xml




do i set maxThreads, maxSpareThreads, minSpareThreads, acceptCount or
maxProcessors, maxIdleProcessors, minIdleProcessors, acceptCount?

apu


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



Re: verbose gc

2004-01-15 Thread Christopher Schultz
Mohammed,

1) [Full GC 34521K->15504K(38328K), 0.5953540 secs]
[GC 27533K->16335K(38328K), 0.0396336 secs]
2) what does the above statements got in catalina.out means, is garbage
collection active?


Yes, garbale collection is active. When the garbage collector runs, it 
will print a line out to stdout (or stderr?) which ends up in your 
catalina.out.

If it runs a 'full' GC (where it takes a lot of time and cleans up a lot 
of stuff), then it'll say "Full GC", like the first example. Otherwise, 
it's doing an incremental GC and not hitting everything, like the second 
example. In a healthy syste, you should see lots of regular GCs, and 
occationally see a full GC.

The two big numbers indicate the size of the active heap (the total size 
of 'live' objects before and after the GC). So, in the first one, the 
heap was reduced from 34521k of active objects to 15505k of active 
objects. The number in parens () is the size of the non-permanent heap, 
which is the total heap minus one of the surviver spaces.

The last number is the wall-clock time that the GC was active -- it 
tools half a second to so a full GC and about 1/20 of a second to do the 
incremental GC.

Please see 
http://java.sun.com/docs/hotspot/gc1.4.2/#2.2.%20Measurement|outline for 
more information.

When i execute top command on solaris and see the memory it shows  size and
resisdent memory , what is the diference between the two.
I think this might mean different things to different OSs, but generally 
the "size" is the total size of executable + code + heap for that 
process -- everything it needs to run. The 'resident' is usually the 
amount of 'size' that's actually in physical RAM and not swapped out to 
disk by the OS.

3) I see that gc statements are logged to catalina.out but the memory usage
keeps increasing, does it mean there is problem with
garbage collection,
When you say 'memory usage', do you mean from top? Right. Java doesn't 
return memory to the OS once it requests it -- there's generally no need 
to do that. Even though Java's heap has more 'space' left over in it, it 
only has space left over for more Java objects. You should not be 
comparing the Java heap and GCs to what you read out of 'top'. You 
should use Runtime.freeMemory (the available heap size), 
Runtime.totalMemory (the total heap size + internal VM memory), and 
Runtime.maxMemory (the maximum amount of memory that the VM will try to 
use).

4) can we get more information like how many obejcts created / objects
destroyed during a gc run, what options to pass to get that information
You need a profiler to do heap inspections, which has been discussed 
many times on this list. I'm not sure you can find out exactly what the 
GC is doing... you might need a very nice profiler for that.

-chris

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


RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
We can't use a filter because filters are per-webapp whereas valves are per
host.  This is a hostwide redirect.  We need to be able to redirect users
from "/SOME/GARBAGE/HERE/actualWebappDirectory" to "/actualWebappDirectory"
for all webapps (without having to require everyone to deploy the same exact
filter in all webapps).  AFAIK, this is the only host-wide way, although it
no longer seems to work in TC5 :\  

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 10:22 AM
To: Tomcat Users List
Subject: RE: org.apache.catalina.HttpRequest.setRequestURI() and valves



Howdy,

>Hello all.  Using valves in Tomcat 4, we successfully managed to
intercept
>requests to specific contexts and direct them elsewhere.  For example,
we
>could intercept all requests to /SECRETWEBAPP and redirect them to /.

Why would you do this with a valve?  Use a Filer, which is spec-compliant
and portable.  This is a trivial filter implementation.

Yoav Shapira




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: Session Persistance

2004-01-15 Thread Bruno.Melloni
We might have just fixed each other's problem.

I have the exact opposite problem (with Tomcat5) - I need to drop the sessions when I 
redeploy, since new versions might carry different objects and one of my objects is 
not serializable yet.  And I don't need to preserve the sessions across vanilla server 
restarts either.

Even when I did nothing to define persistence (no Manager clause at all) Tomcat would 
not drop the sessions even when I stopped, redeployed or went to the Manager HTTP 
console and stopped it there.

So, try removing the  clause altogether.

I'll try adding yours to my setup and see if it successfully kills my sessions.

-Original Message-
From: ext Steven Job [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: Session Persistance


Ok, I don't know what is wrong.  I thought I had this working before.

Yet when I stop and restart Tomcat I loose my session.  Even though I see
the file being saved.


  
 

  
  


Can someone shed some light on this and let me know what is wrong with my
configuration?


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


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



RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Shapira, Yoav

Howdy,

>>Hello all.  Using valves in Tomcat 4, we successfully managed to
>intercept
>>requests to specific contexts and direct them elsewhere.  For example,
>we
>>could intercept all requests to /SECRETWEBAPP and redirect them to /.
>
>Why would you do this with a valve?  Use a Filer, which is
>spec-compliant and portable.  This is a trivial filter implementation.

Typo: Filter instead of Filer above.  Meaning a javax.servlet.Filter
implementation.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Shapira, Yoav

Howdy,

>Hello all.  Using valves in Tomcat 4, we successfully managed to
intercept
>requests to specific contexts and direct them elsewhere.  For example,
we
>could intercept all requests to /SECRETWEBAPP and redirect them to /.

Why would you do this with a valve?  Use a Filer, which is
spec-compliant and portable.  This is a trivial filter implementation.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
Andres Ledesma wrote:

Hi, 

I have not much experience with jsp, but I do not think this is the right way 
of doing that, your app have not to be inside WEB-INF. 

To prevent people accessing your pages, you check the user session, if for 
example, this pages can be view only by registered users only after a login, 
or something that is already there by I do not know very well, but I you can 
do a little research by yourself are the filters.

I thought about that... and I would like to set up a role in 
tomcat-users to accomplish that.  However, I don't want the user to have 
to log in, rather I want to have my "guard" servlet authenticate the 
user and then forward the request with the role filled in 
programmatically.  However, I can't find in the docs how Tomcat knows 
whether the user has logged in yet, so I can't programmatically fill in 
the user name.

Can someone direct me to the documentation (or source code) that looks 
for the user/role?

Thanks!



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


org.apache.catalina.HttpRequest.setRequestURI() and valves

2004-01-15 Thread Green, Jeffrey
Hello all.  Using valves in Tomcat 4, we successfully managed to intercept
requests to specific contexts and direct them elsewhere.  For example, we
could intercept all requests to /SECRETWEBAPP and redirect them to /.  

In order to accomplish this, we used valves which would call
setRequestURI("/") on all requests that were prefixed with "/SECRETWEBAPP".
Unfortunately, this technique no longer seems to work with Tomcat 5.  Does
anyone know if anything changed regarding such usage of this method or if
there is a better way to do this? 

Thanks.

--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: How to find the differences between versions?

2004-01-15 Thread Shapira, Yoav

Howdy,
One other thing of note on this issue: for tomcat 5 we've been better
about keeping a changelog, available from the left-hand navigation bar
of the documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Tim Funk [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 15, 2004 10:14 AM
>To: Tomcat Users List
>Subject: Re: How to find the differences between versions?
>
>If you want source diffs you can do this (I think)
>cvs diff -r OLD_RELEASE_TAG -r NEW_RELEASE_TAG
>
>I'm sure you can also do a cvs log with some arguements to get the
commit
>descriptions for each commit made too.
>
>-Tim
>
>Shapira, Yoav wrote:
>> Howdy,
>> There's probably a way to do it in bugzilla with the boolean
additions,
>> but I don't know off the top of my head.  As Senor Rees said, look at
>> the release notes which contain information about the fixes with
every
>> point release.  You should have a good reason NOT to upgrade, as
these
>> point release upgrades are trivial especially for a servlet
>> specification-compliant application.
>>
>> One preventive note for you: starting with version 4.1.18, the
invoker
>> servlet is commented out by default.
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>>
>>
>>>-Original Message-
>>>From: Jay Glanville [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, January 15, 2004 8:47 AM
>>>To: 'Tomcat Users List'
>>>Subject: RE: How to find the differences between versions?
>>>
>>>
On Wed, January 14, 2004 at 1:29 pm, Glanville, Jay wrote:

>What is the best way that I can find all the issues that

were resolved

>in between 4.1.12 and 4.1.29?  Basically, my manager wants

to know if

>we should upgrade to 4.1.29, and he wants to see a list of all the
>issues that were closed since 4.1.12?

You should look at this file called RELEASE-NOTES which is
included with each release of Tomcat.
>>>
>>>Is there a way to ask bugzilla for all the issues that have been
>>>resolved in this timeframe?  What would the query be?
>>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: How to find the differences between versions?

2004-01-15 Thread Tim Funk
If you want source diffs you can do this (I think)
cvs diff -r OLD_RELEASE_TAG -r NEW_RELEASE_TAG
I'm sure you can also do a cvs log with some arguements to get the commit 
descriptions for each commit made too.

-Tim

Shapira, Yoav wrote:
Howdy,
There's probably a way to do it in bugzilla with the boolean additions,
but I don't know off the top of my head.  As Senor Rees said, look at
the release notes which contain information about the fixes with every
point release.  You should have a good reason NOT to upgrade, as these
point release upgrades are trivial especially for a servlet
specification-compliant application.
One preventive note for you: starting with version 4.1.18, the invoker
servlet is commented out by default.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jay Glanville [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 8:47 AM
To: 'Tomcat Users List'
Subject: RE: How to find the differences between versions?

On Wed, January 14, 2004 at 1:29 pm, Glanville, Jay wrote:

What is the best way that I can find all the issues that
were resolved

in between 4.1.12 and 4.1.29?  Basically, my manager wants
to know if

we should upgrade to 4.1.29, and he wants to see a list of all the
issues that were closed since 4.1.12?
You should look at this file called RELEASE-NOTES which is
included with each release of Tomcat.
Is there a way to ask bugzilla for all the issues that have been
resolved in this timeframe?  What would the query be?


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


Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
Ben Souther wrote:
Hiding the JSPs is easy.  
Put them under the WEB-INF directory.

Ok... but then how do I access the jsp pages?



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


RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
My structure of tomcat is :

 

/usr/tomcat : Tomcat Directory

/usr/tomcat/webapps/soap/ : my app directory

/usr/tomcat/webapps/soap/WEB-INF/classes/ my app's classes where there are 
lib12.soap.sms.SmsDriverSOAP and org.apache.soap.* classes

 

Xavier André

 

 

-Message d'origine-
De : Larry Isaacs [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 15 janvier 2004 15:53
À : Tomcat Users List
Objet : RE: NoClassDefFoundError

 

Where exactly is the lib123.soap.sms.SmsDriverSOAP class

located (jar and directory) and where are the

org.apache.soap.* classes listed in the stack trace

located (jar and directory)?

 

Cheers,

Larry

 

> -Original Message-

> From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 

> Sent: Thursday, January 15, 2004 8:56 AM

> To: Tomcat Users List

> Subject: RE: NoClassDefFoundError

> 

> 

> Thankds Stephen for the idea but it doesn't work also.

> This is my error :

> 

> 

>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 

> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; 

> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>

> 

>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>

> SOAP-ENV:Server.BadTargetObjectURI

> Unable to resolve target object: 

> lib123.soap.sms.SmsDriverSOAP

> /soap/servlet/messagerouter/

> 

> java.lang.ClassNotFoundException: 

> lib123.soap.sms.SmsDriverSOAP

> at java.net.URLClassLoader$1.run(URLClassLoader.java:199)

> at java.security.AccessController.doPrivileged(Native Method)

> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

> at 

> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

> at 

> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

> at java.lang.Class.forName0(Native Method)

> at java.lang.Class.forName(Class.java:219)

> at 

> org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)

> at 

> org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(Se

> rverHTTPUtils.java:274)

> at 

> org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvid

> er.java:113)

> at 

> org.apache.soap.server.http.MessageRouterServlet.doPost(Messag

> eRouterServlet.java:267)

> at javax.servlet.http.HttpServlet.service(HttpServlet.java)

> at javax.servlet.http.HttpServlet.service(HttpServlet.java)

> at 

> org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)

> at org.apache.tomcat.core.Handler.invoke(Unknown Source)

> at org.apache.tomcat.core.Handler.service(Unknown Source)

> at 

> org.apache.tomcat.facade.ServletHandler.service(Unknown Source)

> at 

> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)

> at 

> org.apache.tomcat.core.ContextManager.service(Unknown Source)

> at 

> org.apache.tomcat.modules.server.Http10Interceptor.processConn

> ection(Unknown Source)

> at 

> org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)

> at 

> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(

> Unknown Source)

> at java.lang.Thread.run(Thread.java:534)

> 

> 

> 

> Xavier André

>  

> 

> -Message d'origine-

> De : Stuart Stephen [mailto:[EMAIL PROTECTED] 

> Envoyé : jeudi 15 janvier 2004 14:50

> À : Tomcat Users List

> Objet : RE: NoClassDefFoundError

> 

> Try extracting the JAR's contents into the 

> webapp/WEB-INF/classes directory,

> check the class exists and restart tommy.

> 

> -Original Message-

> From: Xavier ANDRE [mailto:[EMAIL PROTECTED]

> Sent: 15 January 2004 08:32

> To: Tomcat Users List

> Subject: RE: NoClassDefFoundError

> 

> 

> Hi again,

> 

> I try to put my jar in $TOMCAT_HOME/lib/common/ but it does 

> not work also...

> 

> It drives me crazy :-(((

> 

> Xavier André

> 

> 

> -Message d'origine-

> De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker

> Envoyé : jeudi 15 janvier 2004 07:39

> À : [EMAIL PROTECTED]

> Objet : Re: NoClassDefFoundError

> 

> Actually, since he is using TC 3.3, the correct link is:

> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html

> #configuring_c

> lasses.

> 

> However, it is similar to the TC 4 structure, just with 

> different directory

> names :).

> 

> "Mike Curwen" <[EMAIL PROTECTED]> wrote in message

> news:[EMAIL PROTECTED]

> Did you read the document Yoav mentioned?

> 

> I'll give a tiny push...

> 

> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h

> owto.html

> 

> > -Original Message-

> > From: Xavier ANDRE [mailto:[EMAIL PROTECTED]

> > Sent: Wednesday, January 14, 2004 11:27 AM

> > To: Tomcat Users List

> > Subject: RE: NoClassDefFoundError

> >

> >

> > If I put a jar file in classpath

Does Tomcat 5.0.16 allready include Struts, mod_jk2

2004-01-15 Thread Nick
I have installed tomcat 5.0.16 and it looks as if (just by looking at
log files ) that mod_jk2 and struts are allready included in the binary
for linux? Is this the case?
-- 
Nick (Nix) Gray
Senior Systems Engineer
Bruzenak Inc.
(512) 331-7998

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



RE: NoClassDefFoundError

2004-01-15 Thread Larry Isaacs
Where exactly is the lib123.soap.sms.SmsDriverSOAP class
located (jar and directory) and where are the
org.apache.soap.* classes listed in the stack trace
located (jar and directory)?

Cheers,
Larry

> -Original Message-
> From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 15, 2004 8:56 AM
> To: Tomcat Users List
> Subject: RE: NoClassDefFoundError
> 
> 
> Thankds Stephen for the idea but it doesn't work also.
> This is my error :
> 
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; 
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
> SOAP-ENV:Server.BadTargetObjectURI
> Unable to resolve target object: 
> lib123.soap.sms.SmsDriverSOAP
> /soap/servlet/messagerouter/
> 
> java.lang.ClassNotFoundException: 
> lib123.soap.sms.SmsDriverSOAP
> at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at 
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:219)
> at 
> org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
> at 
> org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(Se
> rverHTTPUtils.java:274)
> at 
> org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvid
> er.java:113)
> at 
> org.apache.soap.server.http.MessageRouterServlet.doPost(Messag
> eRouterServlet.java:267)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
> org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
> at org.apache.tomcat.core.Handler.invoke(Unknown Source)
> at org.apache.tomcat.core.Handler.service(Unknown Source)
> at 
> org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
> at 
> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
> at 
> org.apache.tomcat.core.ContextManager.service(Unknown Source)
> at 
> org.apache.tomcat.modules.server.Http10Interceptor.processConn
> ection(Unknown Source)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> Unknown Source)
> at java.lang.Thread.run(Thread.java:534)
> 
> 
> 
> Xavier André
>  
> 
> -Message d'origine-
> De : Stuart Stephen [mailto:[EMAIL PROTECTED] 
> Envoyé : jeudi 15 janvier 2004 14:50
> À : Tomcat Users List
> Objet : RE: NoClassDefFoundError
> 
> Try extracting the JAR's contents into the 
> webapp/WEB-INF/classes directory,
> check the class exists and restart tommy.
> 
> -Original Message-
> From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
> Sent: 15 January 2004 08:32
> To: Tomcat Users List
> Subject: RE: NoClassDefFoundError
> 
> 
> Hi again,
> 
> I try to put my jar in $TOMCAT_HOME/lib/common/ but it does 
> not work also...
> 
> It drives me crazy :-(((
> 
> Xavier André
> 
> 
> -Message d'origine-
> De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
> Envoyé : jeudi 15 janvier 2004 07:39
> À : [EMAIL PROTECTED]
> Objet : Re: NoClassDefFoundError
> 
> Actually, since he is using TC 3.3, the correct link is:
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html
> #configuring_c
> lasses.
> 
> However, it is similar to the TC 4 structure, just with 
> different directory
> names :).
> 
> "Mike Curwen" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Did you read the document Yoav mentioned?
> 
> I'll give a tiny push...
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h
> owto.html
> 
> > -Original Message-
> > From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 14, 2004 11:27 AM
> > To: Tomcat Users List
> > Subject: RE: NoClassDefFoundError
> >
> >
> > If I put a jar file in classpath, how can I do that ?
> >
> > In which directory do I put my jar file ?
> > Must I modify a file ?
> >
> > Xavier André
> >
> > -Message d'origine-
> > De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > Envoyé : mercredi 14 janvier 2004 14:45
> > À : Tomcat Users List
> > Objet : RE: NoClassDefFoundError
> >
> >
> > Howdy,
> > Read the classloader how-to in the tomcat documentation.
> >
> > Yoav Shapira
> > Millennium ChemInformatics
> >
> >
> > >-Original Message-
> > >From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, January 14, 2004 8:45 

RE: jaas.jar not included w/ Tomcat 5.0.16 - why?

2004-01-15 Thread Shapira, Yoav

Howdy,

>jaas.jar is no longer present in server/lib/ as it was in Tomcat 4.x.

Small correction there: it was in server/lib for tomcat 4.1.x, not
4.0.x.

>this causes ClassNotFoundExceptions when running under JDK 1.3. was
this
>an oversight or was it intentional. if it was intentional, it should be
>documented in RUNNING.txt.

I doubt it was an oversight, as it takes some effort to drop a jar from
our distribution.  But I don't see much documentation for it.  And I
know the JAAS Realm and associated JAASMemoryLoginModule are still
present in the distribution.  I also know tomcat has been built on JDK
1.4 for a while now, so the absence of the jaas.jar would necessarily by
detected.  I'll investigate a bit more.  Thanks for bringing this up.
All you had to do is place jaas.jar in server/lib (or the jre/ext
directory I assume) ?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Problems With Caching [tomcat 4.23]

2004-01-15 Thread Phillip Calçado

Hi,

I've already did it, in fact the production server is this way (as JSP 
creation/modification is very important in this app), but it has those 
problems too. I've used about 5 different browsers :P .

Thanks for your help, anyway.

Em Quarta 14 Janeiro 2004 16:09, Shapira, Yoav ("Shapira, Yoav" 
<[EMAIL PROTECTED]>) escreveu:
> Howdy,
> You may wish to set reloadable=true for your context.  Another thing to
> check is that you clear your browser's cache between accesses.  Your
> browser may be caching the page.
>
> Yoav Shapira
> Millennium ChemInformatics
>
-- 
Phillip Calçado
Analista de Sistemas
[EMAIL PROTECTED]
www.jroller.com/page/pcalcado
_
E4W Internet Solutions
Rua Uruguaiana, 94 - 13° andar,
 Centro | Rio de Janeiro | RJ
CEP 20050-091 | Tel. +55 21 3852-3997
::www.e4w.com.br ::


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



Some questions about Apache working with Tomcat

2004-01-15 Thread CHAVEZA

Hi

Mi name is Alejandro Chavez and I want to ask you some question...
I have to develop a web aplication with jsp´s. The SO is Unix and somebody had already 
installed  Apache y Tomcat in the Unix machine. But I dont know if they had already 
configurated both to work together...or I had to do it

 But when I want to access to the principal page from Tomcat in this way  http:// 
Ip_adress : 8080/
 appears a window where I need to write the login and password; my first question is
 If somebody else protected this page or is a caracteristic when is not well installed 
the tomcat;   
 because I don´t know the login and passwordAnd the persons who installed 
(Tomcat y Apache) told me that they don´t know anything about the login y password

My second questions refers to the Apache configuration file(httpd.conf); 
in the last paragraph I found the next statements:

 #include conf/jserv/jserv.conf
 #include conf/ldap.conf
 #include /opt/tomcat/conf/jk/mod_jk.conf

This lines means that somebody else had configurated Apache in order to work with 
Tomcat? or the lines came in the default configuration file(httpd.conf)...

Thanks a lot


Alejandro Chávez Rodriguez
Gerencia Control de Teleproceso
Parque Vía 190 Piso 3, México D.F.
> E-mail: [EMAIL PROTECTED]
Tel: 52221782






¡ Acelerate al doble, por el mismo precio ! ¡ QUE ESPERAS ! 

Con la evolución de Prodigy Infinitum es posible. Haz clic aqui 
http://www.hits.telmex.com/app/ad_Mgr/lnk_mgrN.jsp?lnk=19

   ¡ [EMAIL PROTECTED] ! a www.telmex.com

 





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



jaas.jar not included w/ Tomcat 5.0.16 - why?

2004-01-15 Thread Springer, Ian P.
jaas.jar is no longer present in server/lib/ as it was in Tomcat 4.x.
this causes ClassNotFoundExceptions when running under JDK 1.3. was this
an oversight or was it intentional. if it was intentional, it should be
documented in RUNNING.txt.

thanks,
Ian


Ian P. Springer <[EMAIL PROTECTED]>
Developer Resources & Partner Enablement
Adaptive Management, HP Software GBU
856.638.6338



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



RE: How to find the differences between versions?

2004-01-15 Thread Subir Sengupta
Look in the Release notes.  There is a list of new features and bug
fixes, with the version number it was added/fixed in.  So look for any
version number higher than 4.1.12 to see what changed.

Subir

-Original Message-
From: Glanville, Jay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 14, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: How to find the differences between versions?


What is the best way that I can find all the issues that were resolved
in between 4.1.12 and 4.1.29?  Basically, my manager wants to know if we
should upgrade to 4.1.29, and he wants to see a list of all the issues
that were closed since 4.1.12?

JDG

--
Jay Glanville
Web Developer

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



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



Re: Session Persistance

2004-01-15 Thread Jon Wingfield
It's my experience that Tomcat persists sessions by default, my ROOT.xml 
doesn't have a Manager. There are a couple of things you have to worry 
about if you want the sessions to be valid on restart:
1) Don't store non-serializable objects in the session. (You tend to get 
big stacktraces in the logs on both shutdown and startup if you do)
2) Don't down the server for longer than the session timeout setting 
(default 30mins). The sessions expire on startup if you do.

If these don't apply then I'm not sure what's wrong because 'worksforme' ;)

HTH,

Jon

Steven Job wrote:
Ok, I don't know what is wrong.  I thought I had this working before.

Yet when I stop and restart Tomcat I loose my session.  Even though I see
the file being saved.
  
 

  
  
Can someone shed some light on this and let me know what is wrong with my
configuration?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


  1   2   >