Re: Knowing the line when the error happen

2005-08-11 Thread Patrick Thomas
Fermin, This information is usually recorded in your log files, or alternately printed into the console window if Tomcat is running in windowed mode (because you manually launched the tomcat5 executable). Look in {Tomcat Home}/logs/ for a file like stdout_20050802.log (stdout_MMDD.log). There

Re: Knowing the line when the error happen

2005-08-11 Thread Patrick Thomas
file. I know that every jsp is translated into a servelt, but, how i can know the exact line of the JSP file ? -Message d'origine- De : Patrick Thomas [mailto:[EMAIL PROTECTED] Envoyé : Jueves, 11 de Agosto de 2005 07:15 p.m. À : Tomcat Users List Objet : Re: Knowing the line

Re: data push

2005-08-11 Thread Patrick Thomas
Darryl, Your remark about POJOs being part of the API prompted me to chime in -- William pretty much gave you the general answer, that Tomcat doesn't seem to be the best way to go for this (because everything is passed via http). I would point out that just as you can serialize/stream objects to

Generic Types support in Tomcat?

2005-08-08 Thread Patrick Thomas
Hi All, Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? I searched release notes, FAQ, etc and found no mention either way. Does some erudite soul have the answer? Secondly, if it's supposed to support it, why then would it have difficulty

Re: Generic Types support in Tomcat?

2005-08-08 Thread Patrick Thomas
Thanks Chuck, I definitely wouldn't have noticed that without the pointer. Oh well, I guess I'll stick to casting and iterators for a few more months ;) On 8/8/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Patrick Thomas [mailto:[EMAIL PROTECTED] Subject: Generic Types support

Re: OutOfMemoryError

2005-08-05 Thread Patrick Thomas
Hi Steve, We're probably going to need a little more context in order to give you any help. Approximately how often does this happen? Have you been able to isolate a particular page or servlet that causes it consistently? What shows up in the log file/console window when it happens? Does it kill

jsp:include params

2005-07-29 Thread Patrick Thomas
Hi All, When jsp:include-ing a page, I see that params from the calling page are also passed on to the called page. Example: caller.jsp: (hypothetically called with param1 = val1) jsp:include page=callee.jsp param name=param2 value=val2 /jsp:include callee.jsp: Sees request variables

Re: symmetric crypt algorithm

2005-07-08 Thread Patrick Thomas
There's a great website out there called google. I'm told that it has answers to lots of questions like this. Try there before asking a lot of busy people to do the looking for you. Good hunting, PST On 7/8/05, Carlos Bracho [EMAIL PROTECTED] wrote: It's a java question more than a tomcat

Re: Offering files for download

2005-06-23 Thread Patrick Thomas
Hi Matthias, I think people will need a little more information in order to help you. How exactly are you creating the links right now? What do you actually want them to look like when served to the user? By itself Tomcat doesn't allow an app to cough up an arbitrary path in the filesystem and

Re: Tomcat and Internet Explorers caching

2005-06-22 Thread Patrick Thomas
Hi Øyvind, This works quite well for me. Place the following magic incantation at the *end* of your JSP. Specifically, place it after the closing body tag, but before the closing html tag. In context it looks like this: /body !-- Hack to disable IE caching -- head meta HTTP-EQUIV=PRAGMA

Re: Tomcat con pooling to Oracle RAC

2005-06-20 Thread Patrick Thomas
Hi Frank, With the caveat that I don't use RAC, it looks like you're doing things right from a JDBC/Tomcat perspective, but I thought I'd bring one point just to clarify for you and any lurkers: JDBC doesn't use TNS at all; it only cares about the host, port and SID as specified in the connection

Re: where can i see log trace logAbandoned

2005-06-20 Thread Patrick Thomas
*bump*... I too would love someone to shed some light on this subject. Cheers, PST On 6/19/05, Anand Vijay [EMAIL PROTECTED] wrote: hi all When i say logAbandoned = true in data-source of struts-config.xml , it still does',nt trace abandoned connection .How can i achieve this and where

Re: email from tomcat

2005-06-14 Thread Patrick Thomas
Hi Jenny, First off, congrats on the internship! Hope you enjoy it. Now, more to the point: you're looking for the JavaMail package. Read about how to use it in Tomcat here (you'll have to become familiar with JNDI, but that's a Good Thing ):

Re: Using Catalina API

2005-06-14 Thread Patrick Thomas
Hi Charl, Dunno about a method call that you'd be able to make, but this may get you half way there: http://localhost:8080/manager/list Straight text response, easy to parse. Now, the catch is, you'll need to be authenticated on the server. Ant has some tools that you may be able to make use

Re: Problem with security?

2005-06-10 Thread Patrick Thomas
Hi Joe, To summarize the point that all of these others folks were making; Tomcat by itself has no way of interrogating the operating system of the connecting machine or noticing through the information that it gets from then browser that the user is a particular person. Tomcat can only tell you

Re: connection pooling oracle

2005-06-06 Thread Patrick Thomas
Brian, What is it that you're looking to accomplish with that cast? It makes it hard for others to respond with suggestions when they don't know what your criteria are. Also, how does it fail when you try it (ie ClassCastException)? Personally, I haven't run into any issues, but I just stick with

Re: context battle?

2005-05-31 Thread Patrick Thomas
and if a context with the same name is defined in a webapp WEB-INF/xml file which would win such a fight? I have a feeling my context defined in /localhost is being overwritten by the app. (I'm fighting with JBuilder 2005 trying to get some JNDI naming stuff to work for my datasources)

Re: context battle?

2005-05-31 Thread Patrick Thomas
, except implicit). Hope that helps! Let me know if I can clarify anything. Cheers, Patrick Thomas (PS - remember to install the jakarta commons and pooling jars mentioned in the dbcp documentation.) On 5/31/05, Aaron Hackney [EMAIL PROTECTED] wrote: I think I may have actually found the answer to my

Re: OT: Software release process

2005-05-26 Thread Patrick Thomas
On 5/26/05, Nathan Smith [EMAIL PROTECTED] wrote: ... trouble free, with 100% certainty that the code we are releasing works, no new bugs have been introduced, and ... Wow... if you figure out how to do that, make sure you write a book. I'll be wanting a copy. ;) ~PST

Re: context example

2005-05-18 Thread Patrick Thomas
Hi Phil, To answer your question directly; no, in 5 you don't need (and shouldn't have) a context entry in the server.xml for a war file (or any webapp for that matter). Assuming the war contains a context.xml file in META-INF, then tomcat will use that one (it will copy it to

Re: Want to run servlets from other directory than webapps

2005-05-11 Thread Patrick Thomas
Hi Rudi, Here's how I do it, and this also seems to be the 'correct' way of doing it with Tomcat5 (as it doesn't mean messing with any container-level files). Into {tomcathome}\conf\Catalina\localhost\ I place a correctly formed context file, for example ApplicationName.xml (very minimal for

Re: tomcat restart?

2005-05-10 Thread Patrick Thomas
Rick, Actually, I believe it might be possible. Ugly, but possible. Using Runtime.getRuntime() to get the current runtime, you can then actually make a call to a shell command. You could call a batch file that would shut down the server and then restart it. What I don't know is if the newly

Re: redirect stdout on tomcat 5.5

2005-04-27 Thread Patrick Thomas
Use a batch file to start tomcat and use the plain old redirect symbol, like so: redirect_tomcat.bat: - tomcat5.exe whateverfileyouwant.log - The other thing you should probably check out is the Logging tab in the tomcat5w.exe app, it seems to

Re: Where is Jakarta's common email jar file

2005-04-22 Thread Patrick Thomas
Lorenzo, I don't know about a jar file, but you can look at the CVS repository for the java files. (Look in src/java/ for the package root) They're packaged, so you could make the jar yourself easily enough. (jar -cvf new jar name files to jar)