Re: Session cookies on Linux

2005-12-12 Thread Peter Rossbach
a) Setup Firefox LiveHTTPHeader Plugin or nettools http proxy to scan you traffic. When tomcat not see a JSESSIONID cookie at the request the can't associate a session. b) StandardSession Manager store all Session at shutdown app at work/Catalina/host/app/SESSIONS.ser All dirs must me

Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
Is it a good idea to specify this parameter in Tomcat startup? Where did you read that you have to do so? Or who told you to do so? Regards, Seak Mª Carmen Gómez Romero wrote: Hi, I have a server with Apache 2.0 + Tomcat 5.0 I have a problem because sometimes seem the charset

TOMCAT + DATASOURCE + CONNECTION POOL

2005-12-12 Thread Karthik
Hi I have sucessfully created a JDBC connection using DataSource and JNDI on Tomcat5.x Is it necessary for create a Connection POOL using this DataSource based Jdbc Connnection or will the DataSource itself provides the Connection POOL for managing the JDBC connections on startup

Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
I can`connect to my database with via servlet. The connection works well in PHP but not with servlet. I have googled but no solution. this is my error page I got java.sql.SQLException: Data source rejected establishment of connection, message from server: Host

Re: TOMCAT + DATASOURCE + CONNECTION POOL

2005-12-12 Thread ALEX HYDE
Hey, I think though I'm not 100% When you declare the datasource in web.xml (or is Server.xml?) it creates a pool factory for you under the covers (I think using Jakarta DBCP). When you use JNDI look-up it asks the factory for a pool. You are then magically using a pool. You

RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Karthik
hI tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE PERMISSION TO THE ip HOST U ARE USING TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT ALL acl PREVELIAGES AVALIABEL IN MYSQL DB USE A FRONT END LIKE MYSQL FRONT TO DO THIS HOPE THIS HELPS. WITH

Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
Nowhere! Or more exactly, it depends on what you want to do, or what's wrong when it's not used. Mª Carmen Gómez Romero wrote: I saw this in opencms configuration. Where do I have to do this? -- Forwarded message -- From: Seak, Teng-Fong [EMAIL PROTECTED] Date: Dec 12,

Re: Session cookies on Linux

2005-12-12 Thread Jan Behrens
Thanks for the input Peter. What I see now is even more confusing to me; - Tomcat sets a cookie containing a session id X - On the request however, the URL gets rewritten using session id Y (and X != Y) All subsequent requests made are handled via URL rewriting using session id Y. I can see

RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
But how to Grant permission to an ip host Karthik [EMAIL PROTECTED] wrote: hI tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE PERMISSION TO THE ip HOST U ARE USING TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT ALL acl PREVELIAGES AVALIABEL IN MYSQL

RE: encoding error

2005-12-12 Thread Navalpotro Herrero, Luis
Hi, I would use a filter to change the enconding in the response/request objects... Tomcat includes an example of how to do this... Regards Luis -Mensaje original- De: Mª Carmen Gómez Romero [mailto:[EMAIL PROTECTED] Enviado el: lunes, 12 de diciembre de 2005 12:47 Para:

Re: Please respond to my query --- in need of help badly!!

2005-12-12 Thread David Smith
1) Begging is very unbecoming. Have you tried googling for 'tomcat java.net.ConnectException'? 2) On the surface, it would appear some of your webapp code is attempting to connect to another service, but doesn't have the privilege to do so. If tomcat is running with a security manager, check

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
I went throug the permission and now I get another error java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.SocketException: java.net.ConnectException: Connection refused ** BEGIN NESTED EXCEPTION ** java.net.SocketException

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Sebastian Funk
Hi, I got the same error a few weeks ago. in my case, the URL was wrong. you use: jdbc:mysql://l/AdressBook Are you sure it's right? Is 'l' really the right host? Did you tried it with the ip-address? Best Regards, Sebastian On Dec 12, 2005, at 2:37 PM, marju jalloh wrote: I

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
yes it is right I tried it with localhost and also eith the IP address Thanks for your response Byfour Sebastian Funk [EMAIL PROTECTED] wrote: Hi, I got the same error a few weeks ago. in my case, the URL was wrong. you use: jdbc:mysql://l/AdressBook Are you sure it's right? Is 'l'

RE: Please respond to my query --- in need of help badly!!

2005-12-12 Thread Nehal Sangoi
Hi I could resolve the problem. There was incorrect URL mentioned in web.xml of my application warfile. Actually, i don't deal with configuring this part of coding -- as i do just administer. And, hence, i did have faith in my developer who made all changes. After that, the errors were really

Re: encoding error

2005-12-12 Thread Martin Gainty
ISO 8859 is a full series of 10 standardised multi-lingual single byte coded 8 bit grapchic character sets for writing in alphabetic languages information is available at http://czyborra.com/charsets/iso8859.html If you want TOMCAT to default to Latin1 (West European) character set then use

Re: Please respond to my query --- in need of help badly!!

2005-12-12 Thread Martin Gainty
Nehal- If there are 2 people working in your shop say 1 developer and 1 admin then as the administrator you are the last line of defence before the webapp is deployed So if your developer changes the web.xml so that the webapp cannot be deployed you need to pickup on that and fix it or revert

RE: Tomcat JDBC connection with MySQL

2005-12-12 Thread marju jalloh
I made it Thanks everyone especially jan and Kirthik Byfour Jan Behrens [EMAIL PROTECTED] wrote:String userName = root; String password = ; String URL = jdbc:mysql://l/AdressBook; Are you sure this is correct? You are connecting

Re: Session cookies on Linux

2005-12-12 Thread Jan Behrens
Anyone? I am still stuck on this, I admit that our machine's setup is a bit 'special' as it has to IPs with a server instance bound to each. But everything else works fine, except for this stupid cookie problem. Can someone clarify whether using symlinks within the Tomcat install directory is

Servlet with URL pattern *.something is not working.

2005-12-12 Thread Akhthar Parvez K
Hello, I have a tomcat server (ver:- 5.5.9) installed on my server and all jsps and servlets are working fine except the servlet with URL pattern *.something. eg:- I have the following entry in my web.xml = servlet servlet-nametest/servlet-name

tomcat + ldap gssapi

2005-12-12 Thread FM
Hello, I read that jndi cannot use ldap SSL or TLS. Is-it possible to use GSSAPI ? I cannot fond anything in the tomcat doc. Thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Connecting Tomcat and Apache using mod_jk and jni (deprecated?) or ajp13

2005-12-12 Thread Marc Richards
JNI requires that you use mod_jk2 (or Tomcat 3.3.x :) I noticed this too, but was trying to stay away from jk2 because it's no longer being developed. Patches to improve the documentation are always welcome ;-) Heh, heh. Tell you what, if I ever get this figured out completely and truely

syntax for RemoteAddrValve and allowing multiple hosts

2005-12-12 Thread Mark
I want to use the RemoteAddrValve and allow multiple hosts. What is the syntax for doing this? Thank you.

RE: How to reload jsp using ant in Tomcat 5.5

2005-12-12 Thread Subir Sengupta
Look in your web.xml, and tweak the JspServlet parameters. These 3 params control jsp reloading - modificationTestInterval, checkInterval and development. Hth, Subir -Original Message- From: Guillermo Sobrino [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 9:09 AM To: 'Tomcat

Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread David Gagnon
Hi all, I just installed a fresh tomcat 4.1.31 and run into this problem. From 4.1.30 to 4.1.31 the PageContexImpl.setAttribute has change in a way that make it unusable. I cannot set null attribute in the pageContext ?!?!?! So the following call throw an exception in 4.1.31:

Re: Servlet with URL pattern *.something is not working.

2005-12-12 Thread Martin Gainty
Akhthar I thought the servlet / servlet-class specifications are grouped together then servlet-mappings follow up and are grouped together e.g. servlet servlet-nametest/servlet-name servlet-classServletsTestPage/servlet-class /servlet servlet

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread Tim Funk
I am guesing it was a fix for spec compliance: http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/jsp/PageContext.html#setAttribute(java.lang.String,%20java.lang.Object,%20int) -Tim David Gagnon wrote: Hi all, I just installed a fresh tomcat 4.1.31 and run into this problem.

Re: Servlet with URL pattern *.something is not working.

2005-12-12 Thread David Smith
That's true if the web.xml file validates against the servlet spec 2.3 dtd instead of the servlet spec 2.4 schema. tomcat 5.0 and up supports servlet spec 2.4 which allows for elements to be out of order. --David Martin Gainty wrote: Akhthar I thought the servlet / servlet-class

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread Len Popp
That's correct. According to the spec that Tim linked to: Throws: java.lang.NullPointerException - if the name or object is null If you want to set it to null, call removeAttribute instead. This is different from HttpSession.setAttribute and ServletRequest.setAttribute, which

apache, tomcat http to https redirect

2005-12-12 Thread Kiarna Boyd
Good afternoon, I have a functional apache web server(2.0.52) and Tomcat(5.0.28) app server install. I'm trying to figure out the best way to do a redirect to enforce SSL logins. I can rewrite the URL with the webserver mod_rewrite BEFORE the JkMount directives are applied but not after as it

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread David Gagnon
Sorry I didn't read correctly the Javadoc :-) That's correct. According to the spec that Tim linked to: Throws: java.lang.NullPointerException - if the name or object is null If you want to set it to null, call removeAttribute instead. This is different from

Moving a file

2005-12-12 Thread Jef Sullivan
Forgive the double posting on this message, if it occurs. I need help with some code.. I want to move a file (CVS) to another folder. The code that I am using is this. File file = new File(Summary_ + dateVar + .csv); File dir = new File(propStuff.getProperty(recordDir));// value is

apache, tomcat http to https redirect

2005-12-12 Thread Terence M. Bandoian
Hi- You might try using a security constraint in web.xml: security-constraint web-resource-collection web-resource-nameSSLPages/web-resource-name url-pattern/*/url-pattern /web-resource-collection user-data-constraint

Need help with deployment

2005-12-12 Thread Mark Phillips
I have Tomcat 5.5.9 running on a Linux server. I am having hard time deploying war files remotely from my Linux desktop over the LAN. I have tried the following: 1. Upload war file using tomcat manager I can access the war file on my local machine using the tomcat manager from the server. So,

Securing File System Resources ?

2005-12-12 Thread Dov Rosenberg
Our application has its own security model that controls access to our information based on our own roles and permissions. We store files related to our application on the file system where our application is running. These associated files are served out by a web server. Our goal is to come up

RE: Securing File System Resources ?

2005-12-12 Thread Carl Olivier
Hi. I have used option 1 in your list with no problem. Others seem ok, but I have not tried them - have an innate paranoia about proxies I guess. Rgds, Carl -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: 13 December 2005 00:10 To: WebObjects Dev; Tapestry

Re: setup for web designers?

2005-12-12 Thread Mark Phillips
Try using %@ include file=header.html % instead. Mark On Monday 12 December 2005 06:29 pm, [EMAIL PROTECTED] wrote: How do people set up their tomcat so that the web designers can work on the static content and the programmers can work on the jsp stuff without stepping on each other's toes?

RE: TOMCAT + DATASOURCE + CONNECTION POOL

2005-12-12 Thread Prathibha, Bharathi
Hi Karthik, Context path=/servlets-examples debug=5 reloadable=true crossContext=true Resource name=jdbc/datasource_test auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=root password=admin driverClassName=com.mysql.jdbc.Driver

What is the purpose of common/lib/ext directory?

2005-12-12 Thread Behrang Saeedzadeh
Hi, What's the purpose of the common/lib/ext directory? Liferay bundled with Tomcat contains a bunch of JAR files in this directory. I was wondering what is the purpose of it. Can anybody explain this to me? Thanks in advance, Behi -- Science is a differential equation. Religion is a boundary

Re: What is the purpose of common/lib/ext directory?

2005-12-12 Thread Behrang Saeedzadeh
Hi Prathibha, are U talking about the directory under ${TOMCAT_HOME}/common? Yes. In 5.5.12 Tomcat doesn't have this directory. But I think that it was available in 5.0.x and 4.x versions. The Liferay is bundled with a JDK 1.4 compatible version of Tomcat which is not of the 5.5.x branch.