AW: filter question
If you need an example how to modify the response, see http://java.sun.com/developer/EJTechTips/2002/tt0919.html#1. If you need a good lib that let you modify your HTML, e.g. inserting a hidden field into a form, see http://freshmeat.net/projects/jerichohtml/. Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Cluster: will session listeners got called again after replication?
Hello! My first mail to this list. :) I have read it for a long time tho. We have a tried to cluster 3 Tomcat 5.5.7 machines and I found that HttpSessionBindingListener will be notified when the session is replicated and the machine crashes. I think this must be a bug?? The scenario: 3 Tomcat 5.5.7 machines on Windows 2003 Server (I know, not my fault ;)). JK2 Connector for load balancing. I log on and session is created and is replicated correctly to all machines. I shut down the server that I'm working on. The session is destroyed and method valueUnbound is called on the crashed machine. It seems odd to me that the method valueUnbound is called when the session is replicated, the session still lives on the other Tomcat machines. Sorry for my sometimes bad English ;) //Jesper -Ursprungligt meddelande- Från: Joseph Lam [mailto:[EMAIL PROTECTED] Skickat: den 24 februari 2005 08:44 Till: Tomcat Users List Ämne: Cluster: will session listeners got called again after replication? Anyone knows when a session is replicated to other nodes, will the HttpSessionBindingListener and HttpSessionAttributeListener objects be notified again? On the receiver nodes, how can I detect when a session from the sender node comes in so that I can do something with it? Joseph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to harden tomcat?
Thanks Peter. On Thu, 24 Feb 2005 07:59:59 +1100, Peter Johnson [EMAIL PROTECTED] wrote: I haven't really come across hardening documents for Tomcat or any Java container for that matter. That is probably because Java by design is relatively secure as it runs within a virtual machine so it isn't possible to escape code etc and breakout into the OS kernel space. So basically run Tomcat as a specific user and tune the filesystem parameters to only allow access to the resources it needs (standard approach for every app Java or not). Now focus all your attention on the application code (not Tomcat but the webapp) make sure all database interactions are escaped properly etc etc etc One thing to look out for would be the use of JNI i.e. native calls. I'm not sure if there is a way of preventing someone from packaging a .so in a WAR and then loading it in to the app via code to bypass the lack of LD_LIBRARY_PATH (on *nix). The authentication / authorisation stuff (e.g. realms) is all to do with access to webapps. If you come across anything else I would be interested to know about it, especially if it is to do with securing Java in general. PJ Patrick Lacson wrote: Specifically authoritative articles on how to do this.. would be greatly appreciated. On Wed, 23 Feb 2005 11:24:12 -0800, Patrick Lacson [EMAIL PROTECTED] wrote: Does anybody have any links/documents on how to harden tomcat? thanks, -- Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Admin tool
Does anyone know why Tomcat's Admin tool is excluded from 5.5.7 (and maybe some earlier version too)? -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Admin tool
It's in the admin module: http://apache.org.es/jakarta/tomcat-5/v5.5.7/bin/jakarta-tomcat-5.5.7-admin.tar.gz Geertjan Wielenga wrote: Does anyone know why Tomcat's Admin tool is excluded from 5.5.7 (and maybe some earlier version too)? -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Angel Cervera Claudio Freelance / desarrollos j2ee web: http://www.acervera.com tlf: 670819234 / 916058546 email: [EMAIL PROTECTED] msn: [EMAIL PROTECTED] yahoo: angelcervera aol: angelcervera jabber: angelcervera en jabber.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: deployment with a different context than war name - tomcat 5.5.7
Hi, Can anyone point me to a working example of of using a context xml fragment file to deploy an war at a different context than the war name? In other words, I don't want to define it in the global config file. I am using TC 5.0.27, and am able to deploy to a different context. I have the following: Context path= docBase=/path/to/myapp.war debug=true/ I deploy with: wget -q -O - 'http://administrator:[EMAIL PROTECTED]:8080/manager/deploy?config=file:/path/to/myapp.xmlwar=file:/path/to/myapp.warpath=/' I am however, having issues with redeployment of updated versions of the war file. See message titled 'Deployment Issues' from yesterday Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tale of two servers
The offender is a super duper new dell desktop with 4gb of ram, etc. It's running java 1.5 and is committed to nothing by tomcat. Also disable HyperThreading in the BIOS on the new Dell. HT and Java is not a happy combination. G. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to harden tomcat?
Hi, My beginners guide is here (for tomcat on linux), it covers Running not as root. Restricting the permissions of the tomcat directories. http://www.mythic-beasts.com/support/topic_vds_java.html I'd also recommend removing all the management utilities from the webbased front end and a completely facist host firewall that denies everything but port 80 / 22. Pete Stevens On Thu, 24 Feb 2005, Patrick Lacson wrote: Thanks Peter. On Thu, 24 Feb 2005 07:59:59 +1100, Peter Johnson [EMAIL PROTECTED] wrote: I haven't really come across hardening documents for Tomcat or any Java container for that matter. That is probably because Java by design is relatively secure as it runs within a virtual machine so it isn't possible to escape code etc and breakout into the OS kernel space. So basically run Tomcat as a specific user and tune the filesystem parameters to only allow access to the resources it needs (standard approach for every app Java or not). Now focus all your attention on the application code (not Tomcat but the webapp) make sure all database interactions are escaped properly etc etc etc One thing to look out for would be the use of JNI i.e. native calls. I'm not sure if there is a way of preventing someone from packaging a .so in a WAR and then loading it in to the app via code to bypass the lack of LD_LIBRARY_PATH (on *nix). The authentication / authorisation stuff (e.g. realms) is all to do with access to webapps. If you come across anything else I would be interested to know about it, especially if it is to do with securing Java in general. PJ Patrick Lacson wrote: Specifically authoritative articles on how to do this.. would be greatly appreciated. On Wed, 23 Feb 2005 11:24:12 -0800, Patrick Lacson [EMAIL PROTECTED] wrote: Does anybody have any links/documents on how to harden tomcat? thanks, -- Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ Always buy a lottery ticket on a Friday or Saturday, otherwise you're more likely to be run over than claim the prize. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configuring dbcp in / ROOT context (tomcat 5.5.7)
Hi, I've searched the archives and generally on google, and whilst people see the problem a lot, I've not found a definitive answer for how to configure dbcp in the root context. E.g. In server.xml I have: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=jdbc/postgres auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=whatver password=whatver driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/whatever scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/ /Context If I copy this, and have it the same, except: Context path=/ docBase=ROOT debug=5 reloadable=true crossContext=true then it fails, with: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' How should I be configuring my postgress connection for use in the root context? Any help will be hugely appreciated, and will stop me from pulling any more of my hair out! Thanks, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configuring dbcp in / ROOT context (tomcat 5.5.7)
Hi, Refer to the attached Readme.txt file and verify that you have done these steps. I think it should solve your problem. Have also attached the server.xml web.xml files which worked fine for us. let me know whether ur problem gets solved by this. -Original Message- From: Stuart Lewis [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 4:16 PM To: tomcat-user@jakarta.apache.org Subject: Configuring dbcp in / ROOT context (tomcat 5.5.7) Hi, I've searched the archives and generally on google, and whilst people see the problem a lot, I've not found a definitive answer for how to configure dbcp in the root context. E.g. In server.xml I have: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=jdbc/postgres auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=whatver password=whatver driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/whatever scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/ /Context If I copy this, and have it the same, except: Context path=/ docBase=ROOT debug=5 reloadable=true crossContext=true then it fails, with: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' How should I be configuring my postgress connection for use in the root context? Any help will be hugely appreciated, and will stop me from pulling any more of my hair out! Thanks, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://www.patni.com World-Wide Partnerships. World-Class Solutions. _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this mail. _ !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- Comment these entries out to disable JMX MBeans support -- !-- You may also configure custom components (e.g. Valves/Realms) by including your own mbean-descriptor file(s), and setting the descriptors attribute to point to a ';' seperated list of paths (in the ClassLoader sense) of files to add to the default list. e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener debug=0/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams !-- Defining the DataSource to be used for Tomcat connectionPooling -- /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina
Very Straneg problem with MySQL-Connector
Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ()); out.println(brErrorCode: + ex.getErrorCode ()); ex = ex.getNextException(); out.println(); } } } } AND THE HTML PAGE in order to access to the Servlet : Code: HTML HEAD TITLEDataBase Test/TITLE /HEAD BODY BGCOLOR=#FDF5E6 H2 ALIGN=CENTERDataBase TEST/H2 FORM ACTION=http://localhost:8080/TEST1; CENTER INPUT TYPE=SUBMIT VALUE = CONNEXION TEST /CENTER /FORM /BODY /HTML Theses codes works very well under windows, but under linux system here what I've got : DRIVERS JDBC : OK! ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat. Any suggestions please , because it's giving me a very hard time ! ? Thank you ! ++ monkiboy
Re: Admin tool
Angel Cervera Claudio wrote: It's in the admin module: http://apache.org.es/jakarta/tomcat-5/v5.5.7/bin/jakarta-tomcat-5.5.7-admin.tar.gz Geertjan Wielenga wrote: Does anyone know why Tomcat's Admin tool is excluded from 5.5.7 (and maybe some earlier version too)? -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yes, but why isn't part of the default installation anymore? I miss it. :-( -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Very Straneg problem with MySQL-Connector
Hi, your ploblem is most likely debian related. In debian mysql has a config parameter skip-networking which denies tcp connections to mysql. Make sure this setting is not set, and that you grant your user access from 127.0.0.1 not localhost because when using localhost mysql expects the user to connect via a unix socket, not a tcp socket. Good luck Trond monkiboy wrote: Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ()); out.println(brErrorCode: + ex.getErrorCode ()); ex = ex.getNextException(); out.println(); } } } } AND THE HTML PAGE in order to access to the Servlet : Code: HTML HEAD TITLEDataBase Test/TITLE /HEAD BODY BGCOLOR=#FDF5E6 H2 ALIGN=CENTERDataBase TEST/H2 FORM ACTION=http://localhost:8080/TEST1; CENTER INPUT TYPE=SUBMIT VALUE = CONNEXION TEST /CENTER /FORM /BODY /HTML Theses codes works very well under windows, but under linux system here what I've got : DRIVERS JDBC : OK! ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat. Any suggestions please , because it's giving me a very hard time ! ? Thank you ! ++ monkiboy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
workers.properties: cache_timeout/socket_timeout/...
Anyone familiar with the tuning of the timeout settings? cache_timeout socket_timeout recycle_timeout prepost_timeout connect_timeout reply_timeout There are so many timeout settings but the doc online is a bit confusing to me. I don't know which value is used under different situations... e.g.: When Apache create a new ajp connection to TC and forward a request, will the socket_timeout or connect_timeout or prepost_timeout be used?(or a mix of them?) When an ajp connection is idled, will cache_timeout or recycle_timeout be used? Is socket_timeout always in effect together with each of the other timeouts? What if the page content from TC is lengthy and took longer than cache/recycle_timeout? Regards, Joseph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Vedr.: Re: Admin tool
Due to security reasons. The admin servlet is pretty powerfull and users should therefore consciously choose to install it - which is simply a matter of unzupping the module. /Thomas Geertjan Wielenga [EMAIL PROTECTED] 24-02-2005 11:56 Besvar venligst til Tomcat Users List Til:Tomcat Users List tomcat-user@jakarta.apache.org cc: Vedr.: Re: Admin tool Angel Cervera Claudio wrote: It's in the admin module: http://apache.org.es/jakarta/tomcat-5/v5.5.7/bin/jakarta-tomcat-5.5.7-admin.tar.gz Geertjan Wielenga wrote: Does anyone know why Tomcat's Admin tool is excluded from 5.5.7 (and maybe some earlier version too)? -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yes, but why isn't part of the default installation anymore? I miss it. :-( -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT
Re: Configuring dbcp in / ROOT context (tomcat 5.5.7)
Hello, please give follwing context definition a chance conf/Calalina/localhost/ROOT.xml Context reloadable=true crossContext=true Resource name=jdbc/postgres auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=whatver password=whatver driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/whatever scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/ Context Your are sure that you copy the postgres jar at common/lib? Peter Stuart Lewis schrieb: Hi, I've searched the archives and generally on google, and whilst people see the problem a lot, I've not found a definitive answer for how to configure dbcp in the root context. E.g. In server.xml I have: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=jdbc/postgres auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=whatver password=whatver driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/whatever scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/ /Context If I copy this, and have it the same, except: Context path=/ docBase=ROOT debug=5 reloadable=true crossContext=true then it fails, with: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' How should I be configuring my postgress connection for use in the root context? Any help will be hugely appreciated, and will stop me from pulling any more of my hair out! Thanks, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Vedr.: Re: Admin tool
Thanks for the info. Where can I read more about this decision (e.g., release notes or readme, or something)? -- Geertjan Thomas Nybro Bolding wrote: Due to security reasons. The admin servlet is pretty powerfull and users should therefore consciously choose to install it - which is simply a matter of unzupping the module. /Thomas Geertjan Wielenga [EMAIL PROTECTED] 24-02-2005 11:56 Besvar venligst til Tomcat Users List Til:Tomcat Users List tomcat-user@jakarta.apache.org cc: Vedr.: Re: Admin tool Angel Cervera Claudio wrote: It's in the admin module: http://apache.org.es/jakarta/tomcat-5/v5.5.7/bin/jakarta-tomcat-5.5.7-admin.tar.gz Geertjan Wielenga wrote: Does anyone know why Tomcat's Admin tool is excluded from 5.5.7 (and maybe some earlier version too)? -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yes, but why isn't part of the default installation anymore? I miss it. :-( -- Geertjan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=Arial___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Erika Schoenmoser/CENTRAL/AMComNET/DE ist außer Haus.
Ich bin ab 23.02.2005 außer Haus und ab 28.02.2005 wieder im Büro. Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten. Dringende Infos richten Sie bitte an [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Very Straneg problem with MySQL-Connector
Hello, Thank you for the answer but it's look like the parameter skip-networking is not present. I am really getting hard time. Here's my my.cnf : # # The MySQL database server configuration file. # # You can copy this to one of: # - /etc/mysql/my.cnf to set global options, # - /var/lib/mysql/my.cnf to set server-specific options or # - ~/.my.cnf to set user-specific options. # # One can use all long options that the program supports. # Run program with --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # This will be passed to all mysql clients # It has been reported that passwords should be enclosed with ticks/quotes # escpecially if they contain # chars... [client] #password = my_password port = 3306 socket = /var/run/mysqld/mysqld.sock # Here is entries for some specific programs # The following values assume you have at least 32M ram # This was formally known as [safe_mysqld]. Both versions are currently parsed. [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 # Both location gets rotated by the cronjob. #log = /var/log/mysql.log log = /var/log/mysql/mysql.log basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/english skip-external-locking # # For compatibility to other Debian packages that still use # libmysqlclient10 and libmysqlclient12. old-passwords = 1 # # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1 key_buffer = 16M max_allowed_packet = 16M thread_stack = 128K # # Query Cache Configuration # query_cache_limit = 1048576 query_cache_size = 26214400 query_cache_type = 1 # # Here you can see queries with especially long duration #log-slow-queries = /var/log/mysql/mysql-slow.log # # The following can be used as easy to replay backup logs or for replication #server-id = 1 #log-bin = /var/log/mysql/mysql-bin.log #binlog-do-db = include_database_name #binlog-ignore-db = include_database_name # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # If you want to enable SSL support (recommended) read the manual or my # HOWTO in /usr/share/doc/mysql-server/SSL-MINI-HOWTO.txt # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] #no-auto-rehash # faster start of mysql but no tab completition [isamchk] key_buffer = 16M Hi, your ploblem is most likely debian related. In debian mysql has a config parameter skip-networking which denies tcp connections to mysql. Make sure this setting is not set, and that you grant your user access from 127.0.0.1 not localhost because when using localhost mysql expects the user to connect via a unix socket, not a tcp socket. Good luck Trond monkiboy wrote: Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ());
Re: Very Straneg problem with MySQL-Connector
Have you got the right permissions set up in the database? log into mysql. switch to the mysql database and look in the user table. You'll need to have an entry for host=monkinetwork, user=root. If you don't refer to the mysql admin docs for assigning privileges: http://dev.mysql.com/doc/mysql/en/user-account-management.html HTH, Jon monkiboy wrote: Hello, Thank you for the answer but it's look like the parameter skip-networking is not present. I am really getting hard time. Here's my my.cnf : AND THE HTML PAGE in order to access to the Servlet : ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat. Any suggestions please , because it's giving me a very hard time ! ? Thank you ! ++ monkiboy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
quartz.properties MySQL
Hi, Can anyone send me a sample quartz.properties file for MySQL and Tomcat. Shakeel Ahmad. -Original Message- From: Randall Svancara [mailto:[EMAIL PROTECTED] Sent: 24 February, 2005 1:00 AM To: Tomcat Users List Subject: JDBCStore JTDS Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL Server and persistent session management using JDCBStore. I am currently experiencing a problem connecting with jtds. Here is my configuration for my JDBCStore... Manager className=org.apache.catalina.session.PersistentManager Store className=org.apache.catalina.session.JDBCStore connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;pa ssword=password driverName=net.sourceforge.jtds.jdbc.Driver sessionIdCol=session_id sessionValidCol=valid_session sessionMaxInactiveCol=max_inactive sessionLastAccessedCol=last_access sessionTable=tomcat_sessions sessionAppCol=app_context sessionDataCol=session_data / /Manager I recieve this error when trying to use the driver/ConnectionURL to connect to the database. Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore getConnection SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On is only supported on Windows. Please specify a user name. Any help/advice/hints would be appreciated. Of course, my platform is Linux and single sign on is not what I want anyway. Randall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fw: Request for example of use of Sun's FtpClient or Apache's FTPClient
Hello, Does anyone have an example of how to use these classes which includes how the client destination file name must be specified? I have tried both from within servlets and in both cases it finds the source file correctly but then writes the ftp get to the server. Should they not be invoked from a servlet? If so, how are they used so that the file from the server is ftp'd to the client? Regards, Susan Hoddinott http://www.hexworx.com
Re: Very Straneg problem with MySQL-Connector
Hi. The issue is mysql validates user, host, and password on login -- sort of a three factor authentication. Go into mysql and take a look at the result of these commands to see what users are defined: use mysql ; select user, host, password from user ; IMHO, don't use root from a webapp. Create a specific user for your webapp that only has the necessary rights. Here's an example, read the docs at http://www.mysql.com for more info: grant select, delete, insert, update on databaseNameHere.* to 'webappUsernameHere'@'monkinetwork' identified by 'passwordHere' ; Then update your web application's resource definition with the new username and password. --David monkiboy wrote: Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ()); out.println(brErrorCode: + ex.getErrorCode ()); ex = ex.getNextException(); out.println(); } } } } AND THE HTML PAGE in order to access to the Servlet : Code: HTML HEAD TITLEDataBase Test/TITLE /HEAD BODY BGCOLOR=#FDF5E6 H2 ALIGN=CENTERDataBase TEST/H2 FORM ACTION=http://localhost:8080/TEST1; CENTER INPUT TYPE=SUBMIT VALUE = CONNEXION TEST /CENTER /FORM /BODY /HTML Theses codes works very well under windows, but under linux system here what I've got : DRIVERS JDBC : OK! ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat. Any suggestions please , because it's giving me a very hard time ! ? Thank you ! ++ monkiboy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNI loading problem
Does ldd of your .so show dependencies? Where are they? Generally, the Java classes with the native methods have to be in a classloader other than webapp to get useful results. -Original Message- From: vaheesan selvarajah [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 1:03 PM To: tomcat-user@jakarta.apache.org Subject: JNI loading problem Hi folks, I am trying to load a simple JNI based .so lib file with Tomcat 5.5.4.(on linux) I am trying to load the .so file within the JSP page. I am not sure if this is allowed. I have tried all the following methods.. 1. putting the .so file in JAVA_HOME//jre/lib/i386/ 2. setting the LD_LIBRARY_PATH to where my lib is and exporting it 3. inside the catelina.sh file added an extra -Djava.library.path=mylibpath Inside the JSP i tried the following options... 1. try { //System.loadLibrary(AriaJava); // the name of the file is libAriaJava.so } catch (UnsatisfiedLinkError e) { System.err.println(Native code library failed to load.\n + e); } 2. try { System.load( /home/path_to_lib/libAriaJava.so); } catch (UnsatisfiedLinkError e) { System.err.println(Native code library failed to load.\n + e); } in all these trials it fails with unsatisfied link error !! Any help is appreciated !! r -Vaheesan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to send hidden variables to next page
This is getting into territory where you'd be better off doing some googling or buying a good javascript cookbook. I havn't bought any of those books recently although I've had good experience with subjects from Wrox Publishing and O'Reilly Associates in the past. Visit Amazon. They even support a rating scheme where people can voice their opinion. On the Delete issue, you could do a server-side rewrite of a link that invokes an action to delete a row as in: a href=http://localhost:8080/mywebapp/deleteRow.do?recordNum=10;Delete Me/a That's just a basic GET form request. Again, find a good book, do some reading. --David U K Laxmi wrote: Thanks David for the solution. To be frank, i really don't know how to code it. Will you give a sample code snippet? I'm using apache2, tomcat 5.5.7 on Win 2K machine. One more problem. I've a form and also submit button. I've number of text fields in it. On entering some data and focus losts from that field, i call a javascript function, i set number of hidden values and call a JSP using location.href of Javascript. But hidden values are not getting passed to jsp.I'm getting null. Why? How to overcome this? Pls help. One more requirement what i've is: i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD' BUTTON. After filling theform, if the user clicks on 'Add' button, the contents gets added aas row into a HTML table located below that form. That way user can add n number of rows to the bottom table. In the table, i need a 'Delete' button. After selecting any row, if the user clicks on 'Delete' button, it should get deleted from the table. I guess it can be possible. But it's a big challenge to me as i know only ABCD of HTML Javascript. If anybody can direct me to a good HTML/Javascritp forum also fine. If i get a solution directly, it's wonderful. Thanks a lot. Sorry again if it's not the right place to post this. --- David Smith [EMAIL PROTECTED] wrote: The best advice I can offer -- have a javascript that does the submit for you on the event the drop-down changes state. Then let a servlet handle storing your form data in the session and passing updated data to the next page. Outside of something like that, I think you'll need to incorporate a submit button. --David U K Laxmi wrote: Thanks for the answers Shakeel. My problem is, i've a page that doesn't have submit button. I need to send the hidden variables in that HTML page to next HTML page. Here the hidden value is set based on the type of option selected from 'select' drpo down box in HTML. To put it in session, i need to identify the selected option and assign it to java varialbe. I don't think it's possible to assign a javascript variable to java variable. Pls help to solve this problem. --- Shakeel Ahmad [EMAIL PROTECTED] wrote: Wel this might help... // You write following two lines in first JSP page. String name = Java;// This might be your hidden field. session.setAttribute(HiddenName, name); //Then you get the name on next page as follows. String userName = (String)session.getAttribute(HiddenName); The name attribute will be available throught the session life, unless we remove it explicitly or restart Tomcat. We can use it on any page once it is placed properly. Best Regards, S H A K E E L A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: 23 February, 2005 10:37 AM To: Tomcat Users List Subject: RE: How to send hidden variables to next page Yes. I'm using JSP. Can you pls tell me the syntax or guidelines as how to do it. Thank you. --- Shakeel Ahmad [EMAIL PROTECTED] wrote: If you are developing a JSP/Servlet then you can do this by keeping those variables in session. Best Regards, S H A K E E L A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: 23 February, 2005 10:31 AM To: Tomcat Users List Subject: How to send hidden variables to next page Sorry if it's not the right place to post this question. Excuse me. I've some hidden variables in a web page. I want to send them to next page without using submit button. I don't know how to do it. More over i don't know how to access those
Parsing/reading an XML doc with encoding Shift_JIS adds characters?
I am using a GetDictionary.jsp script to parse an XML document containing simple Japanese phrases encoded with Shift_JIS. What I observe is that after reading a phrase into a java.util.HashMap bean the phrase becomes longer and modified (really, corrupted). This (corrupted) phrase sent in an HTTP reply, is modified again inside the packet. Example: 1. the original phrase (in binary), from the XML doc: be dd c0 b8 bc c3 b8 c0 de bb b2 2e 2e 2e 2. the phrase (1) logged from a HashMap object: efbf bd efbf bd 38 efbf bd c3 b8 efbf bd de bb efbf bd 2e 2e 2e 3. the phrase (2) in an HTTP reply: 21 29 21 29 38 21 29 21 29 21 29 21 29 21 29 2e 2e 2e It appears as if two transformations were going on, beyond the GetDictionary.jsp control. Interestingly the last three characters 2e 2e 2e (='...') are preserved all the way. Another script Send.jsp that sends a reply has the following page declarations: %@ page pageEncoding=Shift_JIS% %@ page contentType=text/xml; charset=Shift_JIS% The situation is the same bad if only one declaration is in the Send.jsp: %@ page contentType=text/xml; charset=Shift_JIS% Does anyone have a suggestion what am I doing wrong? Especially - while is there a 'transformation' from the XML doc to the HashMap? And then, why is there a second 'transformation' into a packet? Thanks, Jerry. [By the way, the same GetDictionary.jsp works fine if the parsed/read XML document is utf-8 encoded, or ISO-8859-1 encoded, or ascii. The phrase in the HashMap object is binary identical with the original phrase from the XML doc. Then it is the same in the reply packet (sent with a script having declared a corresponding charset).] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat is leaking memory
Hi all gurus, My problem is as follows. I have several webapplication setup with the use of virtual hosting. Everything works fine. But there is one problem and that's the (free) memory allocated by tomcat. When I restart the server we have about 950 MB free memory. But after a while when the applications are running and a lot of work must be done by tomcat the free memory size goes lower and lower. No problem since the garbage collector is running. But I notice that the free memory of 950 MB will never reached. In fact the free memory goes down and down after a while. At the end the applicationscome with a java.lang.OutOfMemory exception. After a restart everything is fine. I am using Tomcat 552 on development and Tomcat 4.1.27 on the live server, but both have the same problem. My jdk version is 1.4.1_02. Have someone any idea?? Please help me out.. Maarten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat is leaking memory
I would recommend using a profiler to track down memory leaks in your webapp. Chances are there's a bug in your code that is causing the memory leak. real memory leaks in tomcat usually get discovered and fixed quickly. OptimizeIt and JProbe both have eval versions you can download to profile your webapp. peter On Mon, 3 May 2004 15:53:10 +0200, Bedrijven.nl [EMAIL PROTECTED] wrote: Hi all gurus, My problem is as follows. I have several webapplication setup with the use of virtual hosting. Everything works fine. But there is one problem and that's the (free) memory allocated by tomcat. When I restart the server we have about 950 MB free memory. But after a while when the applications are running and a lot of work must be done by tomcat the free memory size goes lower and lower. No problem since the garbage collector is running. But I notice that the free memory of 950 MB will never reached. In fact the free memory goes down and down after a while. At the end the applicationscome with a java.lang.OutOfMemory exception. After a restart everything is fine. I am using Tomcat 552 on development and Tomcat 4.1.27 on the live server, but both have the same problem. My jdk version is 1.4.1_02. Have someone any idea?? Please help me out.. Maarten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
context elements in /conf/[enginename]/[hostname]
I'm upgrading my Tomcat 5.0.x installations to 5.5.7. All of my context elements are defined in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/directory as per the Tomcat documentation. All of the defined contexts are loaded when Tomcat 5.0.28 starts, but not in my 5.5.7 installation. My host element has deployXML=true, autoDeploy=true, and deployOnStartup=true. What am I missing that would cause this not to work in TC 5.5.7? If I define the contexts in my server.xml, they work fine, but I'd rather put them in $CATALINA_HOME/conf/[enginename]/[hostname]/ TIA!
RE: Cluster: how to set mcast interface for dual LAN card? (SOLVED)
The tcpListenAddress (on the Receiver tag) may also need to be set to the correct interface/nic (rather than just auto). - Richard Joseph Lam wrote: I have tried that but still got some weird behavior (seems that it was able to send out broadcast with the proper interface but unable to listen broadcast...). So I gave up that an simply set a static route in the OS for mcast. But thanks anyway. Joseph On Tue, 22 Feb 2005, Filip Hanik - Dev Lists wrote: there is an attribute mcastBindAddr that allows you to bind to the interface. Joseph Lam wrote: Hi, If I have two LAN cards and I want my Tomcat to mcast through one of them, what parameter should I set? Regards, Joseph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Throughput and scalability
Hey Peter - Where can I get the articles - are they in the FAQ or the archive somewhere. Any keywords you can suggest? -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 5:59 PM To: Tomcat Users List Subject: Re: Throughput and scalability if you're talking about XML transformation, the biggest factor is the parser you use and the cpu speed. If you read my old performance article on the resource page, you can see some old numbers for AMD 2ghz system. depending on how much XML you need to handle concurrently, you may want to consider XML accelerators to get near wire speed. The primary limitations for XML processing is CPU and RAM. hope that helps peter On Wed, 23 Feb 2005 14:25:32 -0800, Ross Poppel [EMAIL PROTECTED] wrote: Hi Tomcat Users - We are implementing Tomcat (with Axis) for HTML translation to a proprietary format (as a pass-thru). This is for submission to an external system (its pretty simple data) and back again. We were wondering if anyone has any ideas how you would size a box (Solaris/HP-UX based) if you want to get a specific throughput (x number of messages per second). Is there any guidelines anyone can recommend? --- Ross Poppel - [EMAIL PROTECTED] Solutions Architect, PORTAL Software Cell: (609) 744-2050 EFax: (617) 344-2585 SMS: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to run debugger from eclipse for TOMCAT
I am trying to run debugger from eclipse. I created a configuration to run a program using Run-- ExternalTools--Program Following are the settings Main Location C:\Apache_1_3\tomcat\bin\catalina.bat Working directory ${workspace_loc:/EBIZ} Arguments jpda start My catalina.bat contains rem Guess CATALINA_HOME if not defined if not %CATALINA_HOME% == goto gotHome set CATALINA_HOME=. if exist %CATALINA_HOME%\bin\catalina.bat goto okHome set CATALINA_HOME=.. :gotHome if exist %CATALINA_HOME%\bin\catalina.bat goto okHome echo The CATALINA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program goto end :okHome When I am running this, I am getting exception The system cannot find the file -Xdebug. If i get rid of this and run debug, it gives me unable to connect to VM. Please suggest - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Unable to run debugger from eclipse for TOMCAT
Catalina.bat rem Execute Java with the applicable properties if not %JPDA% == goto doJpda if not %SECURITY_POLICY_FILE% == goto doSecurity %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath %CLASSPATH% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS% %ACTION% goto end :doSecurity %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath %CLASSPATH% -Djava.security.manager -Djava.security.policy==%SECURITY_POLICY_FILE% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS% %ACTION% goto end :doJpda if not %SECURITY_POLICY_FILE% == goto doSecurityJpda %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath %CLASSPATH% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS% %ACTION% goto end :doSecurityJpda %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -classpath %CLASSPATH% -Djava.security.manager -Djava.security.policy==%SECURITY_POLICY_FILE% -Dcatalina.base=%CATALINA_BASE% -Dcatalina.home=%CATALINA_HOME% -Djava.io.tmpdir=%CATALINA_TMPDIR% %MAINCLASS% %CMD_LINE_ARGS% %ACTION% goto end :end -- Forwarded message -- From: Abhay [EMAIL PROTECTED] Date: Thu, 24 Feb 2005 10:22:26 -0500 Subject: Unable to run debugger from eclipse for TOMCAT To: tomcat-user@jakarta.apache.org I am trying to run debugger from eclipse. I created a configuration to run a program using Run-- ExternalTools--Program Following are the settings Main Location C:\Apache_1_3\tomcat\bin\catalina.bat Working directory ${workspace_loc:/EBIZ} Arguments jpda start My catalina.bat contains rem Guess CATALINA_HOME if not defined if not %CATALINA_HOME% == goto gotHome set CATALINA_HOME=. if exist %CATALINA_HOME%\bin\catalina.bat goto okHome set CATALINA_HOME=.. :gotHome if exist %CATALINA_HOME%\bin\catalina.bat goto okHome echo The CATALINA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program goto end :okHome When I am running this, I am getting exception The system cannot find the file -Xdebug. If i get rid of this and run debug, it gives me unable to connect to VM. Please suggest - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Under Tomcat 5.5.7 how to get Username xxx successfully authenticated
Under Tomcat 5.0.19 I had a logger statement in my application context that created a log file. This log file contained, among other things, a line each time a user successfully/unsuccessfully logged in, similar to: 2005-02-20 07:09:20 JDBCRealm[/stars]: Username xxx successfully authenticated or 2005-02-20 07:09:20 JDBCRealm[/stars]: Username xxx NOT successfully authenticated I understand that under Tomcat 5.5.7 much of the logging is now handled by commons-logging and log4j. Is there still a way to get the above information? I have enabled logging using the instructions in the Tomcat documentation at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html but do not really get what I am looking for (maybe I do not know what specific logger statements to put in). Thanks - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Throughput and scalability
It sounds like you are writing your own Business Integration Engine Ross, sometimes referred to as Enterprise Service Buses. They just take requests in 1 format, translate them to another format and pass them along - potentially splitting off actions and conditionally passing the request to multiple services. They are designed and optimized for those tasks. I believe there are several open source projects for this and I think they use Tomcat: http://bie.sourceforge.net/ http://activemq.codehaus.org/ http://www.openadaptor.org/ There are also several commercial ESB's- some designed for high scalability and redundancy, but they are pricey. Maybe these are overkill for what you are doing, but I suggest having a look at them before rolling your own. Byron -Original Message- From: Ross Poppel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 10:18 AM To: Tomcat Users List; Peter Lin Subject: RE: Throughput and scalability Hey Peter - Where can I get the articles - are they in the FAQ or the archive somewhere. Any keywords you can suggest? -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 5:59 PM To: Tomcat Users List Subject: Re: Throughput and scalability if you're talking about XML transformation, the biggest factor is the parser you use and the cpu speed. If you read my old performance article on the resource page, you can see some old numbers for AMD 2ghz system. depending on how much XML you need to handle concurrently, you may want to consider XML accelerators to get near wire speed. The primary limitations for XML processing is CPU and RAM. hope that helps peter On Wed, 23 Feb 2005 14:25:32 -0800, Ross Poppel [EMAIL PROTECTED] wrote: Hi Tomcat Users - We are implementing Tomcat (with Axis) for HTML translation to a proprietary format (as a pass-thru). This is for submission to an external system (its pretty simple data) and back again. We were wondering if anyone has any ideas how you would size a box (Solaris/HP-UX based) if you want to get a specific throughput (x number of messages per second). Is there any guidelines anyone can recommend? --- Ross Poppel - [EMAIL PROTECTED] Solutions Architect, PORTAL Software Cell: (609) 744-2050 EFax: (617) 344-2585 SMS: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Philippe Behary est absent.
Je serai absent(e) du 24/02/2005 au 07/03/2005. Je répondrai à votre message dès mon retour. Vous pouvez néanmoins me laisser un message au 06 63 72 25 73. A bientôt. Bien cordialement. Philippe Behary
ISAPI redirector HELP ME!
Hi I am having a bit of a nightmare and hoping someone may be able to help. I have Tomcat 4.1 / IIS 5 on Windows 2000 Server. Basically all was working swimmingly until someone deleted the 'conf' directory under Tomcat 4.1 installation, then re-started our server... Tomcat obviously wouldn't start. I have restored the 'conf' directory that we found on a backup. Tomcat starts fine again, but the redirection is now not working... Any ideas gratefully received!!! I have reinstalled Tomcat, and set the filter up again in IIS but its now redirecting. This is a live system and I will kill the person who deleted the conf file if I can find them ;-) Many thanks --- Susan Roe Software Developer CMi plc Hanborough Business Park Long Hanborough Oxford OX29 8LH Direct Tel: +44 (0)1993 885680 http:// http://www.cmi-plc.com/ www.cmi-plc.com ** ***Disclaimer*** The contents of this Email may be privileged and are confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Should you wish to use Email as a mode of communication, CMi plc and its subsidiaries are unable to guarantee the security of Email content outside of our own computer systems. This footnote also confirms that this e-mail message has been swept by MIMESweeper for the presence of computer viruses. Whilst we run anti-virus software, you are solely responsible for ensuring that any e-mail or attachment you receive is virus free. We disclaim any liability for any damage you suffer as a consequence of receiving any virus. Checkmate International plc (CMi) Registered in England No 1899857 Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW Head Office Tele + 44 (0) 1993 885600 Head Office Fax + 44 (0) 1993 885603 Web Site : www.cmi-plc.com **
RE: FW: challenging JK connector problem: java.net.SocketException
Let me pose this question: are these messages resulting in reproducable problems? We see these stack traces all the time, but there is no associated problem. I've chalked it up to people clicking refresh and aborting the connection at the right moment because we have no problems associated with the messages. My favorite is the error messages from jk2 that are labeled Recoverable. Why bother logging them as errors if they are recoverable and have no impact. Byron -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 12:02 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: FW: challenging JK connector problem: java.net.SocketException hi Patrick, i've just tried your suggestion and unfortunately i still get the java.net.SocketExceptions. i installed Tomcat 5.0.25, upgraded my JDK to 1.4.2_07, reinstalled the JK connector (setupJK204.exe). the only real difference it seems is that i'm using Windows XP. how do you install your JK connector? can you show me the contents of your workers2.properties file? here is my workers2.properties: #Look at #http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.ht ml #for parameter description [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=C:\jakarta-tomcat-5.0.25\temp\jk2.shm size=1048576 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map webapps to the Web server uri space [uri:/jsp-examples/*] [uri:/myapp/*] [uri:/servlets-examples/*] maybe there are some differences between my workers file and yours? at this point i'll try anything :) but since you're on unix, your JK connector is most likely not using isapi_redirector2.dll. so maybe there's implementation differences between the unix JK and windows JK... thanks in advance, woodchuck --- [EMAIL PROTECTED] wrote: -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: February 22, 2005 5:20 PM To: [EMAIL PROTECTED] Subject: RE: challenging JK connector problem: java.net.SocketException hello Patrick! thank you for your help, i really appreciate it as i'm at a total loss at the bizarness of the problem (works through Tomcat, but not when going through IIS/JK). i didn't have time to try out your suggestion just yet, but i definitely will. i just wanted to confirm however, because my Tomcat is an old version 4.1.24, did you mean downgrade my current JDK to one that was current at the time 4.1.24 was current? (ie. use the JDK of the same time period?) I think it would be best to upgrade your version of tomcat to 5.0+ and to use the recommended jdk. I am using tomcat 5.0.28 with jdk 1.4.2_07 on the operating system Linux Enterprise 3.0. or did you mean upgrade my JDK to the latest current release which i believe is 1.5 or something. i am currently using JDK 1.4.1_02. best regards, woodchuck --- [EMAIL PROTECTED] wrote: Hi : This is most likely an issue with the version of JDK that is deployed on your machine. Try using a newer version of the JDK which is comaptible with the version of tomcat that is deployed on your machine. Patrick King Patrick King BSc.(Hon.) Geophysics Senior Systems Scientist Canada Centre For Remote Sensing 615 Booth St. Room 650 Ottawa, Ontario K1A0E9 Phone: 613-947-0463 E-mail : [EMAIL PROTECTED] -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: February 22, 2005 2:15 PM To: tomcat; struts Subject: challenging JK connector problem: java.net.SocketException hihi all, i have installed the JK connector (setupJK204.exe) with my IIS 5.1 and Tomcat 4.1.24. everything is working fine, except that i'm noticing in the Tomcat console display i see the following exceptions at run-time: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436) snip. and java.net.SocketException: Connection reset by peer: socket write error 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:407) at
RE: ISAPI redirector HELP ME!
Check your workers.properties and uriworkermap.properties files to make sure the settings are valid. -Original Message- From: Sue Roe [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 11:14 AM To: tomcat-user@jakarta.apache.org Subject: ISAPI redirector HELP ME! Hi I am having a bit of a nightmare and hoping someone may be able to help. I have Tomcat 4.1 / IIS 5 on Windows 2000 Server. Basically all was working swimmingly until someone deleted the 'conf' directory under Tomcat 4.1 installation, then re-started our server... Tomcat obviously wouldn't start. I have restored the 'conf' directory that we found on a backup. Tomcat starts fine again, but the redirection is now not working... Any ideas gratefully received!!! I have reinstalled Tomcat, and set the filter up again in IIS but its now redirecting. This is a live system and I will kill the person who deleted the conf file if I can find them ;-) Many thanks --- Susan Roe Software Developer CMi plc Hanborough Business Park Long Hanborough Oxford OX29 8LH Direct Tel: +44 (0)1993 885680 http:// http://www.cmi-plc.com/ www.cmi-plc.com ** ***Disclaimer*** The contents of this Email may be privileged and are confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Should you wish to use Email as a mode of communication, CMi plc and its subsidiaries are unable to guarantee the security of Email content outside of our own computer systems. This footnote also confirms that this e-mail message has been swept by MIMESweeper for the presence of computer viruses. Whilst we run anti-virus software, you are solely responsible for ensuring that any e-mail or attachment you receive is virus free. We disclaim any liability for any damage you suffer as a consequence of receiving any virus. Checkmate International plc (CMi) Registered in England No 1899857 Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW Head Office Tele + 44 (0) 1993 885600 Head Office Fax + 44 (0) 1993 885603 Web Site : www.cmi-plc.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ISAPI redirector HELP ME!
But they are the same as before... Btw I am getting the following in iis_redirect.log *** [Thu Feb 24 16:27:00 2005] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61 [Thu Feb 24 16:27:00 2005] [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 [Thu Feb 24 16:27:00 2005] [jk_isapi_plugin.c (716)]: HttpExtensionProc error, service() failed *** That used to say ajp12, NOT ajp13 -Original Message- From: Molden, Robert (GE Infrastructure) [mailto:[EMAIL PROTECTED] Sent: 24 February 2005 16:21 To: Tomcat Users List Subject: RE: ISAPI redirector HELP ME! Check your workers.properties and uriworkermap.properties files to make sure the settings are valid. -Original Message- From: Sue Roe [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 11:14 AM To: tomcat-user@jakarta.apache.org Subject: ISAPI redirector HELP ME! Hi I am having a bit of a nightmare and hoping someone may be able to help. I have Tomcat 4.1 / IIS 5 on Windows 2000 Server. Basically all was working swimmingly until someone deleted the 'conf' directory under Tomcat 4.1 installation, then re-started our server... Tomcat obviously wouldn't start. I have restored the 'conf' directory that we found on a backup. Tomcat starts fine again, but the redirection is now not working... Any ideas gratefully received!!! I have reinstalled Tomcat, and set the filter up again in IIS but its now redirecting. This is a live system and I will kill the person who deleted the conf file if I can find them ;-) Many thanks --- Susan Roe Software Developer CMi plc Hanborough Business Park Long Hanborough Oxford OX29 8LH Direct Tel: +44 (0)1993 885680 http:// http://www.cmi-plc.com/ www.cmi-plc.com ** ***Disclaimer*** The contents of this Email may be privileged and are confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Should you wish to use Email as a mode of communication, CMi plc and its subsidiaries are unable to guarantee the security of Email content outside of our own computer systems. This footnote also confirms that this e-mail message has been swept by MIMESweeper for the presence of computer viruses. Whilst we run anti-virus software, you are solely responsible for ensuring that any e-mail or attachment you receive is virus free. We disclaim any liability for any damage you suffer as a consequence of receiving any virus. Checkmate International plc (CMi) Registered in England No 1899857 Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW Head Office Tele + 44 (0) 1993 885600 Head Office Fax + 44 (0) 1993 885603 Web Site : www.cmi-plc.com ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Security Question
Hi I am using separate contexts in Tomcat 5,0, creating a XML in CATALINA_HOME/conf/Catalina/localhost and in this not desired context I need to forbid to some IPs, but when use this archive and make deploy, the Tomcat does not load the modules of the Struts and nor Tiles plugin. Somebody knows another form to make this? My archive of context is thus: Context path=/system docBase=${catalina.home}/webapps/system debug=0 privileged=true Valve className=org.apache.catalina.valves.RemoteAddrValve allow=172.17.*/ /Context Regards -- /** * @author Paulo César M. Jeveaux * Java Consultant * @version 21.0 * http://www.portaljava.com * @deprecated */ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK1.2.9 and dynamic change of properties
Hi, A question for JK workers : I see in the JK 1.2.9 roadmap that a dynamic change of workers'properties will be possible at runtime. But, actually, when I do apache reload, the change is possible at runtime without loosing requests. No ? So, what is the innovation of this feature ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
configure server.xml to use Realm
Hi, I try to set up a single sign on using a form for a web application. I use Apache Tomcat 5.0.28 Server. When I put this line in my server.xml config file and restart the server. I get no error message and everything seems to be started OK but when I try to access the server from a web browser, it doesn't answer my request. The admin consol is not responding, my applications neither... event the welcome page at the root. Remove the line and it works fine. But I need it for my single sign on. I try to connect to an iSeries server from a Windows 2000 server. They are in the same domain. Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=com.ibm.as400.access.AS400JDBCDriver userNameCol=TCUUSR connectionName=name userTable=TCUSERS userCredCol=TCUPWD validate=true connectionURL=jdbc:as400://10.1.1.100/drfiles userRoleTable=TCUSRROL roleNameCol=TCUROL connectionPassword=pwd / Does anyone knows what could prevent the server from answering my requests because what I get is loading with the hour glass followed (later) by the page cannot be displayed. Thank you very much for any help you can provide. Simon Riopel Nashen + Nashen Consultants Inc. Phone: 514.345.8826 ext 121 Fax: 514.342.4820 http://www.nashen.com
Re: context elements in /conf/[enginename]/[hostname]
You do realize that the context configuration files have changed between Tomcat-5.0.xx and Tomcat-5.5.x, right? If not, read the docs. If you used the path attribute before in the standalone files, you no longer do that. The path is implied by the name of the file. All you specify is the docBase. And, of course, no more Logger elements. Jake Quoting David Boyer [EMAIL PROTECTED]: I'm upgrading my Tomcat 5.0.x installations to 5.5.7. All of my context elements are defined in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/directory as per the Tomcat documentation. All of the defined contexts are loaded when Tomcat 5.0.28 starts, but not in my 5.5.7 installation. My host element has deployXML=true, autoDeploy=true, and deployOnStartup=true. What am I missing that would cause this not to work in TC 5.5.7? If I define the contexts in my server.xml, they work fine, but I'd rather put them in $CATALINA_HOME/conf/[enginename]/[hostname]/ TIA! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: context elements in /conf/[enginename]/[hostname]
Thank you, I'll check that out. [EMAIL PROTECTED] 2/24/2005 11:10:26 AM You do realize that the context configuration files have changed between Tomcat-5.0.xx and Tomcat-5.5.x, right? If not, read the docs. If you used the path attribute before in the standalone files, you no longer do that. The path is implied by the name of the file. All you specify is the docBase. And, of course, no more Logger elements. Jake Quoting David Boyer [EMAIL PROTECTED]: I'm upgrading my Tomcat 5.0.x installations to 5.5.7. All of my context elements are defined in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/directory as per the Tomcat documentation. All of the defined contexts are loaded when Tomcat 5.0.28 starts, but not in my 5.5.7 installation. My host element has deployXML=true, autoDeploy=true, and deployOnStartup=true. What am I missing that would cause this not to work in TC 5.5.7? If I define the contexts in my server.xml, they work fine, but I'd rather put them in $CATALINA_HOME/conf/[enginename]/[hostname]/ TIA! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: deployment with a different context than war name - tomcat 5.5.7
I'm using 5.5.7, and that didn't work for me. I guess I'll have to dig into the code and try to patch (when I get time). Thanks for the response... -- Chad On Thu, 24 Feb 2005 11:35:00 +0200, Mailing Lists [EMAIL PROTECTED] wrote: --David Chad Woolley wrote: Hi, Can anyone point me to a working example of of using a context xml fragment file to deploy an war at a different context than the war name? In other words, I don't want to define it in the global config file. I've read all the docs I can find on this, and it still doesn't work. I'm using the manager app to deploy, and it always says invalid context. I am using TC 5.0.27, and am able to deploy to a different context. I have the following: Context path= docBase=/path/to/myapp.war debug=true/ I deploy with: wget -q -O - 'http://administrator:[EMAIL PROTECTED]:8080/manager/deploy?config=file:/path/to/myapp.xmlwar=file:/path/to/myapp.warpath=/' I am however, having issues with redeployment of updated versions of the war file. See message titled 'Deployment Issues' from yesterday Thanks, Chad Woolley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat-users.xml
Hi I would like to use a file be that XML or CSV for user authentication on a realm. I am using the conf/tomcat-user.xml but I have to restart each time its up dated. What I find confusing is it says in server.xml (Tomcat 5.0.12) !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Immediately available would lead me to think that it checks the file for updates. Is there a flag I have to set. Or is my only option to write a custom realm. !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK1.2.9 and dynamic change of properties
Lionel Farbos wrote: A question for JK workers : I see in the JK 1.2.9 roadmap that a dynamic change of workers'properties will be possible at runtime. But, actually, when I do apache reload, the change is possible at runtime without loosing requests. No ? Yes and no. You will lose all the connections to tomcats on gracefull restart. Not to mention that if you make an syntax error in the config the apache will exit, so you will need to check that before. It can take up to session time for child to exit 30 seconds or more. So, what is the innovation of this feature ? Changes are visible immediately thanks to shared memory, and you are not loosing existing connections. Also the loadbalancer stats are visible for all child processes. And you don't need access to filesystem (except for JkMountFile). It works on all platforms. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Getting userid of current authenticated user
You shall be able to get user id from user principal. -Original Message- From: J Malcolm [mailto:[EMAIL PROTECTED] Sent: February 23, 2005 11:59 PM To: tomcat-user@jakarta.apache.org Subject: Getting userid of current authenticated user Is it possible to obtain the userid within a servlet of the person that has logged in via a realm authentication? I want to use the standard authentication to manage access. But once a person is into a certain page, I'd like to know which user it is so I can display, for instance, that user's account info. Thanks in advance. Jerry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:421d5ef7312021380957354!
Re: Very Straneg problem with MySQL-Connector
monkiboy wrote: Hello, Thank you for the answer but it's look like the parameter skip-networking is not present. I am really getting hard time. Here's my my.cnf : Are Tomcat and MySQL running on the same machine? If not, you'll have to change the bind-address: # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1 Regards mks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat-users.xml
From: Just another UFO mechanic [mailto:[EMAIL PROTECTED] Subject: tomcat-users.xml !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Immediately available would lead me to think that it checks the file for updates. The file is not the database. The actual database is in-memory only, but is populated at Tomcat startup from what's in the xml file. If you use the Admin app, you can update the in-memory database, and it will rewrite the xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat serves unauthenticated 304s. yuck.
Hi all, I have what is mainly an IE6 problem, but Tomcat is contributing by serving up 304s to requests whose authentication (FORM or BASIC) has expired. This seems to me to be in violation of the HTTP/1.1 spec: If the client has performed a conditional GET request /and access is allowed/, but the document has not been modified, the server SHOULD respond with this status code. Specifically, the problem is arising because Tomcat is serving a 304 for the *page*, but 403s for the page's linked stylesheet javascript files (in a separate webapp but under the same access control, single-signon turned on), which causes ugliness. This is almost certainly IE's fault, for issuing different sorts of GETs, but Tomcat *still* (IMHO) shouldn't be doing *anything* with an unauthenticated request for a protected resource other than trying to authenticate the user. B*g, or user error? Comments appreciated, alex. -- ___ | Alexander Dosher...Proletarian Intellectual, American Art Fascism | | S.J. Earthquakes...Chelsea FC...Ukraine...Neue Slowenische Kunst | | | | There was port later. - Arthur Machen, _The Bright Boy_ | |___| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
re: Broken Pipes
I'm currently running Apache 2.0.43 on a Solaris 8.0 Unix System with Tomcat 4.1.12 and everything had been working fine until recently when we started getting an increase in the number of broken pipe messages in Tomcat. Our dept is programming in Java and we seem to be able to run small apps fine but apps that have large objects are throwing these 'broken pipes' messages right when you log in to the app. The app still comes up but we've noticed that if this behavior goes on long enough, the server will crash. Is there any performance tweak in Tomcat's Server.xml or Web.xml file which can accommodate these large objects or can you redirect? Thx, Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757
RE: tomcat-users.xml
Thanks Looks like I have to write a JAASRealm seems to be the only way to do it so as I do not have to restart tomcat. There is only one username,password,role. As it is a small system. On Thu, 2005-02-24 at 18:53, Caldarale, Charles R wrote: From: Just another UFO mechanic [mailto:[EMAIL PROTECTED] Subject: tomcat-users.xml !-- This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. -- Immediately available would lead me to think that it checks the file for updates. The file is not the database. The actual database is in-memory only, but is populated at Tomcat startup from what's in the xml file. If you use the Admin app, you can update the in-memory database, and it will rewrite the xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat-users.xml
From: Just another UFO mechanic [mailto:[EMAIL PROTECTED] Subject: RE: tomcat-users.xml Thanks Looks like I have to write a JAASRealm seems to be the only way to do it so as I do not have to restart tomcat. If you use the Admin app, you don't have to restart Tomcat. If you want to modify the xml file by some means other than the Admin app, you could always extend the MemoryRealm to poll the xml file for changes. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FW: challenging JK connector problem: java.net.SocketException
hello Byron! as far as i can tell, these java.net.SocketExceptions are not causing any real harm in our application. the application seems to work fine. however, these exceptions are unpredictable in that i cannot generate them at will with absolute certainty. sometimes they appear, and sometimes not (when doing the same thing(s) over and over in the app). i've never seen the Recoverable error message though... woodchuck --- Guernsey, Byron (GE Consumer Industrial) [EMAIL PROTECTED] wrote: Let me pose this question: are these messages resulting in reproducable problems? We see these stack traces all the time, but there is no associated problem. I've chalked it up to people clicking refresh and aborting the connection at the right moment because we have no problems associated with the messages. My favorite is the error messages from jk2 that are labeled Recoverable. Why bother logging them as errors if they are recoverable and have no impact. Byron -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 12:02 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: FW: challenging JK connector problem: java.net.SocketException hi Patrick, i've just tried your suggestion and unfortunately i still get the java.net.SocketExceptions. i installed Tomcat 5.0.25, upgraded my JDK to 1.4.2_07, reinstalled the JK connector (setupJK204.exe). the only real difference it seems is that i'm using Windows XP. how do you install your JK connector? can you show me the contents of your workers2.properties file? here is my workers2.properties: #Look at #http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.ht ml #for parameter description [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=C:\jakarta-tomcat-5.0.25\temp\jk2.shm size=1048576 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map webapps to the Web server uri space [uri:/jsp-examples/*] [uri:/myapp/*] [uri:/servlets-examples/*] maybe there are some differences between my workers file and yours? at this point i'll try anything :) but since you're on unix, your JK connector is most likely not using isapi_redirector2.dll. so maybe there's implementation differences between the unix JK and windows JK... thanks in advance, woodchuck --- [EMAIL PROTECTED] wrote: -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: February 22, 2005 5:20 PM To: [EMAIL PROTECTED] Subject: RE: challenging JK connector problem: java.net.SocketException hello Patrick! thank you for your help, i really appreciate it as i'm at a total loss at the bizarness of the problem (works through Tomcat, but not when going through IIS/JK). i didn't have time to try out your suggestion just yet, but i definitely will. i just wanted to confirm however, because my Tomcat is an old version 4.1.24, did you mean downgrade my current JDK to one that was current at the time 4.1.24 was current? (ie. use the JDK of the same time period?) I think it would be best to upgrade your version of tomcat to 5.0+ and to use the recommended jdk. I am using tomcat 5.0.28 with jdk 1.4.2_07 on the operating system Linux Enterprise 3.0. or did you mean upgrade my JDK to the latest current release which i believe is 1.5 or something. i am currently using JDK 1.4.1_02. best regards, woodchuck --- [EMAIL PROTECTED] wrote: Hi : This is most likely an issue with the version of JDK that is deployed on your machine. Try using a newer version of the JDK which is comaptible with the version of tomcat that is deployed on your machine. Patrick King Patrick King BSc.(Hon.) Geophysics Senior Systems Scientist Canada Centre For Remote Sensing 615 Booth St. Room 650 Ottawa, Ontario K1A0E9 Phone: 613-947-0463 E-mail : [EMAIL PROTECTED] -Original Message- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: February 22, 2005 2:15 PM To: tomcat; struts Subject: challenging JK connector problem: java.net.SocketException hihi all, i have installed the JK connector (setupJK204.exe) with my IIS 5.1 and Tomcat 4.1.24. everything is working fine, except that i'm noticing in the Tomcat console display i see the following exceptions at run-time: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
A Problem with Apache, Mod_jk and Tomcat
I just put up a new app on Mac OSX server, Apache 2.0.47, mod_jk 1.2.4 and Tomcat 5.5.4. I currently have it configured to work in the following ways: http://apps:8080/appname --- straight out of the box. http://app/appname -- mod_jk and virtual hosts. When I run the application through the virtual host, after several logins and data grabs the application throws an internal 500 error, and Tomcat dies. It doesn't leave any error message in either apache log files, or the catalina log files. I have also enabled the log4J in DEBUG, and no help their. I can reproduce the error by logging in and out from several users. If I run the app directly on the app server using the 8080 address it works fine. The process that I normally use to crash the app doesn't seem to work. Also when I run this on my dev environment, I can't reproduce the problem, the only difference that I can tell is that the virtual host name isn't DNS'd. Any thoughts or ideas? I am really stumped on solving this one. Thanks in advance for any help. -john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting up Tomcat when the Linux starts up
Hi How can I startup Tomcat when Linux starts up? I've successfully compiled JSVC and have started Tomcat 5.5.7 using it for several times... BTW - Why I can't see the console output of Tomcat in Linux like Windows (i.e. warnings, infos, messages, ...)? Best Regards, -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting up Tomcat when the Linux starts up
Depends on your flavor of linux. Mandrake (I've heard RH is similar) stores the init script in /etc/init.d with a sym link in /etc/rc[runlevel-here].d. For example, if your script is tomcat5, then tomcat5 would be stored /etc/init.d w/ a sym link to it from /etc/rc5.d. 5 being the runlevel where X is started and run. The name of the sym link is S[some-priority-number]tomcat5. Take a look at your linux docs and other services for more info. Low numbers are started first, high numbers last. Tomcat's console output is usually redirected to logs/catalina.out. --David Behrang Saeedzadeh wrote: Hi How can I startup Tomcat when Linux starts up? I've successfully compiled JSVC and have started Tomcat 5.5.7 using it for several times... BTW - Why I can't see the console output of Tomcat in Linux like Windows (i.e. warnings, infos, messages, ...)? Best Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Very Straneg problem with MySQL-Connector
OK, the problem normally does not come from the driver, just try this: from your freshly installed MySQL database, remove the test database and also the test user from the database permissions table and from any global user definitions, then flush-privileges and you should be ready to go. Drew. On Thu, 2005-02-24 at 03:01, monkiboy wrote: Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ()); out.println(brErrorCode: + ex.getErrorCode ()); ex = ex.getNextException(); out.println(); } } } } AND THE HTML PAGE in order to access to the Servlet : Code: HTML HEAD TITLEDataBase Test/TITLE /HEAD BODY BGCOLOR=#FDF5E6 H2 ALIGN=CENTERDataBase TEST/H2 FORM ACTION=http://localhost:8080/TEST1; CENTER INPUT TYPE=SUBMIT VALUE = CONNEXION TEST /CENTER /FORM /BODY /HTML Theses codes works very well under windows, but under linux system here what I've got : DRIVERS JDBC : OK! ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat. Any suggestions please , because it's giving me a very hard time ! ? Thank you ! ++ monkiboy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting up Tomcat when the Linux starts up
Thanks for the response. BTW - I'm new to Linux :-) and don't know much about it... On Thu, 24 Feb 2005 15:13:09 -0500, David Smith [EMAIL PROTECTED] wrote: Depends on your flavor of linux. Mandrake (I've heard RH is similar) I'm using Ubuntu which is a Debian based distro. stores the init script in /etc/init.d with a sym link in /etc/rc[runlevel-here].d. I know that, for example, init scripts of MySQL and Samba are stored in /etc/init.d. I actually installed MySQL and Samba using apt and it took care of the rest of the progess... For example, if your script is tomcat5, then Do I have to create this script by myself? Should the contents of it be the same as the command that I write to run Tomcat using JSVC? tomcat5 would be stored /etc/init.d w/ a sym link to it from /etc/rc5.d. 5 being the runlevel where X is started and run. The name of the sym link is S[some-priority-number]tomcat5. Take a look at your linux docs and other services for more info. Low numbers are started first, high numbers last. Can you help me a bit more? Tomcat's console output is usually redirected to logs/catalina.out. How can I both print it to the terminal and logs/catalina.out like in Windows? Best Regards, Behrang. --David Behrang Saeedzadeh wrote: Hi How can I startup Tomcat when Linux starts up? I've successfully compiled JSVC and have started Tomcat 5.5.7 using it for several times... BTW - Why I can't see the console output of Tomcat in Linux like Windows (i.e. warnings, infos, messages, ...)? Best Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat manager application access
Hi, We have a requirement to allow the manager application of tomcat to be accessed only from the local machine, it should not be accessed from remote. What are the possible ways to achive this. Can we specify filter request in the manager application context as below context value=/manager Valve className=org.apache.catalina.valves.RemoteHostValve allow=127.0.0.1/ cotext Will it only allow requests from 127.0.0.1 or should we specify deny attribute also. - Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less.
Automated deployment best practices
Hi When I work locally, I turn on hot deployment and then create a WAR file automatically using Ant and then copy this file to %CATALINA_HOME%/webapps and Tomcat redeploys my application automatically. But when I want to deploy my application to a production server, which is Windows based, I first login to the system using Remote Desktop then stop the J2EE server (which is actually JRun4.) After that I create the WAR file and FTP it to a directory on the prod. server, say FTPHome. As we FTP different things to the server I cannot make the FTPHome to be the same directory at which I deploy my webapp. (Can I create a user, say Tomcat, and configure the FTPHome for this user to be the deployment dir? If the answer to this question is yes, is this an acceptable method?) Then I copy the WAR file to the deployment directory, again using Remote Desktop, and restart JRun4... This is very painful. Does anybody know a best practice for deploying a Webapp to Tomcat? Best Regards, -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configuring dbcp in / ROOT context (tomcat 5.5.7)
You shouldn't be specifying the factory (this is a change from 5.0). It is implicit and may change under your nose anyway. If you are not using some custom factory that you are providing, let the container provide the default. Jake Quoting Peter Rossbach [EMAIL PROTECTED]: Hello, please give follwing context definition a chance conf/Calalina/localhost/ROOT.xml Context reloadable=true crossContext=true Resource name=jdbc/postgres auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=whatver password=whatver driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/whatever scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/ Context Your are sure that you copy the postgres jar at common/lib? Peter Stuart Lewis schrieb: Hi, I've searched the archives and generally on google, and whilst people see the problem a lot, I've not found a definitive answer for how to configure dbcp in the root context. E.g. In server.xml I have: Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Resource name=jdbc/postgres auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=whatver password=whatver driverClassName=org.postgresql.Driver url=jdbc:postgresql://127.0.0.1:5432/whatever scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/ /Context If I copy this, and have it the same, except: Context path=/ docBase=ROOT debug=5 reloadable=true crossContext=true then it fails, with: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' How should I be configuring my postgress connection for use in the root context? Any help will be hugely appreciated, and will stop me from pulling any more of my hair out! Thanks, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: trying with my first site on Tomcat with IIS 5.0 (3)
How is this different from the jk_1.2.8 installer (except for being jk2 instead of jk)? Is it wise to recommend any new install use jk2 if it's been abandoned, especially since no one has provided a reason to use it over jk (at least as of the latest jk_1.2.8)? Does this installer setup the ISAPI filter and Application Configuration as well? If so, it's got an edge on the jk_1.2.8.exe installer in that regard. Those were the only two manual steps needed to just get the examples working under webapps/. Curious, -Matt On Thu, 24 Feb 2005, Aris Javier wrote: Hi David, I have the same problem like yours before. And found this site. http://www.shiftomat.com/opensource/ It's effective and it's free! =) I've been using this for a long time now and encountered no problems. Hope this helps. Aris Philippines -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 24, 2005 12:07 AM To: Tomcat Users List Subject: Re: Re: trying with my first site on Tomcat with IIS 5.0 (3) These are documented in lots of places (Google for the terms), but confusing in that they have the extra instructions that you don't need when you use the jk_1.2.8.exe (that installer is GREAT, it's all the various docs that need updating and clarification). The link that I sent you (and you refer to below) is what I used to configure IIS 5 on Win2K myself. Again, don't be confused by what the jk_1.2.8.exe installer has already done for you, just move on to the next step(s). In IIS 5, you will still have to: 1) Add the ISAPI filter (clear in the instructions) 2) Add Application Configuration for .jsp w via the 1.2.8 DLL (not as clear, if at all in the instructions) It seems some docs expect that Step 1 and Step 2 are the same thing, but they're not. If you're having trouble with the two steps above, you may need to investigate IIS configuration docs/instructions. Let me know, but I'm not in front of this system again until late tonight to try to give you any more epxlicit step-by-step instructions. Thanks! -Matt On Wed, 23 Feb 2005, David IBARRA ROSALES wrote: Thanks Allistair Is there documentations for IIS 6.0 , I use IIS 5.0 on win2000, I have found something new in documentation IIS 6.0: http://web.archive.org/web/20031229123839/www.rit.edu/~ack5504/tomcat- iis6-howto/WebServiceExtension.JPG that maybe help me if I found the similar in IIS 5 I already know , I 'd have use IIS 6.0, but i don'want to do more MS upgrading , o maybe Linux and Apache :o , but that will have time, menwhile I change JSP and PHP for ASP. Regards David - Original Message - From: Allistair Crossley [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 23, 2005 11:59 AM Subject: RE: Re: trying with my first site on Tomcat with IIS (2) actually Matt appears to be correct I admit - i've just checked our 1.2.8 config and it is indeed uriworkersmap.properties you need to add your mappings to. sorry for the confusion -Original Message- From: David IBARRA ROSALES [mailto:[EMAIL PROTECTED] Sent: 23 February 2005 15:05 To: Tomcat Users List Subject: Re: trying with my first site on Tomcat with IIS (2) Thanks Allistar I will go on trying... it can be only a small thing i think your message encourage me, David mytwo files show this -- # workers.properties.minimal - worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 -- # uriworkermap.properties - IIS # /test/*=ajp13w - Original Message - From: Allistair Crossley [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, February 23, 2005 11:43 AM Subject: RE: trying with my first site on Tomcat with IIS i was just going by the latest JK 1.2.8 documentation which discusses only the configuration of workers.properties. uriworkersmap used to be the file used for jk2 style config. http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html -Original Message- From: Matt [mailto:[EMAIL PROTECTED] Sent: 23 February 2005 14:36 To: Tomcat Users List Subject: RE: trying with my first site on Tomcat with IIS Actually, that's not entirely true. If you use jk_1.2.8.exe on Windows to install, it creates its own folder (I forget the name and am away from this system at present, maybe ISAPI Redirection DLL or such, sorry!) at the same level as $CATALINA_HOME (Tomcat 5.5 in my case). In there is a conf folder and in there are: uriworkermap.properties -AND- workers.properties.minimal You *should not* have to touch the second file, and will make all of your configurations in
Re: Very Straneg problem with MySQL-Connector
Thank you for trying to help me everybody ! I read carefully your answer and it look like I have problem with privileges. My problem is resolved ! The first thing I did is : Comment this line on my.cnf file : # bind 127.0.0.1 Then the second thing that I made (with your advice) : is to try to connect on MySQL with User and not with the root. GRANT ALL PRIVILEGES ON testdb.* to 'test'@'localhost' IDENTIFIED BY 'test'; Doesn't work but when I did that : GRANT ALL PRIVILEGES ON testBDD.* to 'test'@'monkinetwork' IDENTIFIED BY 'test'; It's worked. It's look like I had to grant privilege on monkinetwork... It's very strange and I can't understand, I don't know why I had to do that... Best Regards. monkiboy OK, the problem normally does not come from the driver, just try this: from your freshly installed MySQL database, remove the test database and also the test user from the database permissions table and from any global user definitions, then flush-privileges and you should be ready to go. Drew. On Thu, 2005-02-24 at 03:01, monkiboy wrote: Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ()); out.println(brErrorCode: + ex.getErrorCode ()); ex = ex.getNextException(); out.println(); } } } } AND THE HTML PAGE in order to access to the Servlet : Code: HTML HEAD TITLEDataBase Test/TITLE /HEAD BODY BGCOLOR=#FDF5E6 H2 ALIGN=CENTERDataBase TEST/H2 FORM ACTION=http://localhost:8080/TEST1; CENTER INPUT TYPE=SUBMIT VALUE = CONNEXION TEST /CENTER /FORM /BODY /HTML Theses codes works very well under windows, but under linux system here what I've got : DRIVERS JDBC : OK! ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat. Any suggestions please , because it's giving me a very hard time ! ? Thank you ! ++ monkiboy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Someone is using Tomcat for spreading spam?
Hi I get spam message from Tomcat's mailing list? Is anybode else having this problem either? I just recieved a message that had the same title as my last message with a Re: appended to it. Does anybody else also recieved this message? It's something from Harvard whatever... bla bla... Regards, -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Someone is using Tomcat for spreading spam?
On Thu, 24 Feb 2005 13:57:23 -0800, Behrang Saeedzadeh [EMAIL PROTECTED] wrote: Hi I get spam message from Tomcat's mailing list? Is anybode else having this problem either? I just recieved a message that had the same title as my last message with a Re: appended to it. Does anybody else also recieved this message? It's something from Harvard whatever... bla bla... Someone has just very annoyingly subscribed to the tomcat-users list with an email address that has an autoresponder set on it, not SPAM at all but still annoying. There was some SPAM though ocassionally from some webmaster or something that replied like 10 times to some messages, haven't seen that for a few days though. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting up Tomcat when the Linux starts up
David Smith wrote: Depends on your flavor of linux. Mandrake (I've heard RH is similar) stores the init script in /etc/init.d with a sym link in /etc/rc[runlevel-here].d. For example, if your script is tomcat5, then tomcat5 would be stored /etc/init.d w/ a sym link to it from /etc/rc5.d. 5 being the runlevel where X is started and run. The name of the sym link is S[some-priority-number]tomcat5. Take a look at your linux docs and other services for more info. Low numbers are started first, high numbers last. Tomcat's console output is usually redirected to logs/catalina.out. Perhaps a good pointer on how to do it is JPackage (http://www.JPackage.org), they have tons of Java packages in RPM form. Tomcat is at 5.0.28, I think, but it can give you a clear picture on how to do it. Oh, and they also have source RPMs, so maybe you cna build your own RPMs... Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Someone is using Tomcat for spreading spam?
I got a bunch of them from my first post and it said time to go or some nonsense in the body text as well. I tried to reply to the guy directly but it bounced, so I reported it to Apache/Jakarta. They responded within 24 hours, and since then, I haven't gotten any more... Forward it to the powers that be at Apache. Thanks, -Matt On Thu, 24 Feb 2005, Behrang Saeedzadeh wrote: Hi I get spam message from Tomcat's mailing list? Is anybode else having this problem either? I just recieved a message that had the same title as my last message with a Re: appended to it. Does anybody else also recieved this message? It's something from Harvard whatever... bla bla... Regards, -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Matthew Kozak Rutgers University-Camden [EMAIL PROTECTED] ** They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -Ben Franklin ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting up Tomcat when the Linux starts up
I'll have a look at it... Thanks, Behrnag. On Thu, 24 Feb 2005 23:09:24 +0100, Nikola Milutinovic [EMAIL PROTECTED] wrote: David Smith wrote: Depends on your flavor of linux. Mandrake (I've heard RH is similar) stores the init script in /etc/init.d with a sym link in /etc/rc[runlevel-here].d. For example, if your script is tomcat5, then tomcat5 would be stored /etc/init.d w/ a sym link to it from /etc/rc5.d. 5 being the runlevel where X is started and run. The name of the sym link is S[some-priority-number]tomcat5. Take a look at your linux docs and other services for more info. Low numbers are started first, high numbers last. Tomcat's console output is usually redirected to logs/catalina.out. Perhaps a good pointer on how to do it is JPackage (http://www.JPackage.org), they have tons of Java packages in RPM form. Tomcat is at 5.0.28, I think, but it can give you a clear picture on how to do it. Oh, and they also have source RPMs, so maybe you cna build your own RPMs... Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Behrang Saeedzadeh http://www.jroller.com/page/behrangsa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
workers2.properties URI config
Hi, I've been successful in mapping requests from IIS to tomcat5 but am stuck on getting requests mapped to the root context. The config properties below is what I'm trying and I'm not having any luck. I can get to the root context with no problems when making a direct request on the tomcat port. Also, I can route all requests just fine to other contexts but the root. Can anyone see anything wrong? Is this how I should specify the root context? Thanks - dkrebs [uri:/*] info=map all requests to the root web application context=/
Re: Very Straneg problem with MySQL-Connector
For networking localhost=127.0.0.1=monkinetwork But when you attach to the database it sends the machine name in Linux and under MySQL localhost127.0.0.1monkinetwork and so you have to put in the location that is identified. When your app talks to MySQL, it tells MySQL it is calling from machine X, in your case the machine name is monkinetwork. Had you not named the machine it would have sent localhost if it was bound to the loopback address. And if that was not bound it would have sent the 127.0.0.1. You may also want to watch that if you bind Tomcat to an IP it may send that IP to MySQL if the machine name is not available. When you go across the network it will also use the IP of the machine. The easy way to tell is from the error. Access denied for user 'root'@'monkinetwork' (using password: YES) You were running Tomcat as root and the machine name is monkinetwork. Hope this helps. Doug - Original Message - From: monkiboy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, February 24, 2005 5:04 PM Subject: Re: Very Straneg problem with MySQL-Connector Thank you for trying to help me everybody ! I read carefully your answer and it look like I have problem with privileges. My problem is resolved ! The first thing I did is : Comment this line on my.cnf file : # bind 127.0.0.1 Then the second thing that I made (with your advice) : is to try to connect on MySQL with User and not with the root. GRANT ALL PRIVILEGES ON testdb.* to 'test'@'localhost' IDENTIFIED BY 'test'; Doesn't work but when I did that : GRANT ALL PRIVILEGES ON testBDD.* to 'test'@'monkinetwork' IDENTIFIED BY 'test'; It's worked. It's look like I had to grant privilege on monkinetwork... It's very strange and I can't understand, I don't know why I had to do that... Best Regards. monkiboy OK, the problem normally does not come from the driver, just try this: from your freshly installed MySQL database, remove the test database and also the test user from the database permissions table and from any global user definitions, then flush-privileges and you should be ready to go. Drew. On Thu, 2005-02-24 at 03:01, monkiboy wrote: Hi everybody! I have a weird problem to use the MySQL-connector under Linux (Debian). I heard it can come from Tomcat. I have no problem in windows XP, all is working fine ! But under Linux when I try to connect to mysql throught mysql-connector wrote in a Servlet I have this message : Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 I am Using : Tomcat 5.0.28 MySQL-Connector version is : mysql-connector-java-3.0.15-ga-bin.jar JDK Version : 1_5_0_01. Servlet-Examples and JSP works fine! So I don't think the problem come from JDK. MySQL version : MySQL-SERVER-4.1.9-2 : All is working under console mode ! Here's My Servlet TESt1.java: Code: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; import java.sql.DriverManager; public class TEST1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String url = jdbc:mysql://localhost:3306/HeroDB; String user = root; String password = password; try{ Class.forName(com.mysql.jdbc.Driver); out.println(br DRIVERS JDBC : OK!); Connection connection = DriverManager.getConnection(url,user,password); out.println(br Database connection : OK!); } catch (ClassNotFoundException e) { out.println(Error with JDBC Drivers !); } catch(SQLException ex) { out.println(br ERROR MESSAGE br); while (ex != null) { out.println(brMessage: + ex.getMessage ()); out.println(brSQLState: + ex.getSQLState ()); out.println(brErrorCode: + ex.getErrorCode ()); ex = ex.getNextException(); out.println(); } } } } AND THE HTML PAGE in order to access to the Servlet : Code: HTML HEAD TITLEDataBase Test/TITLE /HEAD BODY BGCOLOR=#FDF5E6 H2 ALIGN=CENTERDataBase TEST/H2 FORM ACTION=http://localhost:8080/TEST1; CENTER INPUT TYPE=SUBMIT VALUE = CONNEXION TEST /CENTER /FORM /BODY /HTML Theses codes works very well under windows, but under linux system here what I've got : DRIVERS JDBC : OK! ERROR MESSAGE Message: Invalid authorization specification message from server: Access denied for user 'root'@'monkinetwork' (using password: YES) SQLState: 28000 ErrorCode: 1045 Well, the web.xml file is well configured. Anyway : I already tried with class: org.gjt.mm.mysql.driver, but I have the same message error ! By the way, it's very strange that I can play with MySQL under the terminal but not throught tomcat.
Simple JNI call fails
Hi folks, I am a newbie ... I have been trying to do a simple .jsp page that makes use of a JNI call to a simple HelloWorld .so lib. Here is what i did.. 1. Made a class called HelloWorld.java inside a package cal with a native method displayHello() 2. compiled it with javac - gave me HelloWorld.class 3. created the header file using javah -jni cal.HelloWorld - this gave me cal_HelloWorld.h file 4 created a HelloWorldImp.c file ..included the header file and also made the export line in the file reflect the package name (i.e) Java_cal_HelloWorld_displayHello() 5. Compiled .c file using gcc -c -o libHello.o -I path to jdkincludes 6. built the shared object using cc -shared -o libHello.so libHello.o 7. exported LD_LIBRARY_PATH with the right path to the .so file dir 8. created a simple Foo.jsp file to have try{ System.loadLibrary(Hello); }catch( UnsatisfiedLinkError e){ } new HelloWorld ().displayHello(); --- that's it... now all these works until i call the displayHello() method from my HelloWorld class. I am sure the server is loading the libHello.so file. But when I try to call the method that internally is supposed to invoke the native method it fails with UnsatisfiedLinkError. The same lib can be used with a simple standalone java program and it WORKS FINE !! I am so lost with this :o( Any help in this regard would be appreciated. Thanks in advance for your time ! cheerz -vaheesan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to send hidden variables to next page
Thanks David for the info. Sure to do some reading. I could able to pass the hidden variables to next page. It's just i'm using one hidden variable named 'package' which was doing all the problem. I just changed it to something else and now it's working. Still table issue not solved. I'm gooling ... for the solution. --- David Smith [EMAIL PROTECTED] wrote: This is getting into territory where you'd be better off doing some googling or buying a good javascript cookbook. I havn't bought any of those books recently although I've had good experience with subjects from Wrox Publishing and O'Reilly Associates in the past. Visit Amazon. They even support a rating scheme where people can voice their opinion. On the Delete issue, you could do a server-side rewrite of a link that invokes an action to delete a row as in: a href=http://localhost:8080/mywebapp/deleteRow.do?recordNum=10;Delete Me/a That's just a basic GET form request. Again, find a good book, do some reading. --David U K Laxmi wrote: Thanks David for the solution. To be frank, i really don't know how to code it. Will you give a sample code snippet? I'm using apache2, tomcat 5.5.7 on Win 2K machine. One more problem. I've a form and also submit button. I've number of text fields in it. On entering some data and focus losts from that field, i call a javascript function, i set number of hidden values and call a JSP using location.href of Javascript. But hidden values are not getting passed to jsp.I'm getting null. Why? How to overcome this? Pls help. One more requirement what i've is: i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD' BUTTON. After filling theform, if the user clicks on 'Add' button, the contents gets added aas row into a HTML table located below that form. That way user can add n number of rows to the bottom table. In the table, i need a 'Delete' button. After selecting any row, if the user clicks on 'Delete' button, it should get deleted from the table. I guess it can be possible. But it's a big challenge to me as i know only ABCD of HTML Javascript. If anybody can direct me to a good HTML/Javascritp forum also fine. If i get a solution directly, it's wonderful. Thanks a lot. Sorry again if it's not the right place to post this. --- David Smith [EMAIL PROTECTED] wrote: The best advice I can offer -- have a javascript that does the submit for you on the event the drop-down changes state. Then let a servlet handle storing your form data in the session and passing updated data to the next page. Outside of something like that, I think you'll need to incorporate a submit button. --David U K Laxmi wrote: Thanks for the answers Shakeel. My problem is, i've a page that doesn't have submit button. I need to send the hidden variables in that HTML page to next HTML page. Here the hidden value is set based on the type of option selected from 'select' drpo down box in HTML. To put it in session, i need to identify the selected option and assign it to java varialbe. I don't think it's possible to assign a javascript variable to java variable. Pls help to solve this problem. --- Shakeel Ahmad [EMAIL PROTECTED] wrote: Wel this might help... // You write following two lines in first JSP page. String name = Java;// This might be your hidden field. session.setAttribute(HiddenName, name); //Then you get the name on next page as follows. String userName = (String)session.getAttribute(HiddenName); The name attribute will be available throught the session life, unless we remove it explicitly or restart Tomcat. We can use it on any page once it is placed properly. Best Regards, S H A K E E L A H M A D http://members.fortunecity.com/javaclub/shakeel.htm Voice: 00923002723316 Senior Software Engineer. NorthStar Technologies. www.globalnorthstar.com EE(Computer Engineering), UET Lahore, Pakistan. SCJP,SCWCD SCBCD Sun Microsystems, Inc. Brain Bench Certified Java Programmer. -Original Message- From: U K Laxmi [mailto:[EMAIL PROTECTED] Sent: 23 February, 2005 10:37 AM To: Tomcat Users List Subject: RE: How to send hidden variables to next page Yes. I'm using JSP. Can you pls tell me the syntax or guidelines as how to do it. Thank you. --- Shakeel Ahmad [EMAIL PROTECTED] wrote: === message truncated === __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]