Antwort: Need help with deployment

2005-12-12 Thread Jan Behrens
I am not a Linux man myself but I would think that you do have a problem with the access rights - unless Tomcat is running as root, which I thing would be even worse. If not, the Tomcat user will need rw access to its webapp dir (and should own it) in order to unpack anything. HTH, Jan Mark Ph

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

2005-12-12 Thread Prathibha, Bharathi
Hi Behrang, visit these links once - http://www.liferay.com/web/guest/documentation/installation/tomcat http://www.mpxsys.com/blojsom/blog/kyrylkov/Tomcat/2005/05/23/Liferay_Po rtal_on_Tomcat_5_5_x_and_Tomcat_5_0_x.html http://forums.liferay.com/lofiversion/index.php/t1441.h

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. A

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

2005-12-12 Thread Prathibha, Bharathi
Hi Behi, are U talking about the directory under ${TOMCAT_HOME}/common? I don't find any such directory(ext) under ${TOMCAT_HOME}/common/lib. Usually ${TOMCAT_HOME}/common/lib is the directory which contains jar files that are automatically on the classpath and will be used by all web

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 l

RE: TOMCAT + DATASOURCE + CONNECTION POOL

2005-12-12 Thread Prathibha, Bharathi
Hi Karthik, U must have done some thing like this while configuring the Datasource (in ur server.xml ) right? Hope this helps, Regards, Prathibha. -Original Message- From: Karthik [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2

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 t

setup for web designers?

2005-12-12 Thread rusty+tomcat
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? In my case the web designers have already been working with apache with their files in /usr/local/apache/htdocs. My

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 users

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 wit

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, I

apache, tomcat http to https redirect

2005-12-12 Thread Terence M. Bandoian
Hi- You might try using a security constraint in web.xml: SSLPages /* CONFIDENTIAL The web resource name and url pattern will have to be specified according to your requirements. -Terence M. Bandoian > > Good aft

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

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 HttpSession.setAttribut

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 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 explicit

Re: Servlet with URL pattern "*." 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 specificati

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
Hi As state in the javadoc it should throw NullPointerException if name is null (wich make sense). But in the code they also throw an exception if the the value (o) is null! Regards /David setAttribute public abstract void *setAttribute*(java.lang.String name,

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 "*." 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. test ServletsTestPage test2 HelloWorldServlet

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: syntax for RemoteAddrValve and allowing multiple hosts

2005-12-12 Thread Tim Funk
Its comma seperated. http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html try: allow='192\.168\.1\..+,^10\..+' -Tim Mark wrote: 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

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: Antwort: Re: Session cookies on Linux

2005-12-12 Thread Martin Gainty
Guten Tag Jan- did you find any restrictions in java.policy file? Anyone else? M - Original Message - From: "Jan Behrens" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, December 12, 2005 11:55 AM Subject: Antwort: Re: Session cookies on Linux Hi Martin, thanks for the sho

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 truel

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 PROTECTED]

RE: Help needed to set tomcat5.0.28 and IIS 5

2005-12-12 Thread David Chen
Hi, there: Actually, no response so far for uring JK1.2 connector to integrate tomcat 5.0.28 with IIS 5. However, by using JK2 connector (which was deprecated), I got tomcat 5.0.28 and IIS 5 working together fine. So, currently, we just using JK2 instead of JK1.2 Thanks a lot David -Origina

RE: How to reload jsp using ant in Tomcat 5.5

2005-12-12 Thread Jan Behrens
Just a gues, but maybe you have antiResourceLocking turned on? see --> http://issues.apache.org/bugzilla/show_bug.cgi?id=37668 Jan "Guillermo Sobrino" <[EMAIL PROTECTED]> schrieb am 12.12.2005 18:09:28: > > Hello again, > > trying to find a solution to my problem I have discovered that in >

RE: How to reload jsp using ant in Tomcat 5.5

2005-12-12 Thread Guillermo Sobrino
Hello again, trying to find a solution to my problem I have discovered that in past Tomcat versions I had just to copy my new jsp pages in the installation directory to get them updated in Tomcat. There was no need to use target reload. So maybe I am forgetting any configuration parameter in T

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

2005-12-12 Thread Tim Funk
You have the invoker enabled. It is evil. Get rid of it. http://tomcat.apache.org/faq/misc.html#evil > java.lang.ClassNotFoundException: sa.ca -Tim Akhthar Parvez K wrote: 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 "*." 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 "*.". eg:- I have the following entry in my web.xml = test ServletsTestPage

Antwort: Re: Session cookies on Linux

2005-12-12 Thread Jan Behrens
Hi Martin, thanks for the shot ;) Unfortunately this is not the problem, Tomcat has r&w access to these dirs and successfully writes to them. It's just not handling the session ID via cookies, but then again I am not sure whether this is realy related to the dir question or maybe something else

Re: Session cookies on Linux

2005-12-12 Thread Martin Gainty
This is a shot in the dark but does the sym linked folder have write permission ? assume that tomcat is installed to /usr/local/tomcat..e.g. chmod +w /usr/local/tomcat Anyone else? Viel Gluck, Martin- - Original Message - From: "Jan Behrens" <[EMAIL PROTECTED]> To: "Tomcat Users List"

Tomcat JNDI and LDAP SSL/TLS

2005-12-12 Thread FM
Hello, I configure JNDI to sue ldap, but it is cleat text. Is it possible to use LDAP over SSL and TLS woth tomcat ? thanks ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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 t

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 this

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 weir

RE: Tomcat JDBC connection with MySQL

2005-12-12 Thread Jan Behrens
> String userName = "root"; > String password = ""; > String URL = "jdbc:mysql://l/AdressBook"; Are you sure this is correct? You are connecting to a MySQL server at URL "1" and db "AdressBook" as root without a password... you should: - secure

RE: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Karthik
Hi Use the default mysql port 3306 instead of the '1' Print the log files and further get back to the form something like this needsto be used jdbc:mysql://192.168.10.147:3306/?user=XYZ&password=anc&autoReconnect=tr ue hope this helps with regards Karthik -Original Message-

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: 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 went

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 MESSA

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 it'

Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
I've given a similar answer before. I'm not going to type it again. It's here: http://marc.theaimsgroup.com/?l=tomcat-user&m=113388805700777&w=2 If there's anything not clear, don't hesitate. Navalpotro Herrero, Luis wrote: Hi, I would use a filter to change the enconding in the respo

RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Karthik
Hi If u have installed mysql on u'r sys ,there are docs in html format within giving u details about the "grant permission" to u ip's" read and use them hope this helps with regards Karthik -Original Message- From: marju jalloh [mailto:[EMAIL PROTECTED] Sent: Monday, December 12

Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Jan Behrens
look here --> http://dev.mysql.com/doc/refman/4.1/en/connection-access.html rtfm ;) marju jalloh <[EMAIL PROTECTED]> schrieb am 12.12.2005 13:33:54: > But how to Grant permission to an ip host > > > Karthik <[EMAIL PROTECTED]> wrote: hI > > tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U

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: users@tomcat.ap

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: 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 th

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: 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 Mª Carmen Gómez Romero
I saw this in opencms configuration. Where do I have to do this? -- Forwarded message -- From: Seak, Teng-Fong <[EMAIL PROTECTED]> Date: Dec 12, 2005 11:03 AM Subject: Re: encoding error To: Tomcat Users List Is it a good idea to specify this parameter in Tomcat startup? Wher

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 spe

Antwort: Tomcat JDBC connection with Mysql

2005-12-12 Thread Jan Behrens
looks like your mysql user does not allow connections from the url of your tomcat. check whether access to mysql is granted to 'localhost' and (both entries!) '%'. the later should be used only for debugging however, better to include just the specific name of the tomcat hostname under named hos

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 'localhost.localdoma

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 ,i

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 ch

Error in the makefile generated for mod_jk on HP-UX unix!Here is the solution.

2005-12-12 Thread Prathibha, Bharathi
> Hi All, >I found a small problem while building mod_jk 1.2.15 on HP-UX unix > . There are errors in the makefiles that are being generated while > configuring the module for use with Apache. And , binaries are also > not available.I struggled a lot for generating mod_jk.so on HP-UX. I > coul

RE: Help needed to set tomcat5.0.28 and IIS 5

2005-12-12 Thread Sue Roe
David Did you get any response to your question? I am trying to do the same thing here. Thank you -Original Message- From: David Chen [mailto:[EMAIL PROTECTED] Sent: 03 December 2005 01:25 To: users@tomcat.apache.org Subject: Help needed to set tomcat5.0.28 and IIS 5 Hi, there: I tri

RE: Tomcat 4.06, JK ISAPI redirector plugin 1.2.15.0, IIS 6.0 on Wind ows Server 2003 How To

2005-12-12 Thread Sue Roe
Did you get any response to your question I wonder? We are looking at the same issues -Original Message- From: Weegar, Jim [mailto:[EMAIL PROTECTED] Sent: 01 December 2005 14:59 To: users@tomcat.apache.org Subject: Tomcat 4.06, JK ISAPI redirector plugin 1.2.15.0, IIS 6.0 on Wind o

Broken pipe error

2005-12-12 Thread Mª Carmen Gómez Romero
Hi, I have this message in tomcat log. Why do I have this message?What is the meaning? Thank you. 02-dic-2005 12:46:33 org.apache.jk.server.JkCoyoteHandler action GRAVE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at j

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///SESSIONS.ser All dirs must me writeable

encoding error

2005-12-12 Thread Mª Carmen Gómez Romero
Hi, I have a server with Apache 2.0 + Tomcat 5.0 I have a problem because sometimes seem the charset change. If I restart = the tomcat, the charset is correct other time. I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup. what is it happening? Thank you.