Re: BASIC Authentication
Ashish Kulkarni ha scritto: Hi May be try putting the following in web.xml file just before taglib ( i am not sure but works with 2.2) error-page error-code403/error-code location/pages/error/noaccess.jsp/location /error-page error-page error-code401/error-code location/pages/error/noaccess.jsp/location /error-page Ashish Thanks for the answer, but this method doesnt work. Infact if a resourse is under authentication (like manager) and i setup a 401 page error, the system does not ask for user and password but presents immediately the error page. I think i have to use something other than basic auth, at least to create my own login page :D Tx all Giorgio Ponza --- Omar Adobati [EMAIL PROTECTED] wrote: Oh, I'm sorry... you are using the basic auth mode... there was a missunderstanding... sorry again... On Mon, 24 Jan 2005 14:29:44 +0100, Giorgio Ponza [EMAIL PROTECTED] wrote: Omar Adobati ha scritto: I never try it, but maybe u can write your own code into the login page that redirect you on a different page if the login taske will not completed as needed... I can't try this :D There is no login page, only a box appearing over the browser asking user and password. Thanks anyway Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BASIC Authentication
Hi all I have a small problem trying to configure BASIC auth. Everything works good, but i'd like to know if i can change the default page when the user is not authenticated. I try to eplain better: if i write wrong 3 times the password, or i click on cancel button, a default Tomcat page appears saying type Status report message description This request requires HTTP authentication (). Is possible to change this default page? Tx everybody Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BASIC Authentication
Omar Adobati ha scritto: I never try it, but maybe u can write your own code into the login page that redirect you on a different page if the login taske will not completed as needed... I can't try this :D There is no login page, only a box appearing over the browser asking user and password. Thanks anyway Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
[EMAIL PROTECTED] ha scritto: Hi, Where do I need to set JAVA_OPTS (Should I edit catalina.bat file?). I am using Win 2k Pro and Tomcat 5. Thank you, Best Regards, Uma Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to set JAVA_OPTS
Jon Wingfield ha scritto: No need to change the script. I normally set an Environment variable in the same place I define JAVA_HOME Go to Control Panel \ System \ Advanced tab \ Environment variables... Well, that's where it is on XP, which i'm currently running. HTH, Jon I don't think is a good approach, at least for me. An environment variable is accessible to all java programs. Modifying the script affects only tomcat. Bye Giorgio Giorgio Ponza wrote: Hi usually i put my JAVA_OPTS in catalina.sh (in windows is catalina.bat) like this REM set JAVA_OPTS=-server -Xms128m -Xmx128m -verbose:gc -Xrunhprof:cpu=times,depth=6,thread=y,file=C:\log.txt set JAVA_OPTS=-server -Xms64m -Xmx64m echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% echo using JAVA_OPTS: %JAVA_OPTS% it is used later in lines like %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% Hope i helped u bye Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- Giorgio Ponza Web Developer Opla.com Ltd Tel. +39 011 7506233 Fax. +39 011 746179 http://www.opla.it --- Ci sono persone che hanno soldi e persone che sono ricche (Coco Chanel) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AGAIN jk2 2.0.4 compile
hi all again :D I am trying to build tomcat connector 2.0.4 from source. I've read maby howto etc, but i didn't succeed. I installed apache 2.0.49 with --enable-so option Also tomcat 5.0.19. I am working on RH 9. I installed apr 0.9.4 in /usr/local/apr-0.9.4 and apr-util in /usr/local/apr-util-0.9.4 If i use the line ./configure --with-apx2=/usr/local/apache2049 it says: configure: error: Apache 1.3 requires apr to built from source, use --with-apr and --with-apr-util OK, so i set also that 2 options and i obtain configure: error: Use apr that comes with Apache 2, remove --with-apr OK again i tried to follow some FAQ suggestions like ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-apr=/usr/local/src/apr-0.9.4 --with-apr-util=/usr/local/src/apr-util-0.9.4 with an error configure: error: Use apr that comes with Apache 2, remove --with-apr and many others, mixed and remixed do you have some advices? i'm not really good with linux, have i to installa apxs from a source different than apache2049? TX a lot Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AGAIN jk2 2.0.4 compile
Dale, Matt ha scritto: I just did this today, look for the apr libs in /usr/local/apache/lib directory and complile with ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-apr-lib=/usr/local/apache/lib \ --with-tomcat-41=/usr/local/jakarta-tomcat-5.0.19 \ --with-java-home=/usr/local/j2sdk \ --with-jni I've done it, but the error continues to be: configure: error: Apache 1.3 requires apr to built from source, use --with-apr and --with-apr-util I have downgraded to 2.0.2 until i will have more time to try again. see http://www.connecties.com/cymulacrum/tomcat5/book1.html if you need any more help ohh, was the first one i looked at. Tx a lot for the help Giorgio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAR files help
Hi all i have my application running at www.demo.local in Tomcat 4.1.24 Linux RH 9 the dir is /webapps/demo and the files are unpacked Now i'd like to clear it and create a WAR file. So i've done this 1. jar cf demo.war * 2. copied the file in /webapps 3. deleted the directory /webapps/demo 4. modified the server.xml with this Host name=www.demo.local debug=0 appBase=webapps/demo unpackWARs=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=demo. suffix=.txt timestamp=false / Context path= docBase=/demo debug=0 reloadable=true /Context /Host Now if i use http://www.demo.local/demo it works, but i want it to work with http://www.demo.local without the app name as suffix I have many applications on that tomcat, so using the app name is not good. Any suggestions on how to proceed? Tx in advance Giorgio Ponza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WAR files help
Hi all i have my application running at www.demo.local in Tomcat 4.1.24 Linux RH 9 the dir is /webapps/demo and the files are unpacked Now i'd like to clear it and create a WAR file. So i've done this 1. jar cf demo.war * 2. copied the file in /webapps 3. deleted the directory /webapps/demo 4. modified the server.xml with this Host name=www.demo.local debug=0 appBase=webapps/demo unpackWARs=false Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=demo. suffix=.txt timestamp=false / Context path= docBase=/demo debug=0 reloadable=true /Context /Host Now if i use http://www.demo.local/demo it works, but i want it to work with http://www.demo.local without the app name as suffix I have many applications on that tomcat, so using the app name is not good. Any suggestions on how to proceed? Tx in advance Giorgio Ponza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error when I start Jakarta-tomcat(Cont)
I agree with you. I'd try to execute a dos2unix utility on that script file I had the same problem, maybe copying it from a win version Giorgio John Turner ha scritto: Relax, we are helping you. How did you install Tomcat? How did you extract the archive? Are there any strange characters in startup.sh? Did you by chance transfer the Tomcat archive in ascii mode instead of binary when you downloaded it? John Luong Phan wrote: Hi all, The file /bin/sh exists, and is executable (lrwxrwxrwx). I still get the error massage when I start jakarta-tomcat. Please help me! LuongPhan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat largefile option in web.xml
Hi all ! I have a question about the largefile in the default web.xml I've set the value of largefile to TRUE, but i can't see any differences, temp files, etc. There are some FAQ for this option? Tx Giorgio Ponza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure
usually an intelligent OS would considerate MyPage.jsp mypage.jsp 2 different files and i can only say this is a good approach. So, expecially for portability, Tomcat should follow this feature, i think. In any case, if you want to save finger gymnastics, you can rename your files in lower case ehheeh My opinion Giorgio Ponza Why shouldn't I want to configure for case insensitivity? What does it really matter whether I type http://some.server.com/Folder/MyPage.jsp - or simply, without the finger gymnastics - http://some.server.com/folder/mypage.jsp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache and Tomcat on different machines using mod_jk (ajp13)
worker.list = remote what is that? is not worker.list=ajp13 ? in the tomcat machine the machineB.com must be resolved (usually by hosts file) This same name machineB.com must be in your apache httpd.conf defining the ServerName Giorgio Ponza - Original Message - From: Amit Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:51 PM Subject: Apache and Tomcat on different machines using mod_jk (ajp13) Hi I am hoping to get some pointers and help. I am trying to setup connection between apache on machine A to tomcat on machine B. Here is the setup Machine A (Apache http) Machine B (tomcat ajp13 listening on port number 8011) Case I I have been able to install and use mod_jk.so to connect to tomcat on the same machine (Machine A), and there is no problem. Case II How ever i am not able to connect to tomcat on Machine B ( i understand it is possible ? ). The workers.properties for this case on Machine A is worker.remote.port=8011 worker.remote.host=machineB.com worker.remote.type=ajp13 The relevant entries in httpd.conf on Machine A are ##START LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel debug JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T JkMount /eada/* remote JkMount /eada/*.jsp remote ##END I have checked: On Machine B ajp13 is listening on 8011 (Connector is defined in server.xml) and that i can access http://machineB:8080/eada How ever i get 404 messages from apache (not from tomcat) when i try to access http://machineA/eada/index.jsp The mod_jk.log (machine A) does not show any error or info how ever in debug mode shows the following ( line 16 it says remote worker contact is machineB.com:8011). Line 46 it tries to match uri /eada/* how ever at this step if i understand correctly remote worker should kick in and communicate with machineB (is that right) ? 1 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc 2 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open 3 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 4 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /eada/=remote was added 5 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /eada/.jsp=remote was added 6 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules 7 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done 8 [Thu Jun 12 10:38:40 2003] [jk_worker.c (88)]: Into wc_open 9 [Thu Jun 12 10:38:40 2003] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers 10 [Thu Jun 12 10:38:40 2003] [jk_worker.c (228)]: build_worker_map, creating worker remote 11 [Thu Jun 12 10:38:40 2003] [jk_worker.c (148)]: Into wc_create_worker 12 [Thu Jun 12 10:38:40 2003] [jk_worker.c (162)]: wc_create_worker, about to create instance remote of ajp13 13 [Thu Jun 12 10:38:40 2003] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory 14 [Thu Jun 12 10:38:40 2003] [jk_worker.c (171)]: wc_create_worker, about to validate and init remote 15 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1343)]: Into jk_worker_t::validate 16 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1364)]: In jk_worker_t::validate for worker remote contact is machineB.com:8011 17 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1397)]: Into jk_worker_t::init 18 [Thu Jun 12 10:38:40 2003] [jk_ajp_common.c (1421)]: In jk_worker_t::init, setting socket timeout to 0 19 [Thu Jun 12 10:38:40 2003] [jk_worker.c (187)]: wc_create_worker, done 20 [Thu Jun 12 10:38:40 2003] [jk_worker.c (238)]: build_worker_map, removing old remote worker 21 [Thu Jun 12 10:38:40 2003] [jk_worker.c (250)]: build_worker_map, done 22 [Thu Jun 12 10:38:40 2003] [jk_worker.c (111)]: wc_open, done 1 23 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc 24 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open 25 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 26 [Thu Jun 12 10:38:40 2003] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /eada/=remote was added 27 [Thu Jun 12 10:38:40 2003
Re: virtual hosts - tomcat 4
U can try Host name=www.myurl.com debug=0 appBase=webapps/myapp unpackWARs=true autoDeploy=true Context path= docBase= debug=0/ /Host Giorgio - Original Message - From: Fiona [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Jens Skripczynski [EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 1:42 PM Subject: Re: virtual hosts - tomcat 4 I've tried what you suggested, and my host is now: Host name=www.myurl.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path= docBase=E:/jakarta-tomcat-4.1.12/webapps/myapp debug=0/ /Host but this still brings me to the ROOT directory. If i take out the /myapp from the docBase, then i get the directory listing for / (all folders in webapps). I can still get to the page by going to www.myurl.com/myapp but i want to get to it by just typing www.myurl.com Thanks again, --- Jens Skripczynski [EMAIL PROTECTED] wrote: Hi, I belief your question is, how to link your webapp to '/' instead of '/webapp'. So you need to add an explicit context as default context. Context path= docBase=path-to-webapps debug=0/ Fiona: I'm using Tomcat 4.1.12 and set up a virtual host in my server.xml file. I want to be able to type the url www.myurl.com and this to go to the equivalent of going directly to localhost:8080/myapp. Currently www.myurl.com will replace the localhost section, but i still have to put the path of myapp after it to get to the page i want, i.e. www.myurl.com/myapp works but www.myurl.com does not. Here's the host that i added: Host name=www.myurl.com debug=0 appBase=webapps unpackWARs=true autoDeploy=true Context path=/myapp docBase=myapp debug=0 reloadable=true crossContext=true /Context /Host Ciao Jens Skripczynski -- E-Mail: skripi-lists(at)myrealbox(dot)com I think there is a world market for about five computers. -- Thomas J. Watson, CEO, IBM Corporation, 1947 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat STILL freezing - time to look at another app server?
I would try not to use the line Statement addressStatement = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDA TABLE); but only Statement addressStatement = conn.createStatement(); In fact, you don't get a ResultSet from the statement! Second: I would use a prepared statement, so i can control parameter types better. Are u sure the sql is correct? have u printed it? maybe there are some ' broken Try also to substitute the sequence value with a predefined number. There are also some optimizations creating the query, like using StringBuffer instead of concatenating strings Let us know!!! Giorgio Ponza - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 30, 2003 10:42 AM Subject: RE: Tomcat STILL freezing - time to look at another app server? There are many possible reasons why tomcat may freeze: - Database - ConnectionPool exhausted Do you use a connection pool ? - Which one ? How is it configured ? - Most connection pools let you configure the behaviour if the the pool is exhausted. To identify the problem you should temporarly set the timout for waiting for a connection to 0. - Database dead lock. Which database do you use ? Which driver do you use ? Do you use transaction or autocommit ? - Some databases have means to show the currently open statements. - Some databases can be configured to identify deadlocks and return an error instead. - If your database can't help you to identfy the problem, you may need to log every sql statement and the termination of the statement to see which statements are active when tomcat freezes. - Can you access pages without db access if tomcat freezes ? If not it's unlikely that you have a database dead lock. - Garbage Collection - enable verboseGC to see if the garbage collection happens when tomcat freezes. If so, try to use other modes for the garbage collector, that work concurrently. - Memory Usage - Look for the memory usage of your system - How much Memory is used ? - How much Swap is used ? - How much is paged ? - Thread dead lock If you can't safely reproduce the error, you may need to log some of the above information frequently (best with every request) to see if some values get critical when the freeze happens. From your current post, I would expect a DB dead lock. -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 1:25 AM To: 'Tomcat Users List' Subject: RE: Tomcat STILL freezing - time to look at another app server? Okay so just for my own interest (and sanity): here is the place where things are freezing. Can anyone see anything wrong with this? System.out.println (ADDRESS); /* add data to the ADDRESS table */ String addressSQL = INSERT INTO address (str_address_id, str_mailing, + str_street, str_city, str_province, str_postal_code) + VALUES + (address_seq.currval, ' + parentMailing + ', ' + parentStreet + ', + ' + parentCity + ',' + parentProvince + ',' + parentPostalCode + '); Statement addressStatement = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); /* execute the statement */ System.out.println (Address + addressSQL); //freezing here!! Not every time but always this place //ResultSet addressResults = addressStatement.executeQuery(addressSQL); boolean addressResults = addressStatement.execute(addressSQL);//still freezes with this one as well //addressResults.close(); addressStatement.close(); I have several similar lines that all run in sequence, adding data to different tables. The SQL has been tested in SQL+ and it all works. This doesn't always freeze. I have beans that I set back to null, and session variables that I do the same with, at the end of this particular file and at the beginning of the app. -Original Message- From: Hunter, Sandra [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:40 AM To: 'Tomcat Users List' Subject: RE: Tomcat STILL freezing - time to look at another app server? Thanks All! It helps to hear that others have occasionally had this problem. I will look into all your suggestions and see if resolution can be found. Sandra -Original Message- From: Koes, Derrick [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 12:44 PM To: 'Tomcat Users List' Subject: RE: Tomcat STILL freezing - time to look at another app server? I don't know if this helps any, but this has benefited me. If using an oracle database, try oracle.jdbc.pool.OracleOCIConnectionPool to get connection pool stats. -Original Message- From: Carl [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 2:48 PM To: Tomcat Users List Subject: Re: Tomcat STILL freezing - time to look at another app server? I have had
Re: Tomcat 2.4.11: no current tx!
i think you have to ask to the JBOSS list. ;) Giorgio - Original Message - From: Fang Yidong [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 6:21 AM Subject: Tomcat 2.4.11: no current tx! [12:20:55,394,XAConnectionFactory] XAConnectionImpl: [EMAIL PROTECTED] has no current tx! [12:20:55,395,XAConnectionFactory] XAConnectionImpl: [EMAIL PROTECTED] has no current tx! [12:20:55,397,XAConnectionFactory] XAConnectionImpl: [EMAIL PROTECTED] has no current tx! And so on.But the same problem is NOT in Tomcat 2.4.4.Why? - Do You Yahoo!? !~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and security-constraint
Hi all My conf: Tomcat 4.1.18 LE JDK1.4 Apache 2.0.44 with openssl mod_jk I want to secure a JSP page, but not with authentication, only with HTTPS support. So i added the lines in WEB.XML security-constraint web-resource-collection web-resource-nameTest securing JSP pages/web-resource-name descriptionTest securing JSP pages/description url-pattern/jsp/users/*.jsp/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint but Tomcat logs says: # No Realm has been configured to authenticate against So i uncommented MemoryRealm (i think is not the right Realm) and it now says ContextConfig[]: Configured an authenticator for method NONE and obviously the pages in /jsp/users continue to use simple HTTP transport protocol Can anyone tell me what i have to configure, or which Realm i have to use ? Tx in advance Giorgio Ponza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pls help me !! Urgent!
Hi Zafar I wrote this very simple method public final static String getString(String pOriginal) {if (pOriginal == null) return new String();return pOriginal;} and i use it to retrieve strings that can be null, getting in this case a new string. bye bye Giorgio - Original Message - From: zafar Ahsan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 10, 2003 8:16 AM Subject: Pls help me !! Urgent! hello Can any one pls let me know how to deals with null that result set returns when quering from an oracle database. its display null when using rset.getString() method and i want it to be either 0 or (nothing).Am novice to java and tomcat and null being a special literal in java cosing me problem to get up to my work. I would be very thankful for yr kind help. And if don't mind pls let me also know how to start tomcat server through windows server2000 services. Md. Zafar Ahsan _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Install JSSE?
I tried both the configurations (i mean JDK 1.3.1_03 + JSSE and JDK 1.4.0 alone) and both work. If u follow exactly the ssl_howto, i dont think u can have problems. Remember you need to change the port 8443 to 443 if u want your server be visible in the net with the SSL enabled. If u need help, ask. Giorgio - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 16, 2002 7:21 PM Subject: Install JSSE? The ssl_howto.html page on the tomcat website states that in order for tomcat to process https requests, I have to download and install the Java Secure sockets extension, however the JSSE page on www.java.sun.com/products/jsse states that jsse is packaged with the jdk 1.4, which is what I am running. I would think that would mean that I don't need to install the JSSE after all, but when I try to access my tomcat pages over a https connection, tomcat throws an exception stating that there was an error loading the SSL implementation. Does that mean I need to install JSSE after all, and if so, is there anything special I need to do to get it to work with Tomcat on a Red-hat Server? --Monte Glenn Gardner -- 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]
[OT] Linux environment variables
Hi guys. Sorry, i'm not expert in linux I need that some environment variables (like JAVA_HOME) are visible to a specified user Until today i worked with root, so i placed them in /etc/profile. I'd like now them are visible only for the specified user (also the installation is done by the user). Is there a file for the user where i can place them? Sorry my english and my poor linux knowledge Giorgio -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: error
Remember to place a return just after the sendRedirect line. Bye - Original Message - From: Dionisio Ruiz de Zarate [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 07, 2002 12:14 AM Subject: error Anybody knows whoat is this error?: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -- -- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.IllegalStateException at org.apache.catalina.connector.HttpResponseFacade.sendRedirect(HttpResponseFa cade.java:173) at org.apache.jsp.index$jsp._jspService(index$jsp.java:3364) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand ler.java:217) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19 4) at java.lang.Thread.run(Thread.java:484) -- -- MSN: [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: New HOWTOs posted
Thanx for the HOWTO. I tried to follow the instructions to setup Apache 2.0.40 and Tomcat 4.1.10 But when i startup Tomcat, it answers with this error: I have Tomcat 4.1.10 LE J2SE 1.4.1 Thanx for help Giorgio INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225 ) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:359) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:716) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:690) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:329) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser verLifecycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 4) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New HOWTOs posted
I've found that the problem is when i uncomment this line in server.xml of my Tomcat 4.1.10 LE J2SE 1.4.1 !-- Define an AJP 1.3 Connector on port 8009 Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225 ) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:359) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:716) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:690) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:329) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser verLifecycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 4) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) -- 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]
AJP 1.3 Connector fails to load on Tomcat 4.1.10
Hi all. I need to connect Apache 2.0.40 with Tomcat 4.1.10 and mod_jk.so Following the instruction given by John Turner, i uncomment this line in server.xml but i get an error (later in this mail) I tried with Tomcat 4.1.10 LE J2SE 1.4.0 and with the full installation, but with the same results. Also the libraries are the same for the 2 versions. Any help is welcome. Giorgio !-- Define an AJP 1.3 Connector on port 8009 Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- INFO: Initializing Coyote HTTP/1.1 on port 8080 ServerLifecycleListener: createMBeans: MBeanException java.lang.Exception: ManagedBean is not found with Ajp13Connector at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225 ) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:359) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:716) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:690) at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve rLifecycleListener.java:329) at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser verLifecycleListener.java:206) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:166) at org.apache.catalina.core.StandardServer.start(StandardServer.java:218 4) at org.apache.catalina.startup.Catalina.start(Catalina.java:510) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 and SSL
Hi guys!!! I have installed Tomcat 4.0.3 stand-alone and i'd like to use SSL. SSL is installed correctly, but i'd like to know how to configure server.xml to get the feature. I'd like to use the port 80, not the default 8443. If i change it, in local it works but accessing the site from another machine, it tells me the URL is malformed. There are some documents for this? TX ALL Giorgio -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.0.3 and SSL
yes, i tried before and works not. I was writing the solution in the mailing list THanks a lot !! Giorgio -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 and session handling
Hi all!! I have Tomcat 4.0.3 installed, Apache 2.0.36 with warp connector (but the problem happens also with tomcat standalone) my welcome page is index.jsp, like configured in web.xml (in order i have index.jsp, index.htm, index.html). I try to test my site without cookies, so it usually rewrite URLs. I do not have problems going from a page to another, the session is always rewritten on the URL. But i found a problem. If from a page i try to go onto the root ... like www.mysite.com/ without specifying any file, Tomcat creates a new session also if the jsessionid is appended to the URL. This happens with IE5, 6 and NS4.7, so i must think is a Tomcat problem. I think the problem is because tomcat tries to redirect from / to the welcome page, but dont rewrite the URL. Hope u can understand my english.. Someone can help me? thanx have a nice weekend Giorgio -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: problems with encodeURL
I use Tomcat 4.0.3 and this URL works fine http://localhost/jsp/Registration/RegisterUser.jsp;jsessionid=1443034522BEFA 7F08FAB7D909FC8BC0?Home=true I use it in this way response.sendRedirect(response.encodeRedirectURL(/jsp/Registration/Register User.jsp?Home=true); maybe you only have problems in your java code when you try to retrieve the parameter value. Can you send some sample code? Hi Giorgio - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 25, 2002 9:41 AM Subject: problems with encodeURL Hi all I have problems encoding URL's to make work my app with browsers not allowing cookies. The HttpServletResponse's encodeURL method produces something in that style: http://localhost:8081/jsp/login.jsp;jsessionid=5483F1B0E56180A7774110F1B4B59 042?newLanguage=fr but from such an URL, ths HttpServletResponse's getAttribute-method cannot read out my newLanguage-Parameter ... (Although I add the parameter before encoding the URL ...). Does anybody have experience with URL-rewriting with Tomcat and could show me a short example? (Or should I try to add the sessionId myself to the URL?) Thanks for any help! Philipp -- 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 performance issues
If you disable the database connection, the time is still long? Are you sure is not a db problem? Hi - Original Message - From: Power-Netz (Schwarz) [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, June 14, 2002 11:59 AM Subject: AW: Tomcat performance issues Hi All I have designed some jsp pages which extract from a database. But the pages can take upto 5 minutes before they show the content. Is there anyway I can pinpoit where the bottle neck is. My current settings are APACHE + MOD_jk + Tomcat 4.03 (could the bottle neck be my Apache and tomcat servers being on separate machines?) . Are there any tools that I can use to test the performance of my servers? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Urgent.. Please help me
please send some more, like the db JNDI definition, i think is only a name problem GIorgio - Original Message - From: Alvin Wang [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 03, 2002 4:05 PM Subject: Urgent.. Please help me Hi! I have an urgent question. Could any guru help me to diagnosis it? I'm using tomcat 4.0. My servlet gets the DataSource from JNDI. However, it raise the following exception: javax.naming.NameNotFoundException: Name java:comp is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:194) at javax.naming.InitialContext.lookup(InitialContext.java:350) That means the the whole java:comp cannot be found, which I think should have nothing to do with my DataSource resource setup in my web application context. Also I use javax.naming.NamingEnumeration ne = initCtx.list(); I found there is nothing under JNDI root. I think there is much some configuration not right. Can any gurus help? thanks so much! Alvin -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Exception when I try to reload a page
I always put a return just after a forward, forcing the tomcat to stop compiling the rest. If it's not your problem, post some more code Regards Giorgio - Original Message - From: Raphael Di Cicco [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, April 11, 2002 12:23 PM Subject: Exception when I try to reload a page Hi, my JSP page is printed on the screen (note that this webpage contains a jsp:forwardbut when I try to refresh it I get this message : java.io.IOException: Error: Attempt to clear a buffer that's already been flushed When I go to the compiled jsp the error is pointing to a line where there is out.clear(); Is there any way I can work around this problem ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: urlencoded session html-redirection-bug
When you encode the url, the first time the jsessionid is attached to the URL, but if your browser have cookies enabled, a cookie is assigned and the jsessionid parameter is not shown anymore. I tried this widh IE5 IE6 an NE4.7 and works. If you disable cookies, you'll see the URL always with the jsessionid attached. Regards Giorgio - Original Message - From: Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 7:52 PM Subject: urlencoded session html-redirection-bug Hallo! please help!!! when I encode an URL and do something like: meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 neither Netscape 4.xx nor InternetExplorer 5.5 handle the ;jsessionid correct. they redirect to the URL /myURL WITHOUT the ;jsessionid Netscape 6.2 and Opera 6.1 handle this redirection as expected and concat the ;jsessionid=... to the URL! any idea??? I need this feature for NS4 and IE5.5 !!! thanks michi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: On timeout
maybe you can use this method in your JSP boolean session.isNew() saying if the session id is just created or not. Giorgio - Original Message - From: Raphael Di Cicco [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 11:06 AM Subject: On timeout Hi, I have had this problem for a long time. This may not be very difficult but still. I have a timeout on my server, let's say 10 minutes. After 10 minutes, all session variables are destructed, so the user gets an exception message once he tries to interact with the application. Is there anyway I can detect this so that I can warn the user ? Thanks, Raphaƫl -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Re: urlencoded session html-redirection-bug
So, try this way: meta http-equiv=refresh content=10; URL='myURL?;jsessionid=og9obimzx2' with the single ' after = and before closing and the ? before the jsessionid i tried with some url and works, hope also for you Regards Giorgio - Original Message - From: Michael [EMAIL PROTECTED] To: Giorgio Ponza [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 9:55 AM Subject: Re : Re: urlencoded session html-redirection-bug When you encode the url, the first time the jsessionid is attached to the URL, but if your browser have cookies enabled, a cookie is assigned and the jsessionid parameter is not shown anymore. thanks for your comment - but this isn't the problem! to handle the first-time URLencode after session-creation, I redirect (302) to the same URL with a QueryStringParameter FirstAccessSession - in this request I now see, if the Session is obtained by cookie or by URL! I do another redirect to the (now correctly) urlencoded URL (of course without the FirstAccessSession-Parameter). This URL now has the sessionid encoded in its URL only, if the browser doesn't support cookies! My problem: I have a browser with cookies disabled - a html-redirect like meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 is misunderstood by many browsers (NS 4.x, IE5.x, IE6 ...) because of the second ; before jsessionid! the signature of the html-redirect-function is (int delayInSeconds;String redirectURL) separated by a ;! The second ; makes the browsers believe: here the URLString ends - but this isn't correct! The browser is redirected to the URL without encoded sessionid - and so looses its session!!! so how to make a HTML-redirect with URL-encoded sessionid? thanks michi - Original Message - From: Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 7:52 PM Subject: urlencoded session html-redirection-bug Hallo! please help!!! when I encode an URL and do something like: meta http-equiv=refresh content=10; URL=/myURL;jsessionid=og9obimzx2 neither Netscape 4.xx nor InternetExplorer 5.5 handle the ;jsessionid correct. they redirect to the URL /myURL WITHOUT the ;jsessionid Netscape 6.2 and Opera 6.1 handle this redirection as expected and concat the ;jsessionid=... to the URL! any idea??? I need this feature for NS4 and IE5.5 !!! thanks michi --- - -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: NullPointerException when using JDBC ResultSet next() method
sorry, but you called ResultSet rset = stmt.executeQuery (select sc_id from bug_status_codes); and then used rs.next() maybe they must be all rs or all rset. Bye Giorgio -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: someone....need help!!!!....
Sometimes happens also to me. My solution is to empty the folder /tomcat/work so Tomcat must recompile it. But i think some gurus here have a better solution. Giorgio - Original Message - From: ajith kondapalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 5:28 PM Subject: someoneneed help hai, I have just started using tomcat to deploy some webapps...the problem:I create the webapps for the first time and deploy them,it saves the changes and runs properly..but later changes in the JSP i am makin are not reflected in the outputso if i run the program for the first time then it shows the changes but later after i make some changes and run it the second time,it doesnt reflect those changesi dont undertsand what the problem issomeone plz help...!!! thanks ajith __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]