What can url-pattern accept?

2008-08-17 Thread Guojun Zhu
Hi, I am usging tomcat 5.5.26 and trying to set up some container security with it. I am using struts 1.2.9 for my project. Basically I have three-type links 1. open to everyone, like the welcome pages. 2. restricted to one type of user role, say A 3. admin part, more restrictive, so for

Re: What can url-pattern accept?

2008-08-17 Thread André Warnier
Guojun Zhu wrote: [...] Unfortunately, it seems that the servlet API allows only this in url-pattern specs : - A string beginning with a / character and ending with a /* suffix is used for path mapping. - A string beginning with a *. prefix is used as an extension mapping. - A string

Re: How to set jvmRoute outside of server.xml

2008-08-17 Thread Rainer Jung
Bill Shaffer schrieb: Hi: I am trying to find a way to set the jvmRoute without putting it in my server.xml. I'm using 6.0.18. I've found a couple of things: The Tomcat config reference System Properties section says I can set it on the java command line with a -DjvmRoute option. This did

Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread Guojun Zhu
you can change the $Catalina.home/conf/Catalina/(your host)/ROOT.xml file to direct to your webapp path instead of the ROOT. On Sun, Aug 17, 2008 at 1:36 PM, flytoarun [EMAIL PROTECTED] wrote: Hi All, I am using tomcat 5 version and my application's default page is

Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread flytoarun
Hi Guojun, I have 2 files under path /apache-tomcat-5.5.25/conf/Catalina/localhost host-manager.xml manager.xml i don't have ROOT.xml. --- On Mon, 8/18/08, Guojun Zhu [EMAIL PROTECTED] wrote: From: Guojun Zhu [EMAIL PROTECTED] Subject: Re: How to change Default URL to point to my

Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread André Warnier
Guojun Zhu wrote: you can change the $Catalina.home/conf/Catalina/(your host)/ROOT.xml file to direct to your webapp path instead of the ROOT. Or, if I have correctly understood many previous posts to this forum, you can delete the ROOT default application and put yours there instead. A guru

Intgrate Tomcat and PHP in winxp

2008-08-17 Thread Radhakrishnavangara
Hi, Could you please let me know the step by step instructions for integrating Tomcat with PHP on Win XP. I have tried implementing various methodologies to integrate the same , but i could not achieve any breakthrough on the same. Below are some of the links to the articles which i have

Does Tomcat 6.0.x support Life Cycle Annotations?

2008-08-17 Thread gotobarry
public class MyBean { @PostConstruct public void initialize() { //init code } @PreDestroy public void shutdown() { //shutdown code | } If so do you have an example? Cheers Barry -- View this message in context:

Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread Ken Bowen
If you are uploading your application (myapp) to Tomcat's webapps folder as a war (myapp.war), do two things: 1. Delete webapps/ROOT ; 2. Rename myapp.war to ROOT.war (case is important), and then upload it to webapps. On Aug 17, 2008, at 2:36 PM, flytoarun wrote: Hi All, I am using

Re: Intgrate Tomcat and PHP in winxp

2008-08-17 Thread Tommy Pham
Hi Radhakrishna, --- On Sun, 8/17/08, Radhakrishnavangara [EMAIL PROTECTED] wrote: From: Radhakrishnavangara [EMAIL PROTECTED] Subject: Intgrate Tomcat and PHP in winxp To: users@tomcat.apache.org Date: Sunday, August 17, 2008, 3:24 PM Hi, Could you please let me know the step by step

Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Tommy Pham
Hi, I'm trying to develop a web app using JDK1.6 and Tomcat 6.0.18 and JPA. When creating a new web app in Netbeans 6.1, I chose the Java EE 5 version. Then I proceed to create Entity Classes from Databases which were successful. If I try to create JSF pages from Entity Classes, I get: The

RE: Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Caldarale, Charles R
From: Tommy Pham [mailto:[EMAIL PROTECTED] Subject: Tomcat 6.0.18 JavaEE 5/EJB3.0 I think it's because of the javaee.jar causing conflict with tomcat's jar files. Correct; you don't want to have javaee.jar (or its predecessor, j2ee.jar) anywhere near Tomcat. You can try to extract the

Re: How to change Default URL to point to my application index.html page

2008-08-17 Thread Guojun Zhu
I am sorry. If there is no ROOT.xml, Tomcat will use the default and you just need to do as Ken said. Or you can create the ROOT.xml in the $Catalina.home/conf/Catalina/(your host)/ROOT.xml. Put Context path= docBase=${catalina.home}/webapps/(your application path)/ in the file. On Sun, Aug

Re: Does Tomcat 6.0.x support Life Cycle Annotations?

2008-08-17 Thread Bill Barker
It doesn't support it for JavaBeans. Only for things like Servlets, Filters, and Listeners. Anyway, there is no way for Tomcat to know when to call @PreDestroy on a Bean, since only the JVM keeps track of who is holding a reference to it. gotobarry [EMAIL PROTECTED] wrote in message

Re: Tomcat Marketing - At last!

2008-08-17 Thread Mark Thomas
Johnny Kewl wrote: I see someone has stuck this up http://wiki.apache.org/tomcat/PoweredBy Someone hasn't been reading the documentation. That page has existed (in one form or another) for well over 4 years. who ever did it... well done, its about time, TC is under marketed... and its

Re: What can url-pattern accept?

2008-08-17 Thread Bill Barker
André Warnier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Guojun Zhu wrote: [...] Unfortunately, it seems that the servlet API allows only this in url-pattern specs : - A string beginning with a / character and ending with a /* suffix is used for path mapping. - A string

Re: Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Bill Barker
Tommy Pham [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I'm trying to develop a web app using JDK1.6 and Tomcat 6.0.18 and JPA. When creating a new web app in Netbeans 6.1, I chose the Java EE 5 version. Then I proceed to create Entity Classes from Databases which were

RE: Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Martin Gainty
doc from JBOSS 4.2.2.GA Tomcat 6 is now bundled as part of JBoss Web. deploy/jbossweb-tomcat55.sar has been replaced by deploy/jboss-web.deployer. (much easier to configure in TC than resin) Martin __ Disclaimer and confidentiality note Everything

Re: Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Johnny Kewl
- Original Message - From: Tommy Pham [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Sunday, August 17, 2008 11:50 PM Subject: Tomcat 6.0.18 JavaEE 5/EJB3.0 Hi, I'm trying to develop a web app using JDK1.6 and Tomcat 6.0.18 and JPA. When creating a new web app in Netbeans

Re: Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Tommy Pham
Hi Johnny, --- On Sun, 8/17/08, Johnny Kewl [EMAIL PROTECTED] wrote: Tommy if you havnt already... have a look at Visual Web Pages... it has the dB wizards and it works with TC. Doesnt use JPA, it uses Cached Rowsets to persist... which are actually easier to understand, I think ;)

Re: Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Johnny Kewl
- Original Message - From: Tommy Pham [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, August 18, 2008 4:29 AM Subject: Re: Tomcat 6.0.18 JavaEE 5/EJB3.0 Hi Johnny, --- On Sun, 8/17/08, Johnny Kewl [EMAIL PROTECTED] wrote: Tommy if you havnt

how to populate database with SHA hash for DIGEST

2008-08-17 Thread DIGLLOYD INC
How to produce the hashed password when using auth-method DIGEST ? Everything works with cleartext passwords using the following login- config in web.xml: login-config auth-methodDIGEST/auth-method realm-nameDIGLLOYD.COM/realm-name /login-config and in context.xml:

Re: Tomcat 6.0.18 JavaEE 5/EJB3.0

2008-08-17 Thread Tommy Pham
--- On Sun, 8/17/08, Johnny Kewl [EMAIL PROTECTED] wrote: Tommy I actually have my own persist framework... but just having a quick squiz at that, that problem is just a normal Java thing... ie type conversions can be a little tricky... int and Integer are not the same thing in Java...

Re: Does Tomcat 6.0.x support Life Cycle Annotations?

2008-08-17 Thread gotobarry
Thanks. What if it is a JSF Managed Bean? Wouldn't TC be responsible for lifecycle mgmt? Bill Barker-2 wrote: It doesn't support it for JavaBeans. Only for things like Servlets, Filters, and Listeners. Anyway, there is no way for Tomcat to know when to call @PreDestroy on a Bean,