how to over come toomanyconnection error when communicatingMYSQL
hai all, i have one major issue in my project.. My project is developed using jsp,servlets in Tomcat5 with MySql as database.. i am using type1 driver My project is now used by end users in intranet.. When multiple users are accessing at the same time ,its throwing too many connections exception at sometimes . And at sometimes its dispaying error as Operation not allowed after ResultSet is closed i dont know how to rectify this .. Can anybody help me to overcome this.. Here is my bean file used for establing database connections... package com.pts.database; import java.io.*; import java.sql.*; import java.net.*; public class DBCon { private static final String DriverClass = com.mysql.jdbc.Driver; private static final String CONNECTION_STRING = jdbc:mysql://; private static final String PORT = 3306; private static final String DATABASE = opts; private static final String user = dav; private static final String pwd=; private static Connection con = null; private static Statement stmt = null; private static Statement stmt2 = null; private static PreparedStatement pst = null; private static ResultSet rs = null; private static int count = 0; public static void assignCon() { String CONNECTION_IP=100.100.100.6; try{ Class.forName(DriverClass).newInstance(); } catch(ClassNotFoundException ce){System.out.println(ce);} catch(InstantiationException ie){} catch(IllegalAccessException ie1){} try{ con = DriverManager.getConnection (CONNECTION_STRING+CONNECTION_IP+:+PORT+/+DATABASE,user,pwd); stmt = con.createStatement(); stmt2 = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); }catch(SQLException sqle){System.out.println(STMT:+sqle);} } public static ResultSet retrieveFromDB(String sql) throws SQLException { return (stmt.executeQuery(sql)); } public static ResultSet retrieveScrollDB(String sql) throws SQLException { return (stmt2.executeQuery(sql)); } public static int updateDB(String sql) throws SQLException { return (stmt.executeUpdate(sql)); } public static PreparedStatement prepareStmt(String sql) throws SQLException{ pst=con.prepareStatement(sql); return pst; } public static ResultSet getProjectsList() throws SQLException{ rs=((PreparedStatement)con.prepareStatement(select projID,projName from proj_det where delFlag=0 || delFlag IS NULL)).executeQuery(); return rs; } public Connection getConn() { return con; } public Statement getStmt() { return stmt; } public static void CloseAll() throws SQLException { stmt.close(); stmt2.close(); con.close(); } } Hope Any of u can help me.. it would be very much helpful to me if any body suggest me a solution to this... Because of this issue my project is in pending.. Thanks in Advance
how to over come toomanyconnection error when communicatingMYSQL
hai all, i have one major issue in my project.. My project is developed using jsp,servlets in Tomcat5 with MySql as database.. i am using type1 driver My project is now used by end users in intranet.. When multiple users are accessing at the same time ,its throwing too many connections exception at sometimes . And at sometimes its dispaying error as Operation not allowed after ResultSet is closed i dont know how to rectify this .. Can anybody help me to overcome this.. Here is my bean file used for establing database connections... package com.pts.database; import java.io.*; import java.sql.*; import java.net.*; public class DBCon { private static final String DriverClass = com.mysql.jdbc.Driver; private static final String CONNECTION_STRING = jdbc:mysql://; private static final String PORT = 3306; private static final String DATABASE = opts; private static final String user = dav; private static final String pwd=; private static Connection con = null; private static Statement stmt = null; private static Statement stmt2 = null; private static PreparedStatement pst = null; private static ResultSet rs = null; private static int count = 0; public static void assignCon() { String CONNECTION_IP=100.100.100.6; try{ Class.forName(DriverClass).newInstance(); } catch(ClassNotFoundException ce){System.out.println(ce);} catch(InstantiationException ie){} catch(IllegalAccessException ie1){} try{ con = DriverManager.getConnection (CONNECTION_STRING+CONNECTION_IP+:+PORT+/+DATABASE,user,pwd); stmt = con.createStatement(); stmt2 = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); }catch(SQLException sqle){System.out.println(STMT:+sqle);} } public static ResultSet retrieveFromDB(String sql) throws SQLException { return (stmt.executeQuery(sql)); } public static ResultSet retrieveScrollDB(String sql) throws SQLException { return (stmt2.executeQuery(sql)); } public static int updateDB(String sql) throws SQLException { return (stmt.executeUpdate(sql)); } public static PreparedStatement prepareStmt(String sql) throws SQLException{ pst=con.prepareStatement(sql); return pst; } public static ResultSet getProjectsList() throws SQLException{ rs=((PreparedStatement)con.prepareStatement(select projID,projName from proj_det where delFlag=0 || delFlag IS NULL)).executeQuery(); return rs; } public Connection getConn() { return con; } public Statement getStmt() { return stmt; } public static void CloseAll() throws SQLException { stmt.close(); stmt2.close(); con.close(); } } Hope Any of u can help me.. it would be very much helpful to me if any body suggest me a solution to this... Because of this issue my project is in pending.. Thanks in Advance
Re: how to over come toomanyconnection error when communicatingMYSQL
prakash shanmugam wrote: hai all, i have one major issue in my project.. My project is developed using jsp,servlets in Tomcat5 with MySql as database.. i am using type1 driver My project is now used by end users in intranet.. When multiple users are accessing at the same time ,its throwing too many connections exception at sometimes . And at sometimes its dispaying error as Operation not allowed after ResultSet is closed i dont know how to rectify this .. Can anybody help me to overcome this.. Here is my bean file used for establing database connections... This is a design issue problem. This is wrong for several reason: 1) you need to go through the authentification protocol each time a page is requested, depending on database type, and server load, this can take up to 1 seconds (it can sometime take up to 2 seconds on overloaded oracle database , by experience) 2) several concurrent page load mean several concurrent acces to your class, however, your class is designed with only static method, there is no concurrency check, very bad (probably the reason of your already closed exceptions) 3) your are hardcoding the various db information, including password 4) if something prevent call to CloseAll() (like another exception during process), you get a connection which is pending open. Suggestion: 1) use database pooling (allows for concurrency while not needing to authenticate each time), and prefer the use of a jndi datasource for your pooling 2) as it seems you are reading quite simple classical datas from a database, i recommend the use of some automated persistence, like hibernate 3. (http://www.hibernate.org). This can take you 2 or 3 days to learn and an additionnal day to set it up, but when it comes to accessing database and presenting the datas as object which gets automatically persisted / updated, you are gaining lots of developpment time and make your code very easier to read. Hope Any of u can help me.. it would be very much helpful to me if any body suggest me a solution to this... Because of this issue my project is in pending.. Thanks in Advance - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] how to over come toomanyconnection error when communicatingMYSQL
--- prakash shanmugam [EMAIL PROTECTED] wrote: hai all, i have one major issue in my project.. My project is developed using jsp,servlets in Tomcat5 with MySql as database.. i am using type1 driver My project is now used by end users in intranet.. When multiple users are accessing at the same time ,its throwing too many connections exception at sometimes . And at sometimes its dispaying error as Operation not allowed after ResultSet is closed i dont know how to rectify this .. Can anybody help me to overcome this.. Prakash, Your code has to be reworked to be usable. As written, users are stepping on one another in too many places to list. You should take a look at a fairly robust example and rewrite your code accordingly. Guidelines: (see example) - Connection, Statement, ResultSet vars must have method scope - obtain, use, and close a Connection in a single method - after your application is successfully supporting multiple users look into using a Connection pool to improve performance Example: http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/exercises/Example2/solution/Report4J.java -Bob __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with redeploying webapp in tomcat
Venkatesh Babu wrote: My problem is that - This process went fine for a few days, but now I'm getting OutOfMemoryException when performing this process on tomcat server. I've pasted the stack trace of the exception below: It's a well known problem. In some situations Tomcat is unable to free webapp's classloader. It's not a Tomcat problem, it's a general Java/classloader problem. The easiest solution is to schedule a Tomcat restart. Read the following links: http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669 http://forum.springframework.org/archive/index.php/t-21383.html -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Tomcat 5.5 Cannot create PoolableConnectionFactory
Dear guys, I apologize for the false alarm. It was my mistake for not providing the correct database name. Everything works ok ! Nevertheless, the configuration example could be used by those who Have some trouble into getting these things to work. Thanks again. João Brägger - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Iis 6.0 Tomcat 5.5 without isolation mode
Hi Christian, we're running an IIS 6.0 with TomCat 5.0.28 and connected them with: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2 .15/isapi_redirect.msi Regards, Florian -Ursprüngliche Nachricht- Von: christian75 [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. August 2006 10:16 An: users@tomcat.apache.org Betreff: Iis 6.0 Tomcat 5.5 without isolation mode Hello! I am using IIS 6.0 with Tomcat 5.5. I succesfully can connect with jk2 without running the iis 5.0 isolation mode. The problem is, that jk2 is not supported anymore and therefore deprecated. I did not find a solution redirecting with jk 1.2.1* without running iis 5.0 isolation mode. Does anyone know a solution or has any ideas when this get fixed in the jk 1.2.* project? Thanks Christian -- View this message in context: http://www.nabble.com/Iis-6.0-Tomcat-5.5- without-isolation-mode-tf2089300.html#a5758495 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unknown attribute type (String) for attribute folder.
hi, I have a custom tag that seems not work as I need. I need th use the tag with a parameter that I know only at run time. For this reason I put rtexprvaluetrue/rtexprvalue in the tag description. When I use the tag Tomcat (5.5.17) raises that exception: 11-ago-2006 10.55.47 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /folder.jsp(5,0) Unknown attribute type (String) for attribute folder. What I did wrong? thank you Edoardo ===taglib.tld fragment= taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd version=2.0 tlib-version1.1/tlib-version short-namembox/short-name tag descriptionRetrieve the folder list/description icon /icon namefolderList/name tag-classit.aspix.mailbox.tags.FolderList/tag-class body-contentempty/body-content attribute descriptionRetrieve the folder list/description namefolder/name requiredfalse/required rtexprvaluetrue/rtexprvalue typeString/type /attribute /tag /taglib === folder.jsp fragment %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=http://vnr.unipg.it/mailbox/mbox; prefix=mbox % %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % mbox:html mbox:folderList folder=${param.folder}/ === -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running web application on Tomcat on a Windows Server - License question
Hello all, I am interested in deploying some JSP web applications on Tomcat. Data for these application will reside in a MySQL database. My preference is that the server computer hosting these web applications run on a Windows 2003 Server. The server computer has 4 GB of memory. The application authentication will be based on userid/passwords residing in the MySQL database. Would appreciate some advice on whether a Windows 2004 Server software is suffcient for the above. Or would I require any other licenses from Microsoft? Would also appreciate a link to some online reference where the above answers may reside. Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running web application on Tomcat on a Windows Server - License question
From: Ravindran Rabindran [mailto:[EMAIL PROTECTED] My preference is that the server computer hosting these web applications run on a Windows 2003 Server. The server computer has 4 GB of memory. The application authentication will be based on userid/passwords residing in the MySQL database. Would appreciate some advice on whether a Windows 200[3] Server software is suffcient for the above. Or would I require any other licenses from Microsoft? http://www.microsoft.com/windowsserver2003/howtobuy/licensing/overview.m spx Warning: I am not a lawyer, and the information below is not a legal opinion; if you (or your company) has money riding on this, you should engage a lawyer who is familiar with the law in your jurisdiction and get them to scrutinise the license. If you do anything less than this, you are probably not showing due diligence. That said... Server 2003 tightens up the licensing: A Windows Server 2003 Client Access License (Windows CAL) is required in order to access or use the server software. A Windows CAL is not required if access to the server software is via the Internet and is unauthenticated-for example, accessing a Web site for general information where no identifying credentials are exchanged. It used to be that you had to use Active Directory before being required to have CALs, now it appears that any identifying credential exchange is enough to trigger the requirement. So my guesses (NOTE: not opinion) are that you will need a server license and enough external connector licenses to cover your processors. Or use the (unsupported) Windows 2000 and you might be able to get away without the EC licenses. Or use another OS. - Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unknown attribute type (String) for attribute folder.
java.lang.String, not String Edoardo Panfili wrote: hi, I have a custom tag that seems not work as I need. I need th use the tag with a parameter that I know only at run time. For this reason I put rtexprvaluetrue/rtexprvalue in the tag description. When I use the tag Tomcat (5.5.17) raises that exception: 11-ago-2006 10.55.47 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /folder.jsp(5,0) Unknown attribute type (String) for attribute folder. What I did wrong? thank you Edoardo ===taglib.tld fragment= taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd version=2.0 tlib-version1.1/tlib-version short-namembox/short-name tag descriptionRetrieve the folder list/description icon /icon namefolderList/name tag-classit.aspix.mailbox.tags.FolderList/tag-class body-contentempty/body-content attribute descriptionRetrieve the folder list/description namefolder/name requiredfalse/required rtexprvaluetrue/rtexprvalue typeString/type /attribute /tag /taglib === folder.jsp fragment %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=http://vnr.unipg.it/mailbox/mbox; prefix=mbox % %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % mbox:html mbox:folderList folder=${param.folder}/ === - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can you see in the Tomcat 5.5 logs that Security manager is active ( Windows is active) ?
I started Tomcat 5.5 as a Windows service using command Tomcat5 //RS//Tomcat5 -security I have an application that writes to the file system and the default policy does not seem to prevent it I saw some parms must be prefixed by a double minus sign - should I specify --security or is something else wrong in command or settings ? Many Thanks.
Character encoding, once again....
Im not sure if this is problem of tomcat, but i think that its most probable. Problem: Data received from form are not encoded corectly. (tomcat 5.5, utf-8, win xp/RHEL4, struts) Symptoms: Data in request are completly screwed. (no matter if im displaying it in utf-8 console, or sending back to browser with utf-8 coding set) Solution attempts: Yea Ive spent 2 days for solving this. 1. I have all pages with correct content-type header 2. I have succesfuly installed content-type encoding filter that adds UTF-8 content-type to header (completly useless) 3. Its completly browser independent (FF, IE, Opera) 4. Data which ive encoded with JS to utf8 and append to URL, are screwed too. What works: If i use toUTF8 function from Tomcat wiki (http://wiki.apache.org/tomcat/Tomcat/UTF-8?highlight=%28encoding%29) on received string, it returns correct string. Maybe you will ask, why bother us when he finds solution. Idea that every bean setter contain toUTF8 function makes me ... nervous. Additionally it seems that it works without it, to many people. So my question is if there is something what i could miss, if it could depend on VM version or something crazy like that Thanks d. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unknown attribute type (String) for attribute folder.
Pid ha scritto: java.lang.String, not String it works (obviously) thanks a lot. Edoardo Edoardo Panfili wrote: hi, I have a custom tag that seems not work as I need. I need th use the tag with a parameter that I know only at run time. For this reason I put rtexprvaluetrue/rtexprvalue in the tag description. When I use the tag Tomcat (5.5.17) raises that exception: 11-ago-2006 10.55.47 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /folder.jsp(5,0) Unknown attribute type (String) for attribute folder. What I did wrong? thank you Edoardo ===taglib.tld fragment= taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd version=2.0 tlib-version1.1/tlib-version short-namembox/short-name tag descriptionRetrieve the folder list/description icon /icon namefolderList/name tag-classit.aspix.mailbox.tags.FolderList/tag-class body-contentempty/body-content attribute descriptionRetrieve the folder list/description namefolder/name requiredfalse/required rtexprvaluetrue/rtexprvalue typeString/type /attribute /tag /taglib === folder.jsp fragment %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% %@ taglib uri=http://vnr.unipg.it/mailbox/mbox; prefix=mbox % %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % mbox:html mbox:folderList folder=${param.folder}/ === - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with java_opts in catalina.sh
Hi everyone, I am trying to install open xchange on a fresh install of fedora core 4. To make life easier I followed the instructions from: http://www.open-xchange.org/attachments/fedora-4_apache2.php.htm I am having problems with the java_opts = -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.propert ies part of the installation... I have gotten to the bottom of the process where it wants me to start tomcat but a /etc/init.d/tomcat start results in the following error: Catalina.sh: -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.properti es: No such file or directory I have checked multiple multiple times and the file is in the correct location and is spelled correctly. I have even moved a copy of the file to the / dir and chmod 777'd it to gaurantee that tomcat should have no problem finding it or reading it but I still get the same error. I do not know why it is having such a difficult time...any suggestions??? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting authentication information from apache
I'm using apache as a front end to my tomcat 5.5 server and they are connected through the AJP 1.3 Connector. The problem I am having is that the authentication info doesn't seem like its getting propagated from apache to tomcat. When I call request.getRemoteUser() it returns null though I was authenticated through apache. The weird thing is that we have a tomcat 4.0container that the same apache server directs some requests to and the authentication information is propagated without a problem. It however is using the older tomcat4.Ajp13Connector though. The following is the Connector element in my tomcat 5.5 server.xml file Connector port=8010 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Any hints? Thanks Jason
Re: Problem with java_opts in catalina.sh
You probably want the Open Exchange mailing list, rather than the Tomcat one... Jim Mensinger wrote: Hi everyone, I am trying to install open xchange on a fresh install of fedora core 4. To make life easier I followed the instructions from: http://www.open-xchange.org/attachments/fedora-4_apache2.php.htm I am having problems with the java_opts = -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.propert ies part of the installation... I have gotten to the bottom of the process where it wants me to start tomcat but a /etc/init.d/tomcat start results in the following error: Catalina.sh: -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.properti es: No such file or directory I have checked multiple multiple times and the file is in the correct location and is spelled correctly. I have even moved a copy of the file to the / dir and chmod 777'd it to gaurantee that tomcat should have no problem finding it or reading it but I still get the same error. I do not know why it is having such a difficult time...any suggestions??? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getting authentication information from apache
http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html set Connector ... tomcatAuthentication=false ... Jason Nesbitt wrote: I'm using apache as a front end to my tomcat 5.5 server and they are connected through the AJP 1.3 Connector. The problem I am having is that the authentication info doesn't seem like its getting propagated from apache to tomcat. When I call request.getRemoteUser() it returns null though I was authenticated through apache. The weird thing is that we have a tomcat 4.0container that the same apache server directs some requests to and the authentication information is propagated without a problem. It however is using the older tomcat4.Ajp13Connector though. The following is the Connector element in my tomcat 5.5 server.xml file Connector port=8010 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Any hints? Thanks Jason - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
performance question
I'm having some problems this morning with performance. How can I easily determine if it's servlets, or Tomcat, as opposed to possibly the database (Oracle) I'm using? I've not had this problem before. Barry
Re: getting authentication information from apache
I don't know of a way to make that happen, sorry. I don't think Apache's authentication mechanism permits (what are effectively) proxy sources access to the request in that way. Marc Farrow wrote: Thanks for the tip Pid. How do you go the other way? What if I have an Apache installation on a server and I want to authenticate through Tomcat and then pass that principal to Apache.. Is this possible? They are not connected using a connector. On 8/11/06, Jason Nesbitt [EMAIL PROTECTED] wrote: wow. I must have glazed right over that when looking at the documentation. Thanks! On 8/11/06, Pid [EMAIL PROTECTED] wrote: http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html set Connector ... tomcatAuthentication=false ... Jason Nesbitt wrote: I'm using apache as a front end to my tomcat 5.5 server and they are connected through the AJP 1.3 Connector. The problem I am having is that the authentication info doesn't seem like its getting propagated from apache to tomcat. When I call request.getRemoteUser() it returns null though I was authenticated through apache. The weird thing is that we have a tomcat 4.0container that the same apache server directs some requests to and the authentication information is propagated without a problem. It however is using the older tomcat4.Ajp13Connector though. The following is the Connector element in my tomcat 5.5 server.xmlfile Connector port=8010 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Any hints? Thanks Jason - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with java_opts in catalina.sh
Well seeing as how its the tomcat start that is causing the problems I think this is the right place...The only way I can see it being an OX problem is if the file they provided is more or less formatted incorrectly but I doubt that would cause Tomcat to issue a file not found error. Catalina.sh is generating the error - it has nothing to do with OX at this point as far as I'm concerned. Jim On 8/11/06 10:23 AM, Pid [EMAIL PROTECTED] wrote: You probably want the Open Exchange mailing list, rather than the Tomcat one... Jim Mensinger wrote: Hi everyone, I am trying to install open xchange on a fresh install of fedora core 4. To make life easier I followed the instructions from: http://www.open-xchange.org/attachments/fedora-4_apache2.php.htm I am having problems with the java_opts = -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.propert ies part of the installation... I have gotten to the bottom of the process where it wants me to start tomcat but a /etc/init.d/tomcat start results in the following error: Catalina.sh: -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.properti es: No such file or directory I have checked multiple multiple times and the file is in the correct location and is spelled correctly. I have even moved a copy of the file to the / dir and chmod 777'd it to gaurantee that tomcat should have no problem finding it or reading it but I still get the same error. I do not know why it is having such a difficult time...any suggestions??? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mod_jk balancing, session problem
Choose the suggested access log methods to improve observability (URLs and Cookie and Set-Cookie Headers. We make some tests with error log set to debug, but it is so many informations in the log (even the decrypted password !!, should it be so ??) that it may take some time to analyse everything. But here I have another question about the errors reported by JK status manager. In our production environment we have log level set to error and there are about 200 requests per worker shown by JK status manager as error , but there isn't any line in the mod_jk.log with error. Why is that so ? Another question is about tomcat catalina.out. Please find below a cut from log: 2006-08-10 06:17:20 org.apache.jk.core.MsgContext action WARNING: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-08-10 06:17:20 org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 2006-08-10 08:38:53 org.apache.jk.core.MsgContext action WARNING: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-08-10 08:38:53 org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 2006-08-10 08:57:51 org.apache.jk.core.MsgContext action WARNING: Error sending end packet java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112) at org.apache.jk.core.MsgContext.action(MsgContext.java:293) at org.apache.coyote.Response.action(Response.java:182) at org.apache.coyote.Response.finish(Response.java:304) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) 2006-08-10 08:57:51 org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 Do you have any idea what my be the reason ? Best regards Artur -- View this message in context: http://www.nabble.com/Mod_jk-balancing%2C-session-problem-tf2073073.html#a5765997 Sent from the
Run Tomcat in Eclipse
I am trying to configure Eclipse 3.2 with Tomcat 5.5.17 and Java jdk1.5.0_08. In Tomcat 4.x days, I could set up a run configuration and have it run using Eclipse's run interface. I am trying to duplicate the process for 5.5.17, but am having difficulty. First off, I have tried searching Google and everything points to the com.sysdeo.eclipse.tomcat_3.0.0 plugin. I really would rather avoid that plug-in and use my own configuration. Here are the steps I have taken: First, JAVA_HOME is set. Next, I have a project that has the Bootstrap.jar on the classpath. I open up a debug configuration and set the main class to org.apache.catalina.startup.Bootstrap In the program arguments, I have start In the VM Arguments I have -Djava.endorsed.dirs=Tomcat Root\common\endorsed -Dcatalina.home=Tomcat Root -Dcatalina.base=App Dir -Djava.io.tmpdir=Temp Dir On the classpath tab of the debug configuration, I have Bootstrap Entries: JRE bootstrap.jar tools.jar commons-logging-api.jar User Entries: Project (default classpath) When I run it, I get an exception: java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact oryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:529) ... 4 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact oryImpl.java:374) ... 5 more I assume I am missing something from my classpath. Does anyone know what it is?
Re: Run Tomcat in Eclipse
Iam using Eclipse 3.2 with tcat 5.5.17 and jdk 1.5.0_07 In old version i used that sysdeo plugin, but now im using eclipse with WTP, it has nice support for deploying applications and manage servers. d. On Fri, 11 Aug 2006 19:08:58 +0200, Zach Calvert [EMAIL PROTECTED] wrote: I am trying to configure Eclipse 3.2 with Tomcat 5.5.17 and Java jdk1.5.0_08. In Tomcat 4.x days, I could set up a run configuration and have it run using Eclipse's run interface. I am trying to duplicate the process for 5.5.17, but am having difficulty. First off, I have tried searching Google and everything points to the com.sysdeo.eclipse.tomcat_3.0.0 plugin. I really would rather avoid that plug-in and use my own configuration. Here are the steps I have taken: First, JAVA_HOME is set. Next, I have a project that has the Bootstrap.jar on the classpath. I open up a debug configuration and set the main class to org.apache.catalina.startup.Bootstrap In the program arguments, I have start In the VM Arguments I have -Djava.endorsed.dirs=Tomcat Root\common\endorsed -Dcatalina.home=Tomcat Root -Dcatalina.base=App Dir -Djava.io.tmpdir=Temp Dir On the classpath tab of the debug configuration, I have Bootstrap Entries: JRE bootstrap.jar tools.jar commons-logging-api.jar User Entries: Project (default classpath) When I run it, I get an exception: java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact oryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:529) ... 4 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact oryImpl.java:374) ... 5 more I assume I am missing something from my classpath. Does anyone know what it is? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session cookie location?
can't you go to IE and view all the cookies there? -Original Message- From: Warren [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 8:55 PM To: users@tomcat.apache.org Subject: Session cookie location? I need to find out where the session cookie is located on a Windows client running Internet Explorer. I have searched in all of the usual directories and can not find it. Internet Explorer is set-up to accept all cookies and my app is not rewriting URLs. I want to corrupt the cookie in order to debug my app. I know this is more of a servlet question, but any help will be appreciated. Thanks, Warren Bell Systems Administrator Clark's Nutritional Centers 4225 Market St. Riverside, CA 92501 951-321-1960 ext. 142 909-645-8864 mobile - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Run Tomcat in Eclipse
I'm trying to avoid additional plugins for setting up this server run. There really shouldn't be a good reason why I can't run this using an eclipse run configuration. -Original Message- From: dizzi [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 12:22 PM To: Tomcat Users List Subject: Re: Run Tomcat in Eclipse Iam using Eclipse 3.2 with tcat 5.5.17 and jdk 1.5.0_07 In old version i used that sysdeo plugin, but now im using eclipse with WTP, it has nice support for deploying applications and manage servers. d. On Fri, 11 Aug 2006 19:08:58 +0200, Zach Calvert [EMAIL PROTECTED] wrote: I am trying to configure Eclipse 3.2 with Tomcat 5.5.17 and Java jdk1.5.0_08. In Tomcat 4.x days, I could set up a run configuration and have it run using Eclipse's run interface. I am trying to duplicate the process for 5.5.17, but am having difficulty. First off, I have tried searching Google and everything points to the com.sysdeo.eclipse.tomcat_3.0.0 plugin. I really would rather avoid that plug-in and use my own configuration. Here are the steps I have taken: First, JAVA_HOME is set. Next, I have a project that has the Bootstrap.jar on the classpath. I open up a debug configuration and set the main class to org.apache.catalina.startup.Bootstrap In the program arguments, I have start In the VM Arguments I have -Djava.endorsed.dirs=Tomcat Root\common\endorsed -Dcatalina.home=Tomcat Root -Dcatalina.base=App Dir -Djava.io.tmpdir=Temp Dir On the classpath tab of the debug configuration, I have Bootstrap Entries: JRE bootstrap.jar tools.jar commons-logging-api.jar User Entries: Project (default classpath) When I run it, I get an exception: java.lang.ExceptionInInitializerError Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryI mp l.java:543) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryI mp l.java:235) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryI mp l.java:209) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53) Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFa ct oryImpl.java:397) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryI mp l.java:529) ... 4 more Caused by: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFa ct oryImpl.java:374) ... 5 more I assume I am missing something from my classpath. Does anyone know what it is? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session cookie location?
By default, session cookies don't get stored on disk. If the max age attribute of a cookie is 0 or less, the cookie resides only in a browser's memory and disappears entirely once the browser session is ended. In order to make it get stored to disk, you have to modify the cookie to have a longer age than the default (unless there is a Tomcat setting for this somewhere). -marc --- Propes, Barry L [EMAIL PROTECTED] wrote: can't you go to IE and view all the cookies there? -Original Message- From: Warren [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 08, 2006 8:55 PM To: users@tomcat.apache.org Subject: Session cookie location? I need to find out where the session cookie is located on a Windows client running Internet Explorer. I have searched in all of the usual directories and can not find it. Internet Explorer is set-up to accept all cookies and my app is not rewriting URLs. I want to corrupt the cookie in order to debug my app. I know this is more of a servlet question, but any help will be appreciated. Thanks, Warren Bell Systems Administrator Clark's Nutritional Centers 4225 Market St. Riverside, CA 92501 951-321-1960 ext. 142 909-645-8864 mobile - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getRealPath and war file
can you not put the images in an image dir, and always source them to that directory? i.e. img src=../../images/** ? -Original Message- From: Romain Quilici [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 1:05 AM To: Tomcat Users List Subject: Re: getRealPath and war file Hello Dies, the working directory would be fine, but my images need to be accessible via a url(which is not the case if they are located inside the temp dir) In fact when an image is generated, I push the url inside the client browser, the new url automatically replaces the previous one in a statement like img src=.. So I need a url to be able to access my images Regards Romain Dies Koper wrote: Hello Romain, Is there no way you can use the temporary working directory (javax.servlet.context.tempdir)? I don't know what pushing inside a client browser means, but as you mentioned the files are temporary, this sounds like the place to put them.. Also, you won't need to worry about maintaining some extra directory after deployment, and this is a portable solution. Regards, Dies Romain Quilici wrote: Mikolaj Rydzewski wrote: Romain Quilici wrote: My pb is more to write in a given directory(must be accessible with a url), than to read. And I would prefer this directory to be located in my webapp. Use directory outside webapp and then map it with alias, or some kind of dispatcher servlet/filter. It'll help you to redeploy webapp and not to loose uploaded/saved files. Actually, in my application, files are temporary. So even if they are deleted in doesn't matter. What I mean is images are pushed inside a client browser when they are generated, but then are no longer used. I prefer to create the directory within my application, to avoid permissions issues As I understood, context.getRealPath(/); will return the context of my application, even if my app is deployed within a war(as soon as UnpackWars is set to true in Tomcat). So I can deal with this command. I will provide anyway a mechanism to check if context.getRealPath(/); is null, in such case the application should take the values from init parameters Regards Romain - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
てst
てst - Let's start Yahoo! Auction - Free Campaign Now!
RE: Session hijacking with Tomcat/Myfaces - unable to fix it
what about getRemoteHost()? -Original Message- From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 5:30 PM To: Tomcat Users List Subject: Re: Session hijacking with Tomcat/Myfaces - unable to fix it Hello David, Tomas: About two months ago, I tried using the getRemoteAddr() for doing IP check as an addtional auth metric, but found exactly than on local net, this did not discriminate in many cases and only a single IP was returned for hosts on LAN. So I decided that there was too much ambiguity to use this approach, even as addt'l metric. One could however assume validity of positives but ignore false negatives, i.e., if IP in conflict with orig, assume man-in-middle attack, but if IP agrees, must rely on other metrics to determine possible jeopardy. Maurice Yarrow David Rees wrote: I wonder if associating (and checking) the request IP with the session would reduce the problem to some acceptable level. What is the chance of a session being hijacked from the same network (face-ip)? Another question is can the original request IP be spoofed? In this case the chances are relatively high - imagine a company using a proxy to connect to the Internet. The client IP does not change, a someone in the company sniffing can easily hijack sessions from his/her colleagues. Checking the request IP to ensure that it matches the session is a good idea, though it doesn't stop all attacks. If you were to do that, you could also easily add a session attribute indicating whether the session was created under http or https and invalidate/create a new session if a http session is attempted to be used under https. Besides that, as others suggested, the best thing to do is to simply put everything under SSL. -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with java_opts in catalina.sh
Jim Mensinger wrote: Well seeing as how its the tomcat start that is causing the problems I think this is the right place...The only way I can see it being an OX problem is if the file they provided is more or less formatted incorrectly but I doubt that would cause Tomcat to issue a file not found error. Catalina.sh is generating the error - it has nothing to do with OX at this point as far as I'm concerned. If it has nothing to do with OX then why do you start your post with talking about how you want to install OX, which website you visited for OX installation instructions... I skipped your OP exactly because of this. I know nothing about OX, so why should I bother to read any further? After reading your OP fully, it seems to me that it all boils down to the question how do I set a Java property (or a JVM option in general) when starting Tomcat?. IMO the most convenient way of passing JVM options to the Tomcat startup process is the following: Create a file named setenv.sh (resp. setenv.bat if you're an Windows) in Tomcat's bin directory (where startup.sh, catalina.sh etc. are located) and add a line reading JAVA_OPTS=your java options here In your case, I guess this should be JAVA_OPTS=-Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.properties Note: it's JAVA_OPTS, not java_opts or JaVa_opTS. You could insert this line directly into catalina.sh but I'd recommend to not mess around with it. catalina.sh sources setenv.sh for this very reason. If the above doesn't help you, you should start helping others to help you by providing at least the most basic information like - Tomcat version - OS - what *exactly* you did and what *exactly* was the outcome of your actions. http://catb.org/~esr/faqs/smart-questions.html Regards mks Jim Mensinger wrote: Hi everyone, I am trying to install open xchange on a fresh install of fedora core 4. To make life easier I followed the instructions from: http://www.open-xchange.org/attachments/fedora-4_apache2.php.htm I am having problems with the java_opts = -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.pro pert ies part of the installation... I have gotten to the bottom of the process where it wants me to start tomcat but a /etc/init.d/tomcat start results in the following error: Catalina.sh: -Dopenexchange.propfile=/usr/local/openxchange/etc/groupware/system.prop erti es: No such file or directory I have checked multiple multiple times and the file is in the correct location and is spelled correctly. I have even moved a copy of the file to the / dir and chmod 777'd it to gaurantee that tomcat should have no problem finding it or reading it but I still get the same error. I do not know why it is having such a difficult time...any suggestions??? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page problem with tomcat 5.5.17
Hi. I've got a strange problem with the error-page directive and tomcat 5.5.17 + myfaces 1.1 + facelets 1.1. I have the following in my web.xml: ... !-- error handling -- error-page exception-typejava.lang.Throwable/exception-type location/pages/error.html/location /error-page error-page error-code500/error-code location/pages/error.html/location /error-page error-page error-code404/error-code location/pages/error_404.html/location /error-page error-page error-code403/error-code location/pages/error_403.html/location /error-page ... If a 403 or 404 error occurs, tomcat perfectly redirects to my custom pages. But when an error 500 occurs (e.g. a provoked NullpointerException) it displays the std. tomcat error page. There's nothing in the logs about a faulty error.html nor any error on startup. I also replace error.html with error_404.html just to make sure, it isn't problem with the error.html content. Any hints, what this can be? It turned on debugging in tomcat - but there's nothing logged about the web.xml/error-page parsing. Any ideas how to come closer to the problem? regards, Veit - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat fails to startup certain context
I'm trying to run a webapp situated in the webapps directory (opencms) Somehow it fails to start. The log gives me a Error listener start other apps including the examples work. Does anybody know what the problem is? INFO: XML validation disabled Aug 11, 2006 9:12:59 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive opencms.war Aug 11, 2006 9:13:00 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Aug 11, 2006 9:13:00 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/opencms] startup failed due to previous errors Aug 11, 2006 9:13:03 PM org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=JspMonitor,name=media-asf,WebModule=//localhost/web-app,J2EEApplication=none,J2EEServer=none Aug 11, 2006 9:13:03 PM org.apache.commons.modeler.Registry registerComponent SEVERE: Null component Catalina:type=JspMonitor,name=media-rm,WebModule=//localhost/web-app,J2EEApplication=none,J2EEServer=none Aug 11, 2006 9:13:05 PM org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Aug 11, 2006 9:13:05 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Aug 11, 2006 9:13:05 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/172 config=null Aug 11, 2006 9:13:05 PM org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource Aug 11, 2006 9:13:05 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 7127 ms -- D. Salemink Zomerdijkstraat 1-11079WX Amsterdam +31207726869 +31651611510 Nieuwe media cursussen http://www.klikstudio.net Webdesign en hosting http://www.klikstudio.nl - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exception at Tomcat 4.3.1 startup
Hi All, I get the following exception when I try to startup tomcat 4.3.1. I checked out some forums and apparently, its because I am using version 2.3 of web-app instead of 2.4 and it is suggest that I use Tomcat 5.x to resolve this. Thing is I am not in a position to switch over Tomcat 5.x due to organizational constraints. Please help. org.xml.sax.SAXParseException: Document root element web-app, must match DOCTY PE root null. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un known Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unkno wn Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc e) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR ootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo nfig.java:220) Regards Jaydeep NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
Re: Session hijacking with Tomcat/Myfaces - unable to fix it
On 8/11/06, Propes, Barry L [EMAIL PROTECTED] wrote: what about getRemoteHost()? getRemoteHost is simply a getRemoteAddr with a reverse DNS lookup thrown on top. No additional security there, in fact one could argue that there is less. -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception at Tomcat 4.3.1 startup
I'm using 4.1.3 and my web.xml has the following: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//ENhttp://java.sun.com/j2ee/dtds/web-app_2_2.dtd; Perhaps you can change it to that and give it a try? -Original Message- From: Deshmukh, JAYDEEP (IT) [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 2:49 PM To: users@tomcat.apache.org Subject: Exception at Tomcat 4.3.1 startup Hi All, I get the following exception when I try to startup tomcat 4.3.1. I checked out some forums and apparently, its because I am using version 2.3 of web-app instead of 2.4 and it is suggest that I use Tomcat 5.x to resolve this. Thing is I am not in a position to switch over Tomcat 5.x due to organizational constraints. Please help. org.xml.sax.SAXParseException: Document root element web-app, must match DOCTY PE root null. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un known Source) at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unkno wn Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc e) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen t(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR ootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un known Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo nfig.java:220) Regards Jaydeep NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session hijacking with Tomcat/Myfaces - unable to fix it
mmm, ok. -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 2:51 PM To: Tomcat Users List Subject: Re: Session hijacking with Tomcat/Myfaces - unable to fix it On 8/11/06, Propes, Barry L [EMAIL PROTECTED] wrote: what about getRemoteHost()? getRemoteHost is simply a getRemoteAddr with a reverse DNS lookup thrown on top. No additional security there, in fact one could argue that there is less. -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.17 rejects PUT request
Hello, I'm new to tomcat and have problems to have tomcat 5.5.17 accepting a PUT request. I tried GET, POST, and PUT. Both GET and POST work fine, but PUT is rejected with 403 - Access to the specified resource () has been forbidden. HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content-Length: 964 Date: Fri, 11 Aug 2006 21:38:01 GMT htmlheadtitle Apache Tomcat/5.5.17 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: 12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 403 - /h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b u/u/ppbdescription/b uAccess to the specified resource () has been forbidden./u/pHR size=1 noshade=noshadeh3Apache Tomcat/5.5.17/h3/body/html I wonder if somebody can tell me how to configure tomacat 5.5.17 to accept PUT. I used tocat 4.1.31 which also rejects PUT. Thanks a lot, Yuangao - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.17 rejects PUT request
maybe the FTP port is blocked? Isn't that what PUT essentially does? -Original Message- From: YuanGao Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:27 PM To: users@tomcat.apache.org Subject: Tomcat 5.5.17 rejects PUT request Hello, I'm new to tomcat and have problems to have tomcat 5.5.17 accepting a PUT request. I tried GET, POST, and PUT. Both GET and POST work fine, but PUT is rejected with 403 - Access to the specified resource () has been forbidden. HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content-Length: 964 Date: Fri, 11 Aug 2006 21:38:01 GMT htmlheadtitle Apache Tomcat/5.5.17 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: 12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 403 - /h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b u/u/ppbdescription/b uAccess to the specified resource () has been forbidden./u/pHR size=1 noshade=noshadeh3Apache Tomcat/5.5.17/h3/body/html I wonder if somebody can tell me how to configure tomacat 5.5.17 to accept PUT. I used tocat 4.1.31 which also rejects PUT. Thanks a lot, Yuangao - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.17 rejects PUT request
I don't think so. I can ftp to the host where tomcat runs. Does Tomcat rely on FTP for processing put requests? -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 3:30 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.17 rejects PUT request maybe the FTP port is blocked? Isn't that what PUT essentially does? -Original Message- From: YuanGao Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:27 PM To: users@tomcat.apache.org Subject: Tomcat 5.5.17 rejects PUT request Hello, I'm new to tomcat and have problems to have tomcat 5.5.17 accepting a PUT request. I tried GET, POST, and PUT. Both GET and POST work fine, but PUT is rejected with 403 - Access to the specified resource () has been forbidden. HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content-Length: 964 Date: Fri, 11 Aug 2006 21:38:01 GMT htmlheadtitle Apache Tomcat/5.5.17 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: 12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 403 - /h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b u/u/ppbdescription/b uAccess to the specified resource () has been forbidden./u/pHR size=1 noshade=noshadeh3Apache Tomcat/5.5.17/h3/body/html I wonder if somebody can tell me how to configure tomacat 5.5.17 to accept PUT. I used tocat 4.1.31 which also rejects PUT. Thanks a lot, Yuangao - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.17 rejects PUT request
I'll have to double check...maybe not, but I was thinking it did. -Original Message- From: YuanGao Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:43 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.17 rejects PUT request I don't think so. I can ftp to the host where tomcat runs. Does Tomcat rely on FTP for processing put requests? -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 3:30 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.17 rejects PUT request maybe the FTP port is blocked? Isn't that what PUT essentially does? -Original Message- From: YuanGao Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:27 PM To: users@tomcat.apache.org Subject: Tomcat 5.5.17 rejects PUT request Hello, I'm new to tomcat and have problems to have tomcat 5.5.17 accepting a PUT request. I tried GET, POST, and PUT. Both GET and POST work fine, but PUT is rejected with 403 - Access to the specified resource () has been forbidden. HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content-Length: 964 Date: Fri, 11 Aug 2006 21:38:01 GMT htmlheadtitle Apache Tomcat/5.5.17 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: 12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 403 - /h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b u/u/ppbdescription/b uAccess to the specified resource () has been forbidden./u/pHR size=1 noshade=noshadeh3Apache Tomcat/5.5.17/h3/body/html I wonder if somebody can tell me how to configure tomacat 5.5.17 to accept PUT. I used tocat 4.1.31 which also rejects PUT. Thanks a lot, Yuangao - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.17 rejects PUT request
By I can ftp to ... I meant I was able to ftp to the host where tomcat runs as a regular user, say, yzhang. But ftp access as user root is disabled, if Tomcat uses FTP to do put, which user does it use by default, tomcat or root or something else? Thanks. -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 3:44 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.17 rejects PUT request I'll have to double check...maybe not, but I was thinking it did. -Original Message- From: YuanGao Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:43 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.17 rejects PUT request I don't think so. I can ftp to the host where tomcat runs. Does Tomcat rely on FTP for processing put requests? -Original Message- From: Propes, Barry L [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 3:30 PM To: Tomcat Users List Subject: RE: Tomcat 5.5.17 rejects PUT request maybe the FTP port is blocked? Isn't that what PUT essentially does? -Original Message- From: YuanGao Zhang [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:27 PM To: users@tomcat.apache.org Subject: Tomcat 5.5.17 rejects PUT request Hello, I'm new to tomcat and have problems to have tomcat 5.5.17 accepting a PUT request. I tried GET, POST, and PUT. Both GET and POST work fine, but PUT is rejected with 403 - Access to the specified resource () has been forbidden. HTTP/1.1 403 Forbidden Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content-Length: 964 Date: Fri, 11 Aug 2006 21:38:01 GMT htmlheadtitle Apache Tomcat/5.5.17 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;fo nt-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: 12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--/style /headbodyh1HTTP Status 403 - /h1HR size=1 noshade=noshadepbtype/b Status report/ppbmessage/b u/u/ppbdescription/b uAccess to the specified resource () has been forbidden./u/pHR size=1 noshade=noshadeh3Apache Tomcat/5.5.17/h3/body/html I wonder if somebody can tell me how to configure tomacat 5.5.17 to accept PUT. I used tocat 4.1.31 which also rejects PUT. Thanks a lot, Yuangao - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where can I find the rule about how to translate JSP to servlet jave?
HI Thank you very much for your reply, yep, i know that, but i just wonder how the jasper do this translation? cheers Peng 2006/8/1, Propes, Barry L [EMAIL PROTECTED]: the JSPs (at runtime) automatically create a servlet in the work directory. Is that what you're asking? -Original Message- From: Peng Li [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 7:55 PM To: users@tomcat.apache.org Subject: where can I find the rule about how to translate JSP to servlet jave? Hi in tomcat, the jsp is translated to java, and then compiled to class. does anyone know where can i find the rule about how to do the translation? appreciate any help cheers Peng - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: where can I find the rule about how to translate JSP to servlet jave?
usually every line that's not scriplet is translated into a println and the scriptlet, which is % % is the java code Now for the EL(expression languages) that I don't know, you have to download the jsp 2.0 spec, it's on the Sun's site On 8/11/06, Peng Li [EMAIL PROTECTED] wrote: HI Thank you very much for your reply, yep, i know that, but i just wonder how the jasper do this translation? cheers Peng 2006/8/1, Propes, Barry L [EMAIL PROTECTED]: the JSPs (at runtime) automatically create a servlet in the work directory. Is that what you're asking? -Original Message- From: Peng Li [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 7:55 PM To: users@tomcat.apache.org Subject: where can I find the rule about how to translate JSP to servlet jave? Hi in tomcat, the jsp is translated to java, and then compiled to class. does anyone know where can i find the rule about how to do the translation? appreciate any help cheers Peng - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]