How to make Tomcat reread user's role from database

2003-07-10 Thread Michael Mattox
My website uses a subscription based service, and we're using WorldPay (similar to PayPal I believe) to handle the credit card billing. I've defined roles for each of the subscription levels: trial trial_expired bronze silver gold The problem is when a trial user registers, they become

RE: How to make Tomcat reread user's role from database

2003-07-10 Thread Michael Mattox
If it works as expected, then (Michael M) what you might consider is on the servlet that 'upgrades' the user from trial to 'not trial' invalidate the session, and redirect to a protected page. This would make the container authenticate the user again, meaning the user would need to login

How can I run tomcat on port 8080 and have the users think it's on port 80?

2003-06-06 Thread Michael Mattox
then on. Thanks, Michael Mattox -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify

RE: How can I run tomcat on port 8080 and have the users think it's on port 80?

2003-06-06 Thread Michael Mattox
they see 8080 from then on. Thanks, Michael Mattox -- This E-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies

RE: unable to start tomcat

2003-04-02 Thread Michael Mattox
Have you set your $TOMCAT_HOME variable to the path to tomcat? Hi, I am using Tomcat 3.3.1 and when i start i am getting the following message and the tomcat process is not starting up. ## ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml EmbededTomcat: No configuration

RE: unable to start tomcat

2003-04-02 Thread Michael Mattox
I assume you're using UNIX, try this: echo $TOMCAT_HOME and tell us what the output is. If you're running windows, try: SET TOMCAT_HOME I haven't used Tomcat 3.x in a long time, but it really looks like the TOMCAT_HOME isn't set or the server.xml file isn't in $TOMCAT_HOME/conf Michael

RE: instance names problem will pay $2 for solution

2003-04-02 Thread Michael Mattox
When you create the instances (blue, red, etc.) store them in a hashtable. SomeObject blue = new SomeObject(); ht.put(blue, blue); then: public void callUse(String color) { SomeObject o = ht.get(color); o.use(); } If your instances aren't of the same type, then define an Interface (for

Using JMX with Tomcat - registering my MBean

2003-04-01 Thread Michael Mattox
I've looked at the same code included in the O'Reilly JMX book but it's not a big help because it doesn't give any examples in a servlet container. I've also looked at the SUN RI but it's the same problem. I have a plain old java object that is in my service layer. My Actions call it and it

RE: Using JMX with Tomcat - registering my MBean

2003-04-01 Thread Michael Mattox
Howdy, This will give you a start: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/mbeans-descriptor-howto. html Thanks, this page was a great help. I'm stuck on one thing, what is the Group in the mbeans-descriptors.xml file? I have everything else set but I'm still getting:

RE: Using JMX with Tomcat - registering my MBean

2003-04-01 Thread Michael Mattox
I've narrowed this down to the fact that Tomcat isn't finding my mbeans-descriptor.xml file. I put this in my server.xml file: Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 descriptors=/com/verideon/siteguard/mbean-descriptors.xml/ But I