RE: PLZ HELP Administration TC 4.0.3
Some people forget what they did not know at one point. Please forgive them. You may not realize that CATALINA_HOME, etc. are variables covering certain urls. I remember when I did not as well. On the context stuff, the only real way to understand this, because no one will really tell you or give you adequate examples, is to go to the Tomcat code and see how the code is written. After asking and trying to get help many times, that is what I did. It takes a bit, but then you have a solid understanding of the Tomcat architecture. Hope this helps. Micael At 01:38 PM 5/19/02 -0700, you wrote: ALSO READ THE Tomcat docs before posting questions like this here!!! -Original Message- From: Felipe R. Lorenzo VI [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 1:54 AM To: Tomcat Users List Subject: Re: PLZ HELP Administration TC 4.0.3 Please read $CATALINA_HOME/bin/catalina.sh or %CATALINA_HOME%/bin/catalina.bat. it describe in details their meaning frlvi 5/19/02 10:41:50 AM, puneet sachar [EMAIL PROTECTED] wrote: Listen i got few peoblem in administrating Tomcat 4.0.3 Can u help me ...plz guide me .. Here follows the queries 1) Difference b/w Tomcat_HOME and CATALINA_HOME and CATALINA_BASE ? 1.1)IS CATALINA_BASE is something related to different context in a single container? 2)what is ANT_HOME ? 2.1) Do we have to install something additional to tomcat ? (apart jdk.13.x series) 2.2) What are u doing at ur place with Tomact 3.x series ? 3) where is httpd.conf/tomcat.conf file ? 4) Where to add new context in tomcat? 5) what to write in build.xml and it is needed to amend that file? what exactly this build.xml file do? is it necessary to have web.xml in each context and what its function? 6) LIKE expample directory in webapps i want to have my own context ..as i don't want to keep my files in root directory directly and i want to have different packages and what i'll do if i want to comunicate b/w the 2 context. (i tried by making common .jar file and tell u its not working ) Regards Puneet Sachar __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: PLZ HELP Administration TC 4.0.3
Micael Padraig Og mac Grene wrote: Some people forget what they did not know at one point. Please forgive them. While this is fair enough, its also fair that there's a level of frustration with people who clearly haven't read the docs. There's a good example in there of how to set up Tomcat and your first webapp using ant and giving example code. Why repeat it over and over again on this list? I certainly remember when I first used Tomcat last year. I read install guide, got it running, read the docs from there - ALL OF THEM. Funny how after that I didn't feel much need to post to the list. You may not realize that CATALINA_HOME, etc. are variables covering certain urls. I remember when I did not as well. Just to make sure you don't confuse the original poster... what does CATALINA_HOME have to do with URLs? On the context stuff, the only real way to understand this, because no one will really tell you or give you adequate examples, is to go to the Tomcat code and see how the code is written. After asking and trying to get help many times, that is what I did. It takes a bit, but then you have a solid understanding of the Tomcat architecture. That's a rather inflammatory and incorrect statement. The documentation is just fine - and if its not good enough for you, you are welcome to amend it. The example I gave above explains all this - going to the code isn't going to be very helpful if you aren't even at the level of starting the server and deploying a webapp. Anyway... Mondays suck. Cheers, Brett -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AJP13Connector source and javadoc
Hi All, I downloaded tomcat and tomcat source as well and I dont see the AJP13Connector as part of the tomcat source nor can I see the java docs for the same. I am planning to use the AJP13Connector in my embedded tomcat - so I am looking for the javadoc. Can somebody point me to it? Also has anybody used the WARP connector with IIS, if so can somebody point me config instructions? Thanx Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Session JDBC
Hi wiwi .. there r many ways u can handle this situation ... 1) From u'r login page u can send the username and password to a jsp file , which will authenticate the user checking the values from the database .If the user is present u can just forward the page to next JSP ar Servlet Eg : jsp:forward page=/FileName.jsp / for JSP or Eg : jsp:forward page=/servlet/FileName / for Servlets in that servlet or jsp u can initialise a session that will work dedicated to that user throught his login period !!! just add this scriplet before the body tag to have session=true %@ page language=java import=java.sql.* session=true% i can send the option with doing the same stuff purly with servlets also but because of lack of time i'll send it only if u r not satisfied with the present solution !!! do let me know Vishal Gupta Vishal Gupta Software Analyst ABL Technologies India Ph 91-11-3546203 91-11-3546204 91-11-3626315 * - Original Message - From: Wiwi Wiwi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 20, 2002 8:08 AM Subject: Session JDBC Hi all. Can somebody point me some guides on my project. Now, I'm trying to do a login page for my client, and I wish to do some session once the login is successfully. However, I don't know where should my login page forward to? Is it straight away forward to servlet to create a session and validate the user within a servlet? Or, use some Java Bean to create a JDBC connectivity, and on the other hand, create a servlet to handle session? By the way, can anyone guides me on what method(servlet or bean) to be used to create the validation on the user login and create the session for the user? Thanks. regards, wiwi. _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi
BDY.RTF Description: RTF file
Re: IIS 5.0 Tomcat4.0.3 on different machines?? HowTo??
Elizabeth Barham wrote: I was wondering how to go about doing this myself and found it mentioned on jguru's tomcat faq: http://www.jguru.com/faq/home.jsp?topic=Tomcat It was a few pages over, though. I do not have a IIS machine and have not tried this, but from my understanding, when Tomcat and IIS are running on the same machine, the ISAPI configuration references localhost (the same machine). When Tomcat is on another machine, you would reference the name of the other machine in place of localhost. Of course, you'll need to make sure IIS is using the correct DNS for looking up the machine on your intranet. Elizabeth --- [EMAIL PROTECTED] wrote: IIS Tomcat runs good when they are on the same machine. I can run jsp, servlets ... and IsapiRedirector is good. But I want to pass IIs on an other computer (located on the LAN). How can I do that?? When I install Isapi Redirect the arrow is red. When I create virtual directories (which are pointed on tomcat machine) I have the red icon error in front of them. I don't know why. This is because IIS cannot find the directory on local filesystem. Where can I put isapi_redirect? on IIs machine? Does somebody know where I can find a tutorial to do that? Thanks __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Umberto Nicoletti - [EMAIL PROTECTED] | [EMAIL PROTECTED] Tel. 049-8239380 (assistenza) We'll try to make different mistakes this time. - Larry Wall -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JDBCRealm and Oracle Not working
Hi, You must put the jdbc driver in a place where tomcat can find it. As of my experience a suitable place is TOMCAT_HOME/lib or common/lib (or something like that). Regards, umberto Chad Perry wrote: Trying to get Oracle 8i to work with with the JDBCRealm: Tomcat 4.0.4b3 JDK 1.4.0 OS Win2000 Server I guess tomcat-JDBCRealm doesn't work with Oracle? It would be AWESOME if I could get this to work! Could somebody verify that I'm not dorking out? Thanks!! Here is my Realm element: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@192.168.0.10:1521:TestDB connectionName=X connectionPassword=X userTable=GOLDEN.APP_USER userNameCol=USER_NAME userCredCol=PASSWORD_TXT userRoleTable=GOLDEN.APP_ROLE roleNameCol=ROLE_NAME/ EXCEPTION BELOW - Occurs on Start up: Starting service Tomcat-Standalone Apache Tomcat/4.0.4-b3 Starting service Tomcat-Apache Apache Tomcat/4.0.4-b3 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driv er.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) MISC RESEARCH: The bug report belows makes me think this is still an issue even in Apache Tomcat/4.0.4-b3: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5660 _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Umberto Nicoletti - [EMAIL PROTECTED] | [EMAIL PROTECTED] Tel. 049-8239380 (assistenza) We'll try to make different mistakes this time. - Larry Wall -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Hi
Hi . If U'r hitting a servlet then in the actionline u have to specify action=/servlet/filename i think u'r only giving action=/filename cos as u have written everything seems right ... the files r in the right directory eg: classes just check if u'r using /servlet/filename Vishal Gupta Software Analyst ABL Technologies India Ph 91-11-3546203 91-11-3546204 91-11-3626315 * - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, May 20, 2002 1:08 PM Subject: Hi Hi man, Here again I have a doubt in hitting a servlet.I have a simple servlet where iam keeping that in C:\jwsdp-1_0-ea2\webapps\ROOT\WEB-INF\classes folder, I have put both .java .class file in classes dir. When iam trying to hit , its giving me... HTTP Status 404 - /One type Status report message /One description The requested resource (/One) is not available. Java Web Services Developer Pack/1.0-ea2 Please tell me how to hit it thanks Regards SivaPrasad. g Orbitech Solutions limited [EMAIL PROTECTED] 091-44-8586231 Extn- 4593 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where do I put the oracle jdbc driver?
Hi, Drop the driver into $TOMCAT_HOME/common/lib then all apps will be able to use it. --g On Sunday 19 May 2002 18:07, you wrote: I have problems making Tomcat find the jdbcdriver which i downloaded from Oracle. I have put the driver (classes12.zip) into $JAVA_HOME/lib and renamed it classes12.jar. In /etc/profile I have added: CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/classes12.jar; export CLASSPATH My system config is: RedHat 7.3 jdk1.4.0 Oracle 9.0.1 Tomcat 4.0.3 I have tried putting classes12.jar in $TOMCAT_HOME/lib, but with the same amount of success... Anyone who can help me out on this one? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
J2EE
hi, This quiestion may look very dumb, but still i want to know , What is this J2EE consists of?? What are the things which this Technology covers?? WHen can u say that ur application is built on J2EE technology ??? Thanks in advance SKN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: J2EE
You might find an answer here: http://www.tuxedo.org/~esr/faqs/smart-questions.html#BEFORE -Original Message- From: Sudhir Kumar [mailto:[EMAIL PROTECTED]] Sent: 20 May 2002 16:47 To: 'Tomcat Users List' Subject: J2EE hi, This quiestion may look very dumb, but still i want to know , What is this J2EE consists of?? What are the things which this Technology covers?? WHen can u say that ur application is built on J2EE technology ??? Thanks in advance SKN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
batch file
hi, i have a an application which runs when i click on a batch file. But my problem is, once i click on the batch file and the application starts running, the user can come back and click on this batch file again to create another instance of this application. How can i stop this ?? Thanks in advance. SKN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: init() help?
Hi, Jason. Saturday, May 18, 2002, 1:19:08 PM, you wrote: JE Hi Serge, JE I found your discussion re servlet init() and was wondering if JE you ever found an answer. I have EXACTLY the same problem. JE what did you do to fix this? I guessed the next thing: If I use catalina *not* in standalone mode, but as apache module - I'll have a problem with double initialization when I'll simultaneously use apache WebAppDeply directive and server.xml Context. So, Context directive will force init() at catalina startup, and WebAppDeploy directive will force init() **again** at first user http request to application. To avoid this behavior I've removed Context directive. Though, in this case, the application initialization will not be performed instantly at start, it will be performed once. Best regards! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: batch file
use some lock for example, if you are using windows, write at the top of batch file if exists lock goto alreadyrunning echo 1 lock -- do your work here -- del lock goto end :alreadyrunning echo application is already running :end -Original Message- From: Sudhir Kumar [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 3:52 PM To: 'Tomcat Users List' Subject: batch file hi, i have a an application which runs when i click on a batch file. But my problem is, once i click on the batch file and the application starts running, the user can come back and click on this batch file again to create another instance of this application. How can i stop this ?? Thanks in advance. SKN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3.1 and additionalJars
That's basically correct. The jar is added to the web application's classloader classpath. The web application's classloader is switched in as the context class during request handling for that context. Larry -Original Message- From: Mario Felarca [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 12:23 PM To: TomcatUser Subject: RE: Tomcat 3.3.1 and additionalJars Date: Fri, 17 May 2002 12:30:33 -0400 Both of those should work. There could be some classloader issue involved. Can you provide a test case of what you are trying to do? Cheers, Larry So the base case I am trying is simply allowing access to the jdom.jar from my webapps. This is to simply test that the additionalJars property is working. Actually, I just thought of something. The additionalJars value simply adds to the context classloader's classpath? It would not affect the other loaders such as apps and common? Is that a correct statement? Thanks in advance. Mario- __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: J2EE
Sudhir Kumar wrote: hi, This quiestion may look very dumb, but still i want to know , What is this J2EE consists of?? What are the things which this Technology covers?? WHen can u say that ur application is built on J2EE technology ??? Thanks in advance SKN http://java.sun.com/j2ee/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3 as a service
The C-runtime routine used for processing the individual settings doesn't support quotes. You have to add the appropriate quotes in the wrapper.cmd_line setting. This has already been done in Tomcat 3.3.1. Unfortunately, the handling doesn't deal with substituting empty parameters. As a result, an improvement to this file in Tomcat 3.3.1 causes a problem. See: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3.1/bin/win32/i386/ for details on dealing with this problem. Cheers, Larry -Original Message- From: Dave Swift [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 5:53 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.3 as a service Importance: High Hi, I trying to follow the instructions for installing Tomcat 3.3 as an NT Service on an NT Server 4 SP6A system. I'm encountering a problem with I think relates to my syntax in the wrapper.properties file, as the installation directory for my tomcat has a space in it. I originally coded the two key definitions in the wrapper.properties file as :- wrapper.tomcat_home=G:\Apache Group\jakarta-tomcat-3.3 wrapper.java_home=g:\jdk1.3.1_02 As this is where I have installed the Tomcat and JDK code respectively. When I try to start the tomcat service, I get 'Tomcat Failed to start', and in the jvm.stderr file in the logs directory, I have the message :- java.lang.NoClassDefFoundError: Group\jakarta-tomcat-3/3\lib\tomcat/jar Exception in thread main From this I deduced, possibly erroneously, that the space in the directory path for Tomcat was causing the problem. However, I have tried every combination of quotes I can think of to enclose the tomcat_home directory, and they all lead to a Tomcat Failed To Start message, and this time no logs either. Can you help me with the coding of wrapper.properties to get this to work ? I tried searching on the jakarta site and the general web I didn't find anything that helped. The only worked examples of a wrapper.properties file I found all used directory names with no spaces in them. I guess I could start again by uninstalling tomcat and all my webapps and install tomcat in a directory with no spaces, but I would really rather not.. Needless to say, everything works just fine running the startup.bat file, but I would prefer to run this as a service, as it makes the system bootup automation easier, as I can establish dependencies between services, and also monitoring is easier for services. Cheers, Dave S. Senior I.T. Specialist - Systems Network Management, EMEA ATS-PIC Tivoli Unit E-Mail IdsInternet: [EMAIL PROTECTED] Internal: SWIFTDS@IBMGB Phone +44 (0) 1962-817087 (DDI), Mobile +44 (0) 772-0411-717, Fax +44 (0) 1962-818191 *** * QUALITY Means never having to say you're sorry * *** -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Doubts on SSL configuration.???
HI All, I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot of search i am still not able to find some useful documentation for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL). My application needs to handle both HTTP and HTTPS. Few modules in the application needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application to run on this server with Tomcat 3.2.2. My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? Thanks in advance for all your help. Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: redirection from a custom tag
Is there something I can do to prevent the jsp from trying to release the pageContext? Isn't it just fair that it does so? You are, after all, moving out of scope from the first (containing the tag) page's point of view ... Yours, Haakon Hansen Norway -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: which version ?
-Original Message- From: Paul Balanoiu [mailto:[EMAIL PROTECTED]] Sent: 17 May 2001 15:32 To: Tomcat Users List Subject: Re: which version ? It's not about using Tomcat 4.0.3 or 4.1. I always preffer to develop with the latest version of the product (no matter which). Even more, I try to port (if there are any changes) my code to the latest version as soon as possible. This way I prevent future problems (it's easier to require a newer version of a product to someone that uses your code, than to tell him that you don't support the new version he already has). Paul Paul Thanks for the explanation - makes sense to me. I re-read my post and realised how much it sounded like flame-bait - apologies for that...! Cheers John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JDBCRealm and Oracle Not working
By default the drvier (classes12_01.jar) is placed in Apache Tomcat 4.0\lib. I can connect to Oracle just fine in a JSP or servlet! It is the JDBCRealm functionality that is broken. :-( -Late From: Umberto Nicoletti [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBCRealm and Oracle Not working Date: Mon, 20 May 2002 09:40:53 +0200 MIME-Version: 1.0 Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id MHotMailBEB1F421001340043721C0123183E4A90; Mon, 20 May 2002 00:43:34 -0700 Received: (qmail 5127 invoked by uid 97); 20 May 2002 07:43:22 - Received: (qmail 5115 invoked by uid 98); 20 May 2002 07:43:22 - From tomcat-user-return-20073-chadhperry Mon, 20 May 2002 00:45:26 -0700 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: [EMAIL PROTECTED] X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en References: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, You must put the jdbc driver in a place where tomcat can find it. As of my experience a suitable place is TOMCAT_HOME/lib or common/lib (or something like that). Regards, umberto Chad Perry wrote: Trying to get Oracle 8i to work with with the JDBCRealm: Tomcat 4.0.4b3 JDK 1.4.0 OS Win2000 Server I guess tomcat-JDBCRealm doesn't work with Oracle? It would be AWESOME if I could get this to work! Could somebody verify that I'm not dorking out? Thanks!! Here is my Realm element: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@192.168.0.10:1521:TestDB connectionName=X connectionPassword=X userTable=GOLDEN.APP_USER userNameCol=USER_NAME userCredCol=PASSWORD_TXT userRoleTable=GOLDEN.APP_ROLE roleNameCol=ROLE_NAME/ EXCEPTION BELOW - Occurs on Start up: Starting service Tomcat-Standalone Apache Tomcat/4.0.4-b3 Starting service Tomcat-Apache Apache Tomcat/4.0.4-b3 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driv er.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
RE: Tomcat 4 clears login parameters?
Craig, Thanks for the response. Yes, I agree that our use of parameters to determine the state of the login page wasn't portable, etc., but it did have the advantage of working reliably (on Tomcat 3.x). Unfortunately the use of the standard browser tags for no-cache, expiration, etc. don't seem to work reliably at all. Even IE6 doesn't work right. MS has a couple of pages on this, but their suggestions doesn't work either. With the large number of people who want this you would think it shouldn't be hard for the browsers to make the tags work. Can Tomcat help avoid this problem by putting up the form-based login page in its own window without any controls on it (like basic auth does)? Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 12:34 PM To: Tomcat Users List Subject: Re: Tomcat 4 clears login parameters? On Sat, 18 May 2002, Lawlor, Frank wrote: Date: Sat, 18 May 2002 01:00:11 -0500 From: Lawlor, Frank [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat (E-mail)' [EMAIL PROTECTED] Subject: Tomcat 4 clears login parameters? One problem that Tomcat web apps have is that the login page remains in the browser history and if the user navigates to one of these and tries to use it, they get a rather incomprehensible result. In Tomcat 3.x we had a good solution (the only one I have been able to find anywhere) which depends upon setting a parameter to indicate that the page has been used (this is used by JavaScript) to write Page invalidated or whatever you want). Unfortunately Tomcat 4.x seems to clear all the parameters. I suppose there may be some good security reason for clearing the username and password, but can't it leave other parameters alone? Storing the username and password (from a form-based login) as attributes visible to the application was a very poor design decision in 3.3. You have unfortunately gotten yourself dependent on a container-specific implementation detail that isn't portable to anywhere else (even to other Tomcat versions). You should put the appropriate HTML meta tags at the top of your login page to tell the browser not to cache the data -- that way, the user will get an expired error if they try to resubmit it, the same as you could do on any other form in the app when you want to avoid resubmits. Thanks, Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Building Tomcat 4.0.3
Im trying to build Tomcat 4.0.3, and following the instructions I reached a step that says I need to download the JMX 1.1 Maintenance Release Instrumentation and Agent Reference Implementation Binary from Sun, thru the link http://java.sun.com/products/JavaManagement/download.html After logging in the system, the zip file is not found. Could anyone send me the zip file? Thanks, Pablo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Where do I put the oracle jdbc driver?
mandag 20. mai 2002, 03:18, skrev Jack Hermanto: Put it on - $TOMCAT_HOME/server/lib if you need the JDBC available only for tomcat server. - $TOMCAT_HOME/common/lib if you need JDBC available for both server and application. Notes: Tomcat class loader only recognize .jar file, so rename the JDBC's extension to .jar. Thanks for your response, but it didn't help me getting Tomcat to find the jdbc drivers I downloaded and installed the 9i drivers from Oracle. Trying to connect to a mysql database having its jdbc drivers in the same directory as the oracle drivers works like it is supposed to... I will try the oracle 8.1.7 drivers and use the patch to make them work on 9i. Anyone with suggestions on what migth be the problem with my configuration? -- regards, Tore Skogly -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Doubts on SSL configuration.???
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html I'm not sure if you've found this article or not. On first run-through it appears to be the Idiot's Guide to SSL, but I am still having problems. I configured my Tomcat exactly like it is explained and now I get a java.lang.IllegalStateException error when I start TomCat. I have no idea why SSL would cause this type of exception. Anyway, maybe this article will help you more than me. Basically, as you probably know, you create a new port that allows for SSL. You can force any context in your application to use this port by prefixing the URL with https...the How TO explains it like this... Any page within an application can be requested over a secure socket by simply prefixing the address with https: instead of http:. Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. probably not the detail you need I would love to hear from anyone out there who has successfully gotten SSL running to assist Rajesh and I. I am kind of frustrated by what seems to be a simple task. --Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:02 AM To: [EMAIL PROTECTED] Subject: Doubts on SSL configuration.??? HI All, I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot of search i am still not able to find some useful documentation for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL). My application needs to handle both HTTP and HTTPS. Few modules in the application needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application to run on this server with Tomcat 3.2.2. My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? Thanks in advance for all your help. Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDBCRealm and Oracle Not working
-Original Message- From: Chad Perry [mailto:[EMAIL PROTECTED]] Sent: 20 May 2002 15:22 To: [EMAIL PROTECTED] Subject: Re: JDBCRealm and Oracle Not working By default the drvier (classes12_01.jar) is placed in Apache Tomcat 4.0\lib. I can connect to Oracle just fine in a JSP or servlet! It is the JDBCRealm functionality that is broken. :-( -Late Chad Tomcat 4.0.4b3? I don't think JDBC Realm is broken (with Oracle 8.1.7) - I think I've had it up and running, though I'll need to check - I've been swapping various recent Tomcat's around recently (and I didn't hang around 4.0.4b3 long before moving to 4.1alpha...wanderlust I guess ;) Certainly JDBC Realm works with earlier versions, so I'd be surprised if it was broken. Sorry if this muddies rather than clarifies... John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
unable to serve static pages through apache web server (Tomcat 4.0 - Apache using AJP connector)
Hello, I have installed Apache web server (Apache/1.3.24 (Win32) mod_jk/1.1.0) with Tomcat as servlet engine (Apache Tomcat/4.0.3) to serve my application. I am using AJP connector to integrate tomcat with apache installation. Now regarding my problem, all my requests for static content (gifs, html files) as well as for servlets in webapp folder end up getting served by tomcat (i.e. when I type url http://localhost:8090/app1/test.html , where localhost:8090 stands for apache web server and app1 for the webapp folder for app1, I see test.html which is served by tomcat). Is it possible for apache web server to load static pages and for tomcat to serve only the servlets? Reason I want to load static pages via apache is that tomcat is case sensitive even for the static pages. If I type http://localhost:8090/app1/test.HTml , I get page not found error (and the error is served by tomcat). And in earlier versions of apache/tomcat setup, the static pages were served by apache instead of tomcat. Question is how can the page now be loaded via apache web server? Is there a way of configuring apache to serve static pages even in app1 folder / application? Or do I need to make any correction to my configuration? regards Paresh Plaese find attached : 1 server.xml 2 httpd.conf 3 auto generated mod_jk.conf server.xml configuration is as follows: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Engine className=org.apache.catalina.core.StandardEngine name=localhost appBase=c:/program files/APPBASE/ debug=4 Host name=localhost debug=4 appBase=c:/program files/APPBASE/ unpackWARs=false Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / Context path=/app1 docBase=c:/program files/APPBASE/app1 debug=4 reloadable=true/ /Host Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server *** AJP Connector related data in httpd.conf configuration is as follows : ## ## ServerName localhost ## ## ## ## ## Port 8090 ## ## ## Alias /app1 c:/program files/APPBASE/app1/ AliasMatch ^/[Aa][Pp][Pp][1]/(.*) c:/program files/APPBASE/app1/ ## AJP CONFIGURATION END LoadModule jk_module libexec/mod_jk.dll # Configure mod_jk JkWorkersFile C:/Program Files/Apache Tomcat 4.0/conf/jk/workers.properties JkLogFile C:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log JkLogLevel debug JkMount /servlet/* ajp13 JkMount /app1/servlet/com.trivium.cis.* ajp13 Include C:/Program Files/Apache Tomcat 4.0/conf/auto/mod_jk.conf ## AJP CONFIGURATION END Here is auto generated mod_jk.conf file : * VirtualHost localhost ServerName localhost JkMount /app1 ajp13 JkMount /app1/* ajp13 /VirtualHost ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What methodologies/systems/practices do you use?
Howdy. I'm looking for one or more guide documents for JSP/Servlet/? development for doing web applications. Specifically, I'm hoping to find some best practices for doing modern web application development using production quality (not bleeding edge) technologies. For example, right now I generally follow the Model-2 practice (JSPs, JavaBeans, and Servlets), using JDBC with some db connection pool objects I found on the web. However, I feel like I'm reinventing lots of wheels (I especially dislike manual form development.) On the other hand, I took a cursory look at Turbine (for example), but I found it to be too complex to interest me. I have fiddled with Zope, peeked at OpenACS, fumbled with ColdFusion, and even (gasp!) considered ASP.NET. At this point I don't care what language or technology. I am willing to dig deep, but I'd like some idea in advance so I hopefully don't invest a lot of time into something I'll throw away. If this helps, here are the things I need. o I need robust forms (server, and optionally also client side validation of fields) o Transactional, pooled database access o User/form access security o As a bonus, it would be super nifty if I could find a system that would allow me to train a less technical (non-programmer) to develop and test database-backed forms. (This person currently is experienced doing MS Access forms.) If this is the wrong forum for this kind of discussion, my apologies. In my work (mostly contract), I usually find myself working solo on a project, or being the only person in the company doing development, so I don't have any peers to discuss these topics with. Much thanks, Michael Teter __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mod WEB_APP
Hello, Does anyone here has the mod_webapp compiled for Solaris 8, using the GCC? Can someone help me out? Regards Rui Oliveira -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Calendar in XML/java script
Hi All I want a help. Iam using Apache, tomcat 4.0.3 and struts on windows NT In my project i need to display a calendar and user can select any date and i need to display that on my web page. Is there any software already existing for this in XML/Java script. If so please any body point to that. Any help is very much appreciated. Thanks Uma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: Calendar in XML/java script
Uma, Try this link: http://www.scriptsearch.com/JavaScript/Scripts/Calendars/ Andy Christian Avaya Inc. 732-271-2399 -Original Message- From: Uma Munugala [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 1:22 PM To: '[EMAIL PROTECTED]' Subject:Calendar in XML/java script Hi All I want a help. Iam using Apache, tomcat 4.0.3 and struts on windows NT In my project i need to display a calendar and user can select any date and i need to display that on my web page. Is there any software already existing for this in XML/Java script. If so please any body point to that. Any help is very much appreciated. Thanks Uma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What methodologies/systems/practices do you use?
Hello Michael, Check out http://barracuda.enhydra.org/cvs_source/Barracuda/index_details.html I am a developer of Barracuda and can tell you that it is a fantastic way to develop servlets based on Model 2. It is actually inspired by the way Swing apps work. It uses Components to deal with the interface which, underneath everything, use the DOM to manipulate the presentation layer. Currently, XMLC is used to create the DOM presentation. Because of this, you can write pages in 100% HTML with no deviations from the HTML 4.0.1 Strict specification for your presentation layer. This sure beats JSP where Java code and Markup are mixed because it lets your page designers be designers and coders be coders. This presentation layer ends up acting as your storyboard as well since they are pure HTML + css + javascript. For your coders, Barracuda has a robust Event model, Form mapping Framework, and Component model. Barracuda is less concerned with things like database pooling, but there are so many packages out there that provide you with this functionality, why rewrite it? Barracuda is a Presentation Framework and doesn't get in the way of using anything else with it. You could use Struts right along-side if you wanted to. It gives you great flexibility because it provides functionality without locking you into any specific way of doing development. All of this runs in any Servlet 2.2+ compliant servlet engine such as Tomcat-3.3.x or Tomcat-4.x.x. There are lots of details I left out, but there are lots of docs that can fill in the blanks. We will be releasing version 1.0.3 sometime within the next week or so. If you want to play with it in the mean-time, I suggest grabbing the latest CVS source. It is very stable...probably more so than an actual release that we have so far. Check it out! Jake Monday, May 20, 2002, 10:23:09 AM, you wrote: MT Howdy. MT I'm looking for one or more guide documents for MT JSP/Servlet/? development for doing web applications. MT Specifically, I'm hoping to find some best practices MT for doing modern web application development using MT production quality (not bleeding edge) technologies. MT For example, right now I generally follow the Model-2 MT practice (JSPs, JavaBeans, and Servlets), using JDBC MT with some db connection pool objects I found on the MT web. However, I feel like I'm reinventing lots of MT wheels (I especially dislike manual form development.) MT On the other hand, I took a cursory look at Turbine MT (for example), but I found it to be too complex to MT interest me. I have fiddled with Zope, peeked at MT OpenACS, fumbled with ColdFusion, and even (gasp!) MT considered ASP.NET. At this point I don't care what MT language or technology. MT I am willing to dig deep, but I'd like some idea in MT advance so I hopefully don't invest a lot of time into MT something I'll throw away. MT If this helps, here are the things I need. MT o I need robust forms (server, and optionally also MT client side validation of fields) MT o Transactional, pooled database access MT o User/form access security MT o As a bonus, it would be super nifty if I could find MT a system that would allow me to train a less technical MT (non-programmer) to develop and test database-backed MT forms. (This person currently is experienced doing MS MT Access forms.) MT If this is the wrong forum for this kind of MT discussion, my apologies. In my work (mostly MT contract), I usually find myself working solo on a MT project, or being the only person in the company doing MT development, so I don't have any peers to discuss MT these topics with. MT Much thanks, MT Michael Teter MT __ MT Do You Yahoo!? MT LAUNCH - Your Yahoo! Music Experience MT http://launch.yahoo.com MT -- MT To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] MT For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to specify the webappdeploy for tomcat root context
Hi, I am using Tomcat 4.0.3 and Apache web server 1.3.24(Linux version) and would like to ask apache server to forward request to tomcat's ROOT context. Here is the difficulty I run into. In tomcat server.xml, path is specified as the tomcat's ROOT context path. Context path= docBase=ROOT debug=0 reloadable=true / But in my apache httpd.conf file, is not an acceptable path in webappdeploy directive, WebAppDeploy ROOT warpConnection ## invalid here. I've also tried to use / as tomcat's ROOT context path, but tomcat fails to identify it as ROOT context. TIA Xiaoyu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3.1 and additionalJars
From: Larry Isaacs [EMAIL PROTECTED] That's basically correct. The jar is added to the web application's classloader classpath. The web application's classloader is switched in as the context class during request handling for that context. Larry Ok, I just wanted to make sure of that. So I have my context classes in a jar that reside under my docBase/WEB-INF/lib directory. I place the shared jdom.jar under the Tomcat/lib/container directory, and in my server.conf file I make the following changes to LoaderInterceptor11. additionalJars=jdom.jar jarSeparator=; When I start tomcat up, it starts to load my context which has a couple of LoadOnStartup specified servlets. This servlets fail to load with a NoClassDefFound Exception because the context can't find org/jdom/JDOMException. Can you think of anything else I can try or do in order to make the additionalJars property work? I feel like this should work and that this feature should be doing exactly what I want it to be doing, unfortunately I have yet to see it function. Thanks in advance, Mario- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection Pool Configuration
Look at poolman, there's really not a need to re-invent the wheel... --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: D Watson [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 8:58 AM To: Tomcat Users List Subject: Connection Pool Configuration Hello All I have been trying to implement connection pooling for some time now. I have read the documentation as well as umpteen messages on the list dealing with this subject. I have been unable to get it to work and I am not sure what I am missing. Could someone please post an example configuration (with an explanation of each line) or point me to some kind of newbie-ish walk-through? I am using DB2 under RH Linux 7.1 and Tomcat4.0 on W2K and want to connect to the datasource using JNDI. Thanks!! D Watson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Calendar in XML/java script
Hi, I've done one using one JSP page with a bean, one Servlet and some JavaScript/DHTML. If you want it, let me know and I'll send it to you, with the source code and necessary how-tos. Cheers, Paul From: Uma Munugala [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Calendar in XML/java script Date: Mon, 20 May 2002 13:22:12 -0400 Hi All I want a help. Iam using Apache, tomcat 4.0.3 and struts on windows NT In my project i need to display a calendar and user can select any date and i need to display that on my web page. Is there any software already existing for this in XML/Java script. If so please any body point to that. Any help is very much appreciated. Thanks Uma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What methodologies/systems/practices do you use?
Michael, There are a wide range of frameworks available which address some or all of the issues you have listed below. I am currently spearheading a project called Wafer which is an attempt to analyze and compare each of these frameworks. At the very least you can use the list of frameworks as a starting point for your own research. The address is http://wafer.sf.net/ . Sincerely, Anthony Eden -Original Message- From: Michael Teter [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:23 AM To: [EMAIL PROTECTED] Subject: What methodologies/systems/practices do you use? Howdy. I'm looking for one or more guide documents for JSP/Servlet/? development for doing web applications. Specifically, I'm hoping to find some best practices for doing modern web application development using production quality (not bleeding edge) technologies. For example, right now I generally follow the Model-2 practice (JSPs, JavaBeans, and Servlets), using JDBC with some db connection pool objects I found on the web. However, I feel like I'm reinventing lots of wheels (I especially dislike manual form development.) On the other hand, I took a cursory look at Turbine (for example), but I found it to be too complex to interest me. I have fiddled with Zope, peeked at OpenACS, fumbled with ColdFusion, and even (gasp!) considered ASP.NET. At this point I don't care what language or technology. I am willing to dig deep, but I'd like some idea in advance so I hopefully don't invest a lot of time into something I'll throw away. If this helps, here are the things I need. o I need robust forms (server, and optionally also client side validation of fields) o Transactional, pooled database access o User/form access security o As a bonus, it would be super nifty if I could find a system that would allow me to train a less technical (non-programmer) to develop and test database-backed forms. (This person currently is experienced doing MS Access forms.) If this is the wrong forum for this kind of discussion, my apologies. In my work (mostly contract), I usually find myself working solo on a project, or being the only person in the company doing development, so I don't have any peers to discuss these topics with. Much thanks, Michael Teter __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JNDI/LDAP/JSP Example?
I have some Java servlet example applications that do this that I can send you if you want. I don't know JSP, so, I don't know if you can easily translate it to JSP or not. I would assume that you can do all the same things using JSP that you can in servlets, just using different syntax? Jon - Original Message - From: Allen Chesley [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 6:48 PM Subject: Re: JNDI/LDAP/JSP Example? Very nice, but not quite what I need. For one, user authentication in JNDIRealms is not working, and won't until Tomcat 4.1 or later. That means I cannot use it to log in users, only the admin entry embedded in the code. For another, I want to access and store DATA in an LDAP server, not just use it to authenticate. I need to know how to set up a structure to allow me to both read (unauthenticated) and modify (authenticated) using JSP's. Like I said, there is a fair number of examples of how to do it using a standalone JAVA app, and how to use JDBC to do it in a JSP, but none that I can find that combine LDAP accesses with JSP. Chakradhar Tallam wrote: http://www.vsj.co.uk/archive/Feb2002/Javanet/javanet1-0202.asp http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html ct -Original Message- From: Allen Chesley [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 May 2002 8:31 AM To: Tomcat User Mail List Subject: JNDI/LDAP/JSP Example? Does anyone know a good reference for a working application that uses LDAP with JNDI in JSP (with or without Beans)? I have read all of the existing documents/pages I can find, and they all show JNDI/LDAP with JAVA apps. I assume that something similar to a JDBC Context would be appropriate, but I have been unable to figure out where the differences lie. -- Allen L. Chesley Senior Systems Engineer Raytheon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Allen L. Chesley Senior Systems Engineer Raytheon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Please help with mod_jk
i am trying to get mod_jk working on a Solaris 8 intel box. i have installed apache1.3.24 from sources and i have tomcat4.0.x from binaries. i compiled mod_jk using the script provided and everything seemed to work. but when i put: LoadModule jk_modulelibexec/mod_jk.so in to the httpd.conf file i get the following error: bash-2.03# /usr/local/apache/bin/apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_jk.so: symbol ap_table_get: referenced symbol not found /usr/local/apache/bin/apachectl start: httpd could not be started if i leave out the LoadModule jk_module libexec/mod_jk.so apache starts, but it doesn't connect to tomcat. how can i correct this error? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.x bug with POST parameters ?
Hi. Tomcat 4.0.x versions don't acquire POST parameters sent by my applet using java.net.URLConnection class, although Tomcat 3.2.x does everything perfectly. When I want to fetch parameters using request.getParameterNames() (or any other method for acquiring parameters), it provides me with empty enumeration. I use following code for posting data ...BTW, string strPOST has form like : param1=value1param2=value2param3= // opening connection to servlet URL urlServlet = new URL(strServletURL); URLConnection conServlet = urlServlet.openConnection(); conServlet.setDoOutput(true); conServlet.setDoInput(true); conServlet.setUseCaches(false); conServlet.setRequestProperty(Content-Type, application/x-www-form-urlencoded); conServlet.setRequestProperty(Content-Length, + strPOST.length()); OutputStream os = conServlet.getOutputStream(); os.write(strPOST.getBytes()); os.flush(); os.close(); // receiving data from InputStream .. conServlet.getInputStream()); . What am I doing wrong ? Everything worked with previous versions of Tomcat... Regards, Vjeran -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ant task to know if a webapp is deployed
Is there any form to make sure an webapp is deployed through ant tasks? How is the better approach to let my build file generic, i mean : never giving me an error either the webapp is already deployed or not. Emerson Cargnin - MSASICREDI - Ramal 3358-4860 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RH6.2 + apache + tomcat, `GLIBC_2.2' not found problem
Untitled DocumentDear all, I originally have a RH7.2 system, ran apache+tomcat4.0.1+mod_webapp without problem Now, my system need a migration, and unluckily, the `new` system is RH6.2 My apache (installed by rpms: apache-devel-1.3.12-2 and apache-1.3.14-2.6.2) cannot load the mod_webapp.so and complaints: [root@mydomain /root]# /etc/init.d/httpd restart Shutting down http:[ OK ] Starting httpd: Syntax error on line 253 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_webapp.so into server: /lib/libc.so.6: version `GLIBC_2.2' not found (required by /etc/httpd/modules/mod_webapp.so) [FAILED] I do: [root@mydomain /root]# rpm -qf /lib/libc.so.6 glibc-2.1.3-23 What should i do, should i upgrade my glibc? or self-compile my mod_webapp? Please help. Best regards, Simon. == »{¬°¦Û¤v©ú¤é¤F¡A¹ï¦Û¤v©Ò¤F¸ÑªºªF¦è¡A«K·|¦s¦b¶ÆºC¤§¤ß¡A¦Û§Ú´N·|¶}©l¿±µÈ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ant task to know if a webapp is deployed
-Original Message- From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]] Sent: 20 May 2002 17:58 To: Tomcat Users List Subject: ant task to know if a webapp is deployed Is there any form to make sure an webapp is deployed through ant tasks? How is the better approach to let my build file generic, i mean : never giving me an error either the webapp is already deployed or not. Emerson Cargnin - MSA SICREDI - Ramal 3358-4860 Emerson It's not ideal, but I use the list task: I run ant list to check whether the web-app is installed, if it is I run ant remove. Then I run ant deploy. These tasks are copied verbatim from the examples in the manager-app how-to. Hopefully someone else will provide a custom task that sets a property if the web-app is already deployed -- then I can copy that, too ;) HTH John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
CATALINA_BASE and ClassLoader
OK, I did search the archive for this question, and did find a (albeit short) discussion. 1) What I'd like to have is 1 installation of tomcat running multiple instances (think each instance is a release), each instance running multiple web applications. I'd like to have some non-tomcat code common across all webapps in an instance, but not across all instances. In this case, I still want CATALINA_HOME to be searched (for Tomcat code), but *also* CATALINA_BASE/lib and CATALINA_BASE/classes for *instance* code. If in fact this can't be done, then http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt should be updated in section 4 describing what to do for that situation. (what to copy from CATALINA_HOME to new CATALINA_HOME) 2) Reference: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html indicates use of CATALINA_HOME/classes and CATALINA_HOME/lib http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html indicates use of CATALINA_HOME/shared/classes and CATALINA_HOME/lib jasper-compiler.jar - is under common/lib jasper-runtime.jar - is under common/lib naming-factory.jar - is under common/lib Shouldn't these be in shared/lib (logically) or /lib (according to the docs)? Mitchell Evan Marx[EMAIL PROTECTED] ATT IP Network Configuration Provisioning Development Phone: 732-420-2350 Pager: 1-888-858-7243 PIN 134940 http://storefront.metrocall.com/metrocall/sendamsg.asp Date: Wed, 17 Oct 2001 09:08:27 -0700 (PDT) From: Craig R. McClanahan [EMAIL PROTECTED] Subject: Re: Tomcat 4 shared classloader: possible bug Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 17 Oct 2001, William Au wrote: Date: Wed, 17 Oct 2001 08:56:30 -0400 From: William Au [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat 4 shared classloader: possible bug Shouldn't the shared classloader of Tomcat 4 look in CATALINA_BASE/classes and CATALINA_BASE/lib instead of CATALINA_HOME? That would allow each instance to use a different version of the common jar files. The basic philosophy was that shared JARs would be shared across all uses of Tomcat, so the /lib and /common/lib directories are resolved against CATALINA_HOME instead of CATALINA_BASE. IMHO, this makes sense given that the whole idea of CATALINA_HOME/CATALINA_BASE is to share things. If you want to use a different version of a JAR in a particular webapp, simply put the JAR in /WEB-INF/lib of that webapp. Or, just run completely independent installations of Tomcat and you can have your own lib directory. Bill Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Please help with mod_jk
Peter, I'm no expert, but just a few basic questions/observations: 1) Do you have mod_so enabled? Check by running httpd -l 2) Do you have mod_jk.so in the libexec directory? Sorry if these are *very* basic suggestions. If it isn't one of those issues, I'm not sure offhand. Duane On Monday, May 20, 2002, at 01:01 PM, Peter Choe wrote: i am trying to get mod_jk working on a Solaris 8 intel box. i have installed apache1.3.24 from sources and i have tomcat4.0.x from binaries. i compiled mod_jk using the script provided and everything seemed to work. but when i put: LoadModule jk_module libexec/mod_jk.so in to the httpd.conf file i get the following error: bash-2.03# /usr/local/apache/bin/apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_jk.so: symbol ap_table_get: referenced symbol not found /usr/local/apache/bin/apachectl start: httpd could not be started if i leave out the LoadModule jk_module libexec/mod_jk.so apache starts, but it doesn't connect to tomcat. how can i correct this error? -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
off topic dialog box
I'm developing a prototype of a serverprogram with a servlet front end. halfway through the execution of a servlets doGet() I need to prompt the user for some info. How do i do this?? Pointers to resources would be much appreciated Øyvind Øyvind Vestavik [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Please help with mod_jk
At 01:37 PM 5/20/2002, Duane Gran wrote: Peter, I'm no expert, but just a few basic questions/observations: 1) Do you have mod_so enabled? Check by running httpd -l i think so. i do httpd -l and i see mod_so listed with others things. 2) Do you have mod_jk.so in the libexec directory? mod_jk.so is in the libexec directory. Sorry if these are *very* basic suggestions. If it isn't one of those issues, I'm not sure offhand. Duane On Monday, May 20, 2002, at 01:01 PM, Peter Choe wrote: i am trying to get mod_jk working on a Solaris 8 intel box. i have installed apache1.3.24 from sources and i have tomcat4.0.x from binaries. i compiled mod_jk using the script provided and everything seemed to work. but when i put: LoadModule jk_modulelibexec/mod_jk.so in to the httpd.conf file i get the following error: bash-2.03# /usr/local/apache/bin/apachectl start Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/mod_jk.so: symbol ap_table_get: referenced symbol not found /usr/local/apache/bin/apachectl start: httpd could not be started if i leave out the LoadModule jk_module libexec/mod_jk.so apache starts, but it doesn't connect to tomcat. how can i correct this error? -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
just one edit.
Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AJP13Connector source and javadoc
Hi All, I downloaded tomcat and tomcat source as well and I dont see the AJP13Connector as part of the tomcat source nor can I see the java docs for the same. I am planning to use the AJP13Connector in my embedded tomcat - so I am looking for the javadoc. Can somebody point me to it? Also has anybody used the WARP connector with IIS, if so can somebody point me config instructions? Thanx Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.3.1 and additionalJars
After adding the jdom.jar and making the server.xml changes you describe, I find that I can compile and display the following JSP page: - test.jsp - % org.jdom.JDOMException jdomExc = new org.jdom.JDOMException(); % This is a test. This seems to indicate that the jdom.jar is available to the web application. I also tried a simple servlet which was loaded on startup. It too was successful. It is likely that your NoClassDefFound is due to a class in a lower classloader that requires jdom.jar to be visible. Using additionalJars is equivalent to putting the jar in the WEB-INF/lib of all web applications. It offers the same visibility. Cheers, Larry -Original Message- From: Mario Felarca [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 12:38 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat 3.3.1 and additionalJars From: Larry Isaacs [EMAIL PROTECTED] That's basically correct. The jar is added to the web application's classloader classpath. The web application's classloader is switched in as the context class during request handling for that context. Larry Ok, I just wanted to make sure of that. So I have my context classes in a jar that reside under my docBase/WEB-INF/lib directory. I place the shared jdom.jar under the Tomcat/lib/container directory, and in my server.conf file I make the following changes to LoaderInterceptor11. additionalJars=jdom.jar jarSeparator=; When I start tomcat up, it starts to load my context which has a couple of LoadOnStartup specified servlets. This servlets fail to load with a NoClassDefFound Exception because the context can't find org/jdom/JDOMException. Can you think of anything else I can try or do in order to make the additionalJars property work? I feel like this should work and that this feature should be doing exactly what I want it to be doing, unfortunately I have yet to see it function. Thanks in advance, Mario- -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to specify the webappdeploy for tomcat root context
Try this: WebAppDeploy _ warpConnection / RS Xiaoyu Zhang [EMAIL PROTECTED] on 05/20/2002 11:31:05 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:How to specify the webappdeploy for tomcat root context Hi, I am using Tomcat 4.0.3 and Apache web server 1.3.24(Linux version) and would like to ask apache server to forward request to tomcat's ROOT context. Here is the difficulty I run into. In tomcat server.xml, path is specified as the tomcat's ROOT context path. Context path= docBase=ROOT debug=0 reloadable=true / But in my apache httpd.conf file, is not an acceptable path in webappdeploy directive, WebAppDeploy ROOT warpConnection ## invalid here. I've also tried to use / as tomcat's ROOT context path, but tomcat fails to identify it as ROOT context. TIA Xiaoyu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: just one edit.
I'm not sure what you mean, but java has a keyword that makes a method function as a monitor (At least lightweight) The keyword is syncronized Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim [EMAIL PROTECTED] 41422911 On Mon, 20 May 2002, Emilio Miranda wrote: Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: just one edit.
You'll probably want to synchronize on a static object I think. Something like this: public class WhatEver { protected static Object lock = new Object(); public void doStuff() { sychronized( lock ) { // do protected stuff here } } } --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:15 AM To: Tomcat Users List Subject: just one edit. Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: AJP13Connector source and javadoc
De: Sankaranarayanan (Ganesh) Ganapathy [mailto:[EMAIL PROTECTED]] Enviado el: lunes 20 de mayo de 2002 20:16 I downloaded tomcat and tomcat source as well and I dont see the AJP13Connector as part of the tomcat source nor can I see the java docs for the same. I am planning to use the AJP13Connector in my embedded tomcat - so I am looking for the javadoc. Can somebody point me to it? The source for AJP13Connector is on the jakarta-tomcat-connectors repository, so get it by CVS or as a nigthly.. I dont know if javadocs are built for AJP13Connector.. Also has anybody used the WARP connector with IIS, if so can somebody point me config instructions? WARP doesnt work with IIS.. Saludos , Ignacio J. Ortega msg54224/bin0.bin Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Custom Authentification
I am trying to create a custom login / authentification system with the following requirements: -Tracks more info then just user name, password, and roles (ie email address) -Allow new users to fill in a new user form (with the extra info) and be logged in after successfully completing the form -Make the extra info available to Servlets JSPs via a session object -Maintain compatibility with the Servlet API for authentification, namely that request.isUserInRole(), request.getPrincipal(), web-app defined security constrains work as expected Every solution I come up with seems to cross one of these lines. I would appreciate any ideas you might have. Thanks, Eric Everman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to specify the webappdeploy for tomcat root context
This trick here doesn't work. It just gives me the blank pages. By looking at the WebApp Libary Configuration, WebAppDeploy _ warpConnection / makes this warp connection inconnected. WebAppDeploy ROOT warpConnection / makes apache forward request to Tomcat, but the context information is not loaded. If I am using tomcat as standalone server, the context information is loaded correctly for the ROOT context. Xiaoyu Try this: WebAppDeploy _ warpConnection / RS Xiaoyu Zhang [EMAIL PROTECTED] on 05/20/2002 11:31:05 AM Please respond to Tomcat Users List [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:How to specify the webappdeploy for tomcat root context Hi, I am using Tomcat 4.0.3 and Apache web server 1.3.24(Linux version) and would like to ask apache server to forward request to tomcat's ROOT context. Here is the difficulty I run into. In tomcat server.xml, path is specified as the tomcat's ROOT context path. Context path= docBase=ROOT debug=0 reloadable=true / But in my apache httpd.conf file, is not an acceptable path in webappdeploy directive, WebAppDeploy ROOT warpConnection ## invalid here. I've also tried to use / as tomcat's ROOT context path, but tomcat fails to identify it as ROOT context. TIA Xiaoyu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re: Connection Pool Configuration
I am testing under Tomcat but I will be deploying the project to WebSphere (as per the client's request). I would like to be able to have the project work under any application server, so I do not want to rely on a 3rd party product for pooling but rather use a built in solution (if available). In doing this I also hope to keep any application server specific coding/configuration to a minimum. - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 20, 2002 12:40 PM Subject: RE: Connection Pool Configuration Look at poolman, there's really not a need to re-invent the wheel... --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: D Watson [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 18, 2002 8:58 AM To: Tomcat Users List Subject: Connection Pool Configuration Hello All I have been trying to implement connection pooling for some time now. I have read the documentation as well as umpteen messages on the list dealing with this subject. I have been unable to get it to work and I am not sure what I am missing. Could someone please post an example configuration (with an explanation of each line) or point me to some kind of newbie-ish walk-through? I am using DB2 under RH Linux 7.1 and Tomcat4.0 on W2K and want to connect to the datasource using JNDI. Thanks!! D Watson -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Please have a look at this log
The following is from localhost_access_log: x.y.z.129 - - [20/May/2002:15:16:31 -0500] POST /TAN/servlet/tanback/DoGetTrxPosted HTTP/1.1 200 18375 x.y.z.129 - - [20/May/2002:15:16:31 -0500] GET /TAN/tan/images/minipage.gif HTTP/1.1 200 844 x.y.z.129 - - [20/May/2002:15:16:31 -0500] GET /TAN/tan/images/minipage.gif HTTP/1.1 200 844 x.y.z.129 - - [20/May/2002:15:16:33 -0500] GET /TAN/tan/images/letter.gif HTTP/1.1 200 1468 x.y.z.129 - - [20/May/2002:15:16:33 -0500] GET /TAN/tan/images/master.gif HTTP/1.1 200 1322 x.y.z.129 - - [20/May/2002:15:16:35 -0500] POST /TAN/servlet/tanback/DoGetTrxPosted HTTP/1.1 200 18375 x.y.z.129 - - [20/May/2002:15:16:35 -0500] GET /TAN/tan/images/minipage.gif HTTP/1.1 200 844 x.y.z.129 - - [20/May/2002:15:16:35 -0500] GET /TAN/tan/images/minipage.gif HTTP/1.1 200 844 x.y.z.129 - - [20/May/2002:15:16:37 -0500] GET /TAN/tan/images/letter.gif HTTP/1.1 200 1468 x.y.z.129 - - [20/May/2002:15:16:37 -0500] GET /TAN/tan/images/master.gif HTTP/1.1 200 1322 The entire log looks very much like this. Does this mean that the application calls the backend twice? I guess I'm doing something wrong. What? Thank you all. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is it possible to restart NT-based Tomcat 4.0 remotely?
Hi guys, I am trying to figure out ways to restart Tomcat 4.0 which is running on NT, and to ahich I don't have access locally. Only over the Internet. I've found such things as Manager application and org.apache.catalina.core.StandardServer which allows to run SHUTDOWN command through TCP/IP8005 port, but there is no way to start Tomcat, after it has been shutdown that way. Anybody uses Manager or found a better way to reload an application? Or just restart the whole Tomcat server? Any ideas? Thank you very much. Maya Vayner __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: just one edit.
Hi, really apreciate your help. but What I mean is a case in web. It is: administrator A login to a site and modify data of some user at the same time administrator B are modifying the data of the same user. I would like some message for administrator A, something like a sorry you cant change these data right now . So I want to know if Tomcat could help me in some way Thanks a lot! -Mensaje original- De: Mike Jackson [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 20 de mayo de 2002 13:32 Para: Tomcat Users List Asunto: RE: just one edit. You'll probably want to synchronize on a static object I think. Something like this: public class WhatEver { protected static Object lock = new Object(); public void doStuff() { sychronized( lock ) { // do protected stuff here } } } --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:15 AM To: Tomcat Users List Subject: just one edit. Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: just one edit.
yes, there is a jsp. I have a form. It is an web application (Servlets, JSP , etc )to manage users but it could have two or more administrators so, my trouble is when two want to modify the data of one user at the same time- For example in other applications I saw message like sorry this resource is used by other user or something like that. Thanks a lot. -Mensaje original- De: Øyvind Vestavik [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 20 de mayo de 2002 14:45 Para: Tomcat Users List Asunto: RE: just one edit. Just to clear things up a bit: What kind of web resource are we talking about?? Is java in the background?? Øyvind Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim [EMAIL PROTECTED] 41422911 On Mon, 20 May 2002, Emilio Miranda wrote: Hi, really apreciate your help. but What I mean is a case in web. It is: administrator A login to a site and modify data of some user at the same time administrator B are modifying the data of the same user. I would like some message for administrator A, something like a sorry you cant change these data right now . So I want to know if Tomcat could help me in some way Thanks a lot! -Mensaje original- De: Mike Jackson [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 20 de mayo de 2002 13:32 Para: Tomcat Users List Asunto: RE: just one edit. You'll probably want to synchronize on a static object I think. Something like this: public class WhatEver { protected static Object lock = new Object(); public void doStuff() { sychronized( lock ) { // do protected stuff here } } } --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:15 AM To: Tomcat Users List Subject: just one edit. Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JDBCRealm and Oracle Not working
Ok, you need to put the classes12_01.jar file in the ~/common/lib dir also. On install, the classes12_01.jar is in the ~/lib, which is NOT enough to get the JDBCRealm working with Oracle. WHY you need that jar in both places: ~/lib and ~/common/lib is still a mystery/issue! Could anyone shed some like on this issue? PS: Here is a interesting discussion on this issue: http://groups.google.com/groups?q=Tomcat+Realm+4hl=enlr=ie=UTF8oe=UTF8selm=5Rzc8.12%24U83.40693%40mencken.net.nih.govrnum=3 Thanks! -CP [EMAIL PROTECTED] 05/20/02 07:22AM By default the drvier (classes12_01.jar) is placed in Apache Tomcat 4.0\lib. I can connect to Oracle just fine in a JSP or servlet! It is the JDBCRealm functionality that is broken. :-( -Late From: Umberto Nicoletti [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBCRealm and Oracle Not working Date: Mon, 20 May 2002 09:40:53 +0200 MIME-Version: 1.0 Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id MHotMailBEB1F421001340043721C0123183E4A90; Mon, 20 May 2002 00:43:34 -0700 Received: (qmail 5127 invoked by uid 97); 20 May 2002 07:43:22 - Received: (qmail 5115 invoked by uid 98); 20 May 2002 07:43:22 - From tomcat-user-return-20073-chadhperry Mon, 20 May 2002 00:45:26 -0700 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: [EMAIL PROTECTED] X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en References: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, You must put the jdbc driver in a place where tomcat can find it. As of my experience a suitable place is TOMCAT_HOME/lib or common/lib (or something like that). Regards, umberto Chad Perry wrote: Trying to get Oracle 8i to work with with the JDBCRealm: Tomcat 4.0.4b3 JDK 1.4.0 OS Win2000 Server I guess tomcat-JDBCRealm doesn't work with Oracle? It would be AWESOME if I could get this to work! Could somebody verify that I'm not dorking out? Thanks!! Here is my Realm element: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@192.168.0.10:1521:TestDB connectionName=X connectionPassword=X userTable=GOLDEN.APP_USER userNameCol=USER_NAME userCredCol=PASSWORD_TXT userRoleTable=GOLDEN.APP_ROLE roleNameCol=ROLE_NAME/ EXCEPTION BELOW - Occurs on Start up: Starting service Tomcat-Standalone Apache Tomcat/4.0.4-b3 Starting service Tomcat-Apache Apache Tomcat/4.0.4-b3 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driv er.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) - Root Cause - java.sql.SQLException: oracle.jdbc.driver.OracleDriver at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:506) at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
how do i use session.setAttribute for arrays?
Here's what I'm doing: int iMaxBookmarks = 25; Bookmark[] MyBookmarkArray = new Bookmark[iMaxBookmarks]; while (rs.next()) { MyBookmarkArray[i] = new Bookmark(); session.setAttribute(MyBookmarkArray[ + i + ], MyBookmarkArray); // set all data for MyBookmarkArray[i] (this works fine)... } // Close the ResultSet System.out.println(bookmarks done); rs.close(); in my JSP page I get a NULL POINTER EXCEPTION... I can see all my non array session variables just not this array one... a scope problem? Also, anyone know of a good JSP Forum? thanks in advance. Rich __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: just one edit.
Just to clear things up a bit: What kind of web resource are we talking about?? Is java in the background?? Øyvind Øyvind Vestavik Øvre Møllenberggt 44b 7014 Trondheim [EMAIL PROTECTED] 41422911 On Mon, 20 May 2002, Emilio Miranda wrote: Hi, really apreciate your help. but What I mean is a case in web. It is: administrator A login to a site and modify data of some user at the same time administrator B are modifying the data of the same user. I would like some message for administrator A, something like a sorry you cant change these data right now . So I want to know if Tomcat could help me in some way Thanks a lot! -Mensaje original- De: Mike Jackson [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 20 de mayo de 2002 13:32 Para: Tomcat Users List Asunto: RE: just one edit. You'll probably want to synchronize on a static object I think. Something like this: public class WhatEver { protected static Object lock = new Object(); public void doStuff() { sychronized( lock ) { // do protected stuff here } } } --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:15 AM To: Tomcat Users List Subject: just one edit. Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Why ignore sendRedirect() for an include? - solved
This question ended up getting answered back on the JSP list (many thanks to Hans Bergsten!). The spec very clearly calls out the issue in section JSP.4.4: An included page only has access to the JspWriter object and it cannot set headers. This precludes invoking methods like setCookie(). Attempts to invoke these methods will be ignored. My oversight. Thanks anyway. Jay -Original Message- From: Jay Burgess [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:08 AM To: [EMAIL PROTECTED] Subject: Why ignore sendRedirect() for an include? I started this discussion on the JSP list, but am led to believe now that this is a Tomcat issue. Can someone explain otherwise? My problem is that a sendRedirect() issued by my servlet is not being honored by Tomcat 4.0.3. The servlet is being called via a jsp:include block from within a JSP. The sendRedirect() is the first thing in my doGet(). As long as the response hasn't been committed, this should be legal, right? (I confirmed that the response had not been committed with res.isCommitted() .) To confuse me even more, I found the following in the Tomcat source (ApplicationHttpResponse.java): /** * Disallow codesendRedirect()/code calls on an included response. * * @param location The new location * * @exception IOException if an input/output error occurs */ public void sendRedirect(String location) throws IOException { if (!included) ((HttpServletResponse) getResponse()).sendRedirect(location); } Can someone confirm that the reason my sendRedirect() is failing is because of the above (!included) check, and even more importantly, WHY you don't allow sendRedirect()'s on an included response? Thanks. Jay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Mod WEB_APP
You should check : http://www.pubbitch.org/jboss.html - Original Message - From: Rui Oliveira [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 20, 2002 11:30 AM Subject: Mod WEB_APP Hello, Does anyone here has the mod_webapp compiled for Solaris 8, using the GCC? Can someone help me out? Regards Rui Oliveira -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Localhost-Only Tomcat?
Hi folks, I'm trying to figure out how to secure a Tomcat installation in win2k, so it only answers requests from localhost. I've been digging through the various resources (jguru faqs, tomcat-users archive, servlet-interest archives) but I can't find the answer to this. I found a couple of old posts: http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]msgId=244760 http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]msgId=244765 An example from the archive (but I did know what to search for): http://mikal.org/interests/java/tomcat/archive/view?mesg=20673 In server.xml, add a inet parameter to the connector definition: Connector className=... Parameter name=handler value=... Parameter name=inet value=localhost Parameter name=port value=8007 /Connector This would appear to be precisely what I need, *except*, it doesn't work. In the version of tomcat I have, 4.0.4, server.xml doesn't use separate parameter elements, it uses attributes. I tried setting this with attributes and I tried setting it with elements. Neither worked. Steven J. Owens [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Web server authentication fails with WarpConnector
Hi, Can I use Apache web server (1.3.24) to do the authentication and use WarpConnector to forward request to Tomcat 4.0.3 ? In my apache(1.3.24) and tomcat (4.0.3) application server configuration, I am using WarpConnector to handle the jsp/servlet pages. I would like to ask Apache web server do the authentication by using following directive: directory myCodeTree .. AllowOverride AuthConfig /directory WebAppDeploy directive is used to forward requests to Tomcat, WebAppDeploy ROOT warpConnection / # forwards request to ROOT context. The apache server just forward all requests to Tomcat and ignores the authentication constraint. When I remove WebAppDeploy directive from my httpd.conf, the web server is asking for password to visit the same content (Of course this time I get source code instead of dynamic content). Would appreciate any point or hints! Thanks, Xiaoyu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Doubts on SSL configuration.???
For $400.00, I will make a custom build for those packages, applciations, configuration you need. That is including Apache/ HTTPd, Tomcat, OpenSSL, mod_ssl, mod_jk, and JSSE on Win32 for you. And I will provide the sample applications and configurations you need for those needs. Interesting? Send me an email. Pae - Original Message - From: Rutledge, Aaron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 20, 2002 8:01 AM Subject: RE: Doubts on SSL configuration.??? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html I'm not sure if you've found this article or not. On first run-through it appears to be the Idiot's Guide to SSL, but I am still having problems. I configured my Tomcat exactly like it is explained and now I get a java.lang.IllegalStateException error when I start TomCat. I have no idea why SSL would cause this type of exception. Anyway, maybe this article will help you more than me. Basically, as you probably know, you create a new port that allows for SSL. You can force any context in your application to use this port by prefixing the URL with https...the How TO explains it like this... Any page within an application can be requested over a secure socket by simply prefixing the address with https: instead of http:. Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. probably not the detail you need I would love to hear from anyone out there who has successfully gotten SSL running to assist Rajesh and I. I am kind of frustrated by what seems to be a simple task. --Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:02 AM To: [EMAIL PROTECTED] Subject: Doubts on SSL configuration.??? HI All, I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot of search i am still not able to find some useful documentation for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL). My application needs to handle both HTTP and HTTPS. Few modules in the application needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application to run on this server with Tomcat 3.2.2. My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? Thanks in advance for all your help. Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Doubts on SSL configuration.???
I have this setup at home on my linux box. Didn't have any problems getting it working. If you ask really, really nicely I could send you the binaries I suppose, or the config files. But really the major pain was getting apache to run with ssl, not the tomcat part. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:02 AM To: Tomcat Users List Subject: RE: Doubts on SSL configuration.??? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html I'm not sure if you've found this article or not. On first run-through it appears to be the Idiot's Guide to SSL, but I am still having problems. I configured my Tomcat exactly like it is explained and now I get a java.lang.IllegalStateException error when I start TomCat. I have no idea why SSL would cause this type of exception. Anyway, maybe this article will help you more than me. Basically, as you probably know, you create a new port that allows for SSL. You can force any context in your application to use this port by prefixing the URL with https...the How TO explains it like this... Any page within an application can be requested over a secure socket by simply prefixing the address with https: instead of http:. Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. probably not the detail you need I would love to hear from anyone out there who has successfully gotten SSL running to assist Rajesh and I. I am kind of frustrated by what seems to be a simple task. --Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:02 AM To: [EMAIL PROTECTED] Subject: Doubts on SSL configuration.??? HI All, I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot of search i am still not able to find some useful documentation for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL). My application needs to handle both HTTP and HTTPS. Few modules in the application needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application to run on this server with Tomcat 3.2.2. My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? Thanks in advance for all your help. Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem in restarting Tomcat
hi, yourself, Zhongwen Zhu (LMC) wrote: Hi In linux OS, when Tomcat is shut down, the port which is used by Tomcat is not released. Hence it is impossible to re-start Tomcat. Do you have any solution so that the system is forced to release the port when Tomcat is shut down? yes, don't shut down by Ctrl-C. use shutdown.sh i sometimes have troubles using [tim-mn@spiderman tim-mn]$ shutdown.sh startup.sh and in those cases have to resort to doing this in two lines [tim-mn@spiderman tim-mn]$ shutdown.sh [tim-mn@spiderman tim-mn]$ startup.sh this *allways* work for me ~mats Thank you for your hints. michael zhu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Doubts on SSL configuration.???
I'm not. Maybe Rajesh is. This should be straightforward and I wish to learn what is causing my error. I know I must be missing something simple in my implementation. The Tomcat SSL how-to is very brief and clear but is causing this bizarre java.lang.IllegalStateException--which doesn't make sense to me. I am just trying to get SSL working independently on Tomcat--I'm not using Apache at all. Maybe somebody could tell me what they did with the install of JSSE. I simply added this to my jre/lib/ext directory. I was then able to succesfully creat a key file. I then uncommented the SSL section of my web.xml. The Sun Docs mention modifying the java.security file--which I did after I had trouble. The How To doesn't mention any of this, so I'm wondering if I am missing some parts on the JSSE installation part?? --Aaron -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 6:35 PM To: Tomcat Users List Subject: Re: Doubts on SSL configuration.??? For $400.00, I will make a custom build for those packages, applciations, configuration you need. That is including Apache/ HTTPd, Tomcat, OpenSSL, mod_ssl, mod_jk, and JSSE on Win32 for you. And I will provide the sample applications and configurations you need for those needs. Interesting? Send me an email. Pae - Original Message - From: Rutledge, Aaron [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, May 20, 2002 8:01 AM Subject: RE: Doubts on SSL configuration.??? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html I'm not sure if you've found this article or not. On first run-through it appears to be the Idiot's Guide to SSL, but I am still having problems. I configured my Tomcat exactly like it is explained and now I get a java.lang.IllegalStateException error when I start TomCat. I have no idea why SSL would cause this type of exception. Anyway, maybe this article will help you more than me. Basically, as you probably know, you create a new port that allows for SSL. You can force any context in your application to use this port by prefixing the URL with https...the How TO explains it like this... Any page within an application can be requested over a secure socket by simply prefixing the address with https: instead of http:. Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. probably not the detail you need I would love to hear from anyone out there who has successfully gotten SSL running to assist Rajesh and I. I am kind of frustrated by what seems to be a simple task. --Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:02 AM To: [EMAIL PROTECTED] Subject: Doubts on SSL configuration.??? HI All, I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot of search i am still not able to find some useful documentation for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL). My application needs to handle both HTTP and HTTPS. Few modules in the application needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application to run on this server with Tomcat 3.2.2. My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? Thanks in advance for all your help. Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Localhost-Only Tomcat?
On Mon, May 20, 2002 at 05:01:51PM -0400, Steven J. Owens wrote: I'm trying to figure out how to secure a Tomcat installation in win2k, so it only answers requests from localhost. I've been digging through the various resources (jguru faqs, tomcat-users archive, servlet-interest archives) but I can't find the answer to this. I found a couple of old posts: Okay, so I've been digging for this for a while, but just after I finally gave up and posted a question to tomcat-users, I found Craig McClanahan's post: http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]msgId=266184 To summarize, as Craig says in the above post, Tomcat 4 uses valves for filtering, and comes with three valves precoded for you. The RemoteAddrValve seems to be what I want, and it seems to work. Basically, you can add a valve entry in tomcat/conf/server.xml at the engine, host, or context level. So I added the following entry right below the Engine tag: Valve className=org.apache.catalina.valves.RemoteAddrValve allow=127.0.0.1 / Testing shows that it seems to work - I can still access it from a browser on the desktop of the same machine, but I get connection refused when I try to access it from a nearby machine. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html Many thanks to Craig McClanahan. Steven J. Owens [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
multi-ip host
How do i configure tomcat to be used by many developers (in a huge single machine) so that each one do not knows of others tomcat instances, using the same port (eg: 8080). Emerson Cargnin - MSASICREDI - Ramal 3358-4860 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Doubts on SSL configuration.???
You must be using Apache's modSSL to provide the SSL functionality to your Tomcat Aps. When using Tomcat alone you must configure the SSL connector in server.xml to specify the factory class name within the JSSE and you must specify where your keyfile is located. If you look at your server.xml file you will see that there is a section commented out that is a sample for doing this. Aaron -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 4:26 PM To: Rutledge, Aaron Subject: RE: Doubts on SSL configuration.??? You really don't have to do anything in the server.xml, it's all in the http config. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 2:57 PM To: Mike Jackson Subject: RE: Doubts on SSL configuration.??? Thanks for your offer. Binaries aren't an issue--just the configuration of server.xml. Best regards, Aaron -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 3:42 PM To: Tomcat Users List Subject: RE: Doubts on SSL configuration.??? I have this setup at home on my linux box. Didn't have any problems getting it working. If you ask really, really nicely I could send you the binaries I suppose, or the config files. But really the major pain was getting apache to run with ssl, not the tomcat part. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:02 AM To: Tomcat Users List Subject: RE: Doubts on SSL configuration.??? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html I'm not sure if you've found this article or not. On first run-through it appears to be the Idiot's Guide to SSL, but I am still having problems. I configured my Tomcat exactly like it is explained and now I get a java.lang.IllegalStateException error when I start TomCat. I have no idea why SSL would cause this type of exception. Anyway, maybe this article will help you more than me. Basically, as you probably know, you create a new port that allows for SSL. You can force any context in your application to use this port by prefixing the URL with https...the How TO explains it like this... Any page within an application can be requested over a secure socket by simply prefixing the address with https: instead of http:. Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. probably not the detail you need I would love to hear from anyone out there who has successfully gotten SSL running to assist Rajesh and I. I am kind of frustrated by what seems to be a simple task. --Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:02 AM To: [EMAIL PROTECTED] Subject: Doubts on SSL configuration.??? HI All, I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot of search i am still not able to find some useful documentation for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL). My application needs to handle both HTTP and HTTPS. Few modules in the application needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application to run on this server with Tomcat 3.2.2. My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? Thanks in advance for all your help. Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
web.xml
Is there any way to make a servlet-mapping that catches request to www.servername.com/contextname/ but not requests to www.servername.com/contextname/some_other_text where some other text is a request fro static resources that reside in the document root of the webapp.
RE: web.xml
Yes but if I map do url-pattern//url-pattern then this becomes the default mapping, and anything that it's caught by the other mapping gets served by this mapping, so it caches my requests for static content. PS Just in case it's not clear, I am using tomcat in standalone more so that it serves both dynamic and static content -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:17 PM To: Tomcat Users List Subject: Re: web.xml that should work without any web.xml involvement. The web.xml maps ONLY what you map, everything else is resolved with your static content if it's not found in the servlet-mappings. On 5/20/02 5:11 PM, Vladimir [EMAIL PROTECTED] wrote: Is there any way to make a servlet-mapping that catches request to www.servername.com/contextname/ but not requests to www.servername.com/contextname/some_other_text where some other text is a request fro static resources that reside in the document root of the webapp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: web.xml
that should work without any web.xml involvement. The web.xml maps ONLY what you map, everything else is resolved with your static content if it's not found in the servlet-mappings. On 5/20/02 5:11 PM, Vladimir [EMAIL PROTECTED] wrote: Is there any way to make a servlet-mapping that catches request to www.servername.com/contextname/ but not requests to www.servername.com/contextname/some_other_text where some other text is a request fro static resources that reside in the document root of the webapp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: web.xml
On 5/20/02 5:25 PM, Vladimir [EMAIL PROTECTED] wrote: Yes but if I map do url-pattern//url-pattern then this becomes the default mapping, and anything that it's caught by the other mapping gets served by this mapping, so it caches my requests for static content. PS Just in case it's not clear, I am using tomcat in standalone more so that it serves both dynamic and static content Actually, I don't think it is very clear, but i'll give it a shot. I use tomcat standalone for dynamic and static content. Don't map anything to / -- just put an index.jsp at that location that redirects or forwards to what you want / to be. When / is requested, if nothing is mapped, it will look for index.jsp -- just use the RequestDispatcher to forward to what you want to process the request. fillup -Original Message- From: Phillip Morelock [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:17 PM To: Tomcat Users List Subject: Re: web.xml that should work without any web.xml involvement. The web.xml maps ONLY what you map, everything else is resolved with your static content if it's not found in the servlet-mappings. On 5/20/02 5:11 PM, Vladimir [EMAIL PROTECTED] wrote: Is there any way to make a servlet-mapping that catches request to www.servername.com/contextname/ but not requests to www.servername.com/contextname/some_other_text where some other text is a request fro static resources that reside in the document root of the webapp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Custom Authentification
Perhaps I should be more clear about what I am trying to accomplish (and spell authentication correctly) I had originally created my own login/authenfication application. It allowed users to create profiles with a user name, password, a password hint, and email addr. Logged-in users are marked by a Principal object (com.something.Principal) in their session. The key reasons I had originally gone in this direction were: -To be able to give 'hints' and informative error messages to users who had forgotten their passwords -I wanted to be able to add my own functionality for handling auto-logins via persistent cookies -I wanted users who created a new profile to be logged-in as a result (rather then be forced to login after creating their new profile). To work with security constraints, I created a small tag library for JSPs that simply forwards requests to the login page if the user does not have sufficient privileges. A bit of a compromise since I can't define security constraints in the web.xml, but it works rather easily. Everything was great until we decided we wanted to add a web forum - Jive. Jive, like thousands of other web apps, assumes that permissions are handled via request.isUserInRole() and related methods. Of course, I'm not surprised that Jive doesn't use *my* authentication system, but I was hoping that there was enough variation in authentication strategies that largish applications would have a single point to allow users to plug-in their own strategies. So, if I can't easily modify Jive to fit my current strategy, I'll have to modify my strategy to work within or on top of the Servlet API authentication system. I've looked at sub-classing some of the Tomcat classes, but it looks like some of the key ones are final - which leads me to think I still may be on the wrong track. Any ideas? At 01:39 PM 5/20/2002, you wrote: I am trying to create a custom login / authentification system with the following requirements: -Tracks more info then just user name, password, and roles (ie email address) -Allow new users to fill in a new user form (with the extra info) and be logged in after successfully completing the form -Make the extra info available to Servlets JSPs via a session object -Maintain compatibility with the Servlet API for authentification, namely that request.isUserInRole(), request.getPrincipal(), web-app defined security constrains work as expected Every solution I come up with seems to cross one of these lines. I would appreciate any ideas you might have. Thanks, Eric Everman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unable to serve static pages through apache web server (Tomcat 4. 0 - Apache using AJP connector)
Hi Scott, Thanks for your suggestion. Definitely a decent workaround. But I am not clear about the usage of this piece of code. I am only using servlets and static files in my application. Should I generate servlet equivalent of this JSP for my usage? Also, where should I place this file? How will requests go to this file if I get a page not found error? Is there any specific action / configuration for that? thanks Paresh -Original Message- From: pixel [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 09:41 PM To: Tomcat Users List Subject: Re: unable to serve static pages through apache web server (Tomcat 4. 0 - Apache using AJP connector) Paresh, While I'm unsure about your Apache configuration, I had a similar problem with case sensitivity and Tomcat 4.x so came up with the following custom error page . %@page language=java import=java.io.* % % String requestedURL = ((String)request.getAttribute(javax.servlet.error.message)).toLowerCase(); ServletContext ctx = getServletContext(); String realPath = ctx.getRealPath(requestedURL); try { File reqFile = new File(realPath); if (reqFile.exists()) { response.sendRedirect(requestedURL); } } catch (Exception ex) {} % html head titleERROR PAGE/title /head /html This page checks for a lower case version of the URL and redirects to it if found. This is a very simple example. Nothing fancy. Note: This will not provide the referrer or parameters from the original request, although it might be possible if you get that data from the error page and use a RequestDispacher to pass it to the correct page. ~Scott Paresh Deshpande wrote: Hello, I have installed Apache web server (Apache/1.3.24 (Win32) mod_jk/1.1.0) with Tomcat as servlet engine (Apache Tomcat/4.0.3) to serve my application. I am using AJP connector to integrate tomcat with apache installation. Now regarding my problem, all my requests for static content (gifs, html files) as well as for servlets in webapp folder end up getting served by tomcat (i.e. when I type url http://localhost:8090/app1/test.html , where localhost:8090 stands for apache web server and app1 for the webapp folder for app1, I see test.html which is served by tomcat). Is it possible for apache web server to load static pages and for tomcat to serve only the servlets? Reason I want to load static pages via apache is that tomcat is case sensitive even for the static pages. If I type http://localhost:8090/app1/test.HTml , I get page not found error (and the error is served by tomcat). And in earlier versions of apache/tomcat setup, the static pages were served by apache instead of tomcat. Question is how can the page now be loaded via apache web server? Is there a way of configuring apache to serve static pages even in app1 folder / application? Or do I need to make any correction to my configuration? regards Paresh Plaese find attached : 1 server.xml 2 httpd.conf 3 auto generated mod_jk.conf server.xml configuration is as follows: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Engine className=org.apache.catalina.core.StandardEngine name=localhost appBase=c:/program files/APPBASE/ debug=4 Host name=localhost debug=4 appBase=c:/program files/APPBASE/ unpackWARs=false Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / Context path=/app1 docBase=c:/program files/APPBASE/app1 debug=4 reloadable=true/ /Host Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server *** AJP Connector related data in httpd.conf configuration is as follows : ## ## ServerName localhost ## ## ## ## ## Port 8090 ## ## ## Alias /app1 c:/program files/APPBASE/app1/ AliasMatch ^/[Aa][Pp][Pp][1]/(.*) c:/program files/APPBASE/app1/ ## AJP CONFIGURATION END LoadModule jk_module libexec/mod_jk.dll # Configure mod_jk JkWorkersFile C:/Program Files/Apache Tomcat 4.0/conf/jk/workers.properties JkLogFile C:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log JkLogLevel debug JkMount /servlet/* ajp13 JkMount /app1/servlet/com.trivium.cis.* ajp13 Include C:/Program Files/Apache Tomcat 4.0/conf/auto/mod_jk.conf ## AJP CONFIGURATION END Here is auto generated mod_jk.conf file : * VirtualHost localhost ServerName localhost JkMount /app1 ajp13 JkMount /app1/* ajp13 /VirtualHost ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
RE: unable to serve static pages through apache web server (Tomcat 4. 0 - Apache using AJP connector)
Hi, It would really be great if someone could tell me whether the static content is at all served by Apache web server :) . Even the directory browsing ends up getting shown by tomcat web server instead of apache Web server. thanks Paresh (I have included necessary configuration files at the end, let me know if any other information is required). -Original Message- From: pixel [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 09:41 PM To: Tomcat Users List Subject: Re: unable to serve static pages through apache web server (Tomcat 4. 0 - Apache using AJP connector) Paresh, While I'm unsure about your Apache configuration, I had a similar problem with case sensitivity and Tomcat 4.x so came up with the following custom error page . %@page language=java import=java.io.* % % String requestedURL = ((String)request.getAttribute(javax.servlet.error.message)).toLowerCase(); ServletContext ctx = getServletContext(); String realPath = ctx.getRealPath(requestedURL); try { File reqFile = new File(realPath); if (reqFile.exists()) { response.sendRedirect(requestedURL); } } catch (Exception ex) {} % html head titleERROR PAGE/title /head /html This page checks for a lower case version of the URL and redirects to it if found. This is a very simple example. Nothing fancy. Note: This will not provide the referrer or parameters from the original request, although it might be possible if you get that data from the error page and use a RequestDispacher to pass it to the correct page. ~Scott Paresh Deshpande wrote: Hello, I have installed Apache web server (Apache/1.3.24 (Win32) mod_jk/1.1.0) with Tomcat as servlet engine (Apache Tomcat/4.0.3) to serve my application. I am using AJP connector to integrate tomcat with apache installation. Now regarding my problem, all my requests for static content (gifs, html files) as well as for servlets in webapp folder end up getting served by tomcat (i.e. when I type url http://localhost:8090/app1/test.html , where localhost:8090 stands for apache web server and app1 for the webapp folder for app1, I see test.html which is served by tomcat). Is it possible for apache web server to load static pages and for tomcat to serve only the servlets? Reason I want to load static pages via apache is that tomcat is case sensitive even for the static pages. If I type http://localhost:8090/app1/test.HTml , I get page not found error (and the error is served by tomcat). And in earlier versions of apache/tomcat setup, the static pages were served by apache instead of tomcat. Question is how can the page now be loaded via apache web server? Is there a way of configuring apache to serve static pages even in app1 folder / application? Or do I need to make any correction to my configuration? regards Paresh Plaese find attached : 1 server.xml 2 httpd.conf 3 auto generated mod_jk.conf server.xml configuration is as follows: Server port=8005 shutdown=SHUTDOWN debug=0 Service name=Tomcat-Apache Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Engine className=org.apache.catalina.core.StandardEngine name=localhost appBase=c:/program files/APPBASE/ debug=4 Host name=localhost debug=4 appBase=c:/program files/APPBASE/ unpackWARs=false Listener className=org.apache.ajp.tomcat4.config.ApacheConfig / Context path=/app1 docBase=c:/program files/APPBASE/app1 debug=4 reloadable=true/ /Host Realm className=org.apache.catalina.realm.MemoryRealm / /Engine /Service /Server *** AJP Connector related data in httpd.conf configuration is as follows : ## ## ServerName localhost ## ## ## ## ## Port 8090 ## ## ## Alias /app1 c:/program files/APPBASE/app1/ AliasMatch ^/[Aa][Pp][Pp][1]/(.*) c:/program files/APPBASE/app1/ ## AJP CONFIGURATION END LoadModule jk_module libexec/mod_jk.dll # Configure mod_jk JkWorkersFile C:/Program Files/Apache Tomcat 4.0/conf/jk/workers.properties JkLogFile C:/Program Files/Apache Tomcat 4.0/logs/mod_jk.log JkLogLevel debug JkMount /servlet/* ajp13 JkMount /app1/servlet/com.trivium.cis.* ajp13 Include C:/Program Files/Apache Tomcat 4.0/conf/auto/mod_jk.conf ## AJP CONFIGURATION END Here is auto generated mod_jk.conf file : * VirtualHost localhost ServerName localhost JkMount /app1 ajp13 JkMount /app1/* ajp13 /VirtualHost ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To
RE: just one edit.
You might want to check the work of Doug Lee on locks. Great existing functionality, which I understand is being groomed for a later SDK. At 02:38 PM 5/20/02 -0500, you wrote: Hi, really apreciate your help. but What I mean is a case in web. It is: administrator A login to a site and modify data of some user at the same time administrator B are modifying the data of the same user. I would like some message for administrator A, something like a sorry you cant change these data right now . So I want to know if Tomcat could help me in some way Thanks a lot! -Mensaje original- De: Mike Jackson [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 20 de mayo de 2002 13:32 Para: Tomcat Users List Asunto: RE: just one edit. You'll probably want to synchronize on a static object I think. Something like this: public class WhatEver { protected static Object lock = new Object(); public void doStuff() { sychronized( lock ) { // do protected stuff here } } } --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Emilio Miranda [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:15 AM To: Tomcat Users List Subject: just one edit. Hello, I am sorry if that is an offtopic. How can I be sure that only one user is changing some data at the time? could Tomcat help me on that? I mean , supouse that one user change a name an another try to change at the same time. Thanks a lot! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can anyone give me an idea of the maximum hit rate for Tomcat on a PC
I'm trying to get a feel for the maximum number of pages I can expect Tomcat to serve per second on a reasonable PC - say 1G RAM and a 1 processor speed around 1GHz. I know the correct answer is it depends, but I'd appreciate any feedback on whether I should be looking at tens of hits, hundreds or whatever for a best case - very simple pages without any database access, as it will be a few days before I get to make any measurements. Regards, Simon Simon A. Crase Invetech Pty Ltd Private Bag 44 495 Blackburn Road Mount Waverley Vic 3149 Phone: 61 3 9211 7933 Mobile: 0408 579 006 Fax:61 3 9211 7702 (facsimile) e-mail: [EMAIL PROTECTED] ___ IMPORTANT - This email and any attachments may be confidential. Any retransmissions, dissemination or other use of these materials by persons or entities other than the intended recipient is prohibited. If received in error, please contact us and delete all copies. Before opening or using attachments, check them for viruses and defects. Our liability is limited to resupplying any affected attachments. [Any representations or opinions expressed in this e.mail are those of the individual sender, and not necessarily those of Vision Systems Limited]. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]