Tomcat login & logout hook ?

2005-07-07 Thread Dongsheng Song
Hello,

Can I hook a function after user login & before user logout ?

Dongsheng Song

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



Re: Tomcat manager using mod_jk?

2005-07-07 Thread Alan Chandler
On Friday 08 July 2005 01:59, Luis Torres wrote:
> Hello again,
>
> Same setup: Solaris 9, Apache 2.043, mod_jk and two tomcats (4.131 & JDK
> 1.5.0)
>
> Any of you guys know if there's a way to access the tomcat manager
> application or something similar when using mod_jk??
>
> Right now the only way I have found is to leave tomcat accepting
> requests directly and calling http://server_name:port/manager/ for each
> tomcat.

See my comment above about jkmount of *.do to get struts to work.  The admin 
application (at least) seems to be struts based.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Re: Mapping everything to Tomcat? (mod_jk)

2005-07-07 Thread Alan Chandler
On Friday 08 July 2005 01:53, Luis Torres wrote:
> Hello Everyone, first post to the list  =)
>
> I have a test setup with Solaris 9, Apache 2.043, mod_jk and two tomcats
> (4.131 & JDK 1.5.0)
>
> To have the Tomcats handling the applications, first I used the
> following lines but the problem was that my jsp's where taken by tomcat
> but my images, css and other elements where served by apache, hence my
> images, styles, etc where not found by the server since they are all
> inside /webapps/app_name/images

Use JkAutoAlias /.../webapps or just use a standard Apache Alias directive to 
map the Apache  around the webapps  [Not sure what the 
different between JkAutoAlias and plain Alias - I just use the former]

Note also I had to jkmount /*.do to get struts to work.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Re: control ports on windows

2005-07-07 Thread Alan Chandler
On Thursday 07 July 2005 17:25, Tony Smith wrote:
> Hi, I am running Tomcat 5.0 on Windows. But what I
> want to do it not link to Tomcat. I would like to know
> how to  control all those ports. For example, I would
> like to open 8080 but close 8089, etc...
>
>
> Thanks,

1) Don't hijack someone elses thread for your self (you even seemed to have 
asked the writer of the original thread directly rather than the list)

2) Be a bit clearer in what you are asking.  What does "what I want to do it 
[is?] not link to Tomcat" mean?  In particular what is the rather ambiguous 
word "link" meant to mean? Are you talking about connecting another web 
server, and if so which one?

3) Tell us what you have done to try and figure it out for yourself - Hint: 
have you looked at server.xml?

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Re: invalidated session

2005-07-07 Thread Len Popp
I'm pretty sure that the finalizers are only called when garbage
collection reclaims the objects, and that will be some time after the
session is invalidated. Possibly a very long time after, if Tomcat
isn't busy and isn't using much memory.
-- 
Len

On 7/7/05, Nishant Deshpande <[EMAIL PROTECTED]> wrote:
> I store a bunch of objects in my session.
> 
> After the session timeout, I see the session getting invalidated (via
> my listener).
> 
> Now I am expecting to see the finalizers from the objects in the
> session being called - I'm pretty sure I don't have any other
> references to them.
> 
> I don't see the finalizers getting called.
> 
> Am I missing something?
> 
> Thanks
> 
> Nishant
> 
> -
> 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 manager using mod_jk?

2005-07-07 Thread Luis Torres

Hello again,

Same setup: Solaris 9, Apache 2.043, mod_jk and two tomcats (4.131 & JDK 
1.5.0)


Any of you guys know if there's a way to access the tomcat manager 
application or something similar when using mod_jk??


Right now the only way I have found is to leave tomcat accepting 
requests directly and calling http://server_name:port/manager/ for each 
tomcat.


Any ideas about this or about other aplication to monitor activity in 
mod_jk?


Any help is appreciated,

Luis

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



Mapping everything to Tomcat? (mod_jk)

2005-07-07 Thread Luis Torres

Hello Everyone, first post to the list  =)

I have a test setup with Solaris 9, Apache 2.043, mod_jk and two tomcats 
(4.131 & JDK 1.5.0)


To have the Tomcats handling the applications, first I used the 
following lines but the problem was that my jsp's where taken by tomcat 
but my images, css and other elements where served by apache, hence my 
images, styles, etc where not found by the server since they are all 
inside /webapps/app_name/images

---
Lines of httpd.conf:
JkMount /*.jsp loadbalancer
JkMount /servlet/* loadbalancer

Also, servlets never worked using this directives.

To solve this, probably in not the best manner I just passed everything 
to tomcat using (in httpd.conf):

JkMount /* loadbalancer

This worked without a glitch altough I havent done extensive testing.

So the question is... what is the best way to achieve this?? And, How 
bad can things get if I leave it like that. The server is meant to be 
used only as an apps server and not a normal web server so I'm using 
apache strictly as a front end for load balancing and all the things you 
get with mod_jk


Thanks,

Luis

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



invalidated session

2005-07-07 Thread Nishant Deshpande
I store a bunch of objects in my session.

After the session timeout, I see the session getting invalidated (via
my listener).

Now I am expecting to see the finalizers from the objects in the
session being called - I'm pretty sure I don't have any other
references to them.

I don't see the finalizers getting called.

Am I missing something?

Thanks

Nishant

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



Trouble with JDBC Session Persistence (Tomcat 4.1)

2005-07-07 Thread lawrence
I am having some troubles getting JDBC session persistance to work.   I have 
set up my Oracle DB and server.xml correctly (as I have verified that the 
session is indeed stored in the DB), but then after restarting tomcat, it 
appears that the session is not getting swapped in correctly. 

Here is a brief look at the logs:

During restart:

2005-07-07 13:49:57 JDBCStore[/app]: Saving Session 
76A744CB82C2236959A6AB456785AF13 to database tomcat_sessions

After restart, and hitting login page:

2005-07-07 13:52:37 JDBCStore[/app]: Loading Session 
76A744CB82C2236959A6AB456785AF13 from database tomcat_sessions
2005-07-07 13:52:37 PersistentManager[/app]: readObject() loading session 
76A744CB82C2236959A6AB456785AF13
2005-07-07 13:52:37 PersistentManager[/app]:   loading attribute 'CustomerInfo' 
with value '{customerId=0, companyName=null, contactName=null, address*=null, 
phone=null, fax=null, email=null, bitflags=0, createDate=null, modifyDate=null}'
2005-07-07 13:52:37 PersistentManager[/app]:   loading attribute 'UserInfo' 
with value '[EMAIL PROTECTED]'
2005-07-07 13:52:37 PersistentManager[/app]:   loading attribute 'UserLoggedIn' 
with value 'true'
2005-07-07 13:52:37 PersistentManager[/app]:   loading attribute 
'org.apache.struts.action.LOCALE' with value 'en_US'
2005-07-07 13:52:37 PersistentManager[/app]: Swapping session 
76A744CB82C2236959A6AB456785AF13 in from Store

But right after:
2005-07-07 13:52:37 JDBCStore[/app]: Removing Session 
76A744CB82C2236959A6AB456785AF13 at database tomcat_sessions
2005-07-07 13:52:37 JDBCStore[/app]: JDBCStore: No persisted data object found
2005-07-07 13:52:37 JDBCStore[/app]: JDBCStore: No persisted data object found
2005-07-07 13:52:37 JDBCStore[/app]: JDBCStore: No persisted data object found
2005-07-07 13:52:37 JDBCStore[/app]: JDBCStore: No persisted data object found


I am using Struts for the controller layer of this application.   In the 
RequestProcessor.processRoles, whenever an action is hit, this code is executed 
(facade is a session facade)

SessionFacade facade = new SessionFacade(request);

if (facade.getUserLoggedIn() != Boolean.TRUE){
LOG.debug("user not logged in session");
if(VALIDATE_SESSION.equals(mapping.getParameter())) {
// If the attribute "parameter" of the action is specified as 
// "validateSession", then forward the user back to the login
// page
LOG.debug("invalid session");
HttpSession httpSession = request.getSession();
httpSession.invalidate();
ActionForward forwardConfig = 
(ActionForward) moduleConfig.findForwardConfig("login");
processForwardConfig(request, response, forwardConfig);
return false;
}
}

Looking at the struts log, we see that at the same time of the session swap:

2005-07-07 13:52:37,840 DEBUG [Thread-4] RequestProcessor processRoles 
(RequestProcessor.java:167) - user not logged in session
2005-07-07 13:52:37,864 DEBUG [Thread-4] RequestProcessor processRoles 
(RequestProcessor.java:172) - invalid session

It appears that the session is "removed" from the DB when invalidate() is 
called.  So apparently, even though the Manager thinks that the session has 
been swapped in, it does not appear to be that way.   Any suggestions?

Thanks!

-L

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



Authentication 401 not passing login box to apache2

2005-07-07 Thread Phil Jones
Hi

First apologies, I am a total newbie to this stuff so please don't eat 
me alive. :)

I'm driving myself up the wall with this one and hope you can help. 
although there doesn't seem to be anything in the archive.

I've got tomcat 5.5 setup and working on localhost directly.

I've complied and installed mod_jk so I can access webapps (specifically
davenport) through apache 2.

It works fine, until I try to go to a page that needs an authentication box.
Apache just returns a page saying:


"Unauthorized

This server could not verify that you are authorized to access the document
requested. 
Either you supplied the wrong credentials (e.g., bad password), or
your browser doesn't understand how to supply the credentials required.

Additionally, a 401 Authorization Required error was encountered while 
trying to
use an ErrorDocument to handle the request."


Frustrating as it didn't even give me a login box to try!

Accessing tomcat directly gives the login box and everything works fine. 
So I am thinking it is something to do with my mod_jk.so or apache conf?

Any ideas? I am losing my mind!

Thanks for your help

Phil Jones


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



generate image by servlet for large amount of requests

2005-07-07 Thread Tony Smith
Let's think about maps.yahoo.com. I do not know how
they handle 
millions of request and generate the map pictures
quickly. If I use a 
servlet, in the post or get method I use: 


BufferedImage mapImage =
myTookKit.generateMap(String address); 
response.setContentType("image­/png"); 
OutputStream os = response.getOutputStream(); 
ImageIO.write(buffer, "png", os); 
os.close(); 


Is servlet a good choice? If I use servlet, is the
code above good 
enough to handle hundreds of request? Is the choice of
BufferedImage a 
good one? What special technique I need to implement
"myTookKit" to 
make it faster? I am thinking about JNI. 


Thanks, 




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread andy gordon
Thank you for the info but I don't think it helped. Your insight is valued. 
 
I set an environment variable called JAVA_OPTS to 
 
-Dcom.sun.management.jmxremote.port=9998 
 
and started tomcat using startup.bat.  The cmd window opened and closed. 
Meaning tomcat didn't start. Suggestions?  
 
I have not done anything else at this point with respect to enabling JMX remote.
 
Thank you 
 
- andy

Tim Funk <[EMAIL PROTECTED]> wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#properties

-Tim

andy gordon wrote:

> Help, 
> 
> How do you set up JMX remote for Tomcat 5.5.9? 
> 
> For instance where do you specify the JVM startup option 
> 
> -Dcom.sun.management.jmxremote.port=9998 
> 
> that enables remote monitoring and management? 
> 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Turning off jsessionid on URL?

2005-07-07 Thread Michael Jouravlev
See my question about two weeks ago on how to detect jsessionid in the
URL. Looks like it is not directly possible, but you can use our own
request parameter to find this out. After you detect that jsessionid
is in the URL (the harder part), make another redirect to the same
location, and URL will come clean.

Michael.

On 7/7/05, William Stranathan <[EMAIL PROTECTED]> wrote:
> Is there a configuration parameter to ONLY send the jsessionid by
> cookie, not on the URL bar?
> 
> Picture this, user goes to your site http://www.yoursite.com/yourapp
> yoursite redirects to the menu page, which gives a jsessionid.  That
> page is under an auth-constraint and requires login, so you get
> displayed the login page, but the URL you've been redirected to
> includes the jsessionid - like:
> http://www.yoursite.com/yourapp/Menu.do;jessionid=D2DC09EB64CBC7690BCEA68CA484B4C3
> User wants to share the site with their friends, so they copy/paste
> from the URL bar.  Then they log in - their session is now logged in,
> AND they have the same session ID.
> 
> And yes, this does work - I'm able to copy/paste between different
> browsers (exploder and firefox) and the session works fine.
> 
> Is there a way to turn that feature off?

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



mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work

2005-07-07 Thread Java Developer
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 
4.0.2 on solaris 2.8.


The number of apache child processes grows gradaully and upon reaching 
around 150 the system response degrades forcing us to restart the apache 
server.


On investigation it is found from the mod_jk.log that a apache child process 
serving a user request does not get reponse from tomcat[jboss] and so it 
waits for 2 hours and retries 3 times. No clue as why it waits for 2 hours 
and where is this configured.


[Tue Jun 28 13:38:15 2005] [7130:1] Attempting to map URI 
'//'processing with 3 retries
[Tue Jun 28 15:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Receiving from tomcat failed, recoverable 
operation attempt=0
[Tue Jun 28 17:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Receiving from tomcat failed, 
recoverable operation attempt=1
[Tue Jun 28 19:38:17 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Service error=0 for 
worker=nfusion



To resolve this thought of using the socket_timeout property setting it to 
worker.abc.socket_timeout=600 i.e., 10 mintues. It works fine for apache 
running on windows but does not work for apache running on Linux/ Solaris.


Any clue as why this property is not working on Linux/ Solaris.

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement



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



Re: How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread Tim Funk

http://jakarta.apache.org/tomcat/faq/misc.html#properties

-Tim

andy gordon wrote:

 Help, 
 
How do you set up JMX remote for Tomcat 5.5.9? 
 
For instance where do you specify the JVM startup option 
 
-Dcom.sun.management.jmxremote.port=9998 
 
that enables remote monitoring and management? 
 


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



mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work

2005-07-07 Thread Java Developer
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 
4.0.2 on solaris 2.8 setup.


The number of apache child processes grows gradaully and upon reaching 
around 150 the system response degrades forcing us to restart the apache 
server.


On investigation it is found from the mod_jk.log that a apache child process 
serving a user request does not get reponse from tomcat[jboss] and so it 
waits for 2 hours and retries 3 times. No clue as why it waits for 2 hours 
and where is this configured.


[Tue Jun 28 13:38:15 2005] [7130:1] Attempting to map URI 
'//'processing with 3 retries
[Tue Jun 28 15:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Receiving from tomcat failed, recoverable 
operation attempt=0
[Tue Jun 28 17:38:16 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Receiving from tomcat failed, 
recoverable operation attempt=1
[Tue Jun 28 19:38:17 2005] [7130:1] ERROR: can't receive the response 
message from tomcat, network problems or tomcat is down 
(xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No 
response has been sent to the client (yet). Service error=0 for 
worker=nfusion



To resolve this thought of using the socket_timeout property setting it to 
worker.abc.socket_timeout=600 i.e., 10 mintues. It works fine for apache 
running on windows but does not work for apache running on Linux/ Solaris.


Any clue as why is this property not working on Linux/ Solaris.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



How do you set up JMX remote for Tomcat 5.5.9?

2005-07-07 Thread andy gordon
 Help, 
 
How do you set up JMX remote for Tomcat 5.5.9? 
 
For instance where do you specify the JVM startup option 
 
-Dcom.sun.management.jmxremote.port=9998 
 
that enables remote monitoring and management? 
 
THank you 
 
- andy



-
 Sell on Yahoo! Auctions  - No fees. Bid on great items.

Re: Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
I only sent the message once.  I apologize for any inconvenience, but
I wonder if gmail and/or ezmlm are having issues today - I've received
the welcome message from ezmlm four times now.

w

On 7/7/05, Tim Funk <[EMAIL PROTECTED]> wrote:
> Please stop posting the same question 4 times and please wait for a response.
> 
> The answer to the question below is no. There is no switch. To not use URL
> rewriting, do not utilize the method HttpServletResponse.encodeURL(). Of
> course - this requires a code rewrite.
> 
> The easier solution is to implement a servlet filter which creates a
> HttpServletResponseWrapper which overrides encodeURL and encodeRedirectURL
> 
> -Tim
> 
> William Stranathan wrote:
> 
> > Is there a configuration parameter to ONLY send the jsessionid by
> > cookie, not on the URL bar?
> >
> > Picture this, user goes to your site http://www.yoursite.com/yourapp
> > yoursite redirects to the menu page, which gives a jsessionid.  That
> > page is under an auth-constraint and requires login, so you get
> > displayed the login page, but the URL you've been redirected to
> > includes the jsessionid - like:
> > http://www.yoursite.com/yourapp/Menu.do;jessionid=D2DC09EB64CBC7690BCEA68CA484B4C3
> > User wants to share the site with their friends, so they copy/paste
> > from the URL bar.  Then they log in - their session is now logged in,
> > AND they have the same session ID.
> >
> > And yes, this does work - I'm able to copy/paste between different
> > browsers (exploder and firefox) and the session works fine.
> >
> > Is there a way to turn that feature off?
> >
> 
> -
> 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]



Datasource & Drivers Question

2005-07-07 Thread James Reynolds
I'm having trouble setting up a data source in Tomcat 5.5.7.  I'm not
certain if I'm having a configuration problem, or if the drivers I'm
trying to use are not compatible with Tomcat.  Starting with the latter
question, I'm attempting to use the jdbc oracle drivers that ship with
Sun's Java Studio Creator.  By name, they are:

smbase.jar
smutil.jar
smoracle.jar

I know this is rather vague, but I'm hoping someone may know if Tomcat
supports these.

Secondly, I followed the JNDI Data source HOW-TO for Tomcat 5.5 on the
website.  I recreated the following entry in my server.xml



I'm a little confused about where the tutorial was directing me to place
this entry and I stuck it between the  tags.
I've read in other places that it's better to create a separate xml
context file to set up data sources (since only one app will be using
it).  If this is the case, how is such a file constructed?

Finally, I set up the web.xml in my app exactly as described and copied
the previously mentioned driver jar files to common/lib/ as required.

When I run the app, my data tables are empty and the server log records
the awful error:

Cannot create JDBC driver of class '' for connect URL 'null'
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSo
urce.java:773)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
e.java:540)
at
com.sun.sql.rowset.internal.CachedRowSetXReader.connect(CachedRowSetXRea
der.java:300)
...

I can provide further stack trace entries if they are of any value.

Can you help point me in the right direction?

Thanks!

James


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



Re: Turning off jsessionid on URL?

2005-07-07 Thread Tim Funk

Please stop posting the same question 4 times and please wait for a response.

The answer to the question below is no. There is no switch. To not use URL 
rewriting, do not utilize the method HttpServletResponse.encodeURL(). Of 
course - this requires a code rewrite.


The easier solution is to implement a servlet filter which creates a 
HttpServletResponseWrapper which overrides encodeURL and encodeRedirectURL


-Tim

William Stranathan wrote:


Is there a configuration parameter to ONLY send the jsessionid by
cookie, not on the URL bar?

Picture this, user goes to your site http://www.yoursite.com/yourapp
yoursite redirects to the menu page, which gives a jsessionid.  That
page is under an auth-constraint and requires login, so you get
displayed the login page, but the URL you've been redirected to
includes the jsessionid - like:
http://www.yoursite.com/yourapp/Menu.do;jessionid=D2DC09EB64CBC7690BCEA68CA484B4C3
User wants to share the site with their friends, so they copy/paste
from the URL bar.  Then they log in - their session is now logged in,
AND they have the same session ID.

And yes, this does work - I'm able to copy/paste between different
browsers (exploder and firefox) and the session works fine.

Is there a way to turn that feature off?



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



control ports on windows

2005-07-07 Thread Tony Smith
Hi, I am running Tomcat 5.0 on Windows. But what I
want to do it not link to Tomcat. I would like to know
how to  control all those ports. For example, I would
like to open 8080 but close 8089, etc...


Thanks,





Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



OS X.3.8 Server help...

2005-07-07 Thread Martin Hoffsten
Title: OS X.3.8 Server help...



I’m looking for a quick walkthrough to install Tomcat 4.x on my OS 10.3.8 server. My Java is up to date and I need a very detailed list of instructions. By detailed, I mean I have no idea what I’m doing in the Terminal...



Martin Hoffsten
612.333.3233 x119
www.creatis.com






Swing (JFC) in JSP example sought

2005-07-07 Thread Christoph P. Kukulies
I need to edit a server side file in a browser window.
I'm thinking of putting some EditorPanel or something out of the JFC
into a JSP.

Anyone knowing of an example showing this. And where to
put the swing.jar or whatever files required ?


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org


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



RE: Rép. : RE: Multi-click from the same user

2005-07-07 Thread Maarten Janssen
another solution...
make two layers...one for the form and one (waitlayer) with a text or image
with something like "system is busy".
after submit hide the layer of the form (and so also the buttons) and show
the waitlayer. So one request is only possible.

regards,

Maarten


-Oorspronkelijk bericht-
Van: Antonio PAROLINI [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 7 juli 2005 17:50
Aan: tomcat-user@jakarta.apache.org; [EMAIL PROTECTED]
Onderwerp: RE: Rép. : RE: Multi-click from the same user


Hello,

The previous poster (Mark) gives a solution where the server is no longer
overloaded, but the second click makes the browser loose the result of the
first click...

Your proposal is the standard javascript solution, where you act on the GUI
to avoid mutli-click. Maybe I should pick that one

Very helpfull feedback, thanks all.

Antonio

>>> [EMAIL PROTECTED] 07/07 4:38  >>>
The common way that this is achieved is similar to the previous poster. When
a user clicks the button, you would actually move them to another page
straightaway that spawns the 1 request thread and makes it very clear not to
refresh the page. This is the strategy you can see with online booking
services in particular like flights, holidays and so on, where it's
essential that the user books once.

> -Original Message-
> From: Antonio PAROLINI [mailto:[EMAIL PROTECTED]
> Sent: 07 July 2005 15:26
> To: tomcat-user@jakarta.apache.org
> Subject: Rép. : RE: Multi-click from the same user
>
>
> Allistair,
>
> I have the same doubts you have... if the filter solution is not
> enough, I'll try to dig deeper into the tomcat source to find out...
>
> Antonio
>
> >>> [EMAIL PROTECTED] 07/07 11:16  >>>
> Your idea sounds like it makes sense but I can see that you may have
> trouble, since even if you can identify a duplicate request, you will
> have lost (I think) the request/response link on each subsequent click
> of the button (which generates unique requests). I do not
> think you'd be
> able to connect an arbitrary request with a reponse that was intended
> for an earlier request, but maybe I am wrong.
>
> Allistair
>
> > -Original Message-
> > From: Antonio PAROLINI [mailto:[EMAIL PROTECTED]
> > Sent: 07 July 2005 10:05
> > To: tomcat-user@jakarta.apache.org
> > Subject: Multi-click from the same user
> >
> >
> > Hello,
> >
> > We have a Struts intranet-web site running under tomcat 4.1.24.
> >
> > Some of the application function are pretty slow ( more than 10
> > secondes), and sometime users get mad and click 10 times on the same
> > button. Tomcat raise 10 thread and on such slow operation, the
> server
> > can get very slowed down.
> >
> > Aside of javascript solutions ( blocking the button to be clicked
> > twice), is there a tomcat configuration solution for this probleme ?
> >
> > I would imaging for instance, a HTTP connector that detect that the
> > same call is being made by the same browser (or same
> > UserPrincipal), to
> > the same url with the same parameters , and instead of raising a new
> > thread, wait for the 1 thread to end and returns its result ... Am I
> > dreaming ?
> >
> > Thanks in advance for your help.
> >
> > Antonio Parolini
> >
> >
> >
> >
> >
> >
> **
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please
> notify
> > the system manager.
> >
> >
> **
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> >
> >
>
>
> 
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
>
>
> -
> 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]

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.9/42 - Release Date: 6-7-2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.9/42 - Release Date: 6-7-

Turning off jsessionid on URL?

2005-07-07 Thread William Stranathan
Is there a configuration parameter to ONLY send the jsessionid by
cookie, not on the URL bar?

Picture this, user goes to your site http://www.yoursite.com/yourapp
yoursite redirects to the menu page, which gives a jsessionid.  That
page is under an auth-constraint and requires login, so you get
displayed the login page, but the URL you've been redirected to
includes the jsessionid - like:
http://www.yoursite.com/yourapp/Menu.do;jessionid=D2DC09EB64CBC7690BCEA68CA484B4C3
User wants to share the site with their friends, so they copy/paste
from the URL bar.  Then they log in - their session is now logged in,
AND they have the same session ID.

And yes, this does work - I'm able to copy/paste between different
browsers (exploder and firefox) and the session works fine.

Is there a way to turn that feature off?

w

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



RE: Rép. : RE: Multi-click from the same user

2005-07-07 Thread Antonio PAROLINI
Hello,

The previous poster (Mark) gives a solution where the server is no longer 
overloaded, but the second click makes the browser loose the result of the 
first click... 

Your proposal is the standard javascript solution, where you act on the GUI to 
avoid mutli-click. Maybe I should pick that one 

Very helpfull feedback, thanks all.

Antonio

>>> [EMAIL PROTECTED] 07/07 4:38  >>>
The common way that this is achieved is similar to the previous poster. When a 
user clicks the button, you would actually move them to another page 
straightaway that spawns the 1 request thread and makes it very clear not to 
refresh the page. This is the strategy you can see with online booking services 
in particular like flights, holidays and so on, where it's essential that the 
user books once.

> -Original Message-
> From: Antonio PAROLINI [mailto:[EMAIL PROTECTED] 
> Sent: 07 July 2005 15:26
> To: tomcat-user@jakarta.apache.org 
> Subject: Rép. : RE: Multi-click from the same user
> 
> 
> Allistair,
> 
> I have the same doubts you have... if the filter solution is not
> enough, I'll try to dig deeper into the tomcat source to find out...
> 
> Antonio
> 
> >>> [EMAIL PROTECTED] 07/07 11:16  >>>
> Your idea sounds like it makes sense but I can see that you may have
> trouble, since even if you can identify a duplicate request, you will
> have lost (I think) the request/response link on each subsequent click
> of the button (which generates unique requests). I do not 
> think you'd be
> able to connect an arbitrary request with a reponse that was intended
> for an earlier request, but maybe I am wrong.
> 
> Allistair
> 
> > -Original Message-
> > From: Antonio PAROLINI [mailto:[EMAIL PROTECTED] 
> > Sent: 07 July 2005 10:05
> > To: tomcat-user@jakarta.apache.org 
> > Subject: Multi-click from the same user
> > 
> > 
> > Hello,
> > 
> > We have a Struts intranet-web site running under tomcat 4.1.24.
> > 
> > Some of the application function are pretty slow ( more than 10
> > secondes), and sometime users get mad and click 10 times on the same
> > button. Tomcat raise 10 thread and on such slow operation, the
> server
> > can get very slowed down.
> > 
> > Aside of javascript solutions ( blocking the button to be clicked
> > twice), is there a tomcat configuration solution for this probleme ?
> > 
> > I would imaging for instance, a HTTP connector that detect that the
> > same call is being made by the same browser (or same 
> > UserPrincipal), to
> > the same url with the same parameters , and instead of raising a new
> > thread, wait for the 1 thread to end and returns its result ... Am I
> > dreaming ?
> > 
> > Thanks in advance for your help.
> > 
> > Antonio Parolini
> > 
> > 
> > 
> > 
> > 
> >
> **
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please
> notify
> > the system manager.
> > 
> >
> **
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> > 
> > 
> 
> 
>  
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> 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: Make webapp jars downloadable

2005-07-07 Thread Christoph Kutzinski
Write a Servlet that streams the JAR content to the Webstart clients and 
point to the servlet in the JNLP files.


Andrea Aime wrote:

Hi,
I have the following problem: I'm deploying a web app that exposes web 
services and allows the client to install a web started client.


Now, the client and the web application share a lot of jars, so I would 
like

to make the jars in web-inf/lib downloadable, so that the web start can
access them.

At the moment I've put the jars both in web-inf/lib and in the
root, but this basically doubles the size of my application.
This is not very nice since I have to upload it to a test server on my ISP
and the upload connection is not very fast (ADSL line).

Any solution?
Best regards
Andrea Aime


-
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: handling of requests over AJP 1.3

2005-07-07 Thread Mladen Turk

[EMAIL PROTECTED] wrote:

Hello everyone, i'd like to develop an independent connector based on TCP
following the AJP 1.3 case.


I wish you all the luck ;)


I'd like to know if AJP 1.3 handles requests
sent from a generic client as http 1.1.


No.


Does it forward the requests to a
servlet?


Depends on the container. There is a mod_asp_dotnet that passes
that to a .NET engine.


Does it works in the same logic of HTTP 1.1?


No.


Thanks in advance 



Regards,
Mladen.

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



handling of requests over AJP 1.3

2005-07-07 Thread simdis
Hello everyone, i'd like to develop an independent connector based on TCP
following the AJP 1.3 case. I'd like to know if AJP 1.3 handles requests
sent from a generic client as http 1.1. Does it forward the requests to a
servlet?Does it works in the same logic of HTTP 1.1?
Thanks in advance

__
TISCALI ADSL 1.25 MEGA a soli 19.95 euro/mese
Solo con Tiscali Adsl navighi senza limiti di tempo
a meno di 20 euro al mese. E in piu' telefoni senza
pagare il canone Telecom! Scopri come, clicca qui
http://abbonati.tiscali.it/adsl/sa/1e25flat_tc/




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



RE: UK tomcat hosting recommendations?

2005-07-07 Thread Mark Benussi
I don't see any mention of their Tomcat support?

I said that I needed Tomcat support without having to install it myself

-Original Message-
From: Oscar Mechanic [mailto:[EMAIL PROTECTED] 
Sent: 07 July 2005 15:33
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: UK tomcat hosting recommendations?

I use webhost.ie

They are in Ireland I am in the UK but the service is second to none for
me.

On Thu, 2005-07-07 at 14:25 +, Mark Benussi wrote:
> Julian,
> 
> Interesting that you recomend nameonthe.net. They have been down since 
> Tuesday morning and none of my customers who host with them are recieveing

> e-mail or have access to their sites. They have not called me all week and
I 
> had to drive to their listed company address to speak to someone.
> 
> What is your site, is it still up and running and are you getting e-mail?
> 
> Original Message Follows
> From: Julian Templeman <[EMAIL PROTECTED]>
> Reply-To: Julian Templeman <[EMAIL PROTECTED]>
> To: Tomcat Users List 
> Subject: Re: UK tomcat hosting recommendations?
> Date: Wed, 6 Jul 2005 13:29:30 +0100
> 
>  > Having some fun with my current ISP and was wondering if any of you
have 
> UK
>  > tomcat recommendations?
> 
> I'm using www.nameonthe.net for JBoss hosting, and I know they do
> straight Tomcat as well. I've been pretty happy with them, and the
> support has been fine the couple of time I've needed to use it.
> 
> julian
> (no affiliation except as a paying customer, etc, etc)
> 
> On 7/5/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
>  > Having some fun with my current ISP and was wondering if any of you
have 
> UK
>  > tomcat recommendations?
>  >
>  >
>  >
>  > My technical needs are pretty small; just tomcat 5.0+ installed with 
> mysql
>  > 4.0+ etc.
>  >
>  >
>  >
>  > My main non-technical requirement is a good UK based support, and any
>  > recommendations would be appreciated.
>  >
>  >
>  >
>  > P.S. I know I could use a blank Linux hosting option and install it 
> myself
>  > but this is not appropriate at the moment, I may consider that in the
>  > future.
>  >
>  >
>  >
> 
> -
> 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: Make webapp jars downloadable

2005-07-07 Thread Peter Crowther
> From: Andrea Aime [mailto:[EMAIL PROTECTED] 
> Now, the client and the web application share a lot of jars, 
> so I would like
> to make the jars in web-inf/lib downloadable, so that the web 
> start can access them.
> 
> At the moment I've put the jars both in web-inf/lib and in the
> root, but this basically doubles the size of my application.
> This is not very nice since I have to upload it to a test 
> server on my ISP
> and the upload connection is not very fast (ADSL line).
> 
> Any solution?

Tomcat explicitly prevents access from a client to any file under
WEB-INF; Tomcat also insists on picking up its jars from WEB-INF/lib,
and as far as I know it's not possible to change that.  My suggestion
would be to write a few lines of code that copy the jar files you need
from WEB-INF/lib to the root when the application starts up or when you
hit a particular page - that way, at least you only have to upload them
once.

- Peter

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



Make webapp jars downloadable

2005-07-07 Thread Andrea Aime

Hi,
I have the following problem: I'm deploying a web app that exposes web services 
and allows the client to install a web started client.


Now, the client and the web application share a lot of jars, so I would like
to make the jars in web-inf/lib downloadable, so that the web start can
access them.

At the moment I've put the jars both in web-inf/lib and in the
root, but this basically doubles the size of my application.
This is not very nice since I have to upload it to a test server on my ISP
and the upload connection is not very fast (ADSL line).

Any solution?
Best regards
Andrea Aime


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



RE: Rép. : RE: Multi-click from the same user

2005-07-07 Thread Allistair Crossley
The common way that this is achieved is similar to the previous poster. When a 
user clicks the button, you would actually move them to another page 
straightaway that spawns the 1 request thread and makes it very clear not to 
refresh the page. This is the strategy you can see with online booking services 
in particular like flights, holidays and so on, where it's essential that the 
user books once.

> -Original Message-
> From: Antonio PAROLINI [mailto:[EMAIL PROTECTED]
> Sent: 07 July 2005 15:26
> To: tomcat-user@jakarta.apache.org
> Subject: Rép. : RE: Multi-click from the same user
> 
> 
> Allistair,
> 
> I have the same doubts you have... if the filter solution is not
> enough, I'll try to dig deeper into the tomcat source to find out...
> 
> Antonio
> 
> >>> [EMAIL PROTECTED] 07/07 11:16  >>>
> Your idea sounds like it makes sense but I can see that you may have
> trouble, since even if you can identify a duplicate request, you will
> have lost (I think) the request/response link on each subsequent click
> of the button (which generates unique requests). I do not 
> think you'd be
> able to connect an arbitrary request with a reponse that was intended
> for an earlier request, but maybe I am wrong.
> 
> Allistair
> 
> > -Original Message-
> > From: Antonio PAROLINI [mailto:[EMAIL PROTECTED] 
> > Sent: 07 July 2005 10:05
> > To: tomcat-user@jakarta.apache.org 
> > Subject: Multi-click from the same user
> > 
> > 
> > Hello,
> > 
> > We have a Struts intranet-web site running under tomcat 4.1.24.
> > 
> > Some of the application function are pretty slow ( more than 10
> > secondes), and sometime users get mad and click 10 times on the same
> > button. Tomcat raise 10 thread and on such slow operation, the
> server
> > can get very slowed down.
> > 
> > Aside of javascript solutions ( blocking the button to be clicked
> > twice), is there a tomcat configuration solution for this probleme ?
> > 
> > I would imaging for instance, a HTTP connector that detect that the
> > same call is being made by the same browser (or same 
> > UserPrincipal), to
> > the same url with the same parameters , and instead of raising a new
> > thread, wait for the 1 thread to end and returns its result ... Am I
> > dreaming ?
> > 
> > Thanks in advance for your help.
> > 
> > Antonio Parolini
> > 
> > 
> > 
> > 
> > 
> >
> **
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please
> notify
> > the system manager.
> > 
> >
> **
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> > 
> > 
> 
> 
>  
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> 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: Multi-click from the same user

2005-07-07 Thread Mark
how about this:

http://java.sun.com/developer/EJTechTips/2003/tt0114.html

Mark.
--- Allistair Crossley <[EMAIL PROTECTED]> wrote:

> Your idea sounds like it makes sense but I can see that you may
> have trouble, since even if you can identify a duplicate request,
> you will have lost (I think) the request/response link on each
> subsequent click of the button (which generates unique requests). I
> do not think you'd be able to connect an arbitrary request with a
> reponse that was intended for an earlier request, but maybe I am
> wrong.
> 
> Allistair
> 
> > -Original Message-
> > From: Antonio PAROLINI [mailto:[EMAIL PROTECTED]
> > Sent: 07 July 2005 10:05
> > To: tomcat-user@jakarta.apache.org
> > Subject: Multi-click from the same user
> > 
> > 
> > Hello,
> > 
> > We have a Struts intranet-web site running under tomcat 4.1.24.
> > 
> > Some of the application function are pretty slow ( more than 10
> > secondes), and sometime users get mad and click 10 times on the
> same
> > button. Tomcat raise 10 thread and on such slow operation, the
> server
> > can get very slowed down.
> > 
> > Aside of javascript solutions ( blocking the button to be clicked
> > twice), is there a tomcat configuration solution for this
> probleme ?
> > 
> > I would imaging for instance, a HTTP connector that detect that
> the
> > same call is being made by the same browser (or same 
> > UserPrincipal), to
> > the same url with the same parameters , and instead of raising a
> new
> > thread, wait for the 1 thread to end and returns its result ...
> Am I
> > dreaming ?
> > 
> > Thanks in advance for your help.
> > 
> > Antonio Parolini
> > 
> > 
> > 
> > 
> > 
> >
>
**
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom
> they
> > are addressed. If you have received this email in error please
> notify
> > the system manager.
> > 
> >
>
**
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
>  
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



RE: 2 apps

2005-07-07 Thread Peter Crowther
> From: Sergey Livanov [mailto:[EMAIL PROTECTED] 
> I have 2 applications. The first is to be allowed from 
> internet, the second
> is to enter data. Two apps are in the webapps. How can I 
> configure tomcat
> to make cms unvisible from outside.

At least:

1) Use a filter or valve to examine the IP address of the incoming
request, and reject it if the IP address is external to your
organisation.  Add this filter to your invisible app.  Tomcat provides
some valves to do this by default.

2) Define two separate Services in conf/server.xml, each with their own
Connectors, Engines and Hosts.  Ensure the Connectors are on different
ports - say 80 and 8080 - and give them each their own appBase.  Put
your external app in the public appbase, the internal app in the private
appbase.  Now you can prevent external people accessing your internal
app by preventing access to (say) port 8080 from outside your firewall.

No doubt there are other approaches.

- Peter

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



Re: UK tomcat hosting recommendations?

2005-07-07 Thread Oscar Mechanic
I use webhost.ie

They are in Ireland I am in the UK but the service is second to none for
me.

On Thu, 2005-07-07 at 14:25 +, Mark Benussi wrote:
> Julian,
> 
> Interesting that you recomend nameonthe.net. They have been down since 
> Tuesday morning and none of my customers who host with them are recieveing 
> e-mail or have access to their sites. They have not called me all week and I 
> had to drive to their listed company address to speak to someone.
> 
> What is your site, is it still up and running and are you getting e-mail?
> 
> Original Message Follows
> From: Julian Templeman <[EMAIL PROTECTED]>
> Reply-To: Julian Templeman <[EMAIL PROTECTED]>
> To: Tomcat Users List 
> Subject: Re: UK tomcat hosting recommendations?
> Date: Wed, 6 Jul 2005 13:29:30 +0100
> 
>  > Having some fun with my current ISP and was wondering if any of you have 
> UK
>  > tomcat recommendations?
> 
> I'm using www.nameonthe.net for JBoss hosting, and I know they do
> straight Tomcat as well. I've been pretty happy with them, and the
> support has been fine the couple of time I've needed to use it.
> 
> julian
> (no affiliation except as a paying customer, etc, etc)
> 
> On 7/5/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
>  > Having some fun with my current ISP and was wondering if any of you have 
> UK
>  > tomcat recommendations?
>  >
>  >
>  >
>  > My technical needs are pretty small; just tomcat 5.0+ installed with 
> mysql
>  > 4.0+ etc.
>  >
>  >
>  >
>  > My main non-technical requirement is a good UK based support, and any
>  > recommendations would be appreciated.
>  >
>  >
>  >
>  > P.S. I know I could use a blank Linux hosting option and install it 
> myself
>  > but this is not appropriate at the moment, I may consider that in the
>  > future.
>  >
>  >
>  >
> 
> -
> 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: 2 apps

2005-07-07 Thread Tim Funk
The safest way is to run 2 instances of tomcat on the device. Once instance 
runs on port 80 for the world to see. Then a firewall can block all access to 
any other port from the outside.


The other instance runs on a high port for internal use.


Otherwise, look at RemoteAddressValve:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/engine.html


-Tim

Sergey Livanov wrote:


I have 2 applications. The first is to be allowed from internet, the second
is to enter data. Two apps are in the webapps. How can I configure tomcat
to make cms unvisible from outside.





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



Rép. : RE: Multi-click from the sam e user

2005-07-07 Thread Antonio PAROLINI
Allistair,

I have the same doubts you have... if the filter solution is not
enough, I'll try to dig deeper into the tomcat source to find out...

Antonio

>>> [EMAIL PROTECTED] 07/07 11:16  >>>
Your idea sounds like it makes sense but I can see that you may have
trouble, since even if you can identify a duplicate request, you will
have lost (I think) the request/response link on each subsequent click
of the button (which generates unique requests). I do not think you'd be
able to connect an arbitrary request with a reponse that was intended
for an earlier request, but maybe I am wrong.

Allistair

> -Original Message-
> From: Antonio PAROLINI [mailto:[EMAIL PROTECTED] 
> Sent: 07 July 2005 10:05
> To: tomcat-user@jakarta.apache.org 
> Subject: Multi-click from the same user
> 
> 
> Hello,
> 
> We have a Struts intranet-web site running under tomcat 4.1.24.
> 
> Some of the application function are pretty slow ( more than 10
> secondes), and sometime users get mad and click 10 times on the same
> button. Tomcat raise 10 thread and on such slow operation, the
server
> can get very slowed down.
> 
> Aside of javascript solutions ( blocking the button to be clicked
> twice), is there a tomcat configuration solution for this probleme ?
> 
> I would imaging for instance, a HTTP connector that detect that the
> same call is being made by the same browser (or same 
> UserPrincipal), to
> the same url with the same parameters , and instead of raising a new
> thread, wait for the 1 thread to end and returns its result ... Am I
> dreaming ?
> 
> Thanks in advance for your help.
> 
> Antonio Parolini
> 
> 
> 
> 
> 
>
**
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please
notify
> the system manager.
> 
>
**
> 
> 
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED]

> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
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: UK tomcat hosting recommendations?

2005-07-07 Thread Mark Benussi

Julian,

Interesting that you recomend nameonthe.net. They have been down since 
Tuesday morning and none of my customers who host with them are recieveing 
e-mail or have access to their sites. They have not called me all week and I 
had to drive to their listed company address to speak to someone.


What is your site, is it still up and running and are you getting e-mail?

Original Message Follows
From: Julian Templeman <[EMAIL PROTECTED]>
Reply-To: Julian Templeman <[EMAIL PROTECTED]>
To: Tomcat Users List 
Subject: Re: UK tomcat hosting recommendations?
Date: Wed, 6 Jul 2005 13:29:30 +0100

> Having some fun with my current ISP and was wondering if any of you have 
UK

> tomcat recommendations?

I'm using www.nameonthe.net for JBoss hosting, and I know they do
straight Tomcat as well. I've been pretty happy with them, and the
support has been fine the couple of time I've needed to use it.

julian
(no affiliation except as a paying customer, etc, etc)

On 7/5/05, Mark Benussi <[EMAIL PROTECTED]> wrote:
> Having some fun with my current ISP and was wondering if any of you have 
UK

> tomcat recommendations?
>
>
>
> My technical needs are pretty small; just tomcat 5.0+ installed with 
mysql

> 4.0+ etc.
>
>
>
> My main non-technical requirement is a good UK based support, and any
> recommendations would be appreciated.
>
>
>
> P.S. I know I could use a blank Linux hosting option and install it 
myself

> but this is not appropriate at the moment, I may consider that in the
> future.
>
>
>

-
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]



2 apps

2005-07-07 Thread Sergey Livanov
I have 2 applications. The first is to be allowed from internet, the second
is to enter data. Two apps are in the webapps. How can I configure tomcat
to make cms unvisible from outside.



-- 
regards,
 Sergey  mailto:[EMAIL PROTECTED]


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



Rép. : Re: Multi-click from the sam e user

2005-07-07 Thread Antonio PAROLINI
Yes, this is definitively interresting, even though I am looking for a
lower-level solution (HttpConnector and Tomcat thread managment level).
I will be always surprised with all we can acheave with of sevlets
filters... 

The beaviour proposed by this filter gets pretty close to my wishes,
but I doubt we can do  better than its authors just with a filter. 

Thanks for your suggestion.

Antonio



>>> [EMAIL PROTECTED] 07/07 12:42  >>>
Try googling RequestControlFilter.
You may be able to modify the code and check for a matching request
from the
sessionor use it as is...this may work for you.
H

- Original Message - 
From: "Antonio PAROLINI" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, July 07, 2005 9:05 PM
Subject: Multi-click from the same user


> Hello,
>
> We have a Struts intranet-web site running under tomcat 4.1.24.
>
> Some of the application function are pretty slow ( more than 10
> secondes), and sometime users get mad and click 10 times on the same
> button. Tomcat raise 10 thread and on such slow operation, the
server
> can get very slowed down.
>
> Aside of javascript solutions ( blocking the button to be clicked
> twice), is there a tomcat configuration solution for this probleme ?
>
> I would imaging for instance, a HTTP connector that detect that the
> same call is being made by the same browser (or same UserPrincipal),
to
> the same url with the same parameters , and instead of raising a new
> thread, wait for the 1 thread to end and returns its result ... Am I
> dreaming ?
>
> Thanks in advance for your help.
>
> Antonio Parolini
>
>
>
>
>
>
**
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please
notify
> the system manager.
>
>
**
>
>
>
-
> 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: init-params from web.xml not come in right order

2005-07-07 Thread Mikolaj Rydzewski

Sallo Laszlo wrote:


Unfortunately this is not what I need. My list is like :


/index.jsp
none


/img/*
none


/*
admin
		  


Is a list with some path-role mapping. And I need in this order. I
looked in Context implementation of tomcat and I saw they are using
HashMap-s and that's why it comes arbitrary.
 


So add another parameter:


   params-order
   /index.jsp /img/* /*


Tokenize its value with spaces (or some other char) and you are ready to 
read the rest of parameters in the order you want.


--
Mikolaj Rydzewski  <[EMAIL PROTECTED]>
Becomo S.A.
tel. (12) 2927104




smime.p7s
Description: S/MIME Cryptographic Signature


RE: init-params from web.xml not come in right order

2005-07-07 Thread Sallo Laszlo
Hi,

Unfortunately this is not what I need. My list is like :


/index.jsp
none


/img/*
none


/*
admin
  

Is a list with some path-role mapping. And I need in this order. I
looked in Context implementation of tomcat and I saw they are using
HashMap-s and that's why it comes arbitrary.

Laszlo

-Original Message-
From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 07, 2005 4:13 PM
To: Tomcat Users List
Subject: Re: init-params from web.xml not come in right order

Sallo Laszlo wrote:

>I introduced some  and I need them in the same order as in
web.xml. 
>
Why do you need them this way? I would use another parameter, let's say 
params-list, with ordered list of other parameters' names, i.e.:


params-list
param1, param_other, param_3, param7


-- 
Mikolaj Rydzewski  <[EMAIL PROTECTED]>
Becomo S.A.
tel. (12) 2927104



-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.10/43 - Release Date: 7/6/2005
 


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



Re: init-params from web.xml not come in right order

2005-07-07 Thread Mikolaj Rydzewski

Sallo Laszlo wrote:

I introduced some  and I need them in the same order as in web.xml. 

Why do you need them this way? I would use another parameter, let's say 
params-list, with ordered list of other parameters' names, i.e.:



   params-list
   param1, param_other, param_3, param7


--
Mikolaj Rydzewski  <[EMAIL PROTECTED]>
Becomo S.A.
tel. (12) 2927104




smime.p7s
Description: S/MIME Cryptographic Signature


init-params from web.xml not come in right order

2005-07-07 Thread Sallo Laszlo
Hi,

 

I am using tomcat 4.1.30.

 

I introduced some  and I need them in the same order as in 
web.xml. Right now I am getting in an arbitrary order with  :

 

Enumeration urlPatternEnum =  filterConfig.getInitParameterNames();

 

How can I fix this ? Is a higher version of tomcat where this is works ?

 

Best Regards,

Sallo Laszlo


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.10/43 - Release Date: 7/6/2005
 


Re: Multi-click from the same user

2005-07-07 Thread Hemi Taka
Try googling RequestControlFilter.
You may be able to modify the code and check for a matching request from the
sessionor use it as is...this may work for you.
H

- Original Message - 
From: "Antonio PAROLINI" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, July 07, 2005 9:05 PM
Subject: Multi-click from the same user


> Hello,
>
> We have a Struts intranet-web site running under tomcat 4.1.24.
>
> Some of the application function are pretty slow ( more than 10
> secondes), and sometime users get mad and click 10 times on the same
> button. Tomcat raise 10 thread and on such slow operation, the server
> can get very slowed down.
>
> Aside of javascript solutions ( blocking the button to be clicked
> twice), is there a tomcat configuration solution for this probleme ?
>
> I would imaging for instance, a HTTP connector that detect that the
> same call is being made by the same browser (or same UserPrincipal), to
> the same url with the same parameters , and instead of raising a new
> thread, wait for the 1 thread to end and returns its result ... Am I
> dreaming ?
>
> Thanks in advance for your help.
>
> Antonio Parolini
>
>
>
>
>
> **
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> **
>
>
> -
> 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: EL not working...

2005-07-07 Thread Allistair Crossley
Hi,

I've just checked the bean taglib api and id is the page scope variable name 
that the cookie value gets put into, therefore



<%= pageContext.getAttribute("username") %>

Really ought to be doing the job :)

> -Original Message-
> From: Richard Reyes [mailto:[EMAIL PROTECTED]
> Sent: 07 July 2005 10:24
> To: Allistair Crossley
> Cc: Tomcat Users List
> Subject: Re: EL not working...
> 
> 
> Thanks Allistair,
> 
> But it throws an error...
> 
> E:\LABDRIVE\jakarta-tomcat-5.0.28\work\Catalina\localhost\wds-
> ap\org\apache\jsp\bigler\serverpages\login_jsp.java:237:
> cannot resolve symbol
> symbol  : method setValue (java.lang.Object)
> location: class org.apache.struts.taglib.html.TextTag
>   _jspx_th_html_text_0.setValue(
> pageContext.getAttribute("username") );
>   ^
> 
> On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> > Yes it will be in pageContext, so
> > 
> > <%= pageContext.getAttribute("username") %>
> > 
> > > Hi Guys/Allistair,
> > >
> > > I got this code .
> > >
> > >  id="username"/>
> > > .
> > > .
> > > .
> > >  > > value="${username.value}" />
> > >
> > > Any suggestions how to access the cookie value?
> > >
> > > Thanks
> > > Richard
> > >
> > > On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> > > > EL comes with the Servlet 2.4 spec which is supported in
> > > Tomcat 5x. I believe you may be able to get EL like behaviour
> > > with the Struts-EL taglib, but you won't get it out of the
> > > box on Tomcat 4.
> > > >
> > > > Allistair.
> > > >
> > > > > -Original Message-
> > > > > From: Richard Reyes [mailto:[EMAIL PROTECTED]
> > > > > Sent: 07 July 2005 09:38
> > > > > To: Tomcat Users List
> > > > > Subject: EL not working...
> > > > >
> > > > >
> > > > > Hello Guys,
> > > > >
> > > > > EL is not working under tomcat 4. how can i make it work?
> > > > > Please help
> > > > >
> > > > > Thanks
> > > > > Richard
> > > > >
> > > > >
> > > 
> -
> > > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > > 
> > > > ---
> > > > QAS Ltd.
> > > > Registered in England: No 2582055
> > > > Registered in Australia: No 082 851 474
> > > > ---
> > > > 
> > > >
> > > >
> > >
> >
> 

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



Re: error messages during tomcat 4.1 startup

2005-07-07 Thread Jon Wingfield
It looks like your web.xml DOCTYPE definition is either missing or 
incorrect. Digester is using a validating parser and so barfs.


Review your web.xml document(s).

Jon

Tewari,kuldeep wrote:


Hi,
I am getting following messages during tomcat 4.1 startup.
What could be the cause?

Jul 7, 2005 10:28:00 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
Jul 7, 2005 10:28:02 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 8 column 219: Document root element "web-app",
must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "web-app", must match
DOCTYPE root "null".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElem
entHook(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3587)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Jul 7, 2005 10:28:02 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 8 column 219: Document is invalid: no grammar
found.
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unk

Re: EL not working...

2005-07-07 Thread Richard Reyes
Hi Allistair,

This is the value of 

[EMAIL PROTECTED]

<%= pageContext.getAttribute("username") %>

On 7/7/05, Richard Reyes <[EMAIL PROTECTED]> wrote:
> Thanks Allistair,
> 
> But it throws an error...
> 
> E:\LABDRIVE\jakarta-tomcat-5.0.28\work\Catalina\localhost\wds-ap\org\apache\jsp\bigler\serverpages\login_jsp.java:237:
> cannot resolve symbol
> symbol  : method setValue (java.lang.Object)
> location: class org.apache.struts.taglib.html.TextTag
>   _jspx_th_html_text_0.setValue(
> pageContext.getAttribute("username") );
>   ^
> 
> On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> > Yes it will be in pageContext, so
> >
> > <%= pageContext.getAttribute("username") %>
> >
> > > Hi Guys/Allistair,
> > >
> > > I got this code .
> > >
> > > 
> > > .
> > > .
> > > .
> > >  > > value="${username.value}" />
> > >
> > > Any suggestions how to access the cookie value?
> > >
> > > Thanks
> > > Richard
> > >
> > > On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> > > > EL comes with the Servlet 2.4 spec which is supported in
> > > Tomcat 5x. I believe you may be able to get EL like behaviour
> > > with the Struts-EL taglib, but you won't get it out of the
> > > box on Tomcat 4.
> > > >
> > > > Allistair.
> > > >
> > > > > -Original Message-
> > > > > From: Richard Reyes [mailto:[EMAIL PROTECTED]
> > > > > Sent: 07 July 2005 09:38
> > > > > To: Tomcat Users List
> > > > > Subject: EL not working...
> > > > >
> > > > >
> > > > > Hello Guys,
> > > > >
> > > > > EL is not working under tomcat 4. how can i make it work?
> > > > > Please help
> > > > >
> > > > > Thanks
> > > > > Richard
> > > > >
> > > > >
> > > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > > > 
> > > > ---
> > > > QAS Ltd.
> > > > Registered in England: No 2582055
> > > > Registered in Australia: No 082 851 474
> > > > ---
> > > > 
> > > >
> > > >
> > >
> >
>

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



Re: EL not working...

2005-07-07 Thread Richard Reyes
Thanks Allistair,

But it throws an error...

E:\LABDRIVE\jakarta-tomcat-5.0.28\work\Catalina\localhost\wds-ap\org\apache\jsp\bigler\serverpages\login_jsp.java:237:
cannot resolve symbol
symbol  : method setValue (java.lang.Object)
location: class org.apache.struts.taglib.html.TextTag
  _jspx_th_html_text_0.setValue(
pageContext.getAttribute("username") );
  ^

On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> Yes it will be in pageContext, so
> 
> <%= pageContext.getAttribute("username") %>
> 
> > Hi Guys/Allistair,
> >
> > I got this code .
> >
> > 
> > .
> > .
> > .
> >  > value="${username.value}" />
> >
> > Any suggestions how to access the cookie value?
> >
> > Thanks
> > Richard
> >
> > On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> > > EL comes with the Servlet 2.4 spec which is supported in
> > Tomcat 5x. I believe you may be able to get EL like behaviour
> > with the Struts-EL taglib, but you won't get it out of the
> > box on Tomcat 4.
> > >
> > > Allistair.
> > >
> > > > -Original Message-
> > > > From: Richard Reyes [mailto:[EMAIL PROTECTED]
> > > > Sent: 07 July 2005 09:38
> > > > To: Tomcat Users List
> > > > Subject: EL not working...
> > > >
> > > >
> > > > Hello Guys,
> > > >
> > > > EL is not working under tomcat 4. how can i make it work?
> > > > Please help
> > > >
> > > > Thanks
> > > > Richard
> > > >
> > > >
> > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > 
> > > ---
> > > QAS Ltd.
> > > Registered in England: No 2582055
> > > Registered in Australia: No 082 851 474
> > > ---
> > > 
> > >
> > >
> >
>

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



Re: Multi-click from the same user

2005-07-07 Thread Mikolaj Rydzewski

Antonio PAROLINI wrote:


Aside of javascript solutions ( blocking the button to be clicked
twice), is there a tomcat configuration solution for this probleme ?
 

You can use session context to store information that request is being 
processed by another thread and return quickly after another user click.


Or maybe you can process such slow request in background thread 
reloading user page with some kind of a progress bar.


--
Mikolaj Rydzewski  <[EMAIL PROTECTED]>
Becomo S.A.
tel. (12) 2927104



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



RE: Multi-click from the same user

2005-07-07 Thread Allistair Crossley
Your idea sounds like it makes sense but I can see that you may have trouble, 
since even if you can identify a duplicate request, you will have lost (I 
think) the request/response link on each subsequent click of the button (which 
generates unique requests). I do not think you'd be able to connect an 
arbitrary request with a reponse that was intended for an earlier request, but 
maybe I am wrong.

Allistair

> -Original Message-
> From: Antonio PAROLINI [mailto:[EMAIL PROTECTED]
> Sent: 07 July 2005 10:05
> To: tomcat-user@jakarta.apache.org
> Subject: Multi-click from the same user
> 
> 
> Hello,
> 
> We have a Struts intranet-web site running under tomcat 4.1.24.
> 
> Some of the application function are pretty slow ( more than 10
> secondes), and sometime users get mad and click 10 times on the same
> button. Tomcat raise 10 thread and on such slow operation, the server
> can get very slowed down.
> 
> Aside of javascript solutions ( blocking the button to be clicked
> twice), is there a tomcat configuration solution for this probleme ?
> 
> I would imaging for instance, a HTTP connector that detect that the
> same call is being made by the same browser (or same 
> UserPrincipal), to
> the same url with the same parameters , and instead of raising a new
> thread, wait for the 1 thread to end and returns its result ... Am I
> dreaming ?
> 
> Thanks in advance for your help.
> 
> Antonio Parolini
> 
> 
> 
> 
> 
> **
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> **
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: Caching static content -> Bug in Filter implementation?

2005-07-07 Thread Jon Wingfield
I think that's expected behaviour: You can't set headers after the 
response has been committed (more body data has been written to the 
outputstream than the buffer size).


In the case of the 200 response code the call to 
filterChain.doFilter(...) actually serves the content. Setting of the 
header after this is too late.


Jon

[EMAIL PROTECTED] wrote:

Hello

I do some further analysis in this problem and got following result:

Precondition: The filter manipulates the HTTP header when returning a
static resource (e.g. image).

HTTP 200
In case of a HTTP 200 (OK) result the header is not added when the doFilter
method is like following:

filterChain.doFilter(request, response);
response.setHeader(name, value);


In contrast to it works when the code is like following:

response.setHeader(name, value);
filterChain.doFilter(request, response);


In other words: When returning a HTTP 200 (OK) I must set the header before
forwarding the request to the next filter.

HTTP 304
In this case it doesn't mention whether setting the header is before or
after forwarding the request.

Any comments?

Jürgen Dufner


-
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte
Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte
Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenen
Informationen
ist nicht gestattet.

The information contained in this message is confidential or protected
by
law. If you are not the intended recipient, please contact the sender
and
delete this message. Any unauthorised copying of this message or 
unauthorised distribution of the information contained herein is

prohibited.


-
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: EL not working...

2005-07-07 Thread Allistair Crossley
Yes it will be in pageContext, so

<%= pageContext.getAttribute("username") %>

> Hi Guys/Allistair,
> 
> I got this code .
> 
> 
> .
> .
> .
>  value="${username.value}" />
> 
> Any suggestions how to access the cookie value?
> 
> Thanks
> Richard
> 
> On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> > EL comes with the Servlet 2.4 spec which is supported in 
> Tomcat 5x. I believe you may be able to get EL like behaviour 
> with the Struts-EL taglib, but you won't get it out of the 
> box on Tomcat 4.
> > 
> > Allistair.
> > 
> > > -Original Message-
> > > From: Richard Reyes [mailto:[EMAIL PROTECTED]
> > > Sent: 07 July 2005 09:38
> > > To: Tomcat Users List
> > > Subject: EL not working...
> > >
> > >
> > > Hello Guys,
> > >
> > > EL is not working under tomcat 4. how can i make it work?
> > > Please help
> > >
> > > Thanks
> > > Richard
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > >
> > >
> > 
> > 
> > 
> > ---
> > QAS Ltd.
> > Registered in England: No 2582055
> > Registered in Australia: No 082 851 474
> > ---
> > 
> > 
> >
> 

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



Multi-click from the same user

2005-07-07 Thread Antonio PAROLINI
Hello,

We have a Struts intranet-web site running under tomcat 4.1.24.

Some of the application function are pretty slow ( more than 10
secondes), and sometime users get mad and click 10 times on the same
button. Tomcat raise 10 thread and on such slow operation, the server
can get very slowed down.

Aside of javascript solutions ( blocking the button to be clicked
twice), is there a tomcat configuration solution for this probleme ?

I would imaging for instance, a HTTP connector that detect that the
same call is being made by the same browser (or same UserPrincipal), to
the same url with the same parameters , and instead of raising a new
thread, wait for the 1 thread to end and returns its result ... Am I
dreaming ?

Thanks in advance for your help.

Antonio Parolini





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**


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



Re: EL not working...

2005-07-07 Thread Richard Reyes
Hi Guys/Allistair,

I got this code .


.
.
.


Any suggestions how to access the cookie value?

Thanks
Richard

On 7/7/05, Allistair Crossley <[EMAIL PROTECTED]> wrote:
> EL comes with the Servlet 2.4 spec which is supported in Tomcat 5x. I believe 
> you may be able to get EL like behaviour with the Struts-EL taglib, but you 
> won't get it out of the box on Tomcat 4.
> 
> Allistair.
> 
> > -Original Message-
> > From: Richard Reyes [mailto:[EMAIL PROTECTED]
> > Sent: 07 July 2005 09:38
> > To: Tomcat Users List
> > Subject: EL not working...
> >
> >
> > Hello Guys,
> >
> > EL is not working under tomcat 4. how can i make it work?
> > Please help
> >
> > Thanks
> > Richard
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
>

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



Re: Tomcat 5.5.9 and log4j problem

2005-07-07 Thread Jørgen Nørgaard

In appears that bin/catalina.sh does not add these directories to the
initial classpath.

Therefore neither jar file, nor configuration is found during start.


Adding common/classes to classpath in catalina.sh and putting the jar
files to the jvm lib is one way to solve the problem.



Jørgen Nørgaard said:
> Hello,
>
> I have installed java 1.5.0_04 and tomcat 5.5.9 on Fedora FC4 64 bit
> machine and followed, I thought, the instructions on http://
> jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html.
>
>
> Yet I get:
> log4j:WARN No appenders could be found for logger
> (org.apache.catalina.startup.ClassLoaderFactory).
> log4j:WARN Please initialize the log4j system properly.
>
> in catalina.out. And no log file otherwise.
>
>
> Any ideas what I am doing wrong?
>
>
> Excerpts of setup:
>
> ls /opt/jakarta-tomcat-5.5.9/common/classes:
> log4j.properties  logging.properties
>
> ls /opt/jakarta-tomcat-5.5.9/common/lib:
> log4j-1.2.11.jar
>
>
> And /opt/jakarta-tomcat-5.5.9/common/classes/log4j.properties is
> (copied from the website):
> log4j.rootLogger=debug, R
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=${catalina.home}/logs/tomcat.log
> log4j.appender.R.MaxFileSize=10MB
> log4j.appender.R.MaxBackupIndex=10
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
> log4j.logger.org.apache.catalina=DEBUG, R
>
>
>
> --
> Hilsen
> /jørgen nørgaard
> e-mail: [EMAIL PROTECTED] | Phone: +45 2627 3769
> http://napolinet.dk/
>  |\  _,,,---,,_
>  /,`.-'`'-.  ;-;;,_
>  |,4-  ) )-,_. ,\ (  `'-'
> '---''(_/--'  `-'\_)
>
>
>


-- 
Hilsen
/jørgen nørgaard
e-mail: [EMAIL PROTECTED] | Phone: +45 2627 3769
http://napolinet.dk/
|\  _,,,---,,_
/,`.-'`'-.  ;-;;,_
|,4-  ) )-,_. ,\ (  `'-'
   '---''(_/--'  `-'\_)


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



RE: EL not working...

2005-07-07 Thread Allistair Crossley
EL comes with the Servlet 2.4 spec which is supported in Tomcat 5x. I believe 
you may be able to get EL like behaviour with the Struts-EL taglib, but you 
won't get it out of the box on Tomcat 4.

Allistair.

> -Original Message-
> From: Richard Reyes [mailto:[EMAIL PROTECTED]
> Sent: 07 July 2005 09:38
> To: Tomcat Users List
> Subject: EL not working...
> 
> 
> Hello Guys,
> 
> EL is not working under tomcat 4. how can i make it work?
> Please help
> 
> Thanks
> Richard
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



EL not working...

2005-07-07 Thread Richard Reyes
Hello Guys,

EL is not working under tomcat 4. how can i make it work?
Please help

Thanks
Richard

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



RE: Apache + Tomcat with Mod_jk

2005-07-07 Thread Toshio SUGAHARA
Hi Shailendra,

What your Apache MPM are you using?

I think you should use JK_module that accord with Apcahe MPM.

Thanks,

-Toshio

> -Original Message-
> From: Shailendra Gatade [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 06, 2005 11:25 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Apache + Tomcat with Mod_jk
> 
> 
> Hi All,
> 
> I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using
> mod_jk. I'm facing several problems regarding this ...
> 
> Initially i was using mod_jk2.so which is deprecated and also not 
> recomended
> for Production Environment.
> 
> I am not able to find the proper mod_jk.so for Apache.
> 
>   I downloaded ...
> 
> jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-
> prefork.so
> and
> 
> jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-
> worker.so
> 
>   Which file should i rename to mod_jk.so ?
> 
>   When i rename the first one and use it, i am getting the following
> error ...
>  Cannot load /usr/local/apache2/lib/mod_jk.so into server:
> /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not 
> little-endian.
> 
>  Can somebody point me to a location where i can find the proper
> mod_jk.so for my setup ?
> 
> Also there is no extensive tutorial available on the same issue ... Is
> anyone aware of a tutorial which guides you step by step in configuring
> Apache 2 + Tomcat 5.0 using mod_jk.so ?
> 
> Thanks in advance ...
> 
> Shailendra
> 
__
Save the earth
http://pr.mail.yahoo.co.jp/ondanka/


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



Apache + Tomcat with Mod_jk

2005-07-07 Thread Shailendra Gatade
Hi All,

I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using
mod_jk. I'm facing several problems regarding this ...

Initially i was using mod_jk2.so which is deprecated and also not recomended
for Production Environment.

I am not able to find the proper mod_jk.so for Apache.

  I downloaded ...

jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so
and

jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so

  Which file should i rename to mod_jk.so ?

  When i rename the first one and use it, i am getting the following
error ...
 Cannot load /usr/local/apache2/lib/mod_jk.so into server:
/usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian.

 Can somebody point me to a location where i can find the proper
mod_jk.so for my setup ?

Also there is no extensive tutorial available on the same issue ... Is
anyone aware of a tutorial which guides you step by step in configuring
Apache 2 + Tomcat 5.0 using mod_jk.so ?

Thanks in advance ...

Shailendra