Re: problems with mod_jk modifying headers

2007-07-04 Thread Anton Melser
On 04/07/07, Bill Barker [EMAIL PROTECTED] wrote: Anton Melser [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] (maybe a repost?) Hi all, We are running tomcat 5.5.23 on java 1.6.0 (suse 10.0 with addon java6 rpms for suse 10.1). These machines are load balanced behind an apache

Re: Tomcat Administration Package Download?

2007-07-04 Thread Stephen . Morris
David, I have searched the mailing list archives and the only entry I can find is one that says it hasn't been ported yet. Can you tell where to find the discussion thread you are referring to. Thankyou. regards, Steve Morris IT Security Access Management Technology Risk and Security

Redirection

2007-07-04 Thread Mohammed Zabin
Hi Everybody I have a servlet that renders some database related values, at the botton of the page, i want to add a hyberlink to a jsp page, and i want pass to this jsp page, and i want to pass some values from servlet to jsp??? How could i do this, any help please? Jotnarta

Re: problems with mod_jk modifying headers

2007-07-04 Thread Anton Melser
On 04/07/07, Anton Melser [EMAIL PROTECTED] wrote: On 04/07/07, Bill Barker [EMAIL PROTECTED] wrote: Anton Melser [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] (maybe a repost?) Hi all, We are running tomcat 5.5.23 on java 1.6.0 (suse 10.0 with addon java6 rpms for suse

how to manipulate static content

2007-07-04 Thread lior grinfeld
Hi, i am new at using tomcat. I want to use tomcat as a server to test our proxy. to do that i need to manipulate the response headers, i did that without problems using servlets. now i want to manipulate the http response headers or content of requests for static content. Ex. if i will do GET

Re: Form authentication with captcha...

2007-07-04 Thread rpr_listas
Hello David, I know that this is out of the specification, and bind my application to this server implementation, but modify the realm has the same problem, transform my application in a tomcat-only application. Build a custom authentication is not solution, because this disconnect the

Re : Tomcat 5.0.28 SocketException error

2007-07-04 Thread bobo tr
Hi Filip, Thank you for the hint. I'll test it. Regards, Boris - Message d'origine De : Filip Hanik - Dev Lists [EMAIL PROTECTED] À : Tomcat Users List users@tomcat.apache.org Envoyé le : Mardi, 3 Juillet 2007, 21h23mn 41s Objet : Re: Tomcat 5.0.28 SocketException error this would be

AW: Tomcat - Apache: IP replacement

2007-07-04 Thread Nino Ulsamer
Well, that's really strange, because those servers are basically very clean. No software firewall, antivirus, or something similar. Those are production servers, so they are really running nothing else than MySQL, Apache and Tomcat... SP4 is installed as well. What exactly is this

Re: how to manipulate static content

2007-07-04 Thread David Delbecq
Either map to '/*' your custom servlet that returning the static content with your custom headers, either write a servletfilter that add additional header before processing request. En l'instant précis du 04/07/07 09:52, lior grinfeld s'exprimait en ces termes: Hi, i am new at using tomcat. I

Re: AW: Tomcat - Apache: IP replacement

2007-07-04 Thread David Delbecq
from http://httpd.apache.org/docs/2.2/mod/mpm_winnt.html#win32disableacceptex AcceptEx() is a Microsoft WinSock v2 API that provides some performance improvements over the use of the BSD style accept() API in certain circumstances. Some popular Windows products, typically virus scanning or

Re: How internally does a jndi resource get created?

2007-07-04 Thread Johnny Kewl
Jevin, it actually sounds like you not just talking about JNDI and defining your own factory, but setting the passwords programmatically for the standard DBCP JNDI factory I dont think its possible, but it would be nice to be proved wrong. Keeping passwords in binary form, would require

Re: tomcat compile failure on debian build.xml base.path for JDT eclipse jars et. al.

2007-07-04 Thread Gregor Schneider
Hm, strange, why does Tomcat need Eclipse-classes for compilation? Maybe that's a classpath-problem (do you have Eclipse installed on your box?) Btw. why are your compiling anyway? Tomcat is all Java, therefore it's ok to download the binaries from tomcat.apache.org, untar them, set the

Initialize something once when deploying war file

2007-07-04 Thread Trumml
I'm using JBoss 327 with Tomcat 5. My applications running inside JBoss (Tomcat) need some kind of runtime initializing. For example when a MBean is deployed, inside the start() method my runtime will be initialized. How can I achieve this with a WAR file? I want to call a method once when my WAR

Initialize something once when deploying war file

2007-07-04 Thread Trumml
I'm using JBoss 327 with Tomcat 5. My applications running inside JBoss (Tomcat) need some kind of runtime initializing. For example when a MBean is deployed, inside the start() method my runtime will be initialized. How can I achieve this with a WAR file? I want to call a method once when my WAR

Re: Redirection

2007-07-04 Thread David Delbecq
String url = response.encodeURL(/path/to/jsp.jsp?paramX=someValueparamY=someOtherValue); En l'instant précis du 04/07/07 09:20, Mohammed Zabin s'exprimait en ces termes: Hi Everybody I have a servlet that renders some database related values, at the botton of the page, i want to add a

Re: Redirection

2007-07-04 Thread Mohammed Zabin
Thanks, seems spanish ;), I live Spain, am learning spanish language now, Gratias, EL java es Aburrido On 7/4/07, David Delbecq [EMAIL PROTECTED] wrote: String url = response.encodeURL (/path/to/jsp.jsp?paramX=someValueparamY=someOtherValue); En l'instant précis du 04/07/07 09:20, Mohammed

Re: Redirection

2007-07-04 Thread Mohammed Zabin
Thank you again, But I want to add a hyber link, that when clicked will transfer the user to a jsp page, like this: Click Here for example. how could i do this?? On 7/4/07, David Delbecq [EMAIL PROTECTED] wrote: String url = response.encodeURL

Re: Initialize something once when deploying war file

2007-07-04 Thread David Delbecq
use a listener/ inside web.xml. They get notified when starting and stopping webapplication En l'instant précis du 04/07/07 11:49, Trumml s'exprimait en ces termes: I'm using JBoss 327 with Tomcat 5. My applications running inside JBoss (Tomcat) need some kind of runtime initializing. For

Re: AW: Registrierung Tomcat-Premium-Informationen, kippdata

2007-07-04 Thread Rainer Jung
Hallo Frau Pillet, ich habe gerade mal Google eingesetzt und gesehen, dass Ihre Firma ja auch einen Sitz in Bonn-Mehlem hat. Sitzen Sie da zufällig auch? Fände ich nur witzig, weil wir ebenfalls in Bonn unseren Sitz haben. Beste Grüße sendet Rainer Jung -- kippdata informationstechnologie

Re: Redirection

2007-07-04 Thread David Delbecq
Sorry, it's not spanish but french, totally unrelated languages as for how to create an hyperlink, just open an html book and look for tag a href=../a En l'instant précis du 04/07/07 11:58, Mohammed Zabin s'exprimait en ces termes: Thanks, seems spanish ;), I live Spain, am learning spanish

Re: Redirection

2007-07-04 Thread Mohammed Zabin
No, it's not what i wanted :) I have a servlet page with the following address http://localhost:8080/Exam/servlets/results in this servlet page, results, i have a hyperlink: *Click Here To view your Results* This link is designated to navigate to a jsp page with the following address:

Re: Redirection

2007-07-04 Thread Mohammed Zabin
Yes Thank you, I found it from your first response, *response.encodeURL*, Thank you Buddy, my greetings for Sarkoozi ;) On 7/4/07, Mohammed Zabin [EMAIL PROTECTED] wrote: No, it's not what i wanted :) I have a servlet page with the following address

Re: Redirection

2007-07-04 Thread David Delbecq
Am not sure to understand what you want, but if you want to not have to put an hyperlink and have servlet directly show the content of the jsp, use getServletContext().getRequestDispatcher(path/to/your/jsp).forward(request,response); En l'instant précis du 04/07/07 13:47, Mohammed Zabin

Re: How internally does a jndi resource get created?

2007-07-04 Thread Johnny Kewl
Jevin, my curiousity got the better of me, and I tried to find it for you Can see TC loading up the resource in the ResourceFactory, but it just seems that nowhere does it actually read the password and pass it into DBCP I havnt checked, but I have a feeling that the DBCP module gets the

Re: how to manipulate static content

2007-07-04 Thread lior grinfeld
Thanks for the tip, i used filters. now i facing other problem. if I use filter with request to static content ( i did not write servlet for it , i want the defaultServlet to handle it) for some reason i do not get the content, it looks like the defaultServlet is doing nothing now, without

Re: how to manipulate static content

2007-07-04 Thread David Delbecq
Could it be you forgot to call filterChain.doFilter(request.response) after adding your headers? En l'instant précis du 04/07/07 14:18, lior grinfeld s'exprimait en ces termes: Thanks for the tip, i used filters. now i facing other problem. if I use filter with request to static content ( i

Re: AW: Registrierung Tomcat-Premium-Informationen, kippdata

2007-07-04 Thread Rainer Jung
Sorry, auto-completion :( - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat Administration Package Download?

2007-07-04 Thread David Smith
I think this message from one of the tomcat developers back on March 16th described the problems with the admin webapp very well: http://www.nabble.com/Tomcat-Administrator-tf3415576.html#a9519933 --David [EMAIL PROTECTED] wrote: David, I have searched the mailing list archives and the

Re: Initialize something once when deploying war file

2007-07-04 Thread David Smith
Write a class that implements a ServletContextListener and then add it to your web.xml as a listener. It creates a hook for startup as well as shutdown. I use this to build my own database pool and store it as an attribute of the servlet context for later. --David Trumml wrote: I'm using

Re: How internally does a jndi resource get created?

2007-07-04 Thread David Smith
Tomcat uses commons-beanutils to set all the parameters of org.apache.commons.dbcp.BasicDataSource (or actually tomcat's own refactored copy of it) with the attributes found in the Resource element in server.xml or one of the context.xml files. I think Johnny is right ... set up your own db

JAAS how to find user login name on the web app

2007-07-04 Thread lmk
Hii, I developed a JAAS module for authentication, and I deployed it on the tomcat server. I'd like to display the login name on the web app after authenticatiobn succeed.how to find it ..? can i finf it on the session?? or must use the Callbackhandler object..? regards!!! -- View this

Re: JAAS how to find user login name on the web app

2007-07-04 Thread rpr_listas
Hi, lmk! Your JAAS module is a tomcat Realm? If you develop a tomcat realm you can access the user data via the standard servlet API. HttpServletRequest.getRemoteUser(); HttpServletRequest.getUserPrincipal(); regards. Ricardo. lmk escribió: Hii, I developed a JAAS module for

Re: JAAS how to find user login name on the web app

2007-07-04 Thread lmk
Im using tomcat Realm.. I can even get the user password!! thanks.. rpr_listas wrote: Hi, lmk! Your JAAS module is a tomcat Realm? If you develop a tomcat realm you can access the user data via the standard servlet API. HttpServletRequest.getRemoteUser();

Re: how to manipulate static content

2007-07-04 Thread lior grinfeld
you were right, 10X. now i am facing yet one more challenge. i made filter to overwrite the response, i added headers as i want and it works fine. now i want to manipulate the content , to do zip or to chunk the data. i tried to do StreamResponseWrapper that extends HttpServletResponseWrapper,

Re: JAAS how to find user login name on the web app

2007-07-04 Thread lmk
I dont found how to get the user password...j_password parameter is not in request nor session . lmk wrote: Im using tomcat Realm.. I can even get the user password!! thanks.. rpr_listas wrote: Hi, lmk! Your JAAS module is a tomcat Realm? If you develop a tomcat realm

Tomcat Farm Recommendation

2007-07-04 Thread bajistaman
I'm trying to move my Apache Http Server Farm to a Tomcat one and I guess that Tomcat needs more resources than Apache does. Our approach has been always to have many medium size machines than a few big ones, does anybody have any suggestion to the kind of machine + OS needed to get the best

Help required setting up smtp server

2007-07-04 Thread Mike Peremsky
I followed the example in the Tomcat JNDI docs on setting up and sending an email (C:\apache-tomcat-5.5.23\webapps\tomcat-docs\jndi-resources-howto.html) but am still receiving a javax.mail.MessagingException: Could not connect to SMTPhost: localhost, port: 25 The strange thing is

Re: JAAS how to find user login name on the web app

2007-07-04 Thread lmk
yes I must send the user name and password to a web services to get other user informations.. David Smith-2 wrote: I don't think password is ever intended to be exposed to the webapp ... just the username. Is there a reason you need the password? --David lmk wrote: I dont found

Re: JAAS how to find user login name on the web app

2007-07-04 Thread lmk
It seems dificult to recover login password..I dont want to add a filter just for that.. do you have an other solution .? lmk wrote: I dont found how to get the user password...j_password parameter is not in request nor session . lmk wrote: Im using tomcat Realm.. I

Re: JAAS how to find user login name on the web app

2007-07-04 Thread David Smith
I don't think password is ever intended to be exposed to the webapp ... just the username. Is there a reason you need the password? --David lmk wrote: I dont found how to get the user password...j_password parameter is not in request nor session . lmk wrote: Im using tomcat Realm..

Re: JAAS how to find user login name on the web app

2007-07-04 Thread David Smith
In that case I think you need to read the JAAS docs and implement the proper callbacks. This page looks to be a good place to start: http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm As I understand it from a very cursory read-through, the JAAS realm callbacks aren't http

Re: Tomcat Farm Recommendation

2007-07-04 Thread PTS
First things first, I do not have an answer. As for the approach of multiple machines it does allow for better fault tolerance. But is also has the disadvantage of multiple machines to manage. And I am sure the list has lots of other pros and cons. As for the machine brand selection is another

JAXWS inheritance in return type

2007-07-04 Thread SteveEdgar
I am doing bottom up Web Service development on Tomcat 5.5.23. WSDL is being generated from an existing POJO implementation by running it through the apt tool. The POJO looks like this: @WebService... @WebMethod BaseClass retrieveInfo(ClassA parm1) The BaseClass has 4 subclasses. I need

Re: how to manipulate static content

2007-07-04 Thread Pierre Goupil
Lior, Basically, I think that you need to handle the response by yourself. For instance, if you want to send an image : *** RenderedImage rimg = ImageIO.read(new File(img)); OutputStream os = response.getOutputStream(); // === get the response to be able to re-write it

Re: Tomcat Farm Recommendation

2007-07-04 Thread bajistaman
Thanks for your reply, I know that there are a lot of things to consider to give this kind of answer but my question was more about what do you have that has worked for a corporate site, we're going to have mostly stateless RPC Servlets for a Client Side RIA (GWT) and our scope is millions of

Blank page shown while webapp is starting up

2007-07-04 Thread ben short
Hi, I'm using Tomcat 5.5.23 and have tried on 6.0.13. My webapp can take 20 to 30 seconds to start up. If a request is made during this time a blank page is shown in the browser. If the webapp is stopped then a 503 page is returned. Is it possible to get tomcat to serve the 503 page until the

Re: JAXWS inheritance in return type

2007-07-04 Thread SteveEdgar
Found a solution, but I'm not sure if it is optimal. Take a look at: http://www.jboss.com/index.html?module=bbop=viewtopicp=4056482#4056482 Near the end of the first code sample, the author has placed a dummy method in the code, solely to publish (expose) a subclass in the WSDL. This

Re: How internally does a jndi resource get created?

2007-07-04 Thread Jevin Maltais
Well folks, I never would have figured that out on my own. I copied and modified both a new BasicDataSourceFactory and BasicDataSource and referenced it properly. It worked out. Thanks again for your quick and friendly replies! I'll stay subscribed to this list for sure! Cheerio, Jevin On