RE: Autopostback in JSP
Search struts archive. I remember some one posted similar question. All you have to do is to write HTML code. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jens Skripczynski [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 9:05 AM To: Tomcat Users List Subject: Re: Autopostback in JSP runu rathi: Hi, 1) I want the contents of my HTML page display to refresh automatically based on a selection made by the user. I am using HTML + JSP. For Example: There are three radio buttons - Thesis - Non-Thesis - Software Engineering Drop Down Menu1 If the user selects 'thesis' there should be one drop down menu appearing on the screen else there should be two drop down menus appearing. How can I do that? Well, i believe you need to use Java Skript in any way. if the user chooses a different radio button to either load a new page or to change the content of the page dynamically. 2) Also what function in JSP will allow my page to display one image if the mouse is placed on it and another image if the the mouse is not place on it? Thanks, Java Skript with mouse-over. I'm not familiar with Java Skript, but I have heard, that each Browser has its own Java Skript dialect. So supporting many Browser can be a pain... Ciao Jens Skripczynski -- E-Mail: skripi(at)myrealbox(dot)com Tollef Fog Heen Unix _IS_ user friendly... It's just selective about who its friends are. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Connection Pool with IBM DB2 version 8.1
Is it you who posted the same question or some one else? Search through tomcat or struts archive. There was an answer last week. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Simon Wong [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 10:51 PM To: [EMAIL PROTECTED] Subject: Tomcat Connection Pool with IBM DB2 version 8.1 Hello All, Does anyone successfully configure Tomcat Connection Pool with IBM DB2 version 8.1? Any sample server.xml for reference? Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: building just one connector module?
Remove unnecessary lines from build.properties, e.g. tomcat41=. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Albert Lunde [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 11:08 AM To: [EMAIL PROTECTED] Subject: building just one connector module? I'd like to to build mod_jk for use with an existing build of Apache 1.3.27 and the binary distribution of Tomcat 4.1.18. But I've like to avoid building from source all the connectors for all Apache versions. I'm not sure that I need anything beyond the apache module for 1.3.x. Is it feasible to build such a limited subset of stuff? My initial experiments suggested two approaches: setting some properties in a build.properties file to empty strings, and plugging in jar files from the binary distribution where the build process expects to find them. Any advice on how to do this, other than trial and error? (I'm presently working on Red Hat Linux 7.0 but will need to do this again for Solaris 8 and/or a later version of Red Hat.) -- Albert Lunde [EMAIL PROTECTED] (new address) [EMAIL PROTECTED] (old address) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection refused question
Which tomcat connector are you using, jk or jk2? For jk2, check workers2.properties, jk2.properties and server.xml. I don't use jk. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: Connection refused question I am not able to get to http://localhost/examples I get the following errors in my apache error_log file. Any ideas? Where does it look for the examples directory and what sets it? [Wed Feb 26 11:35:10 2003] [error] channelSocket.open() connect failed localhost :8009 146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 26 11:35:10 2003] [error] ajp13.service() failed to connect endpoint er rno=146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.service() Error forwarding ajp13:local host:8009 1 1 [Wed Feb 26 11:35:10 2003] [error] lb.service() worker failed 12 for ajp13:l ocalhost:8009 Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection refused question
Server.xml connector= Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 1:20 PM To: [EMAIL PROTECTED] Subject: RE: Connection refused question How do I tell? Do you have an AJP13-compatible connector listening on port 8009? John -Original Message- From: Charles A Jordan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:05 PM To: [EMAIL PROTECTED] Subject: Connection refused question I am not able to get to http://localhost/examples I get the following errors in my apache error_log file. Any ideas? Where does it look for the examples directory and what sets it? [Wed Feb 26 11:35:10 2003] [error] channelSocket.open() connect failed localhost :8009 146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.connect() failed ajp13:localhost:8009 [Wed Feb 26 11:35:10 2003] [error] ajp13.service() failed to connect endpoint er rno=146 Connection refused [Wed Feb 26 11:35:10 2003] [error] ajp13.service() Error forwarding ajp13:local host:8009 1 1 [Wed Feb 26 11:35:10 2003] [error] lb.service() worker failed 12 for ajp13:l ocalhost:8009 Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - 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] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configure the location of a file to be opened by a java application in Tomcat
Or hard-coded your fully-qualified file name in web.xml init-param param-namemytextfile/param-name param-valuemy.text.file/param-value /init-param Then get file name using getInitParameter(mytextfile) in your Servlet. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Steve Guo [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 2:26 PM To: Tomcat Users List Subject: Re: Configure the location of a file to be opened by a java application in Tomcat I think you can use context.getRealPath(/) to get root folder of current webapp, then append your filename/relative path to this path. Never tried, but think it works. C. L. Chen [EMAIL PROTECTED] wrote:Hi, I am trying to create a jsp which invokes a Java application connecting to a database using JDBC. That Java application requires reading data from a text file which contains information about the JDBC driver, user name and password. The problem is I don't know how to direct Tomcat so that it can find the text file needed by the JDBC connection. Does anyone know how to configure Tomcat so that it will find the text file? C. L. Chen __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
RE: Connection Pooling
This is a Tomcat JNDI implementation. I tried different solutions Tomcat, Oracle connection caching and commons. Among them, Tomcat's is very simple. commons-dbcp + pooling require more coding but have more flexibility of course. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Malcolm Green [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 5:36 AM To: 'Tomcat Users List' Subject: RE: Connection Pooling I have DBCP connection pooling working as follows using Tomcat 4.1.12: Under the Context element for your application (this can either be in the server.xml file or a separate xml file in the webapps dir) I have the following config: Resource name=jdbc/ scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/ parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value3/value /parameter parameter namemaxWait/name value100/value /parameter parameter nameusername/name valuetheUser/value /parameter parameter namepassword/name valuethePassword/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://hostname:port;databasename=myDB/value /parameter parameter namevalidationQuery/name valueselect getdate()/value /parameter /ResourceParams This is an MS SQL Server config, but to change the db just make sure that the requried JDBC jar file is in the common/lib directory and then change the necessary elements above e.g. driverClassName etc. In my web.xml for my app I have the following: resource-ref res-ref-namejdbc//res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref To use the pool I have the following code in a servlet: (I have left out the try/catch block etc.) Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/); conn = ds.getConnection(); Hope this helps. Malcolm -Original Message- From: Sebastiªo Carlos Santos [mailto:[EMAIL PROTECTED] Sent: 21 February 2003 00:15 To: [EMAIL PROTECTED] Subject: Connection Pooling Somebody has some experience or example in the configuration and use of pool of connections with the commons-dbcp. I am a little lost and I don't know through where to begin. All information will be well arrival. I thank the help in advance __ E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ - 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: please explain errors in catalina.out and mod_kj's log
I see similar messages in my Catalina.out. Since my app works just fine, I simple ignore them. I think it is either apache timeout setup or ssl setup. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Sven Köhler [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 10:21 AM To: [EMAIL PROTECTED] Subject: please explain errors in catalina.out and mod_kj's log hi, many people seem to have the follwing lines in their catalina.out: 25.02.2003 16:07:31 org.apache.jk.common.ChannelSocket processConnection INFO: server has been restarted or reset this connection 25.02.2003 16:07:33 org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached i now set mod_jk's log-level to error, and now i have those lines in mod_jk's log: see below i checked my tomcat-configuration. the timeout is at it's maximum (60sec) although i haven't tried using -1 yet. i wouldn't like a timeout of -1 (hopefully meaning INFINITY) because a dead connection would never be detected! i guess, tomcat is killing the connections (because of timeout) and mod_jk has to establish a new connection. mod_jk doesn't have something like a keep-alive option, so what am i supposed to do!? a snippet from my mod_jk.log: [Tue Feb 25 16:08:28 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverab le operation. err=0 [Tue Feb 25 16:08:29 2003] [jk_ajp_common.c (926)]: Error sending request body [Tue Feb 25 16:08:30 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Tue Feb 25 16:08:30 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is dow n or network problems. [Tue Feb 25 16:08:30 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverab le operation. err=0 [Tue Feb 25 16:08:31 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Tue Feb 25 16:08:31 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is dow n or network problems. [Tue Feb 25 16:08:31 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverab le operation. err=0 [Tue Feb 25 16:08:31 2003] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [Tue Feb 25 16:08:31 2003] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is dow n or network problems. [Tue Feb 25 16:08:31 2003] [jk_ajp_common.c (1187)]: ERROR: Receiving from tomcat failed, recoverab le operation. err=0 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tcp/ip stack issues
I was scared some one run tomcat on win95 box. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 11:11 AM To: Tomcat Users List Subject: Re: tcp/ip stack issues If you don't have a NIC or an Ethernet connection, what's the point? In my experience, Win95 will still allow you to connect to 127.0.0.1, but in Win2K you can't even reach yourself without a network connection. My solution was to create an Ethernet loopback plug that I stick in my NIC port and a short time later I can at least access 127.0.0.1. - Original Message - From: Shital Joshi [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:10 AM Subject: tcp/ip stack issues hi there, we are using tomcat for our application. the application should work on all the windows platforms. now, if the tcp/ip stack is not initialized on windows 95 (if network card is not present or if the ithernet connection is not available) then tomcat fails to start. any solutions? your help is highly appreciated. -shital - 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: JNDI + Tomcat + Oracle 9i Database
This issue has been asked and answered again and again in the mailing list of tomcat, struts, and commons. Consider that Oracle is so populate, setup should be pretty straightforward. My advice is to make sure that you have read carefully the tomcat datasource documentation. My environment is J2sdk 1.4.1_01 = 1.4 Tomcat 4.1.18 Apache 2.0.44 Tomcat Connector 2.0.3 Red Hat Linux 7.2 (prod) Windows 2000 (dev) Oracle 8.1.7 classes12.jar = 1.2 1. Below is part of my context. Do not invent the resource type, driver, and factory. I saw someone use a different factory or driver think they are going to utilize Oracle's pooling. It is smart but it is wrong in this case. To prove it is wrong, read Tomcat source code. Resource name=jdbc/abcd auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/abcd parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@oratest.int.abcd.com:1521:PROD/value /parameter 2. Also in my app's web.xml resource-ref descriptionOracle Datasource/description res-ref-namejdbc/abcd/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Do not put commons-dbcp and pooling jars in your app's WEB-INF/lib, use Tomcat's (in common/lib). 3. Initialize the connection pool and get connection: Context initContext = new InitialContext(); Context envContext = (Context) initContext.lookup(java:comp/env); DataSource dataSource = (DataSource) envContext.lookup(jdbc/abcd); dataSource.getConnection() Don't do anything other than point 3 to get the connection or driver. I have had two problems before: - null driver: renamed classes12.zip to classes12.jar and put it ONLY in commons/lib. - cannot connect: use a real url other than Microsoft's name, so oratest won't work on linux while oratest.mydomain.com works. - cast exception: use commons dbcp and pooling in commons/lib. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Sebastião Carlos Santos [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 1:37 PM To: [EMAIL PROTECTED] Subject: Re: JNDI + Tomcat + Oracle 9i Database When I made the change of the nameurl / name for nameURL / name I started to receive the following error message Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' it goes connect URL 'null' Going back to the configuration nameurl / name Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' it goes connect URL 'jdbc:oracle:[EMAIL PROTECTED]:1521:GED' Taking advantage of the opportunity, which driver JDBC should use, ojdbc14.jar (for the jdk 1.4) or classes12.zip, that should have the name according to the documentation changed for classes12.jar Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The classical problem: Tomcat with Apache
Since it is classical, by searching archive of this list you will find answer. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Victor Gonzalez [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 1:49 PM To: 'Tomcat Users List' Subject: The classical problem: Tomcat with Apache Importance: High Hi, I will believe I am dummy! Because I check different methods to implement it but never I can do! Well, I have the versions: Apache 2.0.44 and Tomcat 4.1.18 (both for Windows) in the same machine. Well, I need to know the module or dll to download (please, the link too) and how is it configure (please, step by step). Tnks so much!!! Regards Victor Gonzalez ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The classical problem: Tomcat with Apache
Tomcat connector setup on Windows doesn't even need John's instruction - too simple compare to Linux's. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Kaarle Kaila [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 2:00 PM To: Tomcat Users List; 'Tomcat Users List' Subject: Re: The classical problem: Tomcat with Apache At 12:49 25.2.2003 -0600, Victor Gonzalez wrote: Hi, hi, A rather good guide exists on http://www.johnturner.com/ for the older connector. regards Kaarle I will believe I am dummy! Because I check different methods to implement it but never I can do! Well, I have the versions: Apache 2.0.44 and Tomcat 4.1.18 (both for Windows) in the same machine. Well, I need to know the module or dll to download (please, the link too) and how is it configure (please, step by step). Tnks so much!!! Regards Victor Gonzalez ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Kaarle Kaila http://www.iki.fi/kaila mailto:[EMAIL PROTECTED] tel: +358 50 3725844 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need help - jk2_init() Can't find child
I built everything from source. mod_jk init 1 -2: stop and restart apache once or several times. mod_jk init 1 0: won't disappear and won't hurt my app. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 3:55 PM To: 'Tomcat Users List' Subject: RE: Need help - jk2_init() Can't find child Then, get the mod_jk2´s source and build it for your system, if the same error happen again tell us. -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:50 Para: [EMAIL PROTECTED] Assunto: RE: Need help - jk2_init() Can't find child I tried this but I get the exact same results Try to use mod_jk-2.0.43.so -- De: Charles A Jordan[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 25 de fevereiro de 2003 17:26 Para: [EMAIL PROTECTED] Assunto: Need help - jk2_init() Can't find child I am using jakarta-tomcat-4.1.18, apache 2.0.44, on Solaris 9 using mod_jk2.so. tomcat starts with no errors but when I start apache I see the following in the error_log file: [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 813 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 0 [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [error] jk2_init() Can't find child 815 in scoreboard [Tue Feb 25 14:24:51 2003] [error] mod_jk child init 1 -2 [Tue Feb 25 14:24:51 2003] [notice] Apache/2.0.44 (Unix) mod_jk2/2.0.3-dev confi gured -- resuming normal operations Any help would be appreciated. Thanks. Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Charles (Allen) Jordan [EMAIL PROTECTED] System Administrator(407)771-8919 Convergys 285 International Parkway, Lake Mary, FL 32746-5007 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how can I disable directory listing at client side
Do it in your apache httpd.conf Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: runu rathi [mailto:[EMAIL PROTECTED] Sent: February 25, 2003 3:33 PM To: [EMAIL PROTECTED] Subject: how can I disable directory listing at client side Hi all, How can I disable the directory listing to be shown when someone tries to load my application remotely through a browser? I shall appreciate any help. Thanks, Runu __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MBeans and MC4J
Does your tomcat load MBean server during startup? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Achim Hügen [mailto:[EMAIL PROTECTED] Sent: February 24, 2003 4:44 AM To: [EMAIL PROTECTED] Subject: MBeans and MC4J Hi, I'm trying to manage Tomcat from mc4j, but I can't find any documentation for the MBeans support. Is the MBean support official and how can I use it from an external tool? Achim
RE: Tomcat and Apache
This is the story I was told. In old days, Tomcat was a JSP/Servlet Container - interpreting JSP/Servlet pages faster than it did for static html. So people chose Apache to load HTML pages and redirected requests of JSP/Servlet to Tomcat. Now Tomcat claims to be as fast as Apache in terms of interpreting HTMLs. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Etienne [mailto:[EMAIL PROTECTED]] Sent: February 21, 2003 7:01 AM To: 'Tomcat Users List' Subject: Tomcat and Apache Hi, I have a simple question to ask. Why most of the people use Apache like the web server running in front of Tomcat? Would it be better to map tomcat on port 80? What is the plus value of having the apache web server in front? Is it only to have access to perl or php? Thanks Etienne. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Connection Pooling
There are two options. 1. Tomcat JNDI: refer to Tomcat's JNDI datasource how-to 2. commons-dbcp + commons-pooling: refer to commons-dbcp and pooling API documentation Which one do you want to know? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Sebastiªo Carlos Santos [mailto:[EMAIL PROTECTED]] Sent: February 20, 2003 7:15 PM To: [EMAIL PROTECTED] Subject: Connection Pooling Somebody has some experience or example in the configuration and use of pool of connections with the commons-dbcp. I am a little lost and I don't know through where to begin. All information will be well arrival. I thank the help in advance __ E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[offtopic]Are JK2 developers M$ people?
I built apache and jk2 for my linux box. I have to admit it is slightly difficult to build and config. I still have an error after I start apache [error] mod_jk child init 1 0 - I am not even running mod_jk but mod_jk2! Yesterday I installed apache and jk2 on w2k box. Few minutes, I was done. I was wondering if those jk2 developers are hired by M$? :) Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing
RE: apache tomcat (this old problem)
Not sure if mode_jk2-2.0.43.so works with apache 2.0.44. But workers2.properties and jk2.properties are quite simple. After I built tomcat-connector from source, I only did following changes 1. /usr/local/apache2/conf/workers2.properties # shared memory handling. [shm] file=/usr/local/jakarta-tomcat-4.1.18/work/jk2.shm size=1048576 # example socket channel, explicitly set port and host [channel.socket:jackass:8009] tomcatId=jackass:8009 # uri mapping [uri:/examples/*] 2. /usr/local/Jakarta-tomcat-4.1.18/conf/jk2.properties shm.file=${jkHome}/work/jk2.shm 3. No need to modify server.xml 4. /usr/local/apache2/conf/httpd.conf LoadModule jk2_module modules/mod_jk2.so Please show us the log so that we can better understand why it does work. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Dani [mailto:alchasira@xxx] Sent: February 21, 2003 1:02 PM To: tomcat-user@xx Subject: apache tomcat (this old problem) Hello. First of all: sorry for my terrible English. Second, I'm introducing myself: My name is Dani. Third thing (and the most important): my problem :-). Again this silly and old problem?, you may say, but I can't solve it. Help me please. I've installed red hat 7.2, apache 2.0.44 tomcat 4.1.18. I'm trying to connect apache - tomcat each other, but I can't. I've downloaded mod_jk2-2.0.43.so and I've configure server.xml and workers2.properties as it is described in the mod_jk2 documentation. But it doesn't work. Maybe server.xml or workers2.properties are bad (workers2.properties didn't exist previously) or maybe mod_jk2-2.0.43 is not the correct module or maybe I put them in a bad place. I don't know. Any suggestion? Thanks for your patient. - To unsubscribe, e-mail: tomcat-user-unsubscribe@xx For additional commands, e-mail: tomcat-user-help@xx
RE: apache tomcat (this old problem)
Try channel.socket::8009 Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Dani [mailto:alchasira@xxx] Sent: February 21, 2003 1:15 PM To: Tomcat Users List Subject: RE: apache tomcat (this old problem) - This is the apache error_log when I'm trying to connect [Fri Feb 21 19:06:15 2003] [error] workerEnv.init() create slot epStat.1 failed [Fri Feb 21 19:06:15 2003] [error] lb.service() worker failed ajp13:192.168.5.1:8080 [Fri Feb 21 19:06:15 2003] [error] lb.service() unrecoverable error... [Fri Feb 21 19:06:15 2003] [error] mod_jk.handler() Error connecting to tomcat 12 - And this is the worker2.properties: #Define the communication channel [channel.socket:192.168.5.1:8080] info=Ajp13 forwarding over socket tomcatId=192.168.5.1:8080 #Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp - I add this line in the httpd.conf in the apache2/conf directory: LoadModule jk2_module modules/mod_jk2-2.0.43.so - This is jk2.properties in jakarta-tomcat/conf directory (only this line): channelSocket.port=8080 - This is part of the server.xml file: ... Server port=8080 shutdown=SHUTDOWN debug=0 ... Service name=Tomcat-Apache ... Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=0 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8080 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ . - Original Message - From: Dani alchasira@xxx To: tomcat-user@xx Sent: Friday, February 21, 2003 7:01 PM Subject: apache tomcat (this old problem) Hello. First of all: sorry for my terrible English. Second, I'm introducing myself: My name is Dani. Third thing (and the most important): my problem :-). Again this silly and old problem?, you may say, but I can't solve it. Help me please. I've installed red hat 7.2, apache 2.0.44 tomcat 4.1.18. I'm trying to connect apache - tomcat each other, but I can't. I've downloaded mod_jk2-2.0.43.so and I've configure server.xml and workers2.properties as it is described in the mod_jk2 documentation. But it doesn't work. Maybe server.xml or workers2.properties are bad (workers2.properties didn't exist previously) or maybe mod_jk2-2.0.43 is not the correct module or maybe I put them in a bad place. I don't know. Any suggestion? Thanks for your patient. - To unsubscribe, e-mail: tomcat-user-unsubscribe@xx For additional commands, e-mail: tomcat-user-help@xx - To unsubscribe, e-mail: tomcat-user-unsubscribe@xx For additional commands, e-mail: tomcat-user-help@xx
RE: How to stop redirectPort from appending :443
I have had this problem before. But I forgot which config I corrected. Check your ssl.conf Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Bryan Field-Elliot [mailto:bryan_lists@xxx] Sent: February 21, 2003 4:21 PM To: Tomcat Users List Subject: Re: How to stop redirectPort from appending :443 I've just confirmed that the below problem is hidden by Internet Explorer (e.g. the :443 is stripped off), so IE users don't see this. I test on Mozilla, and after a Tomcat Connector redirectPort occurs, my URL window looks like this: https://my.server.com:443/my-page.jsp It should look like this (assuming redirectPort is set to 443, the default): https://my.server.com/my-page.jsp Can anyone confirm that what I'm seeing is a Tomcat bad assumption (I won't call it a bug just yet ;) )? This is more than a cosmetic problem; if my-page.jsp links to other JSP pages (e.g. using JSTL c:out), then the URL's generated will NOT have the :443 appended, and my session context between the two pages is getting lost... Thanks, Bryan On Fri, 2003-02-21 at 13:50, Bryan Field-Elliot wrote: When a Connector's redirectPort kicks in to redirect the user to an SSL protected version of the same URI, it is appending :443 after the DNS name of the server. This seems to be throwing off session tracking later, since subsequent hyperlinks (to other JSP pages) don't have the :443 in the URL. In any case, it's unnecessary and unsightly. How can I get redirectPort to not append :443? I tried leaving out the redirectPort directive, falling back on the default (which obviously must be 443), but it's still appending this string. Thanks, Bryan
RE: Oracle connection pooling + Tomcat 4.1.12
Tomcat's connection pooling utilizes its JNDI implementation plus commons-dbcp and pooling, so you have to use whatever the JNDI-datasource documentation tells you to do, that is 1. type=javax.sql.DataSource 2. namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value 3. Do not define factory, there is default value by Tomcat. Behind the scene, Tomcat will use BasicDataSource and PoolableConnection (whose underlying connection is OracleConnection). If you do wish to use Oracle's connection pooling, I didn't have luck either. But I tried its connection caching. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Alexey Yastremskiy [mailto:[EMAIL PROTECTED]] Sent: February 20, 2003 12:04 AM To: Tomcat Users List Subject: Oracle connection pooling + Tomcat 4.1.12 Hi. I've got a problem: I tried to setup oracle connection pooling in my tomcat configuration, but didn't succeed. I checked Tomcat docs and Oracle docs to produce this, but nothing helped :( Does anyone have in production such a configuration, using Oracle-implemented connection pooling? Please, help me to do the same... Here is my configs [server.xml] Resource auth=Container name=jdbc/DB scope=Shareable type=javax.sql.ConnectionPoolDataSource/ ResourceParams name=jdbc/DB parameter namefactory/name valueoracle.jdbc.pool.OracleDataSourceFactory/value /parameter parameter namedataSourceName/name valueoracle.jdbc.pool.OracleConnectionPoolDataSource/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@dbserver:1521:SID/value /parameter parameter namedescription/name valuemy datasource/value /parameter parameter nameuser/name value.../value /parameter parameter namepassword/name value.../value /parameter /ResourceParams ... [end server.xml] [web.xml] ... resource-env-ref descriptionmy db/description resource-env-ref-namejdbc/DB/resource-env-ref-name resource-env-ref-typejavax.sql.ConnectionPoolDataSource/resource-env-ref- type /resource-env-ref ... [end web.xml] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/apache problems
Are you sure its 8019 not 8009? 8019 is just an example supplied by tomcat. The real port is 8009 as it is defined in server.xml Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Robert Andersson [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 6:36 PM To: [EMAIL PROTECTED] Subject: tomcat/apache problems hi all! i just wanted to set up tomcat to speak with my apache server with this jk2-module. i can get the tomcat server to up and running on its own port 8080 as default. though when starting the apache server it only says in the error log: [Thu Feb 20 00:07:35 2003] [debug] /tmp/httpd-2.0.44/server/mpm/prefork/prefork.c(1039): AcceptMutex: pthread (default: pthread) [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] mod_jk child init 1 0 [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file [Thu Feb 20 00:07:35 2003] [error] shm.init(): No file i am running tomcat 4.1... on solaris 9 sparc got this in my worksers2.properties # Define the communication channel [channel.socket:localhost:8019] info=Ajp13 forwarding over socket tomcatId=localhost:8019 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp and this in my j2k.properties handler.list=apr channelSocket.port=8019 shm.file=/usr/local/apache/apache2/logs/jk2.shm apr.jniModeSo=/usr/local/apache/apache2/modules/mod_jk2.so i really tried to follow your manuals... hehehe, over 20 years of hacking seemed like a waste... :) you really have to do something about your manuals, gee yours, /robert -- Systems Administrator Swedish National Graduate School of Language Technology - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DB2 version 8.1 using Jakarta Commons Connection Pool
I did it for Oracle and succeeded. You need to use both commons-dbcp and commons-pooling. I switched to Tomcat JNDI + pooling after I found out that Tomcat's implementation is DAMN simple. The documentation on using commons APIs is sufficient (it suits any kind of pooling). But you have to explore by yourself on the JDBC side. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Simon Wong [mailto:[EMAIL PROTECTED]] Sent: February 20, 2003 2:38 AM To: [EMAIL PROTECTED] Subject: DB2 version 8.1 using Jakarta Commons Connection Pool Hello, all, Does anyone successfully configure DB2 version 8.1 using Jakarta Commons Connection Pool? Could you share your experience with us? Thanks in advance, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about building jakarta-tomcat-connectors-4.1.18-src
Servlet.jar is not in your classpath Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Ryan Dooley [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: Question about building jakarta-tomcat-connectors-4.1.18-src Hi, I'm having issues building the jakarta-tomcat-connectors (4.1.18) from source. The build environment is: server platform: redhat linux 7.3 java version: j2sdk 1.4.1_01 ant version: 1.5 tomcat version: 4.1.18 I've setup up the environment for JAVA_HOME, CATALINA_HOME, PATH, etc. The errors I'm getting are: jkjava: [javac] Compiling 31 source files to /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/build/classes [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:66: package javax.servlet does not exist [javac] import javax.servlet.ServletInputStream; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:67: package javax.servlet.http does not exist [javac] import javax.servlet.http.HttpServletRequest; [javac] ^ [javac] /usr/local/src/jakarta-tomcat-connectors-4.1.18-src/jk/java/org/apache/jk/co mmon/JkInputStream.java:68: package javax.servlet.http does not exist [javac] import javax.servlet.http.Cookie; [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 3 errors Any help would be appreciated. Cheers, Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ant deploy task?
url is your manager app's url, e.g. http://localhost:8080/manager Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 12:55 PM To: 'Tomcat Users List' Subject: ant deploy task? What's the least amount of work I can do to deploy a new version of my webapp? I've been cheating and developing directly under the webapps directory. Now I've moved to a separate directory structure and am building a .war file which gets copied over to webapps. Since Tomcat auto-expands the war file, I find I have to delete the directory and restart in order to get the new version in place. I found an ant task named 'deploy' but it doesn't seem to be apparently requires another .jar file, and I'm having no luck finding that with Google. It isn't, as far as I can tell, a core ant task: W:\java\bendevant deploy Buildfile: build.xml deploy: BUILD FAILED file:W:/java/bendev/build.xml:136: Could not create task or type of type: deploy. Ant could not find the task or a class this task relies upon. target name=deploy depends= deploy url=http://my.development.box; path=${context} war=${dist}/${context}.war username=wendy password=password / /target I'm also not sure how this is going to work... Tomcat is on the same machine so right now I'm just copying the war file over. Would it be better to use the 'install' or 'restart' tasks instead? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
RE: How To Unit Testing Tomcat Datasource
Always use java:comp/env/yourdatasource Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:13 PM To: Tomcat Users List Subject: How To Unit Testing Tomcat Datasource I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I connect to Tomcat's JNDI and get a reference to the datasource there to pass to the classes I am testing? Or should I just rework my test code to just create a connection from the DriverManager and go from there? Anybody doing anything like this with suggestions? I appreciate any help BTW: I tried to connect to Tomcat's JDNI using the InitialContext and that did not work because I could not get a datasource. Peace, Haytham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How To Unit Testing Tomcat Datasource
No idea about JBoss. Tomcat's JNDI is not a real directory service but a simulation. Look at struts' test suites. C:\jakarta-struts-1.1-b3-src\src\test\org\apache\struts\action Class TestActionServlet might be helpful. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:30 PM To: Tomcat Users List Subject: RE: How To Unit Testing Tomcat Datasource PQ, Thanks for the reply. I actually use that in my factory class to connect to JNDI, get the datasource and use it to create connections for my database specific DAO implementations by calling getConnection(). In any case, I am running this code external to Tomcat. So the actual JDNI resource is in TOmcat but I am testing the DAO code externally using a JUnit TestCases. I guess the big question is, can I access JNDI resources in Tomcat from external code (not deployed in tomcat)? If so, are there any properties I need to set to be able to access Tomcat's JNDI resources: Like ctx.INITIAL_CONTEXT_FACTORY, ctx.PROVIDER_URL, etc. This can be done with JBoss for example. If so, what are the values used (I have not seen any documentation on this anywhere)? Thanks, Haytham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:14 PM To: [EMAIL PROTECTED] Subject: RE: How To Unit Testing Tomcat Datasource Always use java:comp/env/yourdatasource Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 1:13 PM To: Tomcat Users List Subject: How To Unit Testing Tomcat Datasource I have set up a datasource in Tomcat's server.xml using dbcp. It works fine, I get connections connect to the database, etc. Now, I am in the process of putting together quite a bit of DAO code and would like to unit test each call as I am going through the coding using my JUnit tests. How can I connect to Tomcat's JNDI and get a reference to the datasource there to pass to the classes I am testing? Or should I just rework my test code to just create a connection from the DriverManager and go from there? Anybody doing anything like this with suggestions? I appreciate any help BTW: I tried to connect to Tomcat's JDNI using the InitialContext and that did not work because I could not get a datasource. Peace, Haytham - 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[2]: Best Logging practices
My opinion is you choose whatever you like. Obviously jdk1.4 logging API is for jdk 1.4. commons-logging is a good API only if you use it as a logger not a wrapper of another logger. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Felipe Schnack [mailto:[EMAIL PROTECTED]] Sent: February 19, 2003 3:15 PM To: Jacob Kjome Cc: Tomcat Users List Subject: Re: Re[2]: Best Logging practices What are the real advantages os log4j? Everybody says it's better, but no one says why :-) just curious On Wed, 2003-02-19 at 16:16, Jacob Kjome wrote: Hello Mike, If by newer and more refined you mean not compatible with jdk's previous to Sun's 1.4 jdk with fewer features than Log4j, then you are absolutely correct. Seriously, Log4j is far more capable than JDK1.4 logging and is independent of your favorite JDK. And don't bother with commons-logging unless you like debugging weird classloader issues and want lowest-common-denominator functionality. http://qos.ch/logging/thinkAgain.html Jake Wednesday, February 19, 2003, 9:01:38 AM, you wrote: AM Can you give me the lay of the land regarding log4j? I was under the AM impression that java.util.logging was the way to go for the future. It AM (java.util.logging) appears to be a newer, more refined package. AM -Original Message- AM From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] AM Sent: Wednesday, February 19, 2003 8:19 AM AM To: Tomcat Users List AM Subject: RE: Best Logging practices AM Howdy, AM Listen to Jacob -- I wish more people did what he recommended in his AM post. Also use log4j. ;) AM Yoav Shapira AM Millennium ChemInformatics -Original Message- From: Manavendra Gupta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:30 PM To: Tomcat Users List Subject: Best Logging practices Any pointers/thoughts about web application logging practices? You generally see almost each individual with different opinion about this (from AM logging into the system temporary directory to inside WEB-INF). Are there any best practices for this? Thanks, Manav. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] AM This e-mail, including any attachments, is a confidential business AM communication, and may contain information that is confidential, AM proprietary and/or privileged. This e-mail is intended only for the AM individual(s) to whom it is addressed, and may not be saved, copied, AM printed, disclosed or used by anyone else. If you are not the(an) AM intended recipient, please immediately delete this e-mail from your AM computer system and notify the sender. Thank you. AM - AM To unsubscribe, e-mail: [EMAIL PROTECTED] AM For additional commands, e-mail: [EMAIL PROTECTED] AM - AM To unsubscribe, e-mail: [EMAIL PROTECTED] AM For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Exception - Starting up Tomcat with Struts
One easy way to tell if your xml is incorrect is to double click on your web.xml and struts-config.xml. It brings up your web browser. Your web browser should interpret your xml based on the dtd provided by your xml. If there is something wrong, the error message must be seen in the browser. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Sanjeevkumar Cherengotil [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 7:26 AM To: Tomcat Users List Subject: Re: Exception - Starting up Tomcat with Struts Thanks much.. I have modified the web.xml (few of its tags were messed up). Now the following exception remains.. any ideas?? [ERROR] ActionServlet - -null java.lang.VerifyError: Cannot inherit from final classjava.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11 1) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp ClassLoader.java:1664) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa der.java:953) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1394) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1274) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatch er(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.init(XMLDocum entFragmentScannerImpl.java:249) at org.apache.xerces.impl.XMLDocumentScannerImpl.init(XMLDocumentScann erImpl.java:245) Thanks in advance.. -Sanjeev - luck is what happens when preparation meets opportunity - Sanjeev Kumar C K Senior Software Engineer IT Solutions India Private Ltd Ph : 044-28212877 / 78 , ext - 2315 . Tim Funk funkman@joedo To: Tomcat Users List g.org[EMAIL PROTECTED] cc: 02/18/2003 Subject: Re: Exception - Starting up Tomcat 05:45 PM with Struts Please respond to Tomcat Users List Your web.xml is not wellformed and/or valid. Make sure it is with respect to the DTD. -Tim Sanjeevkumar Cherengotil wrote: Hi, I have installed Tomcat 4.1.18 and Struts1.1 Beta on my Windows 2000 machine. I copied all jar files and other required files along with the war files into the directories mentioned in the installation manual. I am getting couple of exceptions. Could anyone please tell me what went wrong? Exceptions are as follows.. Exception #1 org.xml.sax.SAXParseException: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-param*,filter*,fil ter- mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,w elco me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-c onst raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*). at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Er rorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper. java:173) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:371) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter. java:305) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDVal idator.java:1918) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator .java:851) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement( XMLDocumentFragmentScannerImpl.java:1008) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM LDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav a:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j Exception #2 [ERROR] ActionServlet - -null java.lang.VerifyError: Cannot inherit from final classjava.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass0(Native Method) at
RE: JK2 mess
Use apachectl configtest to check your httpd.conf Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 2:07 AM To: Tomcat Users List Subject: RE: JK2 mess That doesn't sound like an error that is related to mod_jk at all. It's either a missconfiguration of the basic apache or there is already a server listening on port 80 (Another Apache or IIS; you can verify this with netstat). -Original Message- From: Carlos Cajina [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 1:16 AM To: Tomcat Users List Subject: JK2 mess After doing this Tomcat starts just fine, but Apache gives me this error messages on the Windows Event Viewer: a)Event Type: Error Event Source: Apache Service Description: The Apache service named reported the following error: (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18 and httpd-2.0.40-11
Move that header file one level up. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Xue-Feng Yang [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 1:34 AM To: Tomcat Users List Subject: Re: Tomcat 4.1.18 and httpd-2.0.40-11 Hi all, I tried to connect Tomcat 4.1.18 and Apache2(httpd-2.0.40-11 ) with jk2 on my redhat 8.0 box, where apach2 was installed when I installed Redhat 8.0. I use JDK 1.4.1. When I used ant to build native, I met some errors. I fixed one error: [so] /usr/java/j2sdk1.4.1_01/include/jni.h:27:20: jni_md.h: No such file or directory by copying /usr/java/j2sdk1.4.1_01/include/linux/jni_md.h to /usr/java/j2sdk1.4.1_01/include/ Then I met more(see attched). I cannot resolve this. Could anyone help me on this? Thank you very much, Xue-Feng [so] StdErr: [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_th read.c:64: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:165:17: apr.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:166:23: apr_errno.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:167:22: apr_time.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:168:25: apr_strings.h: No such file or directory [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_workerE nv.h:68, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service .h:75, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker. h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:6 9, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h: 67, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:6 7, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_th read.c:65: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:207: parse error before apr_time_t [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:207: warning: no semicolon at end of struct or union [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:211: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:212: parse error before maxTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:212: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:215: parse error before startTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:215: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:216: parse error before jkStartTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:216: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:217: parse error before endTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:217: warning: data definition has no type or storage class [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker. h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:6 9, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h: 67, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:6 7, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_th read.c:65: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service .h:279: parse error before apr_time_t [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service .h:279: warning: no semicolon at end of struct or union [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service .h:315: `read' redeclared as different kind of symbol [so] /usr/include/unistd.h:310:
RE: Tomcat 4.1.18 and httpd-2.0.40-11
This problem only happens when you compile a connector on linux. The exact location of jni_md.h is $JAVA_HOME/include/linux. In order to pass the compile, you have to move this header file one level up to $JAVA_HOME/include. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 2:55 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.18 and httpd-2.0.40-11 Thanks. That doesn't work. I also talked with the author, but not help. [EMAIL PROTECTED] wrote: hi, * Xue-Feng Yang ([EMAIL PROTECTED]) wrote: I tried to connect Tomcat 4.1.18 and Apache2(httpd-2.0.40-11 ) with jk2 on my redhat 8.0 box, where apach2 was installed when I installed Redhat 8.0. I use JDK 1.4.1. [so] /usr/java/j2sdk1.4.1_01/include/jni.h:27:20: jni_md.h: No such file or directory Read this article, http://www.pubbitch.org/jboss/mod_jk2.html rk -- - Ramakrishna | [EMAIL PROTECTED] Exocore Consulting | http://www.exocore.com Bangalore, India| +91 (80) 344-0397 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.8 and httpd-2.0.40-11
Sorry if I misunderstood your question. I encountered errors like jni_md.h no such file etc when I was building my connector. After I read and followed the instruction provided by http://www.pubbitch.org/jboss/mod_jk2.html, I passed the compile. So below is what I think might be helpful. 1. grab tomcat binary. 2. build apache 2 with MPM enabled. 3. follow pubbitch's instruction, e.g. move header file one level up. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:11 PM To: Tomcat Users List Subject: Tomcat 4.1.8 and httpd-2.0.40-11 Hi all, I tried to connect Tomcat 4.1.8 and Apache2(httpd-2.0.40-11 ) with jk2 on my redhat 8.0 box, where apach2 was installed when I installed Redhat 8.0. I use JDK 1.4.1. When I used ant to build native, I met errors(see attched). I cannot resolve this. Could anyone help me on this? Thank you very much, Xue-Feng [so] StdErr: [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_th read.c:64: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:165:17: apr.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:166:23: apr_errno.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:167:22: apr_time.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global. h:168:25: apr_strings.h: No such file or directory [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_workerE nv.h:68, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service .h:75, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker. h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:6 9, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h: 67, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:6 7, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_th read.c:65: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:207: parse error before apr_time_t [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:207: warning: no semicolon at end of struct or union [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:211: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:212: parse error before maxTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:212: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:215: parse error before startTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:215: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:216: parse error before jkStartTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:216: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:217: parse error before endTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoin t.h:217: warning: data definition has no type or storage class [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker. h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h:6 9, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h: 67, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h:6 7, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_th read.c:65: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service .h:279: parse error before apr_time_t [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_service .h:279: warning: no semicolon at end of struct or union [so]
RE: Solved it. Re: mod_jk virtual hosts ? 90% of the way there.
We should not waste precious resource teaching people how to read the link.:) Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Barney Hamish [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 12:19 PM To: 'Tomcat Users List' Subject: RE: Solved it. Re: mod_jk virtual hosts ? 90% of the way there. Look at the link again! You're missing the part that was chopped off at the end of the line... -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 9:18 PM To: Tomcat Users List Subject: Re: Solved it. Re: mod_jk virtual hosts ? 90% of the way there. That is what I have: Not Found The requested URL /tomcat/tomcat-4.1-doc/jk2/jk2/config was not found on this server. -- -- Apache/2.0.44 (Unix) Server at jakarta.apache.org Port 80 [EMAIL PROTECTED] wrote: Works perfectly for me. John -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 3:05 PM To: Tomcat Users List Subject: Re: Solved it. Re: mod_jk virtual hosts ? 90% of the way there. This link is broken.: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config howto.html [EMAIL PROTECTED] wrote: Hi RK, I thought my workers.properties file looked very different from everybody else's using mod_jk2 ! I just checked again and realize I misread the page http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/config howto.html I actually put the following in jk2.properties instead of in workers2.properties - _jk2.properties # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp -- and the really strange thing is that it all worked My workers.properties looks very different from everybody else's but it also works fine _workers.properties___ worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=3 -- Is the mod_jk2.so backwards compatible ? I'm also using the mod_jk-1.3-noeapi.so file from http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk /release/v1.2.1 /bin/solaris8/ which was linked from the jk2 FAQ http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/faq.html Or is the link in the FAQ incorrect ? It's going to hurt if I've somehow managed to use mod_jk1 as opposed to mod_jk2 :( Soefara. _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.8 and httpd-2.0.40-11
Yes, mine is 7.2 too. If I were you, I would choose not to install apache which came with RH8. Building apache from source should ease your pain. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:30 PM To: Tomcat Users List Subject: Re: Tomcat 4.1.8 and httpd-2.0.40-11 Thank you. What OS do you use? Redhat 8.0. I asked this since most of people I asked use Redhat 7.2 or 7.3. Thanks again [EMAIL PROTECTED] wrote: Sorry if I misunderstood your question. I encountered errors like jni_md.h no such file etc when I was building my connector. After I read and followed the instruction provided by http://www.pubbitch.org/jboss/mod_jk2.html, I passed the compile. So below is what I think might be helpful. 1. grab tomcat binary. 2. build apache 2 with MPM enabled. 3. follow pubbitch's instruction, e.g. move header file one level up. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: sunisson [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:11 PM To: Tomcat Users List Subject: Tomcat 4.1.8 and httpd-2.0.40-11 Hi all, I tried to connect Tomcat 4.1.8 and Apache2(httpd-2.0.40-11 ) with jk2 on my redhat 8.0 box, where apach2 was installed when I installed Redhat 8.0. I use JDK 1.4.1. When I used ant to build native, I met errors(see attched). I cannot resolve this. Could anyone help me on this? Thank you very much, Xue-Feng [so] StdErr: [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_t h read.c:64: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:165:17: apr.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:166:23: apr_errno.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:167:22: apr_time.h: No such file or directory [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_global . h:168:25: apr_strings.h: No such file or directory [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker E nv.h:68, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_servic e .h:75, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker . h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h: 6 9, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_pool.h : 67, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_map.h: 6 7, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/common/jk_mutex_t h read.c:65: [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:207: parse error before apr_time_t [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:207: warning: no semicolon at end of struct or union [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:211: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:212: parse error before maxTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:212: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:215: parse error before startTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:215: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:216: parse error before jkStartTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:216: warning: data definition has no type or storage class [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:217: parse error before endTime [so] /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_endpoi n t.h:217: warning: data definition has no type or storage class [so] In file included from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_worker . h:70, [so] from /root/tmp/jakarta-tomcat-connectors-4.1.18-src/jk/native2/include/jk_env.h: 6 9, [so] from
RE: [OT] free Database with Transaction (Sorry for the noise)
Postgre sql? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jens Skripczynski [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 1:20 PM Cc: [EMAIL PROTECTED] Subject: [OT] free Database with Transaction (Sorry for the noise) hi, I'm looking for a Database, that can do - sql transactions, (or anything similiar to sql - if it works with a xml database, xml is fine) - has a java 1.4.1 jdbc driver - is free (even better if for commercial use) 'Mysql' was my first option, but it does not have transactions. In an _old_ computer magazine i found 'instantdb' but this one seems to be discontinued. The database tables i want to create, are only for one application. So a client server system or connection pooling are not neccessary. If someone knows what 'instantdb' is, its features seem to be enough. Anything additional is good. But i think the 'free' statement reduces the return results to '0'. :( Ciao Jens Skripczynski -- E-Mail: skripi(at)myrealbox(dot)com In this world there are only two tragedies; one is not getting what one wants, the other is getting it. -- Oscar Wild - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TomCat to run with the IIS locally
Looking through connector how-to you should find answers. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]] Sent: February 18, 2003 3:32 PM To: 'Tomcat Users List' Subject: RE: TomCat to run with the IIS locally Why not to use Apache? I don´t now if there are modules for ISS for tomcat, or maybe ( and if you can ) is need create a module for ISS to understand tomcat. -- De: Edemilson Aguiar[SMTP:[EMAIL PROTECTED]] Responder:Tomcat Users List Enviada: terça-feira, 18 de fevereiro de 2003 16:52 Para: 'Tomcat Users List' Assunto: TomCat to run with the IIS locally I am trying to set up the TomCat to run with the IIS locally. I am looking in the internet for the documentations about How to set up the TomCat with IIS. Does somebody could help me, please? I'll appreciate some help. I am using the following configuration: Tomcat 4.1.18 IIS j2sdk1.4.1_01 Thanks in advance, Edemilson Aguiar Instituto Atlantico PSC Brazil Phone: 55-85-216-7859 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.455 / Virus Database: 255 - Release Date: 13/2/2003
RE: Best practices - dev deploy?
I guess it was cached. Try close your browser and re-launch it. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: John Ruffin [mailto:[EMAIL PROTECTED]] Sent: February 14, 2003 12:13 PM To: 'Tomcat Users List' Subject: Best practices - dev deploy? I running tc4.1.18, sdk1.4.0_01, struts1.1.b2 on a w2k machine. TC runs as an NT service. I created a basic myHello project - just an app with 2 jsps. Used Ant to build and deploy the app but I can't see the changes unless I go through this crazy process of: (step1) removing the app using Manager (step2) stopping the NT service - Apache Tomcat4.1 (step3) deleting the app folder under catalina_home\webapps (step3) deleting the appName.war file (step4) starting the NT service - Apache Tomcat4.1 (step5) building the app using Ant - which of course redeploys the app Did I mention it was crazy? Question: What are some best practices for testing applications? I feel like I'm reinventing the wheel - there must be an easier way. BTW, if I make changes to a jsp inside the container I can see the changes - but of course I don't want to do that. Thanks for your feedback. The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. 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. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Log4J and tomcat using Commons logging
According to commons-logging documentation, commons-logging automatically search for available logging config, log4j, jdk, commons-logging, simplelog etc. The idea is good. It makes life much easier using different logging api. I am happy with log4j so why switch? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: February 14, 2003 1:14 PM To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging Hey Jim, Can you help me understand your configuration so I can help identify where the breakdown is? I am most curious about where all the jar files are - common/lib, shared/lib, or WEB-INF/lib? Probably the best info would be directory listings of common/lib, shared/lib, and WEB-INF/lib. I suspect that log4j is being loaded to far up the classloader tree to be able to find your configuration file when used through commons-logging, but when you use it directly, it is loaded again by another classloader that is able to find your configuration file. That is why I was asking if there was a way to tell log4j to use the properties file without relying on the class loader. I do not use log4j, so I do not know what it can do. Larry [EMAIL PROTECTED] 02/14/03 10:38 AM Hi Larry, I am not having a problem with log4j I deploy the log4j.properties to myapp/WEB-INF/classes and it works fine. I would not want to have log4j.properies in common/classes because I want to be able to configure my logging for individaul apps. The problem is if I use commons-logging, this SHOULD use the underlying log4j implementation and the log4j.properties file that I have deployed with my app. With commons-logging you do not log to any particular logging implementation. Regards Jim. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 17:11 To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging I have never used log4j, but you might try putting the log4j.properties file in common/classes, it means all apps get the same log settings, but may work. :-/ Is there a way to tell log4j to use the properties file without relying on the class loader, like an environment variable or something? That might make it easier to use. Larry [EMAIL PROTECTED] 02/14/03 09:55 AM Hi Larry, There have been some problems with the location of the commons-logging jar file. It was in server/lib but this causes intermittent problems that causes Tomcat to crash. I have posted this problem to this mail list and the same problem has been published on other mail lists. The fix is to move commons-logging.jar from server/lib to common/lib and not to deploy commons-logging with your webapp. At the moment I have commons-logging.jar only in common/lib and the log4j jar file in common/lib and my apps WEB-INF/lib dir. If I log directly to log4j it uses my log4j.properties file but if I use commons-logging it uses the default. For the moment I will stick to calling log4j directly. It would be nice to clear this up though as a lot of other people are having the same problem trying to use commons-logging. Regards Jim. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED]] Sent: 14 February 2003 15:40 To: [EMAIL PROTECTED] Subject: RE: Log4J and tomcat using Commons logging Where are your commons-logging and log4j jars? If they are loaded by a different classloader than the log4j.properties file, it may not work. Larry [EMAIL PROTECTED] 02/14/03 02:47 AM Hi, I have managed to get log4j to work for my webapps. I just have a log4j.properties file in WEB-INF/classes and it works. I can't get commons-logging to work though. If I try commons-logging it does not pick up my log4j.properties file yet using log4j directly does pick up the file. I have spent a lot of time trawling Tomcat/Struts/Commons mail archives to try and find how to get this to work to no avail. Reading these mail archives I can see that a lot of other people are having the same problem as me. As Tomcat and Struts uses commons-logging could someone please try and clarify how we set up a webapp to use commons-logging with its own configuration file. I am sure this would prove useful to a large number of users. Many thanks Jim. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: 13 February 2003 18:11 To: Tomcat Users List Subject: RE: Log4J and tomcat Howdy, FYI: we deploy in packed .war files (and have unpackWARs=false in the Host elements of server.xml). We use log4j with a properties configuration file. The way we configure log4j is in a servlet listener's contextInitialized(ServletContext sce) method, using URL configurationFileUrl =
RE: jk2 config -- uri directive for root context?
The context in your server.xml is what you need to specify in [uri]. For example, $CATALINA_HOME/webapps/examples translated into uri is [uri:/examples/*] Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 10:13 PM To: Tomcat Users List Subject: jk2 config -- uri directive for root context? Okay, I've almost got this figured out. I've got JK2 working with Tomcat 4.1.18 and Apache 2.0.44, with much credit due to Paul Branson and his tutorial, found here: http://undergraduate.cs.uwa.edu.au/units/233.410/submissions/bransp02/presen tation.pdf My only remaining problem is that I'm not sure exactly how to set up the [uri] directive for the root context. I've got Apache set up (with the DirectoryIndex directive) to serve index.jsp by default. When I check the server (link below), I get an HTTP 500 error: http://65.42.173.103/ No error messages are appended to my error_log file. The relevant part of my workers2.properties file looks like this: # Uri mapping [uri:/*.jsp] worker=ajp13:localhost:8009 It's apparent that Apache is forwarding the request to Tomcat, but Tomcat isn't finding the source file. The source jsp files are located at: /usr/java/jakarta-tomcat-4.1.18/webapps/ I tried putting them in webapps/ROOT, but that didn't help. Do I have the source location wrong, or the URI directive? Or both? Any help is much appreciated. Thanks, Jake Robb - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDI datasource frustrations...
What about your app's web.xml? This is a classic question, You many search through this list or struts/commons lists for answer. There is also a documentation on Jakarta.apache.org's. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED]] Sent: February 13, 2003 3:36 PM To: '[EMAIL PROTECTED]' Subject: JNDI datasource frustrations... All, It seems that I may be having a problem instantiating the Sql server jdbc driver. I have copied the following jars into my $CATALINA_HOME/common/lib directory: msbase.jar mssqlserver.jar msutil.jar I have the following in my server.xml file: Resource name=jdbc/joshsDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/joshsDB parameter nameusername/name valuesomeuser/value /parameter parameter namepassword/name valuepassword/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter nameurl/name valuejdbc:microsoft:sqlserver://localhost:1433/value /parameter parameter namemaxActive/name value100/value /parameter parameter namemaxIdle/name value1/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams In the Tomcat console, I see the following: java.sql.SqlException: Cannot load JDBC driver class 'null' What am I doing wrong here? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2 config -- uri directive for root context?
Try following [uri:/*] in your workers2.properties in $CATALINA_HOME/webapps/ROOT, modify index.jsp to redirect your request to somewhere you want to go. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: February 13, 2003 4:55 PM To: Tomcat Users List Subject: Re: jk2 config -- uri directive for root context? Okay, I think I might have figured out my mistake, but I still need help here. I enabled the port 8080 direct connection, and I get the same behavior as before, so my problem is with Tomcat, and not with JK. I set debug=10 in several places, and the Tomcat error logs look normal. None of my site is implemented using servlets -- it's all JSP. I have been Googling all afternoon, with no luck finding any examples of a proper setup for any non-servlet context, let alone a root context (servlet or otherwise!). Do I have to use the manager app to do something to set up my context, or can I just create the web.xml file? Do I even need a web.xml file if I'm not using a servlet? Does anyone out there have Tomcat 4.1.18 set up so that it will serve http://address.com/index.jsp? I have had no luck getting this to work, and if I could just compare notes with someone who has it working, I could probably figure out what's wrong. Thanks! -Jake - Original Message - From: Brett Neumeier [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, February 13, 2003 2:03 PM Subject: RE: jk2 config -- uri directive for root context? Hi Jake, Does this work when going to Tomcat directly (say to port 8080, if you've got a HTTP connector listening to that port) rather than going through a native web server? If you don't have an HTTP connector configured in Tomcat, you might want to add one to help in debugging the situation. Have you tried this? What happens when you take the web server and JK out of the picture? I think this is the most obvious first step you can take to determine where the problem lies. If it turns out that everything works fine when you make the request directly to Tomcat, then the problem is certainly related to JK2 -- either a bug in the JK2 code, or a misconfiguration, or both. If it turns out that HTTP requests direct to Tomcat don't work any better than the ones being sent through the native web server and JK2, then the problem is probably not related to JK2 -- thus there must be a misconfiguration on the Tomcat side. You also might want to enable debugging information in the web server, or tomcat, or both -- if you can find out what Tomcat is trying to do, that might illuminate why it's not doing what you expect. Have you tried this? The places you can turn on debugging information (as far as I know) are: In workers2.properties, as debug= properties for components -- you can set debug to values from 1 to 10, according to the documentation, with higher numbers meaning more log data. In server.xml, as debug= attributes of Connector or Context elements (with 1-10 values as above). What might be informative is to turn on debugging output for all of these, and look over what each component thinks is happening. Cheers, bn - 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: Setting up logging - Log4j
If that's the case, I would recommend commons-logging as it supports jdk and log4j. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Joe Tomcat [mailto:[EMAIL PROTECTED]] Sent: February 9, 2003 6:04 PM To: Tomcat Users List Subject: Re: Setting up logging - Log4j On Tue, 2003-02-11 at 14:27, tomcat guy wrote: Would anyone be so kind to point me in the right direction for setting up some logging for servlets running on Tomcat? I'm looking at Log4j but I be a newbie and the docs I'm finding are not that helpfull... If you have a choice, I would go with Java 1.4 and use the built-in logging facilities. It is easier to use and more powerful in many ways. You can find info about this on java.sun.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't create apr
If you enable jk logging in workers2.properties, you will see that apache2 is looking into your connector src directory for workers.c. Could not figure out why? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 5:48 AM To: [EMAIL PROTECTED] Subject: Can't create apr Hi Cant resolve this one? occurs when starting tomcat-4.1.18-LE, with apache2 and mod_jk2. Have looked all over the discussion forums, and found many people with the same problem on tomcat-4.1.12, but cant find a solution. Using the following jk2.properties file... # jk2.properties # list of needed handlers. handler.list=apr,channelSocket,channelUnix,request # Set the default port for the channelSocket channelSocket.port=8009 # State where the UNIX domain socket is located channelUnix.file=/usr/local/tomcat4/work/jk2.socket # Dynamic library serverRoot=/usr/local/apache2 apr.NativeSo=/usr/local/tomcat4/libjkjni.so # end of jk2.properties but no socket is created... using workers2.properties created in the build/conf directory when compiling tomcat-connectors-4.1.18. regards Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.io.IOException: no jkjni in java.library.path
Copy libjkjni.so to somewhere in your apache2 or tomcat and create an entry in your workers2.properties apr.NativeSo=/somewhere/libjkjni.so I didn't get IOException but ClassDefNotFoundException: cant create apr. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: java.io.IOException: no jkjni in java.library.path Hi anyone know how to rectify this? java.io.IOException: no jkjni in java.library.path I have compiled connectors-4.1.20 and copied mod_jk2.so and libjkjni.so to apache2 modules directory. I am trying to get a unixSocket to work to connect apache2 and tomcat-4.1.20... Cheers Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.io.IOException: no jkjni in java.library.path
/usr/local/apache2/lib Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:47 AM To: Tomcat Users List Subject: RE: java.io.IOException: no jkjni in java.library.path is it in the same directory as libjkjni.so? -- /usr/local/apache2/modules -Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 11:39 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: java.io.IOException: no jkjni in java.library.path Thanks... Know i get java.io.IOException: /usr/local/apache2/modules/libjkjni.so: libapr-0.so.0: cannot open shared object file: No such file or directory Not sure where to put libapr-0.so.0. Has anyone actually got a unixSocket to work or am i clutching at straws here? Everyway i turn i hit another problem. They dont make things easy do they? Well i will keep trying for today thanks Andy On Wed, 2003-02-12 at 16:32, [EMAIL PROTECTED] wrote: Copy libjkjni.so to somewhere in your apache2 or tomcat and create an entry in your workers2.properties apr.NativeSo=/somewhere/libjkjni.so I didn't get IOException but ClassDefNotFoundException: cant create apr. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Andy Richards [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: java.io.IOException: no jkjni in java.library.path Hi anyone know how to rectify this? java.io.IOException: no jkjni in java.library.path I have compiled connectors-4.1.20 and copied mod_jk2.so and libjkjni.so to apache2 modules directory. I am trying to get a unixSocket to work to connect apache2 and tomcat-4.1.20... Cheers Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.esolution.co.uk http://www.esolution.co.uk ___ e: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] w: http://www.esolution.co.uk www.esolution.co.uk t: [+44] 01785 827666 f: [+44] 01788 827601 This E mail may contain proprietary, confidential or legally privileged information and is intended for the addressee only. If you are not the intended addressee, please notify me immediately and do not use, disclose, distribute, copy, print or rely on it. The views expressed are mine and do not necessarily reflect those of eSolution.
RE: java.io.IOException: no jkjni in java.library.path
I had a build error which complained about libapr.so not found. So I linked libapr-0.so.0.9.2 to libapr.so and passed compilation. I am wondering how you passed build? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:53 AM To: Tomcat Users List Subject: RE: java.io.IOException: no jkjni in java.library.path Created a symlink from apache2 modules where libjkjni.so is, and linked libapr-0.so.0 to apache2/lib/libapr.so. Still mo luck though ! thanks andy On Wed, 2003-02-12 at 16:46, Brzezinski, Paul J wrote: is it in the same directory as libjkjni.so? -- /usr/local/apache2/modules -Original Message- From: Andy Richards [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 12, 2003 11:39 AM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: java.io.IOException: no jkjni in java.library.path Thanks... Know i get java.io.IOException: /usr/local/apache2/modules/libjkjni.so: libapr-0.so.0: cannot open shared object file: No such file or directory Not sure where to put libapr-0.so.0. Has anyone actually got a unixSocket to work or am i clutching at straws here? Everyway i turn i hit another problem. They dont make things easy do they? Well i will keep trying for today thanks Andy On Wed, 2003-02-12 at 16:32, [EMAIL PROTECTED] wrote: Copy libjkjni.so to somewhere in your apache2 or tomcat and create an entry in your workers2.properties apr.NativeSo=/somewhere/libjkjni.so I didn't get IOException but ClassDefNotFoundException: cant create apr. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Andy Richards [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: java.io.IOException: no jkjni in java.library.path Hi anyone know how to rectify this? java.io.IOException: no jkjni in java.library.path I have compiled connectors-4.1.20 and copied mod_jk2.so and libjkjni.so to apache2 modules directory. I am trying to get a unixSocket to work to connect apache2 and tomcat-4.1.20... Cheers Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.esolution.co.uk http://www.esolution.co.uk ___ e: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] w: http://www.esolution.co.uk www.esolution.co.uk t:[+44] 01785 827666 f:[+44] 01788 827601 This E mail may contain proprietary, confidential or legally privileged information and is intended for the addressee only. If you are not the intended addressee, please notify me immediately and do not use, disclose, distribute, copy, print or rely on it. The views expressed are mine and do not necessarily reflect those of eSolution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put workers2.properties?
It is in conf and you can specify default properties file, please refer to jk2 doc. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:53 AM To: Tomcat Users List Subject: Where to put workers2.properties? Hi. In mod_jk I had the JkWorkersFile /opt/jakarta/conf/workers.properties directive to tell where the hell is workers.properties located. I'm trying to configure mod_jk2 now but I can't find how to tell it where I've put the workers2.properties file. Bytes DAC
RE: Where to put workers2.properties?
Because jk2 is way too easy to setup, people don't believe that the jk2 doc is complete. I would say the documentation on build is incomplete. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 12:03 PM To: Tomcat Users List Subject: Re: Where to put workers2.properties? I've been searching for good documentation on setting up jk2, with no luck. Apache's documentation is poor and incomplete. I went out and bought a book on Tomcat, and it has mod_jk information, but it's pretty limited on jk2. Does anyone have a good online reference? -Jake - Original Message - From: Diego Algorta Casamayou [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 11:52 AM Subject: Where to put workers2.properties? Hi. In mod_jk I had the JkWorkersFile /opt/jakarta/conf/workers.properties directive to tell where the hell is workers.properties located. I'm trying to configure mod_jk2 now but I can't find how to tell it where I've put the workers2.properties file. Bytes DAC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put workers2.properties?
You load mod_jk2.so in httpd.conf and apache will load workers2.properties from its conf dir. Simple? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 12:23 PM To: Tomcat Users List Subject: Re: Where to put workers2.properties? Yeah, right. Thanx for your help... Yes, I've been reading the docs since yesterday. But, as I understand, this goes INSIDE the workers2.properties itself. Obviously I'm mising something. The JkWorkersFile directive of mod_jk was placed in httpd.conf. ¿Is there where I have to put the config? [config] file=/opt/jakarta/conf/workers2.properties Thank you again. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 2:01 PM Subject: RE: Where to put workers2.properties? It is in conf and you can specify default properties file, please refer to jk2 doc. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:53 AM To: Tomcat Users List Subject: Where to put workers2.properties? Hi. In mod_jk I had the JkWorkersFile /opt/jakarta/conf/workers.properties directive to tell where the hell is workers.properties located. I'm trying to configure mod_jk2 now but I can't find how to tell it where I've put the workers2.properties file. Bytes DAC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put workers2.properties?
Create workers2.properties and put these lines [config] file=/my/location/myjk2.config Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 12:31 PM To: Tomcat Users List Subject: Re: Where to put workers2.properties? Yes, but I want to put workers2.properties in OTHER directory. ¿HOW? - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 2:27 PM Subject: RE: Where to put workers2.properties? You load mod_jk2.so in httpd.conf and apache will load workers2.properties from its conf dir. Simple? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 12:23 PM To: Tomcat Users List Subject: Re: Where to put workers2.properties? Yeah, right. Thanx for your help... Yes, I've been reading the docs since yesterday. But, as I understand, this goes INSIDE the workers2.properties itself. Obviously I'm mising something. The JkWorkersFile directive of mod_jk was placed in httpd.conf. ¿Is there where I have to put the config? [config] file=/opt/jakarta/conf/workers2.properties Thank you again. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 12, 2003 2:01 PM Subject: RE: Where to put workers2.properties? It is in conf and you can specify default properties file, please refer to jk2 doc. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Diego Algorta Casamayou [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 11:53 AM To: Tomcat Users List Subject: Where to put workers2.properties? Hi. In mod_jk I had the JkWorkersFile /opt/jakarta/conf/workers.properties directive to tell where the hell is workers.properties located. I'm trying to configure mod_jk2 now but I can't find how to tell it where I've put the workers2.properties file. Bytes DAC - 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: J2SE-Java
There is no direct link since sun requires you to say I agree. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 1:14 PM To: Tomcat Users List Subject: J2SE-Java ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, where i can't find it Java 1.4.1 SDK version. I have to install it, before use Tomcat. When I try it to download from java.sun.com, the connection crash it. Thanks AAM
RE: Connector issues - jk2, 4.1.18, 2.0.44
apr.NativeSo has to be placed in jk2.properties in order for channelUnix to work. If I don't put apr.NativeSo, there is no error in Catalina.out. However, there is no channelUnix either. If I put apr.nativeSo, I got that error. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: liug [mailto:[EMAIL PROTECTED]] Sent: February 12, 2003 2:17 PM To: [EMAIL PROTECTED] Subject: Re: Connector issues - jk2, 4.1.18, 2.0.44 Eric L. Wittle [EMAIL PROTECTED] wrote: # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp In my Tomcat 4.1.18 conf directory, my jk2.properties files contains the folloing: handler.list=apr,channelSocket,request channelSocket.port=8009 Hope this works for you... -Eric with the jk2.properties you have, when you startup tomcat 4.1.18, do you see the following errors in your catalina.out file? Starting service Tomcat-Standalone Apache Tomcat/4.1.18 Feb 12, 2003 11:02:33 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Feb 12, 2003 11:02:33 AM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:556) at org.apache.jk.server.JkMain.start(JkMain.java:341) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169) .. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk child init 1 0
Yesterday I built apache 2.0.44 and tomcat connector 4.1.18. I loaded module mod_jk2.so in apache. There are two issues. Issue 1: If I create a jk2.properties like this Handlers.list=apr,channleUnix,request Channel.Unix blah blah apr.NativeSo=/usr/local/jakarta-tomcat-4.1.18/lib/libjkjni.so I got following error after I launched apachectl start: Feb 10, 2003 12:30:11 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.18 Feb 10, 2003 12:30:27 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Feb 10, 2003 12:30:27 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:556) at org.apache.jk.server.JkMain.start(JkMain.java:341) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1056) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Feb 10, 2003 12:30:27 PM org.apache.jk.server.JkMain newHandler SEVERE: Can't create apr java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.jk.server.JkMain.newHandler(JkMain.java:556) at org.apache.jk.server.JkMain.processProperty(JkMain.java:537) at org.apache.jk.server.JkMain.processProperties(JkMain.java:505) at org.apache.jk.server.JkMain.start(JkMain.java:346) at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1056) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Feb 10, 2003 12:30:27 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Feb 10, 2003 12:30:27 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=3/244 config=/usr/local/jakarta-tomcat-4.1.18/conf/jk2.properties Issue 2: If I use default jk2.properties - that is nothing in the file, after I launched apachectl start, I got following error [error] mod_jk child init 1 0 I can still access tomcat examples http://myhost.mydomain/examples Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing
automatically redirect http to https in tomcat
Is it possible to automatically redirect any http request to https in an Apache + Tomcat environment? For example, If I enter http://my.domain.com/mycontext http://my.domain.com/mycontext , I would be automatically redirected to https://my.domain.com/mycontext? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing
RE: automatically redirect http to https in tomcat
Actually I want to force the https access of my context 1. I included ssl.conf in httpd.conf. 2. In ssl.conf, I enabled SSL and VirtualHost _default_:* ServerName my.domain.com:443 .. /VirtualHost 3. In my server.xml, the only connector loaded is a secure one. Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 .. redirectPort=8443 scheme=https secure=true ../ I assume any http request will be automatically redirected as https to 8443. However, if I type http://my.domain.com/mycontext, apache gave me a bad Request page. Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please. Hint: https://my.domain.com/ Am I totally wrong? Any thought besides RedirectPermanent and the above no-user-friendly remind? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Mohamed Nasser [mailto:[EMAIL PROTECTED]] Sent: February 11, 2003 4:23 PM To: Tomcat Users List Subject: RE: automatically redirect http to https in tomcat In the httpd.conf under the virtual host listening to port 80 have the line RedirectPermanent / https://my.domain.com if you want it to do for specific content you may have to play with the above statement or redirect rules. The above would be for all http requests. -MN -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tue, February 11, 2003 4:12 PM To: [EMAIL PROTECTED] Subject: automatically redirect http to https in tomcat Is it possible to automatically redirect any http request to https in an Apache + Tomcat environment? For example, If I enter http://my.domain.com/mycontext http://my.domain.com/mycontext , I would be automatically redirected to https://my.domain.com/mycontext? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: automatically redirect http to https in tomcat
Yes, I use struts. It used to automatically redirect http request to https with https setup in ssl.conf. After I upgraded to b3, 4.1.18, 2.0.44, http is http and https is https. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: February 11, 2003 5:13 PM To: [EMAIL PROTECTED] Subject: RE: automatically redirect http to https in tomcat PQ, Are you using struts? if so I may be able to help you. Best, Stephen Schaubach -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: automatically redirect http to https in tomcat Importance: Low Is it possible to automatically redirect any http request to https in an Apache + Tomcat environment? For example, If I enter http://my.domain.com/mycontext http://my.domain.com/mycontext , I would be automatically redirected to https://my.domain.com/mycontext? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing
RE: Where do common jar libraries go in Tomcat 4.1.18
They are always in common/lib in 4.1.12 and onwards. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 5:16 PM To: Tomcat Users List Subject: Where do common jar libraries go in Tomcat 4.1.18 I just changed my development box from Tomcat 4.0.5 to 4.1.18. I notice there is no $CATALINA_HOME/lib directory in the new Tomcat to put my common jar files. Where do they go in 4.1.18? Thanks, Kenny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat web server
There are explanations about why we shall use Apache + Tomcat not TC alone. I think the main reason is Apache interprets htm/html page faster than Tomcat while Tomcat is good at interpreting jsp/servlet. Things have changed. Tomcat now claims interpret htm/html as fast as Apache. If your web site mixes html/html and jsp/servlet generated pages, try Apache + Tomcat. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: x x [mailto:[EMAIL PROTECTED]] Sent: February 7, 2003 8:58 AM To: Tomcat Users List Subject: Tomcat web server I have a web server runnig Tomcat 4.1.8, i want to know what its better to run only TOMCAT for my webserver or run tomcat with apache. I`m newbie in this stuff. thanks __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about options
POST should hide the query string. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED]] Sent: February 7, 2003 9:11 AM To: Tomcat User List (E-mail) Subject: Question about options What needs to be configured to hide the query string in the address bar? Will this require Apache to do? Luc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat web server
Have you created workers2.properties in apache2/conf? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Carlos Cajina [mailto:[EMAIL PROTECTED]] Sent: February 7, 2003 11:00 AM To: Tomcat Users List Subject: Re: Tomcat web server Hi. Precisely I'm tryin' to configure Apache to work with Tomcat, however, the example configuration files and instructions in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html don't seem to work in my Windows XP Pro enviroment. I'm using the default jk2.properties file and inlcuding the LoadModule jk2_module modules/mod_jk-2.0.43.dll command in my httpd.conf file. Tomcat starts just fine but Apache does not and the error description I get in the Windows Event Viewer is as follows: Event Type: Error Event Source: Apache Service Event Category: None Description: The Apache service named reported the following error: Can't locate API module structure `jk2_module' in file C:/ApacheGroup/Apache2/modules/mod_jk-2.0.43.dll: No error . Is there something I am missing? Best regards, New-to-the-list-and-to-this-stuff :) - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 9:16 AM Subject: RE: Tomcat web server There are explanations about why we shall use Apache + Tomcat not TC alone. I think the main reason is Apache interprets htm/html page faster than Tomcat while Tomcat is good at interpreting jsp/servlet. Things have changed. Tomcat now claims interpret htm/html as fast as Apache. If your web site mixes html/html and jsp/servlet generated pages, try Apache + Tomcat. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: x x [mailto:[EMAIL PROTECTED]] Sent: February 7, 2003 8:58 AM To: Tomcat Users List Subject: Tomcat web server I have a web server runnig Tomcat 4.1.8, i want to know what its better to run only TOMCAT for my webserver or run tomcat with apache. I`m newbie in this stuff. thanks __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Apache
So how does ssl play in this checklist? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 10:06 AM To: 'Tomcat Users List' Subject: RE: Tomcat and Apache OK, is 999.99.999.99 == localhost? You have localhost as your Host in server.xml. Are you just being paranoid by disguising localhost with 999.99.999.99 or are you actually using some other value besides localhost in your request URL? Basically, everything is a chain. One missing piece in the chain, and it doesn't work. - request www.host.com/avcweb/servlet/MyClass - Apache scans httpd.conf, looking for a match for www.host.com. If none found, uses global defaults. If VirtualHost found, checks ServerName - ServerName = no match, continue - ServerName = match, scan VirtualHost directives - does VirtualHost have JkMount? Check URL against JkMount - if match to JkMount, lookup worker - make worker connection to Tomcat - send request to Tomcat - Tomcat receives request on connector - looks for Host match for www.host.com - no match, falls to defaultHost - match, looks for Context to match URL - find Context match, try to resolve the rest of the URL into a valid, available servlet, and serve content - no Context match, 404 or some other error. So, things to check: - the VirtualHost in httpd.conf that you expect to use is the one actually being used - it's ServerName is the one in the URL - there's a valid JkMount - there's a definition for the worker used in JkMount in workers.properties - the Tomcat host configured in workers.properties is available on port 8009 (or some other port as long as it is consistent) - Tomcat has a Host to match the one in the URL (and the one in ServerName) - Tomcat has a Context to match the URL - Tomcat has a valid servlet mapping, explicit or implicit, for the request You probably know all of this, but it is hard for me to see the big picture just by getting config snippets, so I am trying to provide a description of the debugging method that I would use if I was having the same problem. HTH John -Original Message- From: Richard Johnstone [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 9:53 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Apache Nope. Do I need to? I didn't realise I need to as the page loaded using http://999.99.999.99:8080/avcweb/servlet/MyClass, it's just http://999.99.999.99/avcweb/servlet/MyClass that doesn't seem to work [EMAIL PROTECTED] 02/06/03 02:35pm Did you map that servlet in web.xml?? John -Original Message- From: Richard Johnstone [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 9:28 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Apache OK, took all the stuff out of httpd.conf so all that is in there in the loadmodule and include In mod_jk.conf it has JkMount /avcweb ajp13 JkMount /avcweb/* ajp13 So to call I am trying http://999.99.999.99/avcweb/servlet/MyClass Still no luck [EMAIL PROTECTED] 02/06/03 01:27pm Well, what URL are you using? What ServerName are those JkMount statements tied to? If you're doing an Include of mod_jk.conf, you shouldn't have anything in httpd.conf but the LoadModule line and the Include line. My guess is your manually entered JK config in httpd.conf is conflicting with the generated config. Looks also like you are using Solaris, perhaps my Solaris HOWTO can help: http://www.johnturner.com/howto John -Original Message- From: Richard Johnstone [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 6:02 AM To: [EMAIL PROTECTED] Subject: Tomcat and Apache I apologise for sending this as I know there are about 50 posts daily on this subject but I can't get the 2 of these to link. I have checked the archives and help docs and everything seems in place but when I call my servlet without the 8080 port I get nothing. Looking at the apache logs it says /opt/webFrontEnd/examples/servlet/avc.web.Clients.ClientsHomePage The /opt/webfrontend is my document root for apache There is no lines in the tomcat logs so apache isn't even posting to tomcat I must have missed something simple but I can't see what it is. Any Help Please Here is what I have set up in the conf files SERVER.XML Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/opt/apache/libexec/mod_jk.so jkLog=/opt/apache/logs/mod_jk.log jkDebug=info / Host name=localhost debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / HTTPD.CONF Include
jk2 for apache 2.0.44 + tomcat 4.1.18
Which tomcat-connector do I use to build mod_jk2 for Apache 2.0.44 - Tomcat 4.1.18? where can I download? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing
RE: Tomcat and Apache
I am in trouble with this tomcat-connector. I use Apache 2.0.x's SSL and run my app on tomcat. If I typed in http://1.1.1.1/myapp, I was redirected to https://1.1.1.1/myapp; then I purposely changed https back to http and hit Enter, I was redirected to http. There is only one connector in my tomcat server.xml Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false scheme=https secure=true protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ In apache workers2.properties, [channel.socket:localhost:8009] tomcatId=localhost:8009 [uri:/myapp/*] What's wrong with my config? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 10:42 AM To: 'Tomcat Users List' Subject: RE: Tomcat and Apache SSL requests are decrypted by Apache at the front-end. So, I guess, if anything, they play a part in determining whether or not Apache ever gets to the JkMount. Once it gets to JkMount, things should be the same. The only gotcha (I think) is that the SSL VirtualHost config in httpd.conf needs IP addresses. So something like: VirtualHost 1.2.3.4 instead of VirtualHost www.domain.com But, using ServerName in the first one should bypass any issues. Communications between Apache and Tomcat over a JK or JK2 connector are in the clear, they are not SSL. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 10:33 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Apache So how does ssl play in this checklist? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 10:06 AM To: 'Tomcat Users List' Subject: RE: Tomcat and Apache OK, is 999.99.999.99 == localhost? You have localhost as your Host in server.xml. Are you just being paranoid by disguising localhost with 999.99.999.99 or are you actually using some other value besides localhost in your request URL? Basically, everything is a chain. One missing piece in the chain, and it doesn't work. - request www.host.com/avcweb/servlet/MyClass - Apache scans httpd.conf, looking for a match for www.host.com. If none found, uses global defaults. If VirtualHost found, checks ServerName - ServerName = no match, continue - ServerName = match, scan VirtualHost directives - does VirtualHost have JkMount? Check URL against JkMount - if match to JkMount, lookup worker - make worker connection to Tomcat - send request to Tomcat - Tomcat receives request on connector - looks for Host match for www.host.com - no match, falls to defaultHost - match, looks for Context to match URL - find Context match, try to resolve the rest of the URL into a valid, available servlet, and serve content - no Context match, 404 or some other error. So, things to check: - the VirtualHost in httpd.conf that you expect to use is the one actually being used - it's ServerName is the one in the URL - there's a valid JkMount - there's a definition for the worker used in JkMount in workers.properties - the Tomcat host configured in workers.properties is available on port 8009 (or some other port as long as it is consistent) - Tomcat has a Host to match the one in the URL (and the one in ServerName) - Tomcat has a Context to match the URL - Tomcat has a valid servlet mapping, explicit or implicit, for the request You probably know all of this, but it is hard for me to see the big picture just by getting config snippets, so I am trying to provide a description of the debugging method that I would use if I was having the same problem. HTH John -Original Message- From: Richard Johnstone [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 9:53 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Apache Nope. Do I need to? I didn't realise I need to as the page loaded using http://999.99.999.99:8080/avcweb/servlet/MyClass, it's just http://999.99.999.99/avcweb/servlet/MyClass that doesn't seem to work [EMAIL PROTECTED] 02/06/03 02:35pm Did you map that servlet in web.xml?? John -Original Message- From: Richard Johnstone [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 9:28 AM To: [EMAIL PROTECTED] Subject: RE: Tomcat and Apache OK, took all the stuff out of httpd.conf so all that is in there in the loadmodule and include In mod_jk.conf it has JkMount
RE: jk2 for apache 2.0.44 + tomcat 4.1.18
Is it renamed? I remember in tomcat 4.1.12, it was named Jakarta-tomcat-connector-4.1.12-src. That's why I could not find it. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 10:46 AM To: 'Tomcat Users List' Subject: RE: jk2 for apache 2.0.44 + tomcat 4.1.18 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/ John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: jk2 for apache 2.0.44 + tomcat 4.1.18 Which tomcat-connector do I use to build mod_jk2 for Apache 2.0.44 - Tomcat 4.1.18? where can I download? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2 for apache 2.0.44 + tomcat 4.1.18
I am confused. Which tarball shall I grab? http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 2/ http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/src/ Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Brett Neumeier [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 10:52 AM To: 'Tomcat Users List' Subject: RE: jk2 for apache 2.0.44 + tomcat 4.1.18 The jakarta-tomcat-connector source tarball is available in the same place as the Tomcat tarball: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/src/ It does seem odd that the TC 4.1 releases are under jakarta-tomcat-4.0... I guess it's just one of those mysteries. Compiling mod_jk2 is not the most straightforward process -- there's a web page with instructions that might help at http://www.pubbitch.org/jboss/mod_jk2.html Cheers, bn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 9:42 AM To: [EMAIL PROTECTED] Subject: jk2 for apache 2.0.44 + tomcat 4.1.18 Which tomcat-connector do I use to build mod_jk2 for Apache 2.0.44 - Tomcat 4.1.18? where can I download? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.18, JK2 - no iis_redirect.log
There are two places that you define shm.file, tomcat jk2.properties and apache workers2.properties. If you comment out one, you have to comment out another. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 11:10 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.1.18, JK2 - no iis_redirect.log has been the major cause of my problems in getting Tomcat to work. For example, I only found out about the need for [shm] through the archives of this list. [shm] is needed section is needed to run i_r2.dll ? i'll test this.. shouldnt be needed at all.. or at least have a plausible default that to not cause any problems if not needed.. I think it's a bug.. Please report this issue at http://nagoya.apache.org/bugzilla.. Thanks.. If I try to start Tomcat without [shm] file=e:\java\jakarta-tomcat\logs\shm.file size=1048576 in the workers2.properties then I get [Thu Feb 06 16:00:41 2003] (error ) [jk_shm.c (333)] shm.init(): No file in the tomcat logfile and I cannot load the examples webapp. Before I report this as a bug I need to tidy up what I've been doing, I've been trying to get this to work for a couple of days now and it is entirely possible that I've got some crud/unneccassary configuration floating around. Incidentally, does the path http://domainname/global/ have a special meaning to Tomcat 4.x. I have a web application global that I have not yet mapped into server.xml yet, but trying to load a static html page domainname/global/default.htm is returning a 404 from Tomcat rather than finding it with IIS which I would have expected. Regards Roger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot load JDBC driver class 'null' , again
Is your jdbc driver in jar file? Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Uros Kotnik [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 11:24 AM To: [EMAIL PROTECTED] Subject: Cannot load JDBC driver class 'null' , again Hi, This question was probbably posted many times but I didn't found answer and I really need it. I'm using TC 4.1 DB : Hypersonic HSQLDB.jar in \tomcat_home\common\lib Server.xml -- Context path=/DBTest docBase=DBTest debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- Maximum number of dB connections in pool. Make sure you configure your mysqld max_connections large enough to handle all of your db connections. Set to 0 for no limit. -- parameter namemaxActive/name value100/value /parameter !-- Maximum number of idle dB connections to retain in pool. Set to 0 for no limit. -- parameter namemaxIdle/name value30/value /parameter !-- Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. An Exception is thrown if this timeout is exceeded. Set to -1 to wait indefinitely. -- parameter namemaxWait/name value1/value /parameter !-- username and password for dB connections -- parameter nameusername/name valueiuser/value /parameter parameter namepassword/name valueiuser/value /parameter !-- Class name for JDBC driver -- parameter namedriverClassName/name valueorg.hsqldb.jdbcDriver/value /parameter parameter nameurl/name valuejdbc:hsqldb:hsql://asterix/value /parameter /ResourceParams /Context WEB.XML resource-ref descriptionDB Connection/description res-ref-namejdbc/TestDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Servlet code - Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(jdbc/TestDB); if (ds != null) { Connection conn = ds.getConnection(); //value of DS is org.apache.commons.dbcp.BasicDataSource@b6548 //and here is exception in Connection conn = ds.getConnection(); java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:312) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jakarta-tomcat-connectors-jk2-2.0.2-src cannot compile
Red Hat's apache is 1.3. Regards, PQ This Guy Thinks He Knows Everything This Guy Thinks He Knows What He Is Doing -Original Message- From: Hans Deragon [mailto:[EMAIL PROTECTED]] Sent: February 6, 2003 3:16 PM To: [EMAIL PROTECTED] Subject: jakarta-tomcat-connectors-jk2-2.0.2-src cannot compile Greetings. I would like to build a connector for RH 8.0 between Apache -2.0.40-11 and Tomcat 4.1.18. I downloaded the following: jakarta-tomcat-connectors-jk2-2.0.2-src.gz.tar Now, I do not want to install a fresh Apache. I want to continue to use the one provided by Red Hat (saves the hassle of configuring and installing the software). In build.properties of the connector, what path should I provide for apr.home property? RedHat' s rpm installs Apache software and files in many places. Should I point it to the binary? Or is Apache source code required to compile the connector? Anyhow, without setting this property, I fired ant to see what would happen, but it complained about the following: Buildfile: build.xml detect: [echo] jakarta-tomcat-connectors prepare: BUILD FAILED file:/perm/web/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105: Warning: Could not find file /perm/web/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-co yote.jar to copy. build.properties does not mention anything about coyote. Is there an email with which I can get into contact with the developer? As a newbie, I think that the README.txt file needs to be more extensive. BTW, I fould the following: jakarta-tomcat-4.1.18/server/lib/tomcat-coyote.jar. I have then made a symbolic link to trick ant at finding tomcat-coyote.jar where it expect it to be, and went farther: jkjava: BUILD FAILED file:/perm/web/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:164: srcdir /perm/web/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/java does not exist! Not my lucky day. :) I did not look things up further. I assume that I am doing something wrong from the start. Any help is welcomed. Sincerely, Hans Deragon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: need help to configure tomcat
Default port is 8080. Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: Parvick [mailto:parvick;rediffmail.com] Sent: October 31, 2002 12:52 AM To: [EMAIL PROTECTED] Subject: need help to configure tomcat Hello, Good afternoon! I'm Parvinder Singh here, I would like to use tomcat server for running JSP pages and other java technologies that are supportted by it. I have used Javawebserver2.0 for running JSP pages. But SUN Microsystems itself recommend using TOMCAT. I have downloaded a bundle of jakarta-tomcat-4.0-b1.zip which I have extracted into a folder called C:\tomc. Then I set JAVA_HOME=C:\jdk1.3 and then I run startup.bat file from c:\tomc\jakarta\bin folder. NOw when I goto internet explorer and type http://localhost it does not shows anything that means tomact server is not installed or its not running so tell me pls. how do i configure it so that it starts operating for using the java technologies. Please help me. Tell me if I have to download anything in addition? avidly waiting for your reply. Parvinder singh. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Testing Datasources
Where do you setup your datasource? If Global or default context, you should be able to see JNDI reference loading when you start your tomcat. Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: John Mattos [mailto:mattosj;yahoo.com] Sent: October 31, 2002 3:33 PM To: Tomcat Users List Subject: Testing Datasources Is there as easy way to test datasources I set up in server.xml (or in the Administrator app)? John L. Mattos 302 East 88th Street Apt #5B New York, New York 10128-4939 (M) (917) 202-8450 (www) http://www.mattos.ws - Do you Yahoo!? HotJobs - Search new jobs daily now
RE: Problem with request-time attribute expressions in XML JSPs
Will remove work? Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: Stefan Wachter [mailto:Stefan.Wachter;gmx.de] Sent: October 30, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: Problem with request-time attribute expressions in XML JSPs Hi all. I tried to work with XML JSPs (i.e. JSP in XML form) but I am not able to use request time attriubtes. For example the former JSP code table width=%= MyConstants.TABLE_WIDTH % /table should translate into: table width=%= MyConstants.TABLE_WIDTH % /table Tomcat 4.1.12 does not recognize this request-time attribute expression and outputs it literally, i.e. the generated servlet contains the code: out.write(table width=\%= MyConstants.TABLE_WIDTH %\); Can anyone help me with this problem? Thanks, --Stefan -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: JDBC driver class 'null' error
Rename jdbc driver package to .jar and put in common/lib Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: Sinclair, Alan (CORP, GEAccess) [mailto:alan.sinclair;geaccess.com] Sent: October 28, 2002 5:54 PM To: 'Tomcat Users List' Subject: RE: JDBC driver class 'null' error Tried that, same error. Thanks anyway. -Original Message- From: Vic A [mailto:marauder_77;hotmail.com] Sent: Monday, October 28, 2002 3:20 PM To: [EMAIL PROTECTED] Subject: Re: JDBC driver class 'null' error ../common/lib is classes used for internal tomcat processes that need to be shared. Try putting the JDBC driver in ../shared/lib Victor Albisharat [EMAIL PROTECTED] --- From: Sinclair, Alan (CORP, GEAccess) Subject: JDBC driver class 'null' error Date: Mon, 28 Oct 2002 11:39:52 -0800 Hi, Tomcat V4.1.12 Trying to setup a connection pool to Oracle and get the following error: java.sql.SQLException: Cannot load JDBC driver class 'null' The Oracle classes12.jar file has been copied into ../common/lib I checked that the oracle.jdbc.driver.OracleDriver class specified in the server.xml JDBC data resource is present in the jar file Any ideas why Tomcat cannot find the JDBC driver ? Thnaks for any help. From: Vic A [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat losing connection capabilities/not being able to shutdown Date: Mon, 28 Oct 2002 17:13:39 -0500 I've been having a recurring error with Tomcat. It works fine upon startup, able to access MySQL databases from other servers with the servlets that I've programmed. However, after a time, it cannot seem to connect to the databases through servlets, yet when I run Java standalone equivalents of the servlets, they connect to the databases just fine. Also, when these connection problems start, I tried to stop the Tomcat service then restart it, but it cannot shut down. I can't even hard kill it through Task Manager. I'm running this on Windows 2000 without a firewall. Any ideas on what's going on? Victor Albisharat [EMAIL PROTECTED] _ Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: DbcpDataSourceFactory: driverClassName is required
Rename jdbc to .jar and put in common/lib Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: John Ruffin [mailto:John.Ruffin;AccredoHealth.com] Sent: October 28, 2002 5:32 PM To: 'Tomcat Users List' Subject: DbcpDataSourceFactory: driverClassName is required Using j2sdk1.4.0_01, jwsdp-1_0_01, SQL2k, on W2k, there seems to be an issue with JNDI. When accessing a datasource with JNDI, I get the error message: javax.servlet.ServletException: DbcpDataSourceFactory: driverClassName is required . However, if I use the Class.forName code - that works. Searching the archives, I see this was an issue with DB2 using TC4.0.4 (see http://www.mail-archive.com/tomcat-user;jakarta.apache.org/msg64387.html) but I haven't seen any posts (problems or fixes) regarding SQL2k. Thanks for your feedback! Here is the relevant code from the bad-word scriptlet /bad-word (I'm just testing the connection, MVC'ers): Context ctx = new InitialContext(); Context envCtx = (Context)envCtx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(jdbc/Northwind); Connection conn = ds.getConnection(); ... web.xml relevant code: resource-ref descriptionDB Connection/description res-ref-namejdbc/Northwind/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ... server.xml relevant code: Resource name=jdbc/Northwind auth=Container description=JDBC DSN type=javax.sql.DataSource / ResourceParams name=jdbc/Northwind ... parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value parameter ... The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. 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. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: DbcpDataSourceFactory: driverClassName is required
Can you send us the log file? Usually it contains info about when to load jndi, params etc. that might help figuring out what went wrong during jws startup. Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: John Ruffin [mailto:John.Ruffin;AccredoHealth.com] Sent: October 29, 2002 10:17 AM To: 'Tomcat Users List' Subject: RE: DbcpDataSourceFactory: driverClassName is required msbase.jar, mssqlserver.jar, and msutil.jar are in common/lib. Again, class.forname works but not JNDI. -Original Message- From: [EMAIL PROTECTED] [mailto:pqin;shareowner.com] Sent: Tuesday, October 29, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: RE: DbcpDataSourceFactory: driverClassName is required Rename jdbc to .jar and put in common/lib Regards, Phillip Qin Software Developer Canadian Shareowner 121 Richmond Street W, 7th Floor Toronto, ON M5H 2K1 (416) 595-9600 ext 291 -Original Message- From: John Ruffin [mailto:John.Ruffin;AccredoHealth.com] Sent: October 28, 2002 5:32 PM To: 'Tomcat Users List' Subject: DbcpDataSourceFactory: driverClassName is required Using j2sdk1.4.0_01, jwsdp-1_0_01, SQL2k, on W2k, there seems to be an issue with JNDI. When accessing a datasource with JNDI, I get the error message: javax.servlet.ServletException: DbcpDataSourceFactory: driverClassName is required . However, if I use the Class.forName code - that works. Searching the archives, I see this was an issue with DB2 using TC4.0.4 (see http://www.mail-archive.com/tomcat-user;jakarta.apache.org/msg64387.html) but I haven't seen any posts (problems or fixes) regarding SQL2k. Thanks for your feedback! Here is the relevant code from the bad-word scriptlet /bad-word (I'm just testing the connection, MVC'ers): Context ctx = new InitialContext(); Context envCtx = (Context)envCtx.lookup(java:comp/env); DataSource ds = (DataSource)envCtx.lookup(jdbc/Northwind); Connection conn = ds.getConnection(); ... web.xml relevant code: resource-ref descriptionDB Connection/description res-ref-namejdbc/Northwind/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ... server.xml relevant code: Resource name=jdbc/Northwind auth=Container description=JDBC DSN type=javax.sql.DataSource / ResourceParams name=jdbc/Northwind ... parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value parameter ... The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. 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. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org The information in this email is confidential and may be legally privileged. It is intended solely for the addressee, and access by anyone else is unauthorized. 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. If you believe that you have received this email in error, please advise us by calling (901) 385 3688, or emailing [EMAIL PROTECTED], and then delete this message and all copies and backups thereof. Thank you. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
could not cast dbcp objects created using tomcat JNDI
I retrieved an object of DataSource using Tomcat's JNDI simulation. It is an instance of BasicDataSource. I tried to cast it to BasicDataSource and got a ClassCastException. Context ctx = new InitialContext() ; Context envCtx = (Context) ctx.lookup(java:comp/env) ; DataSource ds = (DataSource) envCtx.lookup(jdbc/myoracle) ; BasicDataSource basic = (BasicDataSource) ds ; Actually, I cannot cast any DBCP objects, e.g. PoolableConnection.