RE: Installation Problem In Tomcat

2004-04-18 Thread birendar . waldiya

No I cant see that !! should i install
it again ???

Birendar Singh Waldiya






"Thomas Chua"
<[EMAIL PROTECTED]> 
19-04-04 12:00 PM




Please respond to
"Tomcat Users List" <[EMAIL PROTECTED]>





To
"Tomcat Users List"
<[EMAIL PROTECTED]>


cc



Subject
RE: Installation Problem
In Tomcat








most prob port 8080 has already been used by tomcat
cos during 
installation, tomcat is added as a service which will start automatically.
Go to control panel -> administrative tools -> services and look
for 
apache tomcat




"Galbayar Dorjgotov" <[EMAIL PROTECTED]>
04/19/2004 02:28 PM
Please respond to "Tomcat Users List"

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

        Subject:        RE: Installation
Problem In Tomcat



C:\Tomcat\catalina\src\bin>catalina.bat run

 

  _ 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 15:17
To: Tomcat Users List
Subject: Installation Problem In Tomcat

 


Hi, 
 Im a new to Tomacat , i have installed it on my machine  but its
not
starting  rather im getting following  message 


C:\Tomcat\catalina\src\bin>startup 
Using CATALINA_BASE:   C:\Tomcat\catalina\src 
Using CATALINA_HOME:   C:\Tomcat\catalina\src 
Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp 
Using JAVA_HOME:       C:\jdk1.3.1_11 

and the window get closed 

 can anyone  guide me why am i getting this ? 
when i try to acess 
http://localhost:80/ 
 i didnt get  anything ?? 

thanks 
rgds 

Birendar Singh Waldiya






ForwardSourceID:NT444E
   
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

Does setBufferSize() work?

2004-04-18 Thread Graham Lea
Summary: Tomcat appears to be committing the response buffer when it is 
much less full (~200K) than the buffer size I have set (4MB).

Using Tomcat 4.0.1 (by necessity).

In my normal requests, I am generating a large amount of HTML through JSPs.
Because there's a lot of different stuff to generate, I have a main JSP 
which includes (using ) other JSPs, and they include other 
JSPs and so on, sometimes even inside a loop. (e.g. while (i++ < 100) { 
 })

I also have a very pretty error page that shows me lots of information 
about the request, session, etc. and is a complete HTML document in and 
of itself (i.e. has opening and closing html and body tags).

Hence, I want to set the buffer size of my responses quite high so that, 
should an error occur, even at the end of my excessively large page, any 
generated HTML will be cleared from the buffer and the whole error page 
will be shown just by itself, rather than appearing at the tail end of 
the part-generated HTML.

So, just to test it out, I'm setting the buffer size to 4MB.
But it's not working.
I'm purposely generating an error to test it, and I get almost all (but 
not quite) of the generated content up to where the error is thrown, and 
then the content of the error page comes after that.
This should not be happening - I should ONLY be getting the content of 
the error page.

Saving the whole generated content to a file, I can see that the total 
size is about 210KB - much less than the 4MB buffer size I've specified.
I have put output into the error page to display the buffer size of the 
request object, and it has definitely been set to 4MB.

So, I'd very much like to figure out why Tomcat is committing the buffer 
much earlier than I think it should be.

Some things that might be causing this anomaly:
- I am setting the buffer size in a filter?
- My servlet forwards the request to the main JSP, which then includes 
further JSPs?

I can't see how either of these things would change the behaviour, 
though, as the error page quite clearly shows that the buffer size is 4MB.

The only thing I found searching the web that was even loosely related 
was a Tomcat ChangeLog saying "Ignore setBufferSize()/setLocale() calls 
on included response", but the log is for version 5 and I'm using version 4.

Any ideas you have about what's going wrong or even avenues that I might 
look down would be much appreciated.
I have already tried testing the setBufferSize() /  
interaction on a smaller scale and it seemed to do what I expected - it 
just doesn't work with the real thing.

Thanks in advance,

Graham.

--
Graham Lea
Software Engineer
Forge Research Pty Ltd
Suite G11, Bay 9, Locomotive Workshop
Australian Technology Park, Cornwallis Street
Eveleigh NSW 1430 Australia
Phone: +61 2 9209 4152   Fax: +61 2 9209 4172
www.forge.com.au
--
This message contains privileged and confidential information intended
only for the use of the addressee named above.  If you are not the
intended recipient of this message you must not disseminate, copy or
take any action in reliance on it.  If you have received this message
in error please notify the sender immediately.  Any views expressed in
this message are those of the individual sender, except where the
sender specifically states them to be the views of another (including
a Body Corporate).
--


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


RE: Installation Problem In Tomcat

2004-04-18 Thread Thomas Chua
most prob port 8080 has already been used by tomcat cos during 
installation, tomcat is added as a service which will start automatically.
Go to control panel -> administrative tools -> services and look for 
apache tomcat




"Galbayar Dorjgotov" <[EMAIL PROTECTED]>
04/19/2004 02:28 PM
Please respond to "Tomcat Users List"

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

Subject:RE: Installation Problem In Tomcat



C:\Tomcat\catalina\src\bin>catalina.bat run

 

  _ 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 15:17
To: Tomcat Users List
Subject: Installation Problem In Tomcat

 


Hi, 
 Im a new to Tomacat , i have installed it on my machine  but its not
starting  rather im getting following  message 


C:\Tomcat\catalina\src\bin>startup 
Using CATALINA_BASE:   C:\Tomcat\catalina\src 
Using CATALINA_HOME:   C:\Tomcat\catalina\src 
Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp 
Using JAVA_HOME:   C:\jdk1.3.1_11 

and the window get closed 

 can anyone  guide me why am i getting this ? 
when i try to acess 
http://localhost:80/ 
 i didnt get  anything ?? 

thanks 
rgds 

Birendar Singh Waldiya







RE: Installation Problem In Tomcat

2004-04-18 Thread Galbayar Dorjgotov
C:\Tomcat\catalina\src\bin>catalina.bat run

 

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 19, 2004 15:17
To: Tomcat Users List
Subject: Installation Problem In Tomcat

 


Hi, 
 Im a new to Tomacat , i have installed it on my machine  but its not
starting  rather im getting following  message 


C:\Tomcat\catalina\src\bin>startup 
Using CATALINA_BASE:   C:\Tomcat\catalina\src 
Using CATALINA_HOME:   C:\Tomcat\catalina\src 
Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp 
Using JAVA_HOME:   C:\jdk1.3.1_11 

and the window get closed 

 can anyone  guide me why am i getting this ? 
when i try to acess 
http://localhost:80/   
 i didnt get  anything ?? 

thanks 
rgds 

Birendar Singh Waldiya



Re: getContext() returns null

2004-04-18 Thread Umer Rashid
I did, but I got the error at Tomcat startup. I had written:



in server.xml. Is there no way to access context of another servlet from
root servlet/war?

Regards,
umer

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 16, 2004 5:55 PM
Subject: RE: getContext() returns null



Hi,
Did you try setting crossContext to true for the A context as well? ;)

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Umer Rashid [mailto:[EMAIL PROTECTED]
>Sent: Friday, April 16, 2004 6:49 AM
>To: Tomcat Users List
>Subject: getContext() returns null
>
>Hello,
>
>I was able to acess A.war from B.war, but after I set B.war as ROOT (by
>setting Context path="" in server.xml),
>getServletContext().getContext("/A")
>in B.war return null, even though I have set crossContext ="true" in
>Context tag of B. Can anyone tell me how this problem can be fixed?
>
>Regards, umer
>




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]



Installation Problem In Tomcat

2004-04-18 Thread birendar . waldiya

Hi, 
 Im a new to Tomacat , i have installed
it on my machine  but its not starting  rather im getting following
 message


C:\Tomcat\catalina\src\bin>startup
Using CATALINA_BASE:   C:\Tomcat\catalina\src
Using CATALINA_HOME:   C:\Tomcat\catalina\src
Using CATALINA_TMPDIR: C:\Tomcat\catalina\src\temp
Using JAVA_HOME:      
C:\jdk1.3.1_11

and the window get closed 

 can anyone  guide me why
am i getting this ?
when i try to acess 
http://localhost:80/   
 i didnt get  anything ??

thanks 
rgds 

Birendar Singh Waldiya
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.


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

Re: session getting null

2004-04-18 Thread UmamaheswarKalluru




I have the problem only within this JSP file. The other JSP pages are
working fine. This JSP talks to a Servlet and the servlet talks to another
JSP file. The objects from the servlet are sent throughRequestDispatcher.

I dont know why, but the same JSP works good somtimes. i.e the session
object doesnt become null. I have no clue where the mistake is.

Thank you,
Best Regards,
Uma


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



Null Post Message

2004-04-18 Thread Anthony Jones
We have recently upgraded from Tomcat 4.1.10 to Tomcat 5.0.19 and we are now
getting every now and again we are getting HTTP requests to our servlets
with no parameters.  We use POST to send parameters, and this only ever
happened before for users who used certain browsers on Mac OS (prior to Mac
OSX).

Another interesting thing is that the problem only occurs on browsers using
the Microsoft Java VM.  The Sun VM works fine every time.

Has there been a change in the method a POST request is done in a Java
client for the latest version of Tomcat.

Regards,

--
Anthony Jones
Senior Programmer (Applications and Development)
Queensland Tertiary Admissions Centre (QTAC) Ltd

Phone: +61 7 38581285
email: [EMAIL PROTECTED]

  "If a train station is where the train stops,
   what is a work station?"
--




This email (including all attachments) may contain personal information and is 
intended solely for the named addressee. It is confidential and may be subject to 
legal or other professional privilege. Any confidentiality or privilege is not waived 
or lost because this email has been sent to you by mistake. If you have received it in 
error, please let us know by reply email, delete it from your system and destroy any 
copies.

This email is also subject to copyright. No part of it should be reproduced, adapted 
or communicated without the written consent of the copyright owner. Any personal 
information in this email must be handled in accordance with the Privacy Act 1998 
(Cth).

Email, and any attachments, may be interfered with, may contain computer viruses or 
other defects and may not be successfully replicated on other systems. We give no 
warranties in relation to these matters. If you have any doubts about the authenticity 
of an email purportedly sent by us, please contact us immediately.




Hey

2004-04-18 Thread tomcat-user


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Virtual Host, Locations and Mod_JK2

2004-04-18 Thread Alexander F. Hartner
I host several websites on my apache2 (2.0.49) using virtual hosts. One 
of the hosts I would like to forward fully to a web application 
deployed on tomat via Mod_JK. What I have done is the following:

Installed the webapplication in tomcat's root "/" context

Configured a worker in workers2.properties

Configured a virutal host on apache2


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/www/solms.co.za/
ServerName www.solms.co.za
ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
*.solmstraining.co.za
ErrorLog logs/solms.co.za-error_log
CustomLog logs/solms.co.za-access_log combined

  JkUriSet worker ajp13:localhost:28009



Everything is working, except the Location directive spans all my other 
virtual hosts as well. A request to any of the virtual hosts is 
redirected to /index.jsp, which I guess comes from my web application's 
deployment descriptor. Direct requests to otherhost.com/index.html are 
still processed by apache correctly, but general request to 
otherhost.com are redirected to otherhost.com/index.jsp.

Ugly solution:
What I have done in the mean time is to either
-create index.jsp files which are typically copies of the index.html
-modify the webapplication to redirect to index.html
I should not have to do this as the location should only work for the 
virtual host in which it is configured.

Any suggestions welcome

Alex

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


Hey

2004-04-18 Thread tomcat-user


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

damn!

2004-04-18 Thread tomcat-user


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: session getting null

2004-04-18 Thread Daniel Gibby
Has the session expired and started a new session and thus the objects 
that were in the previous session are not available?

Print out the session ID and see if it matches.

[EMAIL PROTECTED] wrote:



Hi,
I have an application where my JSP talks to the Servlet for further
processing of my form. I am maintaining the user information in a session("
UserDetails") object since the user has logged in.
My application works sometimes, but never works sometimes.

When I try to navigate within the same page sometime the "UserDetails"
object that is present in the session becomes null and sometime it works
great.
This is happening only with this jsp page of my application. The other
pages are working good and there is no session problem in them.
But why is that the session object becomes null sometimes and works
sometimes?
I am totally lost. Please help me.

Thank you,
Best Regards,
Uma
-
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]


Hey

2004-04-18 Thread tomcat-user


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

session getting null

2004-04-18 Thread UmamaheswarKalluru




Hi,
I have an application where my JSP talks to the Servlet for further
processing of my form. I am maintaining the user information in a session("
UserDetails") object since the user has logged in.

My application works sometimes, but never works sometimes.

When I try to navigate within the same page sometime the "UserDetails"
object that is present in the session becomes null and sometime it works
great.

This is happening only with this jsp page of my application. The other
pages are working good and there is no session problem in them.

But why is that the session object becomes null sometimes and works
sometimes?

I am totally lost. Please help me.

Thank you,
Best Regards,
Uma


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



RE: [OT] Pager Tag Library v2.0 usage w/Tomcat 5

2004-04-18 Thread Tom K
Thanks Eric, but would the example give me the back, forward buttons and
in-between the "jump to" pages, for example, it looks like this: 
<< 1 2 3 4 5 6 >> 
I have the back and forward buttons working but getting the jump to a
certain number page will not work.

Tom K.


-Original Message-
From: Eric Noel [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 7:13 PM
To: Tomcat Users List
Subject: Re: [OT] Pager Tag Library v2.0 usage w/Tomcat 5

On 4/17/2004 10:05 AM, Tom K wrote:

> I have pagination working with Tomcat 5 through a bean. I like the
> “flexible” features that Pager Tag Library v2.0 has and would like to
> implement it in my jsp. I know I have everything configured correctly
> because I can get the paging to display but not more to the next or
> previous page.
>  
> Does anyone have an example code I can see. I just don’t understand
the
> examples well enough on their web site HYPERLINK
>
"http://jsptags.com/tags/navigation/pager/index.jsp"http://jsptags.com/t
> ags/navigation/pager/index.jsp
>  
>  
>  
>  
> TIA
>  
> Tom K.
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"; %>
<%-- rs/datasource here --%>


 
 
 
 
 
 
 

first 



   prev 



   <%= pageNumber %> 



   next 



   last

   
   



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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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



RE: security permissions

2004-04-18 Thread Andrea Powles
Hi,

Im wanting to run the program on the server.

When I startup Tomcat with the -security option Tomcat doesn't start up? This is the 
case even when I take out my modifications to the policy file. When I don't use the 
-security option Tomcat runs fine but I am unable to execute another program from my 
webapp. Anyone have an idea as wo why not?

Thanks in advance
Andrea Powles


Mark Thomas <[EMAIL PROTECTED]> wrote:
> Where are you trying to run the external program? On the tomcat server or
> on the
> client talking to the server?
> 
> If on the server try:
> - testing it without the security manager
> 
> If on the client:
> - The browser security model will not allow this at all unless the
> applet/JavaScript is signed.
> - If you use vbscript on IE, the browser will let unsigned code do it but
> requires the user to acknowledge the risk before running the app.
> 
> Mark 
> 
> > -Original Message-
> > From: Andrea Powles [mailto:[EMAIL PROTECTED] 
> > Sent: Saturday, April 17, 2004 7:43 AM
> > To: Tomcat Users List
> > Subject: Re: security permissions
> > 
> > Thanks, I tried this but it doesn't seem to work, don't know 
> > what I'm doing wrong?
> > 
> > 
> > 
> > Andrea Powles
> > 
> > 
> > 
> > Jeanfrancois Arcand <[EMAIL PROTECTED]> wrote:
> > 
> > > 
> > 
> > > 
> > 
> > > Andrea Powles wrote:
> > 
> > > 
> > 
> > > >Hi Tomcatusers,
> > 
> > > >
> > 
> > > >I wish for one of my web apps in Tomcat to execute another 
> > program on my computer using the exec method. I know that I 
> > can't currently do this due to the security restrictions.
> > 
> > > >
> > 
> > > >I have tried changing the Catalina policy file but I'm 
> > unsure of exactly what to do so it didn't work. Can someone 
> > please advise me of exactly what I need to add or modify in 
> > order for my web app to have all permissions.
> > 
> > > >
> > 
> > > >I am aware of the security risks but at this stage it is 
> > more important that I get my application to work. My web app 
> > runs as a servlet and is in a web app directory calledruddis.
> > 
> > > > 
> > 
> > > >
> > 
> > > try the following in catalina.policy:
> > 
> > > 
> > 
> > > > // These permissions apply only to yourapplication
> > 
> > > > grant codeBase "file:${catalina.home}/webapps/<>/-"{
> > 
> > > > permissionjava.security.AllPermission;
> > 
> > > >};
> > 
> > > 
> > 
> > > 
> > 
> > > -- Jeanfrancois
> > 
> > > 
> > 
> > > >Thanks in advance
> > 
> > > >AndreaPowles
> > 
> > > >
> > 
> > > >
> > 
> > > 
> > >-
> > 
> > > >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]

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



Re: [OT] Pager Tag Library v2.0 usage w/Tomcat 5

2004-04-18 Thread Eric Noel
On 4/17/2004 10:05 AM, Tom K wrote:

I have pagination working with Tomcat 5 through a bean. I like the
“flexible” features that Pager Tag Library v2.0 has and would like to
implement it in my jsp. I know I have everything configured correctly
because I can get the paging to display but not more to the next or
previous page.
 
Does anyone have an example code I can see. I just don’t understand the
examples well enough on their web site HYPERLINK
"http://jsptags.com/tags/navigation/pager/index.jsp"http://jsptags.com/t
ags/navigation/pager/index.jsp
 
 
 
 
TIA
 
Tom K.
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"; %>
<%-- rs/datasource here --%>









first 



   prev 



   <%= pageNumber %> 



   next 



   last

  
  

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


Re: Relative directory addressing to parent directory

2004-04-18 Thread John B. Moore
Tom,

  Thanks, but...  I think you missed what I was after..  I wanted to 
be able to "back reference" to the parent directory of the web 
application in a link to an image..

Example: (trivial example)

   Normally you would use a relative path to an image directory "IN" 
the web application like so..



  ... but if you wanted to use an image that was NOT in your web app.. 
(I have my reason, but I won't bore you with the details)..  Normally in 
just plain HTML served by Apache I could..



   to refer "back" to the parent directory which contains it's own 
"images" directory and refer to that directory via "../" syntax.

It seems that Tomcat does not support that kind of "relative" 
addressing to a parent directory..

Do you know a way around this...

John...

Tom K wrote:

John, relative paths are always a headache (until you do some
book-learning :-)). What I do is, right after my  tag I put in a
line like this:


What the line above does is gives you the full path as your base
reference.
You can put 'kind-of' the same line in your regular html pages by using
just the relative paths. Some may argue with the approach I use; if you
include footers` and headers though and use the line right after your
 tag your relative path will always be the same.
Tom Kochanowicz



-Original Message-
From: John B. Moore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 6:27 PM
To: Tomcat Users List
Subject: Relative directory addressing to parent directory

Can't seem to get this to work

Example:   Under  Tomcat/webapps I want an images directory that "any" 
of the web applications in that directory can access in their pages. 

 In static HTML (under Apache) I would use..

  ../images/myimage.jpg

  and it would work just fine.. (the "../" would cause it to "backup" 
one folder to the parent and access the images directory directly under 
"webapps")

  I can seem to get this to work within a JSP page in Tomcat (4.1.29)

 As a test I created an HTML inwhich this works under Apache. Then 
changed it to a .jsp to run under Tomcat with the target image in 
/webapps/images/ and the app under /webapps/testapp.

  Suggestions as to what I am missing...???

   John..

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003


-
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: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Mark Thomas
Andreas,

I believe you have misinterpreted the spec. Having re-read the relevant parts of
the spec (SRV.10.2, SRV.15.1.7 & SRV.15.1.8) HttpSessionActivationListener
applies to session attributes. Although HttpSessionActivationListener's
inclusion in table SRV.10-1 could suggest otherwise, section SRV.10.2 also
states that SRV.14 and SRV.15 should be referred to for the details of the API.
SRV.15 clearly states that HttpSessionActivationListener is for session
attributes.

The Tomcat team has interpreted the spec as described above and after re-reading
it several times my own view is that this is the correct interpretation.

Mark


> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach
> I've got a simple class that keeps track of the sessions that are 
> active. See sourcecode below. As you can see, sessions are 
> being added 
> or removed from a set if sessionCreated/sessionDestroyed is 
> called (this 
> part is working).
> 
> I also want to add all sessions activated at Tomcat startup. This is 
> what sessionDidActive() is implemented for.
> 
> But neither sessionDidActive() nor sessionWillPassivate() is 
> called. Is 
> there any important information missing?
> 
> My web.xml includes:
> 
> 
> mypackage.UserSessions
> 



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



Re: good webhosting

2004-04-18 Thread Evgeny Gesin
You need to answer at least these questions:
- what monthly traffic do you need?
- what OS and server software do you need?
- what security do you need?
- can you manage the server or need an admin?
- what is your budget?

Just a quick note:
For personal use any shared j2ee hosting will serve
your needs. For production use buy managed* dedicated*
server to save in technical staff, expensive
maintenance and support.

Evgeny
Javadesk

--- "agarlita,dan" <[EMAIL PROTECTED]> wrote:
> http://www.hostforweb.com
> is a good service, I work with them about 3 years
> 
> 
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, April 18, 2004 9:40 PM
> Subject: good webhosting
> 
> 
> > Hello everyone.   I was woundering if anyone could
> point me to a web
> hosting company that supports tomcat and php
> >
> > Thanks if you can help
> >
> >
> >
>
-
> > 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]
> 





__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash

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



Re: good webhosting

2004-04-18 Thread agarlita,dan
http://www.hostforweb.com
is a good service, I work with them about 3 years


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 18, 2004 9:40 PM
Subject: good webhosting


> Hello everyone.   I was woundering if anyone could point me to a web
hosting company that supports tomcat and php
>
> Thanks if you can help
>
>
> -
> 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: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Andreas Schildbach
Mark Thomas wrote:

Without looking at your source code, no idea. I have just checked the Tomcat
source and every attribute that implements  
HttpSessionActivationListener will have sessionWillPassivate() and
sessionDidActivate() called.
I've got a simple class that keeps track of the sessions that are 
active. See sourcecode below. As you can see, sessions are being added 
or removed from a set if sessionCreated/sessionDestroyed is called (this 
part is working).

I also want to add all sessions activated at Tomcat startup. This is 
what sessionDidActive() is implemented for.

But neither sessionDidActive() nor sessionWillPassivate() is called. Is 
there any important information missing?

My web.xml includes:


mypackage.UserSessions

Regards,

Andreas

public class UserSessions implements HttpSessionListener, 
HttpSessionActivationListener
{
	private static final Set sessions = new HashSet();
	
	public void sessionCreated(HttpSessionEvent sessionEvent)
	{
		HttpSession session = sessionEvent.getSession();
		
		synchronized(sessions)
		{
			sessions.add(session);
		}
	}

public void sessionDestroyed(HttpSessionEvent sessionEvent)
{
HttpSession session = sessionEvent.getSession();
synchronized(sessions)
{
sessions.remove(session);
}
}
public void sessionDidActivate(HttpSessionEvent sessionEvent)
{
System.out.println("sessionDidActivate() called");
HttpSession session = sessionEvent.getSession();

synchronized(sessions)
{
sessions.add(session);
}
}
public void sessionWillPassivate(HttpSessionEvent arg0)
{
System.out.println("sessionWillPassivate() called");
}
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Mark Thomas
Without looking at your source code, no idea. I have just checked the Tomcat
source and every attribute that implements  
HttpSessionActivationListener will have sessionWillPassivate() and
sessionDidActivate() called.

At the moment it looks like something in your app.

Mark

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach
> Sent: Sunday, April 18, 2004 7:28 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Detecting Sessions already existent at Tomcat Startup?
> 
> Hello Mark,
> 
> > 
> > SRV.15.1.8 HttpSessionActivationListener
> > 
> > 
> > HttpSessionActivationListener is the way to achieve what 
> you are trying to do.
> 
> Then why doesn't Tomcat 5.0.19 call my registered 
> HttpSessionActivationListener when I shut Tomcat down or 
> start it up again?
> 
> I know that my sessions are being persisted, because
> 
> a) I see the my sessions attributes appearing in SESSION.ser and
> b) I can still access the session after restarting Tomcat if 
> I keep my 
> browser open.
> 
> Regards,
> 
> Andreas
> 
> 
> 
> 
> -
> 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]



good webhosting

2004-04-18 Thread asolomon15
Hello everyone.   I was woundering if anyone could point me to a web hosting company 
that supports tomcat and php

Thanks if you can help


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



hey you

2004-04-18 Thread tomcat-user


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Andreas Schildbach
Hello Mark,


SRV.15.1.8 HttpSessionActivationListener

HttpSessionActivationListener is the way to achieve what you are trying to do.
Then why doesn't Tomcat 5.0.19 call my registered 
HttpSessionActivationListener when I shut Tomcat down or start it up again?

I know that my sessions are being persisted, because

a) I see the my sessions attributes appearing in SESSION.ser and
b) I can still access the session after restarting Tomcat if I keep my 
browser open.

Regards,

Andreas



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


JSP not participating in a Session still increases Session count, why?

2004-04-18 Thread Andreas Schildbach
Hello everybody,

I've got a cron job that periodically requests a specific JSP page. In 
order to save resources on the generation of HttpSession objects for 
each request, I declared in the page not to use any sessions with the 
following page directive:

<%@ page session="false" %>

Unfortunately, HttpSession objects still seem to be created: My 
HttpSessionListener's sessionCreated() is called on each request.

Is this intentional? Or could this be a bug in Tomcat (5.0.19)?

Regards,

Andreas

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


Re: Your bill

2004-04-18 Thread craigmcc
Please read the attached file.

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

pageEncoing and contentType

2004-04-18 Thread seiji takegata
Hi.

I'm trying to generate PDF document directory from JSP using 
itext library. I have an encoding problem.

I put pageEncoding and contentType attributes in page directive 
as:

<%@ page contentType="application/pdf"%>
<%@ page pageEncoding="Shift_JIS"%>

Then tomcat (or jasper) translates them like:

response.setContentType("application/pdf;charset=Shift_JIS");

IE will not open AdobeReader, show download dialog instead.

If I do not specify pageEncoding, then the line above will be:

response.setContentType("application/pdf");

AdobeReader opens as I expect. But character is not encoded 
correctory.

I wonder why "charset=Shift_JIS" is added to contentType string.
I want remove it from the contentType string, or remove whole 
the line. I think I can specify contentType by 

response.setCotentType("application/pdf");

This is my first message to this ML.
Thanks.
--
seiji takegata
[EMAIL PROTECTED]

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



RE: Authentification against NT Domain Controller

2004-04-18 Thread Pitre, Russell
Try taking a look at this http://jcifs.samba.org/

Look into using the NTLM authentication filter.  You'll achieve single-on 
authentication and when you need to grab the user's username, you can use this:

String username = ((HttpServletRequest)request).getRemoteUser();


Russ-

-Original Message-
From: Frank Schaare [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 18, 2004 6:01 AM
To: [EMAIL PROTECTED]
Subject: Authentification against NT Domain Controller

Hi,

we´re building an Intranet application running on Tomcat 4.1.30 (Client 
OS is Win2K). It would be very suitable to authentificate the users 
against the NT Domain Controller to avoid a second login.

I searched this ML and Google but did not find very much about this theme.

There is a SourceForce Project called NTDCRealm which seems to fit our 
needs, but has absolutely no documentation.

Probably, we need to nest a custom NTDCRealm Tag in our WebApp context. 
To learn, how to do this, i searched the Tomcat documentation 
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Standard%20Realm%20Implementations)
and again, there is a gap:

"It is also possible to write your own Realm implementation, and 
integrate it with Tomcat 4. However, doing this is beyond the scope of 
this document. See (FIXME - reference to developer stuff) for more 
information."

Here are my questions:

Does this reference to developer stuff exist anywhere ?
Does anyone ever made the NTDCRealm to work ?
Does anyone knows another (documentatet) Implementation of NT 
authentification ?

Any hints, links, documents about this theme are warmly welcome.

-
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: Authentification against NT Domain Controller

2004-04-18 Thread Chong Yu Meng
Hi Frank !

I seem to remember ActiveDirectory being discussed here, on this mailing 
list. The good thing about ActiveDirectory is that, if you do not have 
an overly complicated schema, you can use the LDAP subset to query the 
directory (you need to do a fair bit of tweaking to get ActiveDirectory 
to output results in LDAP-compliant format though. I'm not an expert on 
ActiveDirectory, so I really cannot advise you on this).

If you're using Windows NT as the PDC, I think you can't get the Tomcat 
realm to work with it (Please, somebody, tell me otherwise!).

As for writing your own Realm implementation, unless you are a really 
seasoned programmer, this can be a very daunting task. An easier way is 
to download and look at SecurityFilter. The example webapp has source 
code that you can look at, and not get confused by it. I highly 
recommend this to implementing your own realm. However, this still does 
not address the problem of extracting user credentials from a PDC.

There is another solution : use Novell's DirXML product to do a periodic 
sync of data in Active Directory or NTLM into an LDAP directory, then 
use the JNDI realm in Tomcat. This is not a free solution, and it does 
require you to read up on another product, but this product is also very 
good for syncing data between different directories (OpenLDAP, Netscape 
Directory Server, Novell eDirectory, even flat files).

Hope this helps !

Frank Schaare wrote:

Hi,

we´re building an Intranet application running on Tomcat 4.1.30 
(Client OS is Win2K). It would be very suitable to authentificate the 
users against the NT Domain Controller to avoid a second login.

I searched this ML and Google but did not find very much about this 
theme.

There is a SourceForce Project called NTDCRealm which seems to fit our 
needs, but has absolutely no documentation.

Probably, we need to nest a custom NTDCRealm Tag in our WebApp 
context. To learn, how to do this, i searched the Tomcat documentation 
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Standard%20Realm%20Implementations) 

and again, there is a gap:

"It is also possible to write your own Realm implementation, and 
integrate it with Tomcat 4. However, doing this is beyond the scope of 
this document. See (FIXME - reference to developer stuff) for more 
information."

Here are my questions:

Does this reference to developer stuff exist anywhere ?
Does anyone ever made the NTDCRealm to work ?
Does anyone knows another (documentatet) Implementation of NT 
authentification ?

Any hints, links, documents about this theme are warmly welcome.

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


--
A complex system that works is invariably found to have evolved from a
simple system that works.
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++


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


Re: Realm(?) authentication

2004-04-18 Thread Chong Yu Meng


Frank Schaare wrote:

"Or maybe you just think that my writing sucks"

i´m reading a lot of this stuff but your writing definetly NOT sucks ! 
Is is cool, short and very useful, thank you for posting your link.

Greetings from Germany...

Thanks a lot, Frank !!

I hope it's good enough for another thesis I am writing that has nothing 
at all to do with technology. Which I have to submit really soon !

--
A complex system that works is invariably found to have evolved from a
simple system that works.
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++


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


Re: Realm(?) authentication

2004-04-18 Thread Adam Hardy
On 04/18/2004 12:22 PM Frank Schaare wrote:
I've written one step by step for this. It's for Tomcat on Linux, but 
I don't think Windows is different at all, at least for the realm 
part. Can't say the same for the installation. You can view it at 
http://www.connecties.com/cymulacrum/tomcat5/c578.html. This is for JDBC 
"Or maybe you just think that my writing sucks"

i´m reading a lot of this stuff but your writing definetly NOT sucks ! 
Is is cool, short and very useful, thank you for posting your link.
You should definitely post this link on the Jakarta wiki.

--
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Parser Errors on startup

2004-04-18 Thread James Bucanek
Yea!  Adding the DOCTYPE solved my parsing problems!  Thanks Mark.

I realize now that I had taken it out when I was having another problem.  I originally 
created the files using UTF-8 encoding:



But the parser would puke up and wouldn't even start:

Apr 12, 2004 7:27:05 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 1 column -1: Document root element is missing.
org.xml.sax.SAXParseException: Document root element is missing.
...

I later discovered that my XML-savvy text editor was inserting a byte-order mark at 
the beginning of the file, which the XML parser apparently doesn't appreciate.  Taking 
that out solved (most) of my parsing problems -- but not until after I'd butchered the 
file.  ;)

Thanks again for all the help,

James


Mark Thomas wrote on Sunday, April 18, 2004:
>Try putting  
>
>
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>At the start of the web.xml file
>
>Mark
>
>> -Original Message-
>> From: James Bucanek [mailto:[EMAIL PROTECTED] 
>> Sent: Sunday, April 18, 2004 6:55 AM
>> To: Tomcat Users List
>> Subject: Re: Parser Errors on startup
>> 
>> James Bucanek wrote on Saturday, April 17, 2004:
>> >Tomcat 4.1.xx/Mac OS X Server (BSD)
>> >
>> >I'm getting the following errors when I startup Tomcat, and I can't
>> >for the life of me figure out what to do about it:
>> 
>> Well, I've managed to narrow the problem down.  The  I 
>> defined in server.xml isn't the problem.  The problem is that 
>> the  I defined caused other webapp's to be deployed 
>> automatically, and it is apparently the web.xml file that is 
>> throwing the SAXParseExceptions.
>> 
>> I kept taking things out of the web.xml file to try and zero 
>> in on the problem.  Unfortunately, I'm now left with the 
>> following web.xml:
>> 
>> 
>> 
>> 
>> Whenever I start Tomcat, or reload the web application, the 
>> following gets written to ${catalina-home}/logs/catalina.out:
>> 
>> Apr 17, 2004 10:45:01 PM org.apache.commons.digester.Digester error
>> SEVERE: Parse Error at line 1 column -1: Element type 
>> "web-app" is not declared.
>> org.xml.sax.SAXParseException: Element type "web-app" is not declared.
>> at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
>> at 
>> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469)
>> at 
>> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
>> at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
>> at 
>> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
>> at 
>> org.apache.commons.digester.Digester.parse(Digester.java:1548)
>> at 
>> org.apache.catalina.startup.ContextConfig.applicationConfig(Co
>> ntextConfig.java:282)
>> at 
>> org.apache.catalina.startup.ContextConfig.start(ContextConfig.
>> java:639)
>> at 
>> org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
>> xtConfig.java:243)
>> at 
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
>> ifecycleSupport.java:166)
>> at 
>> org.apache.catalina.core.StandardContext.start(StandardContext
>> .java:3582)
>> at 
>> org.apache.catalina.startup.HostConfig.checkWebXmlLastModified
>> (HostConfig.java:614)
>> at 
>> org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
>> at java.lang.Thread.run(Thread.java:552)
>> 
>> Note: If I have other declarations in web.xml, I get a SAX 
>> Exception for (basically) every tag in the file.
>> 
>> They only way to eliminate this Exception is to remove the 
>> web.xml file altogether.  This just doesn't make any sense to 
>> me.  Any insight would be appreciated.
>> 
>> __
>> James Bucanek   
>> 
>> -
>> 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]
>
>
__
James Bucanek   

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



Re: Context Based Jars Loading

2004-04-18 Thread Mike Millson
You could take commons-logging out of /common/lib, and place the version
you want to use for each app in /WEB-INF/lib.

app1/WEB-INF/lib/commons-logging-ver1.jar
app2/WEB-INF/lib/commons-logging-ver2.jar
/app3/WEB-INF/lib/commons-logging-ver1.jar

etc.

That way you could control the version of commons-logging that goes w/
each application.

Mike

On Sat, 2004-04-17 at 17:25, Mike Sowka wrote:
> Blu,
> 
> I'm sorry, You've lost me a while back... but I have a hunch your 
> suggesting I start Tomcat wihtout loading the "offending" jar file... 
> and my concern is: I don't want to do that, because some of my apps 
> depend on it.
> 
> Oh, and BTW, I'm running on Linux.
> 
> Mike
> 
> [EMAIL PROTECTED] wrote:
> 
> >try, just pluming the line in the Tomcat.exe or program file of your
> >sys?? may be able to get in there?? Have u tried ??
> >On Sat, 17 Apr 2004 16:58:02 -0400 Mike Sowka <[EMAIL PROTECTED]> writes:
> >  
> >
> >>Blu,
> >>
> >>Thanx, that is an idea... but it's essentially the same as just 
> >>deleting 
> >>the file. The point being, I want to use the jar file in other 
> >>web-apps... it seems rediculous that I can't at least set the class 
> >>path 
> >>order in Tomcat & Context...
> >>
> >>Anyone?
> >>Mike
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>
> >>
> >>>you might use a dos based .bat file to exclude tomcat in the use 
> >>>  
> >>>
> >>of
> >>
> >>
> >>>common\loggin.*,  might come out looking like a mini "Basic 
> >>>  
> >>>
> >>Program" but
> >>
> >>
> >>>should work, not two sure if you can load it at the same time as
> >>>atuoecec.bat, or "Tomcat", may require some one with source code, 
> >>>  
> >>>
> >>or
> >>
> >>
> >>>getting some one  with Tomcat  code,,, to write it and put in for 
> >>>  
> >>>
> >>you??
> >>
> >>
> >>>good luck...  but do try .bat  ... they are simple, just in case 
> >>>  
> >>>
> >>you have
> >>
> >>
> >>>never wrote them..  look on line for Dos.hlp... someone will have 
> >>>  
> >>>
> >>it.. 
> >>
> >>
> >>>maybe even M.S.
> >>>
> >>> 
> >>>simple thought's from a simple mind 
> >>>  
> >>>
> >> 
> >>
> >>
> >>>   -
> >>>as always   
> >>>  
> >>>
> >> 
> >>
> >>
> >>>  
> >>>blu
> >>>
> >>>
> >>>
> >>>On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka <[EMAIL PROTECTED]> 
> >>>  
> >>>
> >>writes:
> >>
> >>
> >>> 
> >>>
> >>>  
> >>>
> Hello Everyone,
> 
> I wrote last night to the list with some frustration as I couldn't 
> 
> 
> load 
> up an app put together in Websphere into good'ol Tomcat4.1. Well I 
> 
> 
> think 
> I now know what the problem is, but don't know how to resolve it.
> 
> It turns out that the IBM packaged jars "require" an older version 
> 
> 
> (1.0.1-dev) of org.apache.commons.logging... this package is 
> supplied in 
> the form of the commons-logging.jar placed in the WEB-INF/lib. In 
> 
> 
> the 
> case of Tomcat, the package also appears in 
> common/lib/commons-logging-api.jar... So the big question:
> 
> How do I tell Tomcat to not load the jar file out of common/lib for 
> 
> 
> this 
> particular Context and use the one out of WEB-INF/lib? (Obviously, 
> 
> 
> >>I 
> >>
> >>
> don't want to delete it... )
> 
> Thank You,
> Mike
> 
> -
> 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]
> >
> >
> >  
> >
> 
> -
> 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: Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Mark Thomas

SRV.15.1.8 HttpSessionActivationListener

public interface HttpSessionActivationListener extends java.util.EventListener
All Superinterfaces: java.util.EventListener

Objects that are bound to a session may listen to container events notifying
them
that sessions will be passivated and that session will be activated. A container
that
migrates session between VMs or persists sessions is required to notify all
attributes bound to sessions implementing HttpSessionActivationListener.


HttpSessionActivationListener is the way to achieve what you are trying to do.

Mark

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach
> Sent: Sunday, April 18, 2004 11:45 AM
> To: [EMAIL PROTECTED]
> Subject: Detecting Sessions already existent at Tomcat Startup?
> 
> Hello everyone,
> 
> when I start up Tomcat and Tomcat activates any sessions from 
> SESSION.ser, shouldn't sessionDidActivate() in a registered 
> HttpSessionActivationListener be called?
> 
> Or is this listener reserved only for Session migrations between JVMs?
> 
> In any case, how can I detect a session if it is already 
> existent at the 
> startup of Tomcat?
> 
> Regards,
> 
> Andreas
> 
> p.s. to be more precise, I am using Tomcat 5.0.19
> 
> 
> -
> 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: Authentification against NT Domain Controller

2004-04-18 Thread Mark Thomas
From: Frank Schaare [mailto:[EMAIL PROTECTED] 
> we´re building an Intranet application running on Tomcat 
> 4.1.30 (Client 
> OS is Win2K). It would be very suitable to authentificate the users 
> against the NT Domain Controller to avoid a second login.
> 
> I searched this ML and Google but did not find very much 
> about this theme.
> 
> There is a SourceForce Project called NTDCRealm which seems 
> to fit our 
> needs, but has absolutely no documentation.
> 
> Probably, we need to nest a custom NTDCRealm Tag in our 
> WebApp context. 
> To learn, how to do this, i searched the Tomcat documentation 
> (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.h
> tml#Standard%20Realm%20Implementations)
> and again, there is a gap:
> 
> "It is also possible to write your own Realm implementation, and 
> integrate it with Tomcat 4. However, doing this is beyond the 
> scope of 
> this document. See (FIXME - reference to developer stuff) for more 
> information."
> 
> Here are my questions:
> 
> Does this reference to developer stuff exist anywhere ?
Short of reading the source code, no.

> Does anyone ever made the NTDCRealm to work ?
Not to my knowledge.

> Does anyone knows another (documentatet) Implementation of NT 
> authentification ?
I believe you can put IIS in front of Tomcat and use IIS to do the
authentication.
There are windows authentication modules you can use with JAAS and a JAAS realm
provided with Tomcat.

> Any hints, links, documents about this theme are warmly welcome.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html



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



RE: Parser Errors on startup

2004-04-18 Thread Mark Thomas
Try putting  



http://java.sun.com/dtd/web-app_2_3.dtd";>

At the start of the web.xml file

Mark

> -Original Message-
> From: James Bucanek [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, April 18, 2004 6:55 AM
> To: Tomcat Users List
> Subject: Re: Parser Errors on startup
> 
> James Bucanek wrote on Saturday, April 17, 2004:
> >Tomcat 4.1.xx/Mac OS X Server (BSD)
> >
> >I'm getting the following errors when I startup Tomcat, and I can't
> >for the life of me figure out what to do about it:
> 
> Well, I've managed to narrow the problem down.  The  I 
> defined in server.xml isn't the problem.  The problem is that 
> the  I defined caused other webapp's to be deployed 
> automatically, and it is apparently the web.xml file that is 
> throwing the SAXParseExceptions.
> 
> I kept taking things out of the web.xml file to try and zero 
> in on the problem.  Unfortunately, I'm now left with the 
> following web.xml:
> 
> 
> 
> 
> Whenever I start Tomcat, or reload the web application, the 
> following gets written to ${catalina-home}/logs/catalina.out:
> 
> Apr 17, 2004 10:45:01 PM org.apache.commons.digester.Digester error
> SEVERE: Parse Error at line 1 column -1: Element type 
> "web-app" is not declared.
> org.xml.sax.SAXParseException: Element type "web-app" is not declared.
> at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
> at 
> org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469)
> at 
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
> at 
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
> at 
> org.apache.commons.digester.Digester.parse(Digester.java:1548)
> at 
> org.apache.catalina.startup.ContextConfig.applicationConfig(Co
> ntextConfig.java:282)
> at 
> org.apache.catalina.startup.ContextConfig.start(ContextConfig.
> java:639)
> at 
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
> xtConfig.java:243)
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.java:166)
> at 
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3582)
> at 
> org.apache.catalina.startup.HostConfig.checkWebXmlLastModified
> (HostConfig.java:614)
> at 
> org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
> at java.lang.Thread.run(Thread.java:552)
> 
> Note: If I have other declarations in web.xml, I get a SAX 
> Exception for (basically) every tag in the file.
> 
> They only way to eliminate this Exception is to remove the 
> web.xml file altogether.  This just doesn't make any sense to 
> me.  Any insight would be appreciated.
> 
> __
> James Bucanek   
> 
> -
> 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]



Detecting Sessions already existent at Tomcat Startup?

2004-04-18 Thread Andreas Schildbach
Hello everyone,

when I start up Tomcat and Tomcat activates any sessions from 
SESSION.ser, shouldn't sessionDidActivate() in a registered 
HttpSessionActivationListener be called?

Or is this listener reserved only for Session migrations between JVMs?

In any case, how can I detect a session if it is already existent at the 
startup of Tomcat?

Regards,

Andreas

p.s. to be more precise, I am using Tomcat 5.0.19

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


Re: Realm(?) authentication

2004-04-18 Thread Frank Schaare
Hi,

I've written one step by step for this. It's for Tomcat on Linux, but I 
don't think Windows is different at all, at least for the realm part. 
Can't say the same for the installation. You can view it at 
http://www.connecties.com/cymulacrum/tomcat5/c578.html. This is for JDBC 
"Or maybe you just think that my writing sucks"

i´m reading a lot of this stuff but your writing definetly NOT sucks ! 
Is is cool, short and very useful, thank you for posting your link.

Greetings from Germany...

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


Authentification against NT Domain Controller

2004-04-18 Thread Frank Schaare
Hi,

we´re building an Intranet application running on Tomcat 4.1.30 (Client 
OS is Win2K). It would be very suitable to authentificate the users 
against the NT Domain Controller to avoid a second login.

I searched this ML and Google but did not find very much about this theme.

There is a SourceForce Project called NTDCRealm which seems to fit our 
needs, but has absolutely no documentation.

Probably, we need to nest a custom NTDCRealm Tag in our WebApp context. 
To learn, how to do this, i searched the Tomcat documentation 
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#Standard%20Realm%20Implementations)
and again, there is a gap:

"It is also possible to write your own Realm implementation, and 
integrate it with Tomcat 4. However, doing this is beyond the scope of 
this document. See (FIXME - reference to developer stuff) for more 
information."

Here are my questions:

Does this reference to developer stuff exist anywhere ?
Does anyone ever made the NTDCRealm to work ?
Does anyone knows another (documentatet) Implementation of NT 
authentification ?

Any hints, links, documents about this theme are warmly welcome.

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


Re: configure data source

2004-04-18 Thread Kris Rasmussen
Yeah its confusing. In your global naming resources
you need to declare a resource and then a seperate
group of resource params with the same name. For your
app context look below at my example () is the
name of your app.



   

  




  

--- twcTC <[EMAIL PROTECTED]> wrote:
> I have the same problem. please help.
> ===detail
> info==
> hello all,
> 
> I need help.
> I am using jwsdp-1.3. I am trying to connect to
> oracle 8.1.5 database using DataSource.
> I get sqlexception 
> "java.sql.SQLException: Cannot load JDBC driver
> class".
> 
> I have put oracle jdbc classes12.zip into
> /common/lib/classes12.jar.
> (I rename classes12.zip to classes12.jar)
> 
> Thank you very much.
> It took me a lot of time.
> 
> --Tony
> 
> The following is config and code files.
> 
> conf/server.xml
> 
> 
>  className="org.apache.catalina.core.StandardServer"
> debug="0"
> port="8005" shutdown="SHUTDOWN">
>   
className="org.apache.catalina.mbeans.ServerLifecycleListener"
> debug="0"/>
>   
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> debug="0"/>
>   
>  name="jwsdp.home" override="true"
> type="java.lang.String"
> value="D:\jwsdp13"/>
>  type="java.lang.Integer" value="30"/>
>  scope="Shareable"
> type="org.apache.catalina.UserDatabase"/>
>  type="javax.sql.DataSource"/>
> 
>   
> factory
>
>
org.apache.catalina.users.MemoryUserDatabaseFactory
>   
>   
> pathname
> conf/tomcat-users.xml
>   
> 
> 
>   
> maxWait
> 5000
>   
>   
> maxActive
> 4
>   
>   
> password
> tiger
>   
>   
> url
>
>
jdbc:oracle:thin:@127.0.0.1:1521:dellorcl
>   
>   
> driverClassName
>
> oracle.jdbc.driver.OracleDriver
>   
>   
> maxIdle
> 2
>   
>   
> username
> scott
>   
> 
>   
>className="org.apache.catalina.core.StandardService"
> debug="0" name="Java Web Services Developer Pack">
> 
className="org.apache.coyote.tomcat5.CoyoteConnector"
> acceptCount="100" bufferSize="2048"
> clientAuth="false"
> compression="off" connectionLinger="-1"
> connectionTimeout="2"
> connectionUploadTimeout="30" debug="0"
> disableUploadTimeout="true"
> enableLookups="true" keepAlive="true"
> maxKeepAliveRequests="100"
> maxProcessors="100" minProcessors="5" port="8080"
> protocol="HTTP/1.1"
>
protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol"
> proxyPort="0" redirectPort="8443" scheme="http"
> secure="false" serverSocketTimeout="0"
> tcpNoDelay="true"
> tomcatAuthentication="true" xpoweredBy="true">
> 
>  className="org.apache.catalina.core.StandardEngine"
> backgroundProcessorDelay="10" baseDir="D:\jwsdp13"
> debug="0"
> defaultHost="localhost" domain="Catalina"
> name="Catalina">
>className="org.apache.catalina.core.StandardHost"
> appBase="webapps"
> autoDeploy="true" backgroundProcessorDelay="-1"
>
configClass="org.apache.catalina.startup.ContextConfig"
>
contextClass="org.apache.catalina.core.StandardContext"
> debug="0"
> deployOnStartup="true" deployXML="true"
> domain="Catalina"
>
errorReportValveClass="org.apache.catalina.valves.ErrorReportValve"
> liveDeploy="true" name="localhost"
> unpackWARs="false"
> xmlNamespaceAware="false" xmlValidation="false">
> 
className="org.apache.catalina.authenticator.SingleSignOn"
> debug="0"/>
>   
>className="org.apache.catalina.logger.FileLogger"
> debug="0" directory="logs" prefix="jwsdp_log."
> suffix=".txt" timestamp="true" verbosity="1"/>
>   
className="org.apache.catalina.realm.UserDatabaseRealm"
> debug="0" resourceName="UserDatabase"
> validate="true"/>
>   
className="org.apache.catalina.valves.AccessLogValve"
> debug="0" directory="logs"
> fileDateFormat="-MM-dd"
> pattern="%h %l %u %t "%r" %s %b"
> prefix="access_log."
> resolveHosts="false" rotatable="true"
> suffix=".txt"/>
> 
>   
> 
> 
> 
> /hello1/build/Wen-inf/web.xml
> =
> 
>  xmlns="http://java.sun.com/xml/ns/j2ee";
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>   hello1
>   
> GreetingServlet
> GreetingServlet
>
>
servlets.GreetingServlet
>   
>   
> ResponseServlet
> ResponseServlet
>
>
servlets.ResponseServlet
>   
>   
> GreetingServlet
> /greeting
>   
>   
> ResponseServlet
> /response
>   
> 
>  Oracle Datasource
> example
>  jdbc/myoracle
>  javax.sql.DataSource
>  Container
> 
> 
> =
> 
> /Catalina/localhost/hello1.xml
> ===
> 
=== message truncated ===





__
Do you Yahoo!?
Yahoo! Photos: High-quality