Yikes! Where did 'webapps' go?! (5.0.28)

2004-11-19 Thread Dennis Payne
(Tomcat installed) that used to be there? How can I avoid this in the future? Please help! I have reverted to a previous server to get by now... -Dennis Payne- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [OT] Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Dennis Payne
If you are using a single servlet to determine the course of action and those actions are not mutually exclusive (like using a switch or if...else if structure) then something like this could definitely happen. Check your code... I am sure it is allowing two things to happen at once because it

Re: [HttpSession creation: When How]

2004-11-29 Thread Dennis Payne
You can use the session.invalidate() if you need to before creating a new session (I did not use this approach). With my system, if the session exists we check for required elements and place them there if they are missing. Every thirty minutes the session automatically invalidates. At that

[OT] Re: prevent multiple form posts using only servlets

2004-12-09 Thread Dennis Payne
Use javascript to disable or remove the button. [EMAIL PROTECTED] 12-09-2004 12:12 Is there a way to prevent multiple form posts from the same page/user/session using only servlets? I have a page where users can upload files, but I do not want them to keep smashing the upload button if their

Re: [newbie] Container Managed Security - preventing direct access to .jsp

2004-12-14 Thread Dennis Payne
I have not run into that kind of problem before... typically if you hit a JSP without hitting its controller first you will just get nothing (an HTML screen with no data). when it gets routed back to the controller, it will then register a failure due to lack of data. Problem solved. [EMAIL

Re: JSP expressions are displayed as string

2004-12-13 Thread Dennis Payne
Might also want to check the response and make sure it is sending the right MIME type. Everything worked fine on I.E. but when running Netscape it needed the setting to display properly. Hope this helps... [EMAIL PROTECTED] 12-11-2004 06:33 A few possible reasons - Use a 2.3 DTD in your

Re: Application looping

2004-12-14 Thread Dennis Payne
You could also use 'include' instead of 'forward'. [EMAIL PROTECTED] 12-14-2004 12:06 Hi, I solved the problem by dropping back to 4.1.24. I can't imagine what that had to do with it, but now it works. Jim. Shapira, Yoav wrote: Hi, Two ideas: one, always make sure to return (i.e. a

Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2004-12-21 Thread Dennis Payne
Use cron in Unix/Linux or task scheduler in Windows. [EMAIL PROTECTED] 12-21-2004 08:44 Hi, I am using Tomcat4.1.30 version. I have to develop a client application which looks in the database every 30 minutes, to retrieve the status of an order and send the status to the remote client. Again

Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2004-12-21 Thread Dennis Payne
External scripts really are the best answer for this. It is not possible to 'PUSH' information like this without a dedicated client! [EMAIL PROTECTED] 12-21-2004 10:14 Hi, I'm having a similar problem in my application. I've got several servlets called by the users. Every requets save some

Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2004-12-21 Thread Dennis Payne
It is possible to create a servlet thread in the init() method. That thread sould stay alive and run something every thirty minutes. The issue of pushing information out to the user remins the same. The servlet and the thread cannot do that. On the other hand, it is possible to setup java

Re: JK2 Officially Unsupported - Should I Avoid JK2?

2004-12-23 Thread Dennis Payne
It looks like things regarding a connector are still in flux... probably not time to panic yet. JK2 works. mod_jk works. Choose one. [EMAIL PROTECTED] 12-22-2004 17:03 On November 15th, there was an announcement that JK2 is officially unsupported.

Re: Having a problem when accessing servlets.

2004-12-28 Thread Dennis Payne
Possibly related to deployment versioning. If the entire WAR file is deployed at once I have not had problems, it is usually when I try to Hot Fix a single servlet. Tomcat acts like it is keeping track of the 'version' of the servlet and coughs up a hairball sometimes if it is different.

Re: How to run servlet for every 30 minutes in Tomcat 4.1.30

2004-12-28 Thread Dennis Payne
If you are running Linux or Unix check the syntax for the 'nice' command. [EMAIL PROTECTED] 12-27-2004 18:55 Frank W. Zammetti wrote: It's interesting, Craig and I had an exchange about threads in servlet containers last week... I can't find a link to the thread unfortunately. Anyway, the

Re: Issues with Tomcat on AIX?

2004-12-29 Thread Dennis Payne
You probably did this alread, but might want to check the access permissions for all directories and files involved. That stuff gets messed up pretty easy. The user that Tomcat runs under should be the same user that the JDK was installed with... Might be a complicating factor?? [EMAIL

Re: sessions do not work from homedirs and servlets do not work through apache

2005-01-13 Thread Dennis Payne
My implementation is not as complex as yours, so my suggestion may not work for you... We always use the request object to get access to the session both in the servlet and the JSP (We don't use any specialized JSP tags to do this. We always use putAttribute to put a Serializable object on the

RE: sessions do not work from homedirs and servlets do notwork through apache

2005-01-13 Thread Dennis Payne
I do not see how my session id and data is being lost. By the way my project was working perfectly with tomcat 1.3 but when I upgraded to tomcat 5 is when the session problem started. -Original Message- From: Dennis Payne [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 4:34 PM

Re: JSP/JDBC question

2005-01-20 Thread Dennis Payne
Looks like you put a statement intended for preparation into a regular statement. [EMAIL PROTECTED] 01-19-2005 18:23 I'm getting the following error when my JSP form POSTs: 17:15:23,500 INFO [STDOUT] -SQLException- 17:15:23,500 INFO [STDOUT] SQLState: 42000 17:15:23,500 INFO

Re: Updating running WARs?

2005-02-04 Thread Dennis Payne
Besides 'Hot Patching' (placing an updated class or jsp on the application runtime) I have not found a way to do what you are trying to find. [EMAIL PROTECTED] 02-04-2005 14:15 What's the right way to update a running WAR in Tomcat 5.5? Is there anything resembling the manager's reload

Re: RE : Security Newbie - Need Help

2005-02-10 Thread Dennis Payne
you will not need a roles table for tomcat... it is only useful to your own applications that will edit the data. The system only utilizes the the user-role table and the user-password table (at least for basic authentication). Each servlet in the system that is secure is setup this way and

Re: RE : Security Newbie - Need Help

2005-02-11 Thread Dennis Payne
(Configuration error: Cannot perform access control without an authenticated principal) has been forbidden. Apache Tomcat/5.0.28 Thanks, Luke - Original Message - From: Dennis Payne [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, February 10, 2005 11:23 AM Subject: Re

Re: Session already invalidated

2005-02-15 Thread Dennis Payne
Please send example of code that is creating or getting the session. Thanks Dennis M. Payne Programmer / Analyst Information Systems Management Training Corp. e-mail: [EMAIL PROTECTED] web: http://www.mtctrains.com work: (801) 693-2635 fax: (801) 693-2900 [EMAIL PROTECTED] 02/15/05 9:59 PM