JNDI DataSources
I configured Jakarta-Tomcat-4.1.27 to supply connections of my Oracle Database Server through JNDI Datasource as described in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html All accomplished the tests of JNDI Datasource HOW-TO and everything perfectly worked. Later, reading a magazine of ORACLE finds an article on Six JDBC Tips goes Enterprise Web Application (Setember/October 2002), more specifically with an example on Datasources according to code below: ... Context ctx = new InitialContext(); DataSource ds = (DataSource) ctx.lookup(java:comp/env/jdbc/pequi); conn = ds.getConnection(CELIN,1951174); conn.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE); ... My question is if I can pass the user and connection password to the servant of database in the way that is being done above, because in all of the examples of JNDI Datasource HOW-TO user's name and the password are so much defined in server.xml, together with the configuration. When executing the code I am receiving the error message java.lang.UnsupportedOperationException at datasource.OracleDataSource.conecta_datasource(OracleDataSource.java:18) The line 18 of the code is exactly the same in that step the user and the respective password. Thank you Sebastião Carlos Santos Oracle Database Administrator - DBA 8i/9i Oracle Certified Professional - OCP DBA 8i/9i
JNDI + Oracle + Pool
I am using the Connection pool through JNDI Datasource to connect me to the database Oracle, however as I can be sure that the pool is working correctly. Below it is the configuration of my server.xml for the pool through JNDI datasource. Resource name=jdbc/ged auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/ged parameternamefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternameusername/namevaluescott/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value/parameter parameternameurl/name valuejdbc:oracle:thin:@xxx.yyy.zz:1521:AEI/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamemaxIdle/namevalue2/value/parameter parameternamemaxWait/namevalue1/value/parameter parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue60/value/parameter /ResourceParams How can I be tested the pool of connections is working correctly, in other words, if my new requests of connections are being assisted by the pool instead of happening the creation of new connections? Sebastião Carlos Santos Oracle Database Administrator - OCP DBA 8i 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]
JNDI + Oracle
Recently I configured JNDI with the intention of having a pool of connections working among my servant of applications (tomcat 4.1.18 + Apache 1.3.27) and the database servant Oracle 9i. However would I like to know how I can really be tested the pool of connections by JNDI works? The example that exists in JNDI Datasource HowTo demonstrates the alone use and only only for a connection. The one that I want is to have certainty that the defined parameters in the configuration of JNDI are working correctly and as they should work, as for instance, the maximum number of connections that can be open, the minimum number, etc. I thank the help in advance of all. Ps. Therefore I lower is the configuration of my JNDI in server.xml Resource name=jdbc/ged auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/ged parameternamefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternameusername/namevaluescott/value/parameter parameternamepassword/namevaluea/value/parameter parameternamedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value/parameter parameternameurl/name valuejdbc:oracle:thin:@xxx.xxx.yy:1521:ZZZ/value/parameter parameternamemaxActive/namevalue10/value/parameter parameternamemaxIdle/namevalue5/value/parameter parameternamemaxWait/namevalue1/value/parameter parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue60/value/parameter /ResourceParams 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]
JNDI + Oracle + Pool
I am using the Connection pool through JNDI Datasource to connect me to the database Oracle, however as I can be sure that the pool is working correctly. Below it is the configuration of my server.xml for the pool through JNDI datasource. Resource name=jdbc/ged auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/ged parameternamefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternameusername/namevaluescott/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value/parameter parameternameurl/name valuejdbc:oracle:thin:@xxx.yyy.zz:1521:AEI/value/parameter parameternamemaxActive/namevalue3/value/parameter parameternamemaxIdle/namevalue2/value/parameter parameternamemaxWait/namevalue1/value/parameter parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue60/value/parameter /ResourceParams How can I be tested the pool of connections is working correctly, in other words, if my new requests of connections are being assisted by the pool instead of happening the creation of new connections? Sebastião Carlos Santos Oracle Database Administrator - OCP DBA 8i 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]
JNDI + Oracle + Pool
I am using the Connection pool through JNDI Datasource to connect me to the database Oracle, however as I can be sure that the pool is working correctly. How can I be tested the pool of connections is working correctly, in other words, if my new requests of connections are being assisted by the pool instead of happening the creation of new connections?
Re: Datasource
Georges, For the documentation of JNDI Datasource HOW-TO, their files jar should be located in $CATALINA_HOME/common/lib. This road should be put in CLASSPATH of the system also. *** REPLY SEPARATOR *** On 26/2/2003 at 13:31 Georges Roux wrote: Hi, I run under Linux, with tomcat 4.1.18 Standalone, and want to set up some JDBC Datasource for connection pooling, where do I need to put the jar file? /common/lib? /shared/lib? Thanks in advanced. Georges - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
JNDI + Tomcat + Oracle 9i Database
(); stmt = conn.createStatement(); rset = stmt.executeQuery(SELECT COUNT(*) FROM V$SESSION); if (rset.next()) { resultado.append(Número de Conexões - ); resultado.append(rset.getString(1)); resultado.append(br); } } catch (java.lang.Exception e) { resultado.append(e.getMessage()); resultado.append(br); } finally { if (conn != null) { try { conn.close(); } catch (java.lang.Exception ex) { resultado.append(ex.getMessage()); resultado.append(br); } } } return ((resultado.toString())); } Ao executar o método anterior, recebo a seguinte mensagem de erro: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc:oracle:[EMAIL PROTECTED]:1521:GED' Alguém tem alguma idéia do que pode estar acontecendo? Excuse me for the gigantic message. I thank in advance. Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
JNDI + Tomcat + Oracle 9i Database
(); stmt = conn.createStatement(); rset = stmt.executeQuery(SELECT COUNT(*) FROM V$SESSION); if (rset.next()) { resultado.append(Número de Conexões - ); resultado.append(rset.getString(1)); resultado.append(br); } } catch (java.lang.Exception e) { resultado.append(e.getMessage()); resultado.append(br); } finally { if (conn != null) { try { conn.close(); } catch (java.lang.Exception ex) { resultado.append(ex.getMessage()); resultado.append(br); } } } return ((resultado.toString())); } Ao executar o método anterior, recebo a seguinte mensagem de erro: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc:oracle:[EMAIL PROTECTED]:1521:GED' Alguém tem alguma idéia do que pode estar acontecendo? Excuse me for the gigantic message. I thank in advance. Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
JNDI + Tomcat + Oracle 9i Database
(); stmt = conn.createStatement(); rset = stmt.executeQuery(SELECT COUNT(*) FROM V$SESSION); if (rset.next()) { resultado.append(Número de Conexões - ); resultado.append(rset.getString(1)); resultado.append(br); } } catch (java.lang.Exception e) { resultado.append(e.getMessage()); resultado.append(br); } finally { if (conn != null) { try { conn.close(); } catch (java.lang.Exception ex) { resultado.append(ex.getMessage()); resultado.append(br); } } } return ((resultado.toString())); } Ao executar o método anterior, recebo a seguinte mensagem de erro: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL 'jdbc:oracle:[EMAIL PROTECTED]:1521:GED' Alguém tem alguma idéia do que pode estar acontecendo? Excuse me for the gigantic message. I thank in advance. Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
JNDI + Tomcat + Oracle 9i Database
I am trying to configure JNDI to access Oracle 9i R1, according to JNDI Datasource HOW-TO, however I am not obtaining a lot of success when I go to establish the connection. In the end of this e-mail I will list some fragments of the configuration of server.xml, web.xml and of my class java that I am using to accomplish the connection test. The reference $CATALINA_HOME/common/lib/*. jar is in CLASSPATH of the system Fragment of configuration of server.xml ... Resource name=jdbc/sged auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/sged parameternamefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternamedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value/parameter parameternameurl/name valuejdbc:oracle:[EMAIL PROTECTED]:1521:XXX/value/parameter parameternameusername/namevaluescott/value/parameter parameternamepassword/namevaluej/value/parameter parameternamemaxActive/namevalue20/value/parameter parameternamemaxIdle/namevalue10/value/parameter parameternamemaxWait/namevalue1/value/parameter parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue60/value/parameter parameternamelogAbandoned/namevaluetrue/value/parameter /ResourceParams ... File /web/WEB-INF/web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionOracle Database Connection/description resource-ref descriptionPool/description res-ref-namejdbc/sged/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Method of the class java that makes the connection test public String obtem_dados() { Connection conn = null; Statement stmt = null; ResultSet rset = null; resultado = new StringBuffer(); try { Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/sged); conn = ds.getConnection(); stmt = conn.createStatement(); rset = stmt.executeQuery(SELECT COUNT(*) FROM V$SESSION); if (rset.next()) { resultado.append(Número de Conexões - ); resultado.append(rset.getString(1)); resultado.append(br); } } catch (java.lang.Exception e) { resultado.append(e.getMessage()); resultado.append(br); } finally { if (conn != null) { try { conn.close(); } catch (java.lang.Exception ex) { resultado.append(ex.getMessage()); resultado.append(br); } } } return ((resultado.toString())); } Ao executar o método anterior, recebo a seguinte mensagem de erro: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL jdbc:oracle:[EMAIL PROTECTED]:1521:XXX Alguém tem alguma idéia do que pode estar acontecendo? Excuse me for the gigantic message. I thank in advance. Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
JNDI + Oracle 9i Database
I am trying to configure JNDI to access Oracle 9i R1, according to JNDI Datasource HOW-TO, however I am not obtaining a lot of success when I go to establish the connection. In the end of this e-mail I will list some fragments of the configuration of server.xml, web.xml and of my class java that I am using to accomplish the connection test. The reference $CATALINA_HOME/common/lib/*. jar is in CLASSPATH of the system Fragment of configuration of server.xml ... Resource name=jdbc/sged auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/sged parameternamefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternamedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value/parameter parameternameurl/name valuejdbc:oracle:[EMAIL PROTECTED]:1521:XXX/value/parameter parameternameusername/namevaluescott/value/parameter parameternamepassword/namevaluej/value/parameter parameternamemaxActive/namevalue20/value/parameter parameternamemaxIdle/namevalue10/value/parameter parameternamemaxWait/namevalue1/value/parameter parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue60/value/parameter parameternamelogAbandoned/namevaluetrue/value/parameter /ResourceParams ... File /web/WEB-INF/web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionOracle Database Connection/description resource-ref descriptionPool/description res-ref-namejdbc/sged/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Method of the class java that makes the connection test public String obtem_dados() { Connection conn = null; Statement stmt = null; ResultSet rset = null; resultado = new StringBuffer(); try { Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/sged); conn = ds.getConnection(); stmt = conn.createStatement(); rset = stmt.executeQuery(SELECT COUNT(*) FROM V$SESSION); if (rset.next()) { resultado.append(Número de Conexões - ); resultado.append(rset.getString(1)); resultado.append(br); } } catch (java.lang.Exception e) { resultado.append(e.getMessage()); resultado.append(br); } finally { if (conn != null) { try { conn.close(); } catch (java.lang.Exception ex) { resultado.append(ex.getMessage()); resultado.append(br); } } } return ((resultado.toString())); } Ao executar o método anterior, recebo a seguinte mensagem de erro: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL jdbc:oracle:[EMAIL PROTECTED]:1521:XXX Alguém tem alguma idéia do que pode estar acontecendo? Excuse me for the gigantic message. I thank in advance. Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
JNDI + Tomcat + Oracle 9i Database
I am trying to configure JNDI to access Oracle 9i R1, according to JNDI Datasource HOW-TO, however I am not obtaining a lot of success when I go to establish the connection. In the end of this e-mail I will list some fragments of the configuration of server.xml, web.xml and of my class java that I am using to accomplish the connection test. The reference $CATALINA_HOME/common/lib/*. jar is in CLASSPATH of the system Fragment of configuration of server.xml ... Resource name=jdbc/sged auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/sged parameternamefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter parameternamedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value/parameter parameternameurl/name valuejdbc:oracle:[EMAIL PROTECTED]:1521:XXX/value/parameter parameternameusername/namevaluescott/value/parameter parameternamepassword/namevaluej/value/parameter parameternamemaxActive/namevalue20/value/parameter parameternamemaxIdle/namevalue10/value/parameter parameternamemaxWait/namevalue1/value/parameter parameternameremoveAbandoned/namevaluetrue/value/parameter parameternameremoveAbandonedTimeout/namevalue60/value/parameter parameternamelogAbandoned/namevaluetrue/value/parameter /ResourceParams ... File /web/WEB-INF/web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionOracle Database Connection/description resource-ref descriptionPool/description res-ref-namejdbc/sged/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.jsp/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Method of the class java that makes the connection test public String obtem_dados() { Connection conn = null; Statement stmt = null; ResultSet rset = null; resultado = new StringBuffer(); try { Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/sged); conn = ds.getConnection(); stmt = conn.createStatement(); rset = stmt.executeQuery(SELECT COUNT(*) FROM V$SESSION); if (rset.next()) { resultado.append(Número de Conexões - ); resultado.append(rset.getString(1)); resultado.append(br); } } catch (java.lang.Exception e) { resultado.append(e.getMessage()); resultado.append(br); } finally { if (conn != null) { try { conn.close(); } catch (java.lang.Exception ex) { resultado.append(ex.getMessage()); resultado.append(br); } } } return ((resultado.toString())); } Ao executar o método anterior, recebo a seguinte mensagem de erro: Cannot create JDBC driver of class 'oracle.jdbc.driver.OracleDriver' for connect URL jdbc:oracle:[EMAIL PROTECTED]:1521:XXX Alguém tem alguma idéia do que pode estar acontecendo? Excuse me for the gigantic message. I thank in advance. Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
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: JNDI + Tomcat + Oracle 9i Database
Kris, I believe that I went badly interpreted or I wrote of less in the e-mail. I don't see him/it why of installing the customer of Oracle 9i in the application servant for the simple fact most of the time, after the installation routines we have to specify the files. zip and. jar copied in the installation for ORACLE_HOME in CLASSPATH of the system, which in other words it would be the same thing of using the drivers jdbc supplied separately. I didn't have the intention of contradicting the positioning for you put. Respectfully, Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
RE: Connection Pooling
Indeed which is the difference of using 1. Tomcat JNDI: or 2. commons-dbcp + commons-pooling: ? Thank you 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 Sebastião Carlos Santos Oracle Database Administrator - OCP DBA 8i Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
Tomcat + Apache + Virtual Host (new)
Lajos, I installed the Apache 1.3.27 again together with Tomcat 4.1.18 through of mod_jk.so, as we talked yesterday, using LoadModule, AddModule and JkWorkersFile in httpd.conf. After the installation of the Apache + Tomcat + mod_jk I tested the installation in http://admged.ufu.br/examples/jsp and everything worked accordingly the expected. I made the modifications, that I will list below, in server.xml of the Tomcat and in httpd.conf, but when I try to access URL http://www.admged.ufu.br/teste.jsp the navigator tries to do the download of the file jsp instead of interpreting the file. server.xml Host name=admged.ufu.br docBase=/web Context path=/admged docBase=admged debug=0 /Host httpd.conf VirtualHost admged.ufu.br ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/admged ServerName admged.ufu.br ServerAlias www.admged.ufu.br JkMount /admged ajp13 JkMount /admged/* ajp13 /VirtualHost Detail: I commented on the instructions JkMount /examples ajp13 JkMount /examples/* ajp13 in the block IfModule mod_jk.c /IfModulen 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat + Apache + Virtual Host (new)
When I used the configuration JkMount / ajp13 JkMount /* ajp13 I received the following error message Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/1.3.27 Server at admged.ufu.br Port 80 And when I used the configuration JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 the navigator tried to do the download of the file. jsp In case he feels the will can without the smallest problem to pass IP, user's name and password for you to take a look in the general configuration.e 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat + Apache + Virtual Host (new)
Excuse me, but I ordered a wrong information. When I used the configuration JkMount / *. jsp ajp13 JkMount / servlet / * ajp13 the navigator didn't try to do the download of the. jsp, but I obtained the following error message. HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. Apache Tomcat/4.1.18 I believe that the download attempt was problem of chache of the navigatorb 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat + Apache + Virtual Host (new)
Lajos, You want me to order for the list or directly for the e-mail? *** REPLY SEPARATOR *** On 24/01/2003 at 11:13 Lajos Moczar wrote: E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ Hi - Can you send me your server.xml? Also, The JkMount's below should be: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 you have an extra space between the / and the pattern. But that still may not work - I'll have to see your server.xml to see what Context you defined. Regards, Lajos Sebastião Carlos Santos wrote: Excuse me, but I ordered a wrong information. When I used the configuration JkMount / *. jsp ajp13 JkMount / servlet / * ajp13 the navigator didn't try to do the download of the. jsp, but I obtained the following error message. HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. Apache Tomcat/4.1.18 I believe that the download attempt was problem of chache of the navigatorb 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] b 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache + Tomcat + Virtual Host
I have a server with Apache 2.0.44 and Tomcat 4.1.18 working jointly, through mod_jk.so, accordingly documented in John Turner HowTo (Apache 2.0.43 + Tomcat 4.1.12 + mod_jk). All accomplished the tests after the installation and when typing the url http://admged.ufu.br/examples verified that the configuration it was correct, because the Apache is working correctly and JSP and servlets requests are being passed to tomcat. However, I am not getting to close the configuration of the virtual host for you ally him www.admged.ufu.br in what is said I respect Tomcat. The virtual host in the Apache is configured as having shown below: NameVirtualHost 200.131.195.9 VirtualHost 200.131.195.9 DocumentRoot /web/admged ServerName www.admged.ufu.br /VirtualHost My directory tree is the following: /web/ |-- admged |-- WEB-INF | `-- classes `-- logs Where: /web - point of assembly of my directory tree admged - folder where I will put the files. jsp WEB-INF classes - folder where I will put the classes java I would like to know how the structure of JkMount would be for the Virtual Host in the Apache and also the configuration of the contexts in server.xml 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache + Tomcat + Virtual Host
Without problem. Everything is well. In case I have configured Tomcat to generate mod_jk.conf automatically the configuration will change? Best saying, I just used Include / path/to/mod_jk.conf in httpd.conf instead of LoadModule, AddModule and JkWorkersFile. 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache + Tomcat + Virtual Host
John, My great problem is that my application won't be put on the $CATALINA_HOME. The / web was an assembly point, as any any other one (for instance / opt, / home, / usr) defined in the moment of the installation. The $CATALINA_HOME appears for / usr/local/jakarta-tomcat-4.1.18, in other words, obviously an assembly point totally different from the / web *** REPLY SEPARATOR *** On 23/01/2003 at 14:39 Turner, John wrote: E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ VirtualHost 200.131.195.9 DocumentRoot /web/admged ServerName www.admged.ufu.br JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost I think, assuming /web is your Host's appBase: Context path= docBase=admged debug=0 reloadable=true crossContext=true / If /web isn't your Host's appBase, then: Context path= docBase=/web/admged debug=0 reloadable=true crossContext=true / I always put everything under CATALINA_HOME, so I might have those paths incorrect. If they don't work, let us know, of if someone sees something fishy, please correct me. John -Original Message- From: Sebastico Carlos Santos [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 3:28 PM To: Tomcat Users List Subject: Apache + Tomcat + Virtual Host I have a server with Apache 2.0.44 and Tomcat 4.1.18 working jointly, through mod_jk.so, accordingly documented in John Turner HowTo (Apache 2.0.43 + Tomcat 4.1.12 + mod_jk). All accomplished the tests after the installation and when typing the url http://admged.ufu.br/examples verified that the configuration it was correct, because the Apache is working correctly and JSP and servlets requests are being passed to tomcat. However, I am not getting to close the configuration of the virtual host for you ally him www.admged.ufu.br in what is said I respect Tomcat. The virtual host in the Apache is configured as having shown below: NameVirtualHost 200.131.195.9 VirtualHost 200.131.195.9 DocumentRoot /web/admged ServerName www.admged.ufu.br /VirtualHost My directory tree is the following: /web/ |-- admged |-- WEB-INF | `-- classes `-- logs Where: /web - point of assembly of my directory tree admged - folder where I will put the files. jsp WEB-INF classes - folder where I will put the classes java I would like to know how the structure of JkMount would be for the Virtual Host in the Apache and also the configuration of the contexts in server.xml 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] I 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache + Tomcat + Virtual Host
I will redo the configuration of the Apache with the tomcat, this time not using mod_jk.conf generated automatically. I thank for the the help and released attention *** REPLY SEPARATOR *** On 23/01/2003 at 13:22 Lajos Moczar wrote: E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ Yup, you can do that, and then manually put the JkMount commands where you need them. However, I always find it more intuitive and readable to have all commands directly in httpd.conf. Personally, I hate the auto-generated mod_jk.conf because almost all Tomcat installations I have done required some sort of manual adjustment - like the mod_jk.dll path problem mentioned earlier today, or virtual host issues. Regards, Lajos Sebastião Carlos Santos wrote: Without problem. Everything is well. In case I have configured Tomcat to generate mod_jk.conf automatically the configuration will change? Best saying, I just used Include / path/to/mod_jk.conf in httpd.conf instead of LoadModule, AddModule and JkWorkersFile. 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] 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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Difficulties with Virtual Host in the Apache + Tomcat
There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18 under Suse Linux Professional 7.2, however I am facing problems in the configuration and integration of the virtual hosts of the Apache for the tomcat. In the end of this e-mail it is some fragments of the configuration files that I am using, as for instance http.conf, workers.properties and server.xml When I try to access the address http://www.ged.ufu.br that has the file index.jsp, that I put soon lower, I receive the following text % out.println ();% in the screen of the browser, what shows that the things are not working how they would owe. What am missing? Another question would be: I will have four virtual hosts in the Apache, logically I will have to have the same ones four configured in Tomcat. Is it possible? I thank the help in advance. File index.jsp root@ged2:/web/ged cat index.jsp %out.println();% //* Fragment of the file httpd.conf (Apache 1.3.27) IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf AddModule mod_jk.c ServerName ged2.ufu.br DocumentRoot /web Directory /web . . . /Directory IfModule mod_dir.c DirectoryIndex index.html index.htm index.jsp /IfModule NameVirtualHost 200.131.195.5 VirtualHost 200.131.195.5:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ged/ ServerName ged2.ufu.br ServerAlias www.ged.ufu.br ErrorLog /web/ged/logs/apache_error_log CustomLog /web/ged/logs/apache_access_log common JkMount /web/ged/*.jsp ajp13 /VirtualHost IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule // File workers.properties workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stdout worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps)inprocess.stderr // Fragment of the file server.xml (Tomcat 4.1.18) Host name=ged2.ufu.br debug=0 appBase=/web/ged unpackWARs=true autoDeploy=true Aliaswww.ged.ufu.br/Alias Logger className=org.apache.catalina.logger.FileLogger directory=/web/ged/logs prefix=tomcat_ged. suffix=.log timestamp=true/ Context path=/web/ged docBase=ged debug=0 reloadable=true crossContext=true/ /Host // Directories of the application Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 3261056 32896 3228160 2% /web root@ged2:/web/servidor tree /web/ged/ /web/ged/ |-- index.jsp |-- logs | |-- apache_access_log | |-- apache_error_log | `-- tomcat_ged.2003-01-17.log `-- test `-- index.jsp 2 directories, 5 files Sebastião Carlos Santos Oracle Database Administrator Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED
RE: Difficulties with Virtual Host in the Apache + Tomcat
John, I accomplished the change suggested by you in httpd.conf and however when I open http://www.ged.ufu.br receive the following error message: HTTP Status 500 - No Context configured to process this request type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request. Apache Tomcat/4.1.18 What can be happening? In case you want to try to open URL, be the will for such an action. Respectfully, *** REPLY SEPARATOR *** On 17/01/2003 at 09:31 Turner, John wrote: E-mail Premium BOL Antivírus, anti-spam e até 100 MB de espaço. Assine já! http://email.bol.com.br/ Try JkMount /*.jsp ajp13 instead of JkMount /web/ged/*.jsp ajp13 for www.ged.ufu.br. Also, you can 4 (or more) virtual hosts in Tomcat, just setup four Host elements, each with the appropriate name and/or alias. John -Original Message- From: Sebastião Carlos Santos [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 7:59 AM To: [EMAIL PROTECTED] Subject: Difficulties with Virtual Host in the Apache + Tomcat There are some days installed a servant web with Apache 1.3.27 and Tomcat 4.1.18 under Suse Linux Professional 7.2, however I am facing problems in the configuration and integration of the virtual hosts of the Apache for the tomcat. In the end of this e-mail it is some fragments of the configuration files that I am using, as for instance http.conf, workers.properties and server.xml When I try to access the address http://www.ged.ufu.br that has the file index.jsp, that I put soon lower, I receive the following text % out.println ();% in the screen of the browser, what shows that the things are not working how they would owe. What am missing? Another question would be: I will have four virtual hosts in the Apache, logically I will have to have the same ones four configured in Tomcat. Is it possible? I thank the help in advance. File index.jsp root@ged2:/web/ged cat index.jsp %out.println();% // * Fragment of the file httpd.conf (Apache 1.3.27) IfModule !mod_jk.c LoadModule jk_module libexec/mod_jk.so /IfModule Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf AddModule mod_jk.c ServerName ged2.ufu.br DocumentRoot /web Directory /web . . . /Directory IfModule mod_dir.c DirectoryIndex index.html index.htm index.jsp /IfModule NameVirtualHost 200.131.195.5 VirtualHost 200.131.195.5:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ged/ ServerName ged2.ufu.br ServerAlias www.ged.ufu.br ErrorLog /web/ged/logs/apache_error_log CustomLog /web/ged/logs/apache_access_log common JkMount /web/ged/*.jsp ajp13 /VirtualHost IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 /IfModule // File workers.properties workers.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=ajp13 worker.inprocess.type=jni worker.inprocess.cmd_line=start worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$ (ps)i386$(ps)server$(ps)libjvm.so worker.inprocess.stdout=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stdout worker.inprocess.stderr=$(workers.CATALINA_HOME)$(ps)logs$(ps) inprocess.stderr // Fragment of the file server.xml (Tomcat 4.1.18) Host name=ged2.ufu.br debug=0 appBase=/web/ged unpackWARs=true autoDeploy=true Aliaswww.ged.ufu.br/Alias Logger className=org.apache.catalina.logger.FileLogger directory=/web/ged/logs prefix=tomcat_ged. suffix=.log timestamp=true/ Context path=/web/ged docBase=ged debug=0 reloadable=true crossContext=true/ /Host // Directories of the application Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 3261056 32896 3228160 2% /web root@ged2:/web/servidor tree /web/ged/ /web/ged/ |-- index.jsp |-- logs | |-- apache_access_log | |-- apache_error_log | `-- tomcat_ged.2003-01-17.log `-- test
RE: Tomcat and Apache
The configuration of the virtual host in the Apache is striped below, in extracted fragment of the file httpd.conf: VirtualHost www.admged.ufu.br ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/admged ServerName admged.ufu.br ServerAlias www.admged.ufu.br ErrorLog /web/admged/log/apache_error_log CustomLog /web/admged/log/apache_access_log JkMount /test ajp13 JkMount /test/* ajp13 /VirtualHost Since then they follow my questions, I have faith that even certain point, very basic: 1 - I have the configuration of the virtual host www.admged.ufu.br in the Apache. Is it necessary to do the configuration of the virtual host www.admged.ufu.br in the file of configuration of Tomcat, and will I use the two (Apache + Tomcat) in an integrated way? 2 - Below it is the listing of my tree of directories that will store the test pages. I want that all my files jsp under / web/admged are interpreted as files jsp by the server. Like this being, as it should be my JKMount in the Apache? admged@admged:~ tree /web/ /web/ |-- WEB-INF | `-- classes `-- admged |-- WEB-INF | `-- classes |-- index.jsp `-- log |-- apache_access_log `-- apache_error_log 6 directories, 3 files If they could send in some way some example file or a documentation that it shows in a clear way as proceeding with the configuration I will be very thankful. I thank the released help once again. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat and Apache
John, Thank you for the help. Tomorrow I will try to implant what was discussed. Once again thank you. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and Apache
Recently I installed a server web for tests with the tomcat instead of Resin of the CAUCHO, server this now used by us. I am using the Apache 1.3.27, tomcat 4.1.18, both integrated by mod_jk.so, as demonstrated in details in http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml. I concluded the whole installation process and I tested her. Seemingly everything perfectly works with the Apache working in the port 80 and the tomcat in the 8080. I defined my virtual host in the Apache and I tested. I would like to know how to proceed for when opening a file. jsp in my Apache server, the same redirects it for the tomcat. Now I am testing with a simple file, called index.jsp with the following code: % out.println (This and a test);% When I call the url www.admged.ufu.br receive % out.println (This and a test);% exhibited in the browser, what denotes that the Apache is not redirecting it . jsp for the tomcat. Some suggestion of how to proceed to configure? I thank any help. -- Sebastião Carlos Santos Oracle Database Administrator - DBA Universidade Federal de Uberlândia - UFU Gratificação de Estímulo à Docência - GED Mensagem enviada utilizando UFU Mail 1.0 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and Apache
Recently I installed a server web for tests with the tomcat instead of Resin of the CAUCHO, server this now used by us. I am using the Apache 1.3.27, tomcat 4.1.18, both integrated by mod_jk.so, as demonstrated in details in http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml. I concluded the whole installation process and I tested her. Seemingly everything perfectly works with the Apache working in the port 80 and the tomcat in the 8080. I defined my virtual host in the Apache and I tested. I would like to know how to proceed for when opening a file. jsp in my Apache server, the same redirects it for the tomcat. Now I am testing with a simple file, called index.jsp with the following code: % out.println (This and a test);% When I call the url www.admged.ufu.br receive % out.println (This and a test);% exhibited in the browser, what denotes that the Apache is not redirecting it . jsp for the tomcat. Some suggestion of how to proceed to configure? I thank any help. -- Sebastião Carlos Santos Oracle Database Administrator- DBA Universidade Federal de Uberlândia Gratificação de Estímulo à Docência Mensagem enviada utilizando UFU Mail 1.0 Este e-mail foi analizado pelo RAV AntiVirus no servidor doodle.dr.ufu.br da Universidade Federal de Uberlândia - Uberlândia - MG - Brasil -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and Apache
Recently I installed a server web for tests with the tomcat instead of Resin of the CAUCHO, server this now used by us. I am using the Apache 1.3.27, tomcat 4.1.18, both integrated by mod_jk.so, as demonstrated in details in http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml. I concluded the whole installation process and I tested her. Seemingly everything perfectly works with the Apache working in the port 80 and the tomcat in the 8080. I defined my virtual host in the Apache and I tested. I would like to know how to proceed for when opening a file. jsp in my Apache server, the same redirects it for the tomcat. Now I am testing with a simple file, called index.jsp with the following code: % out.println (This and a test);% When I call the url www.admged.ufu.br receive % out.println (This and a test);% exhibited in the browser, what denotes that the Apache is not redirecting it . jsp for the tomcat. Some suggestion of how to proceed to configure? I thank any help.