RE: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread gb1071nx
> Both incorporate the output of jsps and servlets in > the current request's output. Which is not what the OP wanted. They wanted to : > > essentially slap that [the response] into a MimeBodyPart for sending > > text/html email messages. > > I've done something very similar - use an HTTP c

Re: session id cookies

2008-01-03 Thread Bill Barker
"Paul Singleton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I set > > > > will Tomcat ignore any JSESSIONID cookie which > accompanies a request? Should it? > With any of the released versions, it won't ignore the cookie if the browser sends one. There is a patch in

RE: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread Gennady Shumakher
Supposing both dispatcher and jsp are located on the same server you could consider using RequestDispatcher interface which is part of servlet API, specifically include method. Take a look: http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/RequestDisp atcher.html Gennady -Origi

Re: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread David Smith
There are two easy methods that should work: 1. The tag of the standard tag library -- see http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html 2. RequestDispatcher from the servlet spec which can not only forward, but also perform includes Both incorporate the output of jsps and

Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-03 Thread Adam Gordon
Any one know if there exists a JSP writer engine in the Tomcat API that allows for the generation of HTML pages via JSP code but without having to make server to server HTTP calls? Right now we basically have a URL dispatcher that when a specific request comes in, we make another request to re

RE: HTTP Status 500 while trying to use a DTO to send data from a Servlet to a JSP

2008-01-03 Thread Caldarale, Charles R
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: HTTP Status 500 while trying to use a DTO to send > data from a Servlet to a JSP > > This is where I have both the servlet and the DTO > ~ > . . .\webapps08\serv2jspTest\WEB-INF\classes>dir *.* /B > ~ > UpFlInfoK.class > UpFlInfoK.j

HTTP Status 500 while trying to use a DTO to send data from a Servlet to a JSP

2008-01-03 Thread Albretch Mueller
~ I am using TC 4.1.36 and I have a simple Data Transfer Object that I create in a front controller servlet and use to build a JSP view ~ This is where I have both the servlet and the DTO ~ . . .\webapps08\serv2jspTest\WEB-INF\classes>dir *.* /B ~ UpFlInfoK.class UpFlInfoK.java UploadServlet10.c

Re: FW: Reading servlet server connector configuration

2008-01-03 Thread Mark Thomas
Asaf Lahav wrote: > Hi guys, > > I didn't get any feedback on this so I'm resending to make sure it got to > the mailing list. It arrived the first time. You might want to read this: http://wiki.apache.org/tomcat/FAQ/Tomcat_User Mark ---

Re: Servlet Filter Not Intercepting?

2008-01-03 Thread Len Popp
How does it redirect to the filter? That doesn't make sense - after your servlet throws an exception it can't do a redirect. Filters are always called *before* the servlet or JSP. The servlet is only called if all the filters before it call doFilter to pass the request on. When your servlet runs,

RE: Servlet Filter Not Intercepting?

2008-01-03 Thread Jay Liu
Hi, Checkout /Checkout That's the only mapping I have for it. I will try the url pattern. The checkout servlet gets invoked, (I see a null pointer thrown from it) then it gets redirected to the filter. I saw an example somewhere that had the mappings altered. That's

Re: other ways to change the Connector element in server.xml?

2008-01-03 Thread Tim Funk
Doh ... sorry for being late to the game ... Here's a small article that discusses this too ... http://www.jroller.com/funkman/entry/let_properties_do_the_talking -Tim Anna Nhan wrote: Thanks Rainer and Chuck for your responses. How does Tomcat know to associate org.myorg.myapp.node1.http.po

Re: other ways to change the Connector element in server.xml?

2008-01-03 Thread Anna Nhan
oo, I have to manually edit the server.xml file. I see. Thanks Rainer and Chuck. Anna On Jan 3, 2008 1:05 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Anna Nhan [mailto:[EMAIL PROTECTED] > > Subject: Re: other ways to change the Connector element in server.xml? > > > > How

RE: other ways to change the Connector element in server.xml?

2008-01-03 Thread Caldarale, Charles R
> From: Anna Nhan [mailto:[EMAIL PROTECTED] > Subject: Re: other ways to change the Connector element in server.xml? > > How does Tomcat know to associate > org.myorg.myapp.node1.http.port to the > Connector port? Because you tell it to, as in Rainer's example: >

Re: other ways to change the Connector element in server.xml?

2008-01-03 Thread Anna Nhan
Thanks Rainer and Chuck for your responses. How does Tomcat know to associate org.myorg.myapp.node1.http.port to the Connector port? Anna On Jan 3, 2008 12:46 PM, Rainer Jung <[EMAIL PROTECTED]> wrote: > Like Chuck said: > > you can freely choose names and values you like. Choose your names > c

Re: other ways to change the Connector element in server.xml?

2008-01-03 Thread Rainer Jung
Like Chuck said: you can freely choose names and values you like. Choose your names carefully to prevent collisions with properties used by other components, e.g. you can start the name with your internet domain name or similar. Example Property -Dorg.myorg.myapp.node1.http.port=8001 in server.

Re: JK connector causes Tomcat to utilize 50% CPU

2008-01-03 Thread Rainer Jung
Are you using the tcnative.dll? If so, do you know, which version? There was a bug in tcnative that resulted in the same symptom. You might want to remove tcnative.dll temporarily to check, if this fixes the problem, and then might want to check with a recent tcnative. Regards, Rainer Smith, Mic

JK connector causes Tomcat to utilize 50% CPU

2008-01-03 Thread Smith, Michael
Greetings, I am trying to set up an Apache 2.2.4 server with Tomcat 5.5.25 and JK connector 1.2.26 on a Windows XP PC. This is a test configuration for a map server running both ESRI's ArcIMS and the open-source MapServer (MS4W distribution, which is a prepackaged Apache 2.2.4, PHP 5, and some ot

next version release dates

2008-01-03 Thread Paulakos, Lewis
is there any page to see what the status of versions and bug fixes are slated for future versions? any pages would be helpful. other notes of interest: is there a timeline for the tomcat 6.0.x release dates? I see chat on the users list for version 6.0.16 for fixes. any timeline? the wiki page st

RE: Re: other ways to change the Connector element in server.xml?

2008-01-03 Thread Caldarale, Charles R
> From: Anna Nhan [mailto:[EMAIL PROTECTED] > Subject: Re: Re: other ways to change the Connector element > in server.xml? > > How do I know which system properties to use? The *names* of the system properties are whatever you choose. The *values* of the system properties are simply substitute

Re: Re: other ways to change the Connector element in server.xml?

2008-01-03 Thread Anna Nhan
Rainer, I've been searching the web for documented system properties to use to set up Catalina, but I am confused. How do I know which system properties to use? And where can I find proper documentation for it? Will setting these Catalina options be reflected in the server.xml? Thanks, Anna >

SSL enabling Tomcat app

2008-01-03 Thread Roger Holtom
Hi, I have an Apache server running (2.0.52) that I recently SSL enabled. Test pages work great with SSL or non-SSL. We are running a Tomcat app called CAS, for Central Authentication Server. It runs fine over a non-SSL port. Now I need to have the Tomcat app secured. I'd prefer to have Ap

Re: need help with Tomcat-generated redirects

2008-01-03 Thread Julian Dunn
>>> On Wed, Jan 2, 2008 at 9:10 PM, "Bill Barker" <[EMAIL PROTECTED]> wrote: > "Rainer Jung" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hi Julian, >> >> Julian Dunn schrieb: How do you connect Apache to Tomcat? If you are using mod_jk, the module gets the port it

RE: NamingException

2008-01-03 Thread Caldarale, Charles R
> From: AbelMacAdam [mailto:[EMAIL PROTECTED] > Subject: Re: NamingException > > The context file contained the following entry: > More problems due to using old doc: the path and docBase attributes are not allowed when using a META-INF/context.xml file. They will probably be ignored, but don'

Re: NamingException

2008-01-03 Thread AbelMacAdam
I'm using Tomcat 6.0. I found the solution by the way. I executed the following steps: 1. I created a DataSource (I hope I have the language correct): In META-INF I added a context.xml, as adding this DataSource to %TOMCAT_HOME%/conf/server.xml is not the way to go (Changes in the code would lead

RE: [tomcat5.5] ClassCastException atorg.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:396)

2008-01-03 Thread Caldarale, Charles R
> From: totalrecall [mailto:[EMAIL PROTECTED] > Subject: [tomcat5.5] ClassCastException > atorg.apache.juli.ClassLoaderLogManager.readConfiguration(Clas > sLoaderLogManager.java:396) > > Unfortunately I could not find the source code on > ClassLoaderLogManager Where did you look? It's in the

RE: [tomcat 5.5] logger configuration in context.xml

2008-01-03 Thread Caldarale, Charles R
> From: totalrecall [mailto:[EMAIL PROTECTED] > Subject: [tomcat 5.5] logger configuration in context.xml > > Is there a new syntax for the Logger tag? There is no tag in 5.5. RTFM: http://tomcat.apache.org/tomcat-5.5-doc/logging.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND

Re: Error while trying to parse a JSP from a bean

2008-01-03 Thread David Smith
myapp/index.jsp is throwing a NPE and returns a 500 error, causing the problem you see in application.jsp. You should look at why myapp/index.jsp is throwing a NPE (NullPointerException). --David Pedro Santa wrote: Hi all! I'm getting an error while trying to parse a JSP from a bean. Here'

Error while trying to parse a JSP from a bean

2008-01-03 Thread Pedro Santa
Hi all! I'm getting an error while trying to parse a JSP from a bean. Here's the deal. My site has 2 frames. On the first is the web page. The second one, I want it to parse the contents of the first frame, in order to strip some elements from the source code - but for testing purposes I now only

session id cookies

2008-01-03 Thread Paul Singleton
If I set will Tomcat ignore any JSESSIONID cookie which accompanies a request? Should it? Paul Singleton - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Comment on Printing a document @ Apache Tomcat 6.0

2008-01-03 Thread David Smith
I just looked at that using WinXP/IE 7 and it's fine. Do you have the "Shrink to Fit" option set? The behavior you are seeing is what I would expect out of IE 6 -- a browser without the "Shrink to Fit" option. --David AbelMacAdam wrote: Hi, Just a note that I could not print the following

Re: Event Log Error

2008-01-03 Thread Rainer Jung
It looks like you are using mod_jk2. JK2 has been deprecated long ago. It will be hard to get any support for it now. Please switch to JK, which is still actively developed and nearly all features of JK2 have been backported. Regards, Rainer Kandala Satish schrieb: > Hi, > > > > I am receivi

Comment on Printing a document @ Apache Tomcat 6.0

2008-01-03 Thread AbelMacAdam
Hi, Just a note that I could not print the following document: http://tomcat.apache.org/tomcat-6.0-doc/printer/jndi-datasource-examples-howto.html The right side of the page was cut of at the right margin of the page. So IMHO the page was to wide for me. Abel Note on environment: Windows XP Moz

RES: Servlet Filter Not Intercepting?

2008-01-03 Thread Milanez, Marcus
Hi Jay, Your configuration seems to be fine.. Is your Checkout servlet ever invoked, cause you haven't posted your servlet-mapping tags. Have you tried mapping your filter using url-patterns, instead of servlet-name ? And only one more question, what do you mean by 'turn off invonking the resou

FW: Reading servlet server connector configuration

2008-01-03 Thread Asaf Lahav
Hi guys, I didn't get any feedback on this so I'm resending to make sure it got to the mailing list. Thanks in advance, Asaf _ From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 01, 2008 4:44 PM To: 'users@tomcat.apache.org' Subject: Reading servlet server connect

Re: Tomcat 6's nio protocol is slower than the regular HTTP/1.1protocol

2008-01-03 Thread David Cassidy
Did anyone do the comparison between ajp13 and http for the protocol ? I'd like to understand what the test cases were that were used for the test. ie if the application takes a second to make the resulting html if it takes 2 seconds to make the html how does that affect the performance ? D On

RE: clarification of server.xml settings for AJP 1.3 Thread Limit

2008-01-03 Thread David Cassidy
Mohan, You can use apache to serve all the static objects without the requests going anywhere near jboss / tomcat. Have a *careful* look at the JkMount command and look carefully at your url-patterns that your application uses. D On Wed, 2008-01-02 at 11:12 -0800, Mohan2005 wrote: > thank you.

RE: Problem getting GlobalNamingResources DataSource DBCP from Custom JAAS

2008-01-03 Thread Mariano
Thanks for the reply Mark but I think that the problem is from getting JNDI objects out of context, like my case is. Remember I need it to implement a custom JAAS and the same implementation works perfectly on tomcat 5.5.25, but not on tomcat 6.0.14. I searched in bug database and nothing found.