Re: Sending GIF image from tomat web application to browser
In your servlet set the content type of http header to image/jpeg or image/gif depending upon the type of the image. If you have already written a servlet, you can figure out how to do this. Raj Peter Lee wrote: I am trying to send GIF or JPEG images from a Tomcat web application servlet to a browser when the user clicks on a web link. Is there any correct way of doing this? Thanks -- 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: tomcat 4.1.12 not starting- exception
Hi, jakarta-tomcat-4.1.12-LE-jdk14.exe does not have some librabries which are part of the JDK 1.4.x. Download the jakarta-tomcat-4.1.12.exe as your JDK version is 1.3.x. If you want to use the LE version download and install the JDK 1.4.x. Raj Sexton, George wrote: The LE distribution requires JDK 1.4 -Original Message- From: Nalini [mailto:nalinisp;yahoo.com] Sent: 28 October, 2002 11:54 AM To: Tomcat Users List Subject: tomcat 4.1.12 not starting- exception Hi, I have installed jdk1.3.1_04 and made JAVA_HOME point to the jdk home = directory. Then I have down loaded the release version of tomcat 4.1.12 and unzipped = it. When I tried to start tomcat from the tomcathome\bin directory using = the startup command , I get the following error. Using CATALINA_BASE: C:\jakarta-tomcat-4.1.12-LE-jdk14 Using CATALINA_HOME: C:\jakarta-tomcat-4.1.12-LE-jdk14 Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.12-LE-jdk14\temp Using JAVA_HOME: C:\jdk1.3.1_04 Exception in thread main java.lang.NoClassDefFoundError: org/xml/sax/Inpu= tSour ce at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179) Could someone help me fix this error. --- Robert L Sowders [EMAIL PROTECTED] wrote: Here is a nice article that might help with clustering. http://www2.theserverside.com/resources/article.jsp?l=Tomcat rls Bernd Koecke [EMAIL PROTECTED] 10/28/2002 01:45 AM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: load balancing with routing with mod_jk in cluster Hi, it seems that you want to use mod_jk on the nodes as balancer. We don't use it in that way. We have a load balancer in front of our nodes, which has a standby balancer, if the first one goes down. If we want to get your requested behavior, we had to configure this on our load balancer, not on the nodes. This balancer knows nothing about apache, tomcat and mod_jk. So I don't know how to manage it with mod_jk. I don't know how your config should work. Because if N1 routes to all other nodes and N1 goes down, how should your client know, that he had to connect to N2? You need some logic in front of your cluster, that the clients see your cluster as one big server. If you want something like standby or hot standby you must implement this in the front logic, not on the nodes. And I don't know if this is possible with jk1. Why do you limit the balancing to N1? Most of the work is done in your servlets. The balancing is not so hard, that it will bring your node down. If all nodes do balancing its no problem, if one node goes down. But may be I don't understand your scenario. Bernd Alexander Piavka wrote: Bernd thanks for your reply. There is one more question i have. I have 3 nodes N1,N2,N3 each runs apache and tomcat. On node N1 i want to run lb_worker1 which will route all requests between all nodes. All apache servers will send requests to this lb_worker1. On node N2 i want to run lb_worker2 which will start routing all requests between all nodes ONLY then lb_worker1 goes down. I don't know if it is possible to make this configuration in workers.properties file. As i see i on each node workers.proprerties file should have bl_worker which will route requests between bl_worker1 bl_worker2. And bl_worker1 should have very high lbfactor and bl_worker2 very low: worker.bl_worker.type=lb worker.bl_worker.balanced_workers=bl_worker1,bl_worker2 but this is probably illegal as load balancers don't have lbfactor, and balancers can't have other balancers in their balanced_workers property. Please tell me if i can make the above scenario work. [...] -- Dipl.-Inform. Bernd Koecke UNIX-Entwicklung Schlund+Partner AG Fon: +49-721-91374-0 E-Mail: [EMAIL PROTECTED] ATTACHMENT part 2 application/octet-stream name=attbf0fo.dat -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org __ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- 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 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Is an application server suitable?
Tuncay Baskan (Ýnternet Grubu) wrote: Hello all, Briefly, my question is not specific to Tomcat. I'm looking for answers generally related with application servers, and tomcat user list is one place really experienced and nice people exist. Here it goes... We are at the first steps of a big (well, for us it is big) project. On our part, there will be a database server (probably Oracle or DB/2) which probably will have to be capable of handling more than 1,500,000 transactions per day coming from POS machines all around the country. Current infrastructure is based on mainframes and they are expensive to maintain as you know. We won't be dealing with X25 to TCP/IP or other low level POS related networking things. Those are considered as outside world for us. Here is a text diagram showing what we think for now: | | +--++--+ | | Server 1 | | | | +--+| | |. | | POS | +--+| Database |Report machines| | Server 2 | | Server | --stuff (X.25) | +--+| | (internal) |. | | |. | | | +--+| | | | Server N | | | | +--++--+ | Servers will operate the business logic; is message consistent, is it a debit or credit, has owner enough credit, what type of smart card is used, etc etc. At this point I was thinking an application server can do it well enough (scaling for incoming connections, database connection pooling, managibility, etc.) But, as far as i know incoming connections are not HTTP. Application server is what you need to handle your kind of project. The purpose of the Application servers is centerlise your business logic at a single point. If you dont buy a off the self application server, you will end up developing your own. Application server do all the connection pooling, transaction handling, data persistence behing the scenes. This way the developer can concentrate on the application logic instead of dealing with the lower level nitty-gitty of connection pooling, security, transaction hadling etc. Certainly, the transport layer will not be HTTP unless your POS termincals are web browser. So, is it logical to use an application server to implement those business logic units? I think we need to implement, say POSServlet classes from generic Servlet interface. Has anyone seen or developed something like this before? Or is it better to implement servers with ServerSockets? I don't like the latter because imo, we need to reinvent a lot of things. Sinc, you posted this question in a Tomcat list I assume, you are looking for the Java based Application Server. If my assumption is true, J2EE is what you need. There are commercial server like Weblogic and Websphare which will perfactly server your need. There are also opensource J2EE server. In my opinion, they do well in the small projects. You can load test them if they can serve your needs. J2EE servers comes as containers. For example Tomcat is web container for a J2EE server. Simmilary there are EJB container, JMS server, JNDI server etc. There is a possibility of mix and match the commercial and opensource containers. One of the actively developed opensource J2EE server is JBoss (I am using one for commercial applications). You will need a trasport to connect your POS terminals to the J2EE server. Natural choice for the any java aware application is to use the RMI or RMI over IIOP. HTTP is anohter choice if your POS are web browser. In that case you will need a web container e.g. Tomcat to up front the EJB Container. Offcouse you can get the integrated web containers and EJB containers from commercial vendor or you can integrate the tomcat with a opensource EJB server. If your POS clients are not Java application you will need some kind of bridge to connect to the J2EE server. If you intend not to use the J2EE server for any reason, you can have your own. Jakarta-avalon is another opensource movement which leverages is a component framework, server kernel, and a lot many ready made componets to assemble your own application server. I am working on such a project because, the open source J2EE server could not meet my requirements and commercial J2EE servers have a very high price tag which is not offordable by small entrprises. Regards, Raj Saini I hope I explained the case well. I'm waiting for advices. Best regards. /tb. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Warp configuration issues
Hi, Since the warp is not actively used, you will find few people replying to your post. I was using the warp on tomcat 4.0.3. To configure the datasource on warp:- 1. Engine configuration tag must have a default host set. 2. Define a host with the same name is default host under the engine tag. 3. Define your context under that earlier defined host. Please let me know if it works for you. If does not, post your server.xml and the exceptions you are getting. Raj Saini Chilton, Gil wrote: I am trying to use tomcat 4.1.12 from rpm with apache 1.3.23 on a fully patched RedHat 7.3 box using mod_webapp. If I define an ordinary application that does not require any server.xml changes and place it under the webapps directory with appropriate changes to apache's httpd.conf, the application works fine. However, if I want to add a datasource definition for the application or access the tomcat manager via apache it does not work. I have tried copying the manager context from the standalone section of server.xml to the sample warp part without success. I have tried putting the datasource definition under both standalone and warp without success. I have also searched for a solution. Synopsis: http://machine.domain.com/application http://machine.domain.com/application - works fine if no server.xml changes are required to support application http://machine.domain.com:8080/application http://machine.domain.com:8080/application - works fine with changes to standalone section of server.xml http://machine.domain.com/application http://machine.domain.com/application - does not work if I am using a datasource with changes to warp section of server.xml http://machine.domain.com:8080/manager/list http://machine.domain.com:8080/manager/list - works fine http://machine.domain.com/manager/list http://machine.domain.com/manager/list - does not work My goal is to disable tomcat's port 8080 and only enable 80 and 443 which will be serviced by apache. ** The information transmitted herewith is sensitive information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer. -- 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]
Re: Some problems with Tomcat/Warp/Apache
Hi, There are really some problems with the warp as it was never a production quality. I had the simillar problems you have now. I used the warp for a very big application (around 3,000 classes) and lot of caching. Tomcat used to get out memory at the end of every day with a heap size of 384 MB and I had to restart apache every day. From your post now it looks to me that, it was due to the re-compiling of the JSP file. javac have a memory leaks and tomcat will go out of memory after compiling lot of JSP pages. The only solution to this is to upgrade to mod_jk. it is a little difficult to configure, but once configured, it is all smooth sailing. Raj Saini Frédérik Bilhaut wrote: Hi ! I'm experiencing some problems deploying a site with Apache 1.3.14 connected to Tomcat 4.0.5 using Warp : 1) When my webapp is deployed as a .war file, some JSPs are recompiled at every request, resulting (of course ;) in very bad performances. This only happens with some JSPs (but always the same ones), and I really can't see what distinguishes them from other ones, that are correctly compiled once. I noted that the war file was extracted in the work directory as expected, and that generated servlet classes were correctly stored in the same place. When deploying the same webapp in a folder, everything works well (ie JSPs are compiled only once). 2) Much, much more annoying : I sometime receive (apparently randomly) the following error messages from the warp module : WebApp : Error 500 (File: pr_warp.c Line 369) Communitcation interrupted I noticed that this tends to appear more often when tomcats has to compile the requested JSP, or opens a new session (sometimes, suppressing cookies for my webapp makes this error appear again). But this is not exclusive, since the problem may in fact appear anytime. I'd really appreciate some help about these problems... Thanks a lot ! PS : some more info about my configuration: I use JDK 1.4 ; Apache and Tomcat are running on two separate machines ; The Apache server runs wery well otherwise, and has been successfully serving several other sites (using PHP) for a while ; Each site is separated using virtual hosts, and my Webapp is just one of them. Best regards, -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JNDI Datasource is *still* null
Please post the Context defination part of your server.xml. Can you also post the stacktrace? BTW, do you have the latest oracle driver? Did you rename your classes.zip to classes.jar? Raj James hughes wrote: Made the changes, still no DataSource. -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 19:42 To: Tomcat Users List Subject: Re: JNDI Datasource is null Hi, Do you really need the CharacterSetMappers in your context defination? Try using the vanila configuration for testing. Try moving up the DriverClassName element just about the url. Raj Saini James hughes wrote: Surely there must be somebody out there who has connection pooling working with DBCP and Oracle. Please! :) -Original Message- From: James hughes [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 14:55 To: Tomcat Users List Subject: RE: JNDI Datasource is null I changed the values, but still the Datasource is null :( I find it strange that the JNDI name exists with no object - that is, I dont get a NameNotFoundException. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 14:53 To: Tomcat Users List Subject: Re: JNDI Datasource is null 2 things are possible culprits The syntax for JNDI datasources changed slightly after moving from Tyrex as the default provider to DBCP. Specifically, user should be username. The other thing is the Resource scope=Sharable. That might be right, but I've never used it. I use Container for that value. Jake At 02:07 PM 10/14/2002 +0100, you wrote: Hi there, I am using Oracle 9i, DBCP and Tomcat 4.1.12. I am trying to configure a JNDI datasource that implements connection pooling. I have been following the instructions in the JNDI how to, specifically the section for Oracle. My problem is that the JNDI Datasource is null when I try to get it from the context. I cant see any exceptions being thrown anywhere. Can anyone tell me what I have missed? My server.xml is as follows (this entry is in the HOST tag, after the /examples context): Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=true debug=5 docBase=TestDB mapperClass=org.apache.catalina.core.StandardContextMapper path=/TestDB privileged=false reloadable=true swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=localhost_DBTest_log. suffix=.txt timestamp=true verbosity=1/ Resource auth=container name=jdbc/myoracle scope=Shareable type=java.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value /parameter parameter namepassword/name valuetiger/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxWait/name value10/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameuser/name valuescott/value /parameter parameter namemaxIdle/name value10/value /parameter /ResourceParams /Context And web.xml is as follows: resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref I have a class as follows: package foo; import javax.naming.*; import javax.sql.*; import java.sql.*; public class DBTest { String foo = Not Connected; int bar = -1; public void init() { try { Context ctx = new InitialContext(); if(ctx == null ) { throw new Exception(Boom - No Context); } Context envContext = (Context)ctx.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle); if (ds != null) { Connection conn = ds.getConnection(); if(conn
Re: WHO knows about it ???
There are many reasons of using mode_jk over warp. I had serious problem with the warp when, I used it with Tomcat 4.0.3. One very eratic thing was the errors, exception I used to get rendomly. Two other reasons are fault tolerance and load balancing. This is required for providing maximum uptime for the crtical applications. Warp does not provide load balancing and fault tolerance. One more reason is warp is not developed activly any more. You have to stick with what you have now. If you are getting good performace with warp there is no reason to switch to jk. You can stick with what you have now unless feel the need. Raj Load Balancing Fault Tolerance The Jean-Luc BEAUDET wrote: Hi everybody ! Well i'm actually using Apache 1.3.26 with Tomcat 4.0.2 via the WARP 1.0.2 Final Release for monthes now and all is runnin' good. - i test it on a prod server - I saw smth really amazing in the mailing list about mod_j2k and mod_webapp saying that in the last rel of Tomcat mod_webapp is not to be considered any more ! Does it makes sens for someone ??? I'd like so much to get more informations about it since i use to work with mod_webapp for quite a long.. As i'm always interrested in new Releases of Apache/Tomcat i would appreciate someone to tell the truth about all that stuff. Best regards. Jean-Luc BEAUDET - KODAK I.N.R.D - :O) -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: plz help!!! simple test http://localhost:8080 fails why????
How do you start your tomcat on other machine? What is the operating system of your meachine? Do you acess your jsp page from the same machine? it seems your tomcat did not start or died before starting. Check the catalina.out log file in the logs directory or your console for the errors/exceptions. Raj S Alam wrote: I have a JSP program running on tomcat webserver at home. This program works. At home the computer accesses the internet via a dialup modem. I am trying to run this program at another location. I have taken my hard disk and installed the hard disk at the other computer. The other location is networked. It is running DHCP IP addressing. When I run the program there it does not work Also when I run the tomcat test there i.e http://localhost:8080 In the status bar I get Website found. Waiting for reply ... but after few minutes I get the error message below: why??? Please help From home I ran the program as http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp this works perfectly. At the other location I am trying the typing the same address in the address bar of IE6: http://localhost:8080/myJSPs/jsp/portal-project/preferences.jsp But it gives me the message in the status bar: Website found. Waiting for reply ... but after few minutes I get the error message below: The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings. Please try the following: Click the Refresh button, or try again later. If you typed the page address in the Address bar, make sure that it is spelled correctly. To check your connection settings, click the Tools menu, and then click Internet Options. On the Connections tab, click Settings. The settings should match those provided by your local area network (LAN) administrator or Internet service provider (ISP). If your Network Administrator has enabled it, Microsoft Windows can examine your network and automatically discover network connection settings. If you would like Windows to try and discover them, click Detect Network Settings Some sites require 128-bit connection security. Click the Help menu and then click About Internet Explorer to determine what strength security you have installed. If you are trying to reach a secure site, make sure your Security settings can support it. Click the Tools menu, and then click Internet Options. On the Advanced tab, scroll to the Security section and check settings for SSL 2.0, SSL 3.0, TLS 1.0, PCT 1.0. Click the Back button to try another link. Cannot find server or DNS Error Internet Explorer Please help why does this happen??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: binding on socket
It should be possible. This is common to provide the bind address. This is how the ServerSocket of java is designed. I feel, there must be a parameter to do this. Have to look into the source code. Raj David Loy wrote: Sorry make that tomcat 4.0 From: David Loy [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: binding on socket Date: Tue, 15 Oct 2002 11:27:38 -0700 Is it possible to have tomcat 1.4 bind on a socket different from the host IP (similar to Apache listen) Thanks David _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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]
Re: binding on socket
yes, there is a parameter and it is address. It is documented in the Connector docs. Raj David Loy wrote: Sorry make that tomcat 4.0 From: David Loy [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: binding on socket Date: Tue, 15 Oct 2002 11:27:38 -0700 Is it possible to have tomcat 1.4 bind on a socket different from the host IP (similar to Apache listen) Thanks David _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- 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]
Re: Tomcat v4.1.12 with jk1, not jk2(not yet, at least)
Pae Choi wrote: First of all, my appologies if this question has been asked before. I have not been able to keep up with TOMCAT progress lately. But I have been using it up to 4.0.x so I can be considered as a newbie to v4.1.x. I have been using a combination, Apache/HTTP(S)d + mod_jk v1.1.0 + Tomcat v4.0.3 till now. And I have some time to explore the v4.1.12, but like to ask some questions to who have been explore it before. Q1: Is Tocmat v4.1.12 still support jk or I should say jk1 now compare to new jk2? Yes, it is well supported. Rather, it is supported better then JK2. Q2: If so, can it be configured same as TOMCAT v4.0.x? Yes, it can be. Configuring 4.0.x and 4.1.xx should be simmilar. Any suggestions and comments on this are welcome and will be appreciated. Thank you. Welecome, Raj Regards, Pae -- 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]
Re: JNDI Datasource is null
Hi, Do you really need the CharacterSetMappers in your context defination? Try using the vanila configuration for testing. Try moving up the DriverClassName element just about the url. Raj Saini James hughes wrote: Surely there must be somebody out there who has connection pooling working with DBCP and Oracle. Please! :) -Original Message- From: James hughes [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 14:55 To: Tomcat Users List Subject: RE: JNDI Datasource is null I changed the values, but still the Datasource is null :( I find it strange that the JNDI name exists with no object - that is, I dont get a NameNotFoundException. -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 14:53 To: Tomcat Users List Subject: Re: JNDI Datasource is null 2 things are possible culprits The syntax for JNDI datasources changed slightly after moving from Tyrex as the default provider to DBCP. Specifically, user should be username. The other thing is the Resource scope=Sharable. That might be right, but I've never used it. I use Container for that value. Jake At 02:07 PM 10/14/2002 +0100, you wrote: Hi there, I am using Oracle 9i, DBCP and Tomcat 4.1.12. I am trying to configure a JNDI datasource that implements connection pooling. I have been following the instructions in the JNDI how to, specifically the section for Oracle. My problem is that the JNDI Datasource is null when I try to get it from the context. I cant see any exceptions being thrown anywhere. Can anyone tell me what I have missed? My server.xml is as follows (this entry is in the HOST tag, after the /examples context): Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=true debug=5 docBase=TestDB mapperClass=org.apache.catalina.core.StandardContextMapper path=/TestDB privileged=false reloadable=true swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=localhost_DBTest_log. suffix=.txt timestamp=true verbosity=1/ Resource auth=container name=jdbc/myoracle scope=Shareable type=java.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@127.0.0.1:1521:RHODES/value /parameter parameter namepassword/name valuetiger/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxWait/name value10/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameuser/name valuescott/value /parameter parameter namemaxIdle/name value10/value /parameter /ResourceParams /Context And web.xml is as follows: resource-ref descriptionOracle Datasource example/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref I have a class as follows: package foo; import javax.naming.*; import javax.sql.*; import java.sql.*; public class DBTest { String foo = Not Connected; int bar = -1; public void init() { try { Context ctx = new InitialContext(); if(ctx == null ) { throw new Exception(Boom - No Context); } Context envContext = (Context)ctx.lookup(java:/comp/env); DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle); if (ds != null) { Connection conn = ds.getConnection(); if(conn != null) { foo = Got Connection +conn.toString(); Statement stmt = conn.createStatement(); ResultSet rst = stmt.executeQuery(select id, foo, bar from testdata
Re: Servlets not working with tomcat 4.1.12(4.0.4 error)
Do you have your servlets mapped in the web.xml of your application? In Tomcat 4.1.12 and 4.0.5, the default servelt invoker is disabled due to security hole in the older releases. You can uncomment the invoker servlet mapping at your own risk or map your servlets in your web.xml. Raj Saini default sonam singh wrote: specify u'r server.xml and and web.xml so that i can helpu out regards Sonam Singh --- Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi, I was just trying to migrate to tomcat4.1.12 from tomcat 4.0.4, so created a web application in server.xml of tomcat4.1.12, pointing towards the extiting folder(where in have my web-inf) file, the problem i am facing is all the jsps work but none of the servlets work, i get 4.0.4 error, saying servlet not found, i have my web.xml file and all the servlets registered in it, infact i have a servlet which loads at startup, and works fine , but other servlets dont work... what may be the reson??? Ashish __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- 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]
Re: Setting up the usera and password for the administrator in Tomcat 4.1
It is the same file. Add a role admin as you did for manager. Add this role to any user. Raj Saini Carlos wrote: Where can I find documentation o intructions to set-up the user and password of the administrator application? I was able to set-up the manager by adding the user, password, and role to the user file as the documentation indicates but I could not find info about setting-up a user as an administrator. Carlos Oliva -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [HOW TO] - GLOBAL VARIABLES - PLEASE HELP
Hi Donie, You can define a variable in the global web.xml (in conf directory). This variable should be available to all your applications. This should come at the end of the $TOMCAT_HOME/conf/web.xml file. Though I have not used and tested this (I use for a single application in application specific web.xml) I feel it should work. env-entry descriptionsome description/description env-entry-namefoo/env-entry-name env-entry-valuebar/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry Raj Donie Kelly wrote: Hi all Sorry for shouting but I've no hair left so it's the only thing I can do :) Please tell me if it's possible to define a variable in server.xml or somewhere, which is available to all running webapps. I've looked in loads of docs and searched the archive but to no avail. Please please please Donie -- 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]
Re: connector between tomcat apache
What does this mean sonam? Raj sonam singh wrote: use mount_msdos /dev/fd0 /mnt regards Sonam Singh --- unplug [EMAIL PROTECTED] wrote: Thanks for your example. But I am still confused to set it up. I think it is better to do a setup comparison with tomcat3.3+apache1.3+mod_jk. tomcat3.3+apache1.3+mod_jk: It needs a configuration file called mod_jk.conf and include it in httpd.conf. tomcat4.1+apache1.3+mod_jk2: Where is the configuration file? What should I include in httpd.conf? Moreover, the document mentions a worker file called worker2.properties. Where does it located? Robert L Sowders wrote: Here is an example, modify to suit your needs. Disable JNI if you don't use it. Change Disable=0 to Disable=1 in the appropriate places. [logger] level=DEBUG [config:] #file=${serverRoot}/conf/workers2.properties file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [lb:lb] info=Default load balancer. debug=0 #[lb:lb_1] #info=A second load balancer. #debug=0 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 #[channel.socket:localhost:8019] #info=A second tomcat instance. #debug=0 #tomcatId=localhost:8019 #lb_factor=1 #group=lb #group=lb_1 #disabled=0 #[channel.un:/opt/33/work/jk2.socket] #info=A second channel connecting to localhost:8019 via unix socket #tomcatId=localhost:8019 #lb_factor=1 #debug=0 [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [status:] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\Program Files\Java\j2re1.4.0_01\bin\client\jvm.dll (Read from registry) OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar OPT=-Dtomcat.home=c:/Tomcat OPT=-Dcatalina.home=c:/Tomcat OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=0 [worker.jni:onStartup] info=Command to be executed by the VM on startup. This one will start tomcat. class=org/apache/jk/apr/TomcatStarter ARG=start disabled=0 stdout=c:/Apache2/logs/stdout.log stderr=c:/Apache2/logs/stderr.log [worker.jni:onShutdown] info=Command to be executed by the VM on shutdown. This one will stop tomcat. class=org/apache/jk/apr/TomcatStarter ARG=stop disabled=0 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: #[uri:127.0.0.1:8003] #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it #alias=myVirtualHost:8003 #[uri:127.0.0.1:8003/ex] #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 ) #context=/ex #group=lb_1 [uri:/examples] info=Example webapp in the default context. context=/examples debug=0 #[uri:/examples1/*] #info=A second webapp, this time going to the second tomcat only. #group=lb_1 #debug=0 [uri:/examples/servlets/*] info=Prefix mapping [uri:/examples/*.jsp] info=Extension mapping [uri:/examples/*] info=Map the whole webapp [uri:/examples/servlets/HelloW] info=Exampel with debug enabled. debug=10 unplug [EMAIL PROTECTED] 10/09/2002 07:05 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: connector between tomcat apache Any example for using mod_jk2 with apache1.3+tomcat4.1? I follow the instruction from the document to download the mod_jk2. Then I put it under apache_home/modules. Then I add LoadModule AddModule of mod_jk2 in httpd.conf. After that, the document said there is a file called worker2.properties which is used by apache. I can't found that file in tomcat. Moreover, I doubt what setting should I add in httpd.conf. unplug Turner, John wrote: Mod_jk (AJP13). Don't use WARP/mod_webapp. Mod_jk2 is beta, workable, but use at your own risk. === message truncated === __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- 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]
JMX support in Tomcat
Hi, There is JMX Mbean support in Tomcat 4.1.12. In the tomcat logs I see the MBean Server created. Does some have idea where this server listens for requests? Is there any HTML adapter for JMX included with tomcat? Thanks, Raj Saini -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JMX support in Tomcat
Yes, you are right. Admin application uses the MBeanServer. Raj Roland S Nygren wrote: I posted a similar question recently (no response though). I understand that the HTML adapter is http://localhost:8080/admin/ You must edit the file conf/tomcat-users.xml (see other postings on that) to be able to login. (If you unpacked tomcat with WinZip make sure you have the empty files server/webapps/admin/footer.jsp and server/webapps/admin/users/footer.jsp , I had to create them since WinZip does not create empty files). Would be interesting to know if one can write MBeans and register them with this Agent and if that is recommended or not. /Roland Hi, There is JMX Mbean support in Tomcat 4.1.12. In the tomcat logs I see the MBean Server created. Does some have idea where this server listens for requests? Is there any HTML adapter for JMX included with tomcat? Thanks, Raj Saini -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Security: Restricted -- 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]
Re: tomcat4.1.2 - Servlet Error
admin directory is under TOMCAT_HOME/server/webapps Raj Raj Mettai wrote: thanks Yoav Shapira, looks like I don't even have admin directory under webapps folder. I have downloaded binaries from apache site and Installed it under separate folder. Jsp pages are fine, when I access servlets from my application I am getting 404 page not found. It works fine with 4.0.4. Here is my context Tag from server.xml Context path=/FCCSC docBase=/opt/jrun4/servers/BCC/FCCSC debug=0/ thanks Raj [EMAIL PROTECTED] 10/10/02 09:34AM Hi, How did you install 4.1.12? Did you copy it over the existing 4.0.4 installation? The error indicates tomcat can't find its own admin webapp classes. That shouldn't happen if you simply untar the distribution. Look for $CATALINA_HOME/server/webapps/admin/WEB-INF/classes/org/apache/webapp/ad min to make sure it exists and has the .class files in it. Or simply remove webapps/admin.xml if you don't want/need the admin webapp ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 7:01 PM To: [EMAIL PROTECTED] Subject: tomcat4.1.2 - Servlet Error Hi, I am running tomcat4.1.2 on solaris8. Tomcat is serving jsp pages fine but when I access servlet I am getting HTTP Status 404 and I found following exception in localhost_admin* log file. 2002-10-09 18:31:50 ContextConfig[/admin]: Configured an authenticator for method FORM 2002-10-09 18:31:50 StandardManager[/admin]: Seeding random number generator class java.security.SecureRandom 2002-10-09 18:31:50 StandardManager[/admin]: Seeding of random number generator has been completed 2002-10-09 18:31:50 StandardWrapper[/admin:default]: Loading container servlet default 2002-10-09 18:31:50 StandardWrapper[/admin:invoker]: Loading container servlet invoker 2002-10-09 18:31:50 StandardWrapper[/admin:action]: Marking servlet action as unavailable 2002-10-09 18:31:50 StandardContext[/admin]: Servlet /admin threw load() exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.webapp.admin.ApplicationServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:8 80) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. java :3341) at org.apache.catalina.core.StandardContext.start(StandardContext.java:353 4) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: 821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl oyer .java:529) at java.lang.reflect.Method.invoke(Native Method) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java: 228) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260) at org.apache.commons.digester.Digester.endElement(Digester.java:1036) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParse r.ja va:579) at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder .jav a:646) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValid ator .java:1972) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.j ava: 878) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement( XMLD ocumentFragmentScannerImpl.java:1144) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XM LDoc umentFragmentScannerImpl.java:987) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat cher.dispatch(XMLDocumentFragmentScannerImpl.java:1445) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD ocum entFragmentScannerImpl.java:333) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 524) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java: 580) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav a:11 69) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. java:335) at org.apache.catalina.core.StandardHost.install(StandardHost.java:803) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav a:45 2) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409) at
Re: I need to run a servlet periodically
To need the servlet run periodically you need a client calling the servlet periodically. Make your client to run periodically and it will cause the servlet to run. We can suggest you a solution if you let us know what exactly you want your servlet to do. Raj Saini Filip Rachunek wrote: Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. Thanks. Filip Rachunek __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- 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]
Re: Error using ajp13 protocol
Hi Marc, Telnet to the port 8009 shows that your JK connecter is listening on port 8009. You won't get any output. Now there can be the conflict of host now. What is the defaulthost attribute of your Engine tag and name attribute of the Host tag in your server.xml? Are they both set to localhost? Can you post your complete server.xml file? BTW, are you running apache and tomcat on the same host? Raj Marc wrote: Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002
Re: java.lang.OutOfMemoryError
Hi, I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with apache using warp connector. I used to have the same problem you have now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load balancing with two instances of tomcat on the same server. Memory usages which used to shoot upto 200 MB in a single day is now restricted to 3-4 MBs a day. I cant not say surely my problem was due to warp or tomcat 4.0.3. Your can try upgrading to tomcat 4.1.12. Raj earlier is now Hi all, I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines using mod_jk. I have two instances of tomcat running, each serving different jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few hours, some times tomcat totally crashes, if I do not restart. I am pretty much monitor java process using prstat and if the memory reaches maximum value, I am restarting tomcat. here is my jdk version... java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) I have increased the heap size from 128M to 256M, it didn't help much other than running for few more hours. and currently I have set up 256M min and 256M max values for heap size. I am wondering, is there any known issues with running tomcat4.0.4 under jdk1.3.1(build 1.3.1-b24, mixed mode). ? Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ? thanks in advance Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: connector between tomcat apache
You can use use the ajp13 with tomcat. (mod_jk at apache end). Warp connecter is not reliable and what I learnt is no more actively developed. There are loadbalancing and fault tolerance features in ajp which are not in warp (mod_webapp) Raj unplug wrote: Hi all, I want to confirm the following. I have read the document about the connector between tomcat apache. But I am confused what connector to use. As document said, we can use mod_jk2 for apache2.0+tomcat4. How about apache1.3+tomcat4? The document doesn't mention about it. Is mod_webapp the only way to be a connector between them? Thanks, unplug -- -- 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]
Re: Error using ajp13 protocol
]# telnet localhost 8080 Trying 217.116.2.172... telnet: connect to address 217.116.2.172: Connection refused [root@telemako logs]# telnet localhost 8009 Trying 217.116.2.172... (finally a timeout is given) thank you all Best regards Marc PD: Configuration is RedHat 7.2, Tomcat 4.1.12, Apache 1.3.22 and jdk 1.4.1. I only have access to the machine throug telnet or a web application called webmin (I don't know if this can affect), but I tried the same using 'curl', with the same result (curl http://localhost:80/index.jsp) sonam singh wrote: whih verison of mod_jk u'r using specify . when u try to run the apache is it showing any error . try to connect the tomcat directly nto through apache + tomcat . regards Sonam Singh --- Raj Saini [EMAIL PROTECTED] wrote: Hi Marc, Telnet to the port 8009 shows that your JK connecter is listening on port 8009. You won't get any output. Now there can be the conflict of host now. What is the defaulthost attribute of your Engine tag and name attribute of the Host tag in your server.xml? Are they both set to localhost? Can you post your complete server.xml file? BTW, are you running apache and tomcat on the same host? Raj Marc wrote: Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create
Re: Cannot get mod_jk to work
Pls build the mod_jk from source. These some thing wrong with the binary. I faced the same problem one week ago. Raj Richard Pfeil wrote: I am unable to get mod_jk to work. The following line in httpd.conf: LoadModule jk_module libexec/mod_jk-1.3-noeapi.so results in this error message: Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so into server: /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol: ap_ctx_get What is going wrong? -- 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]
Re: Cannot get mod_jk to work
Yes, there was a problem with binary one week ago. I am not sure if binaries are updated after that. The error message was the same as in this post. Raj Turner, John wrote: Are you sure there is something wrong with the binary? If so, the binary maintainers (like Henri Gomez) would probably appreciate and email message from you with details. There's no point in having binaries if they aren't usable. As far as I know, this exact problem (same exact error message) was covered by Henri last week. John -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 8:59 AM To: Tomcat Users List Subject: Re: Cannot get mod_jk to work Pls build the mod_jk from source. These some thing wrong with the binary. I faced the same problem one week ago. Raj Richard Pfeil wrote: I am unable to get mod_jk to work. The following line in httpd.conf: LoadModule jk_module libexec/mod_jk-1.3-noeapi.so results in this error message: Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so into server: /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol: ap_ctx_get What is going wrong? -- 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] -- 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]
Re: java.lang.OutOfMemoryError - JDK1.3.1
Raj Mettai wrote: Hi, what version of mod_jk you are using with tomcat 4.1.12 ? thanks Raj I am using JK 1.2.0. (not jk2). This is the latest JK release. Raj [EMAIL PROTECTED] 10/09/02 04:07AM Hi, I was using the tomcat 4.0.3 with JDK 1.4. Tomcat was integrated with apache using warp connector. I used to have the same problem you have now. I recently upgraded to Tomcat 4.1.12 and warp to mod_jk with load balancing with two instances of tomcat on the same server. Memory usages which used to shoot upto 200 MB in a single day is now restricted to 3-4 MBs a day. I cant not say surely my problem was due to warp or tomcat 4.0.3. Your can try upgrading to tomcat 4.1.12. Raj earlier is now Hi all, I have apache(2.0.39) and tomcat(4.0.4) configured on different solaris 8 machines using mod_jk. I have two instances of tomcat running, each serving different jsp/servlet/bean application. I see lot of OutOfMemory errors in tomcat logs after few hours, some times tomcat totally crashes, if I do not restart. I am pretty much monitor java process using prstat and if the memory reaches maximum value, I am restarting tomcat. here is my jdk version... java version 1.3.1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) I have increased the heap size from 128M to 256M, it didn't help much other than running for few more hours. and currently I have set up 256M min and 256M max values for heap size. I am wondering, is there any known issues with running tomcat4.0.4 under jdk1.3.1(build 1.3.1-b24, mixed mode). ? Is there any preferred jdk version(less memory leaks) for tomcat 4.0.4 ? thanks in advance Raj -- 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]
Re: Cannot get mod_jk to work
I tried to use the binary on Apache Server version 1.3.23. I am using Redhat 7.2 Kernal version 2.4.7 Raj Milt Epstein wrote: On Wed, 9 Oct 2002, Turner, John wrote: Are you sure there is something wrong with the binary? If so, the binary maintainers (like Henri Gomez) would probably appreciate and email message from you with details. There's no point in having binaries if they aren't usable. As far as I know, this exact problem (same exact error message) was covered by Henri last week. I don't think that there's something wrong with the binary in the sense that it's broken, but rather that the particular binary they're trying to use was built for/to/with a different version of Apache, and hence won't work with it. The error message seems to indicate it's trying to call an Apache function, ap_ctx_get, that doesn't exist in the Apache libraries they have. So they either need a different mod_jk binary, or a different Apache. -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 8:59 AM To: Tomcat Users List Subject: Re: Cannot get mod_jk to work Pls build the mod_jk from source. These some thing wrong with the binary. I faced the same problem one week ago. Raj Richard Pfeil wrote: I am unable to get mod_jk to work. The following line in httpd.conf: LoadModule jk_module libexec/mod_jk-1.3-noeapi.so results in this error message: Cannot laod /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so into server: /usr/local/apache/libexec/mod_jk2-1.3.noeapi.so: undefined symbol: ap_ctx_get What is going wrong? -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- 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]
Re: Tomcat won't work with jdk 1.4.0
Hi, There should not be problem running tomcat on Solaris 8. I am running Tomcat 4.1.12 with JDK 1.4 on Solaris without any problem. I have just switched from Tomcat 4.0.3 to 4.1.12. Your problem is the log4j.jar is missing from you your libs. Your application (or some of the lib) is using log4j libraby for logging. Copy the log4j.jar in your $TOMCAT_HOME/common/lib and it should work fine. Raj Chuck Carson wrote: I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It works with jdk1.3.1_05, but I am trying to get it running with jdk1.4.0_02 and I get the following exception in catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at org.opennms.web.authenticate.Authentication.clinit(Authentication.java :39) at org.opennms.web.authenticate.OpenNMSTomcatRealm.init(OpenNMSTomcatReal m.java:125) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java: 329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal idator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc anner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc h(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan ner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) Anyone have any ideas? Thanks CC -- This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- 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]
Re: Error using ajp13 protocol
Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (111)]: wc_open, done 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:21 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:21 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:21 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:21 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:21 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:21 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:21 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 (I don't know why repeat two times the sames, but seems that start ok) [Tue Oct 08 02:50:10 2002] [jk_uri_worker_map.c (460)]: Into
Re: Tomcat won't work with jdk 1.4.0
I am not using JK2. I am using Jk. btw, why do you need the jk2.properties file. Your problem is some where else. jk2.properties is used by the apache not by the tomcat (If I am not wrong). From your exception is seems that you dont have common-logging.jar file in your $TOMCAT_HOME/common/lib directory. It supposed to be part of the distribution. If the the file is there, then it is not inculded in your classpath. This also should be done automatically, if you have not modified any thing. Raj Brzezinski, Paul J wrote: Raj Saini wrote: Hi, There should not be problem running tomcat on Solaris 8. I am running Tomcat 4.1.12 with JDK 1.4 on Solaris without any problem. I have just switched from Tomcat 4.0.3 to 4.1.12. Could you share your jk2.properties then? I'm running on Solaris 8 (SPARC) using JDK 1.4 and Tomcat 4.1.12 (tried Tomcat 4.1.12-LE-jdk14 too) and trying to use the AF_UNIX socket (which apparently requires apr) with no success. I get the following error: Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information Oct 8, 2002 4:29:55 AM org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance Oct 8, 2002 4:29:56 AM org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer Oct 8, 2002 4:29:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 8, 2002 4:30:11 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 Oct 8, 2002 4:30:11 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) I have a tiny jsp that displays the System.getProperty( java.class.path ): * CLASSPATH: /em/opt/j2sdk1.4.0_02/lib/tools.jar:/em/opt/j2sdk1.4.0_02/jre/lib/jsse.jar:/em/opt/jakarta-tomcat-4.1.12/bin/bootstrap.jar Help, advice appreciated. Thanks in advance, Paul Your problem is the log4j.jar is missing from you your libs. Your application (or some of the lib) is using log4j libraby for logging. Copy the log4j.jar in your $TOMCAT_HOME/common/lib and it should work fine. Raj Chuck Carson wrote: I am running the binary distribution of tomcat 4.0.5 on Solaris 8. It works with jdk1.3.1_05, but I am trying to get it running with jdk1.4.0_02 and I get the following exception in catalina.out: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category at org.opennms.web.authenticate.Authentication.clinit(Authentication.java :39) at org.opennms.web.authenticate.OpenNMSTomcatRealm.init(OpenNMSTomcatReal m.java:125) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:617) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java: 329) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal idator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc anner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc h(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan ner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at javax.xml.parsers.SAXParser.parse(SAXParser.java:301
Re: Is ajp13 connector running?
There must be some thing wrong with your worker.properties or the configuration of apache. Please post your worker.properties and relevent part of the apache configuration. Your apache configuration may be in mod_jk.conf which is generally included in http.conf. Raj Saini Marc Vila Pérez wrote: Hi!!! I'm using tomcat 4.1.12, apache 1.3.22 and jdk 1.4.1, on Linux Red Hat. I cannot connect to execute jsp pages via apache. I've configured tomcat and apache to connect them simultaneously. To use ajp13 protocol, I've uncommented the next connector on server.xml (and commented the default Coyote connector listening on port 8009, jk2, i think): !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=9/ When I start tomcat, using ./catalina.sh run, I can see this on the screen: [root@telemako bin]# ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/local/jdk (after 2 or 3 minutes ...) Oct 7, 2002 2:22:05 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 7, 2002 2:22:12 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 (after a few minutes more ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === (And this is repeated every few minutes ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === ... If I execute netstat: bash-2.05$ netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 1 telemako:33000 telemako:8009 SYN_SENT tcp0 0 telemako:telnet 217-126-67-42.uc.:62839 ESTABLISHED tcp0 0 telemako:1 217-126-67-42.uc.:61040 ESTABLISHED tcp0 0 telemako:telnet 217-126-67-42.uc.:60082 ESTABLISHED tcp0133 telemako:telnet 217-126-67-42.uc.:60410 ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 8 [ ] DGRAM1011462860 /dev/log unix 2 [ ] DGRAM1553906393 unix 2 [ ] DGRAM1553556776 unix 2 [ ] DGRAM1553481826 unix 2 [ ] DGRAM1011466541 unix 2 [ ] DGRAM1011466462 unix 2 [ ] DGRAM1011463525 bash-2.05$ Seems than the connector is listening on port 8009, but if I try to connect to a jsp page using apache (on port 80), after a lot of time I receive an 'Internal Server Error', apache receives the request, but cannot connect with tomcat, tries it a few times, and finaly returns the error. Am I using the correct connector? how can I know if it is running ok? anybody knows what is the problem?? Thank you all Bye! Marc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Loading a dll at startup...
Hi, You can echo your classpath by adding the following line in your catalina.bat file. Search for a using string and you will find the commands for echoing the CATALINA_HOME, BASE etc. Add this line just below them. echo Using CLASSPATH: %CLASSPATH% Raj Saini Barbara Post wrote: Hi, I use Tomcat 4.1.12, JDK 1.3.1, Windows NT4 SP6. My webapp uses a Windows custom dll which is called by a java class (native method). It worked with Tomcat 4.0.5 with modification of setclasspath.bat to include this dll in Tomcat's classpath and path, however it doesn't work anymore with Tomcat 4.1.12 : I have a blank string returned by this call. I cannot put this dll in Windows' classpath/path because of a version conflict. Thanks for any clue, I read Tomcat's .bat files but could not echo Tomcat's classpath in the startup window... so I feel really lost. Barbara -- 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]
Re: tomcat 4.1
Try removing the space after the equal to sign. I feel that is the problem as your JAVA_HOME is set with one space before the actuall string. Raj madhur jain wrote: hi! well now i have the tomcat(4.1.12) in c:\Tomcat4.1 and the autoexec is set JAVA_HOME= C:\jdk1.3.0_02 set TOMCAT_HOME= C:\Tomcat4.1 set CLASSPATH=C:\jdk1.3.0_02\bin;C:\jdk1.3.0_02\lib;C:\jdk1.3.0_02\jre\lib PATH= C:\orawin95\bin;c:\jdk1.3.0_02\bin the DOs window now says The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CATALINA_TMPDIR: ..\temp Using JAVA_HOME:C:\jdk1.3.0_02 Invalid switch - -DJAVA.ENDORSED.DIRS= please help madhur __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- 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]
Re: About WARP, HELP
Hi, There seems to be problem with your classpath settings. Somewhere you are using the forward slashes and some where backslases. Did you modify your server.xml file? What is on the line number where catalina is reporting the error? Can you post your server.xml file? Raj Uma Maheswar wrote: Can any one tell me about WARP? Please help me. My problem is listed below. Thanks Uma C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;c:/j2sdk1.4.0/bin;\lib\tools.jar Using JAVA_HOME: c:/j2sdk1.4.0/bin; The system cannot find the path specified. C:\PROGRA~1\Apache Tomcat 4.0\binset JAVA_HOME=C:\j2sdk1.4.0 C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;C:\j2sdk1.4.0\lib\tools.jar Using JAVA_HOME: C:\j2sdk1.4.0 ERROR reading ..\conf\server.xml At Line 319 /Server/Service/Connector/ className=org.apache.catalina.connector.w arp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.connector. warp.WarpConnector java.lang.ClassNotFoundException: org.apache.catalina.connector.warp.WarpConnect or at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:253) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\PROGRA~1\Apache Tomcat 4.0\bin -- To unsubscribe, e-mail: mailto:tomcat-user- [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] -- 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]
Re: Loading a dll at startup...
How are you running the tomcat on NT? Are you running it from the start menu or from the desktop. If you run it from the start menu, you wont be able to see any echos on the console. Please run the tomcat from a DOS prompt with the following command:- catalina run Your should see all the echoing on console. Barbara Post wrote: I am sorry but the following echoes I indeed already have in catalina.bat don't execute : don't echo anything... why ? I read the .bat many times. The logs don't show anything abnormal... and any echo. echo Using CATALINA_BASE: %CATALINA_BASE% echo Using CATALINA_HOME: %CATALINA_HOME% echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR% echo Using JAVA_HOME: %JAVA_HOME% - Original Message - From: Raj Saini [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, October 07, 2002 10:26 AM Subject: Re: Loading a dll at startup... Hi, You can echo your classpath by adding the following line in your catalina.bat file. Search for a using string and you will find the commands for echoing the CATALINA_HOME, BASE etc. Add this line just below them. echo Using CLASSPATH: %CLASSPATH% Raj Saini Barbara Post wrote: Hi, I use Tomcat 4.1.12, JDK 1.3.1, Windows NT4 SP6. My webapp uses a Windows custom dll which is called by a java class (native method). It worked with Tomcat 4.0.5 with modification of setclasspath.bat to include this dll in Tomcat's classpath and path, however it doesn't work anymore with Tomcat 4.1.12 : I have a blank string returned by this call. I cannot put this dll in Windows' classpath/path because of a version conflict. Thanks for any clue, I read Tomcat's .bat files but could not echo Tomcat's classpath in the startup window... so I feel really lost. Barbara -- 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] __ Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Double Tomcat!
Yes you can use as many as you want. Set the different CATALINA_BASE for each server. Create a conf, logs, work, webapps and temp directory for each CATALINA_BASE directory. copy the configration files in conf directory of each CATALINA_BASE. And change the ports of conenctors you are using in your server.xml. Also change the shutdown port. Deploy your applications in the webapps of each tomcat installation. Now you can start the tomcat with for each CATALINA_BASE Raj Vincent Berruchon wrote: Hello, is it possible to install two Tomcat server on the same machine, note that I use FreeBSD (4.6) and the agoal would be to have a development server and a production server? Got hints or tricks about that? Thanks -- 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]
Re: Is ajp13 connector running?
What is the URL you are using? Your Jk worker will only root the *.jsp requests to tomcat. Try changing your jkMount directive to: JkMount /* ajp13 Raj Marc wrote: Hi Raj, here is my workers.properties, it's located in $CATALINA_HOME/conf ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 and in my httpd.conf: ## Tomcat setup ## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta-tomcat-4.1.12/conf/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.12/logs/mod_jk.log JkLogLevel debug ## End Tomcat setup ## JkMount /*.jsp ajp13 (I've defined a Context path=... in my server.xml) Thanks Marc Raj Saini wrote: There must be some thing wrong with your worker.properties or the configuration of apache. Please post your worker.properties and relevent part of the apache configuration. Your apache configuration may be in mod_jk.conf which is generally included in http.conf. Raj Saini Marc Vila Pérez wrote: Hi!!! I'm using tomcat 4.1.12, apache 1.3.22 and jdk 1.4.1, on Linux Red Hat. I cannot connect to execute jsp pages via apache. I've configured tomcat and apache to connect them simultaneously. To use ajp13 protocol, I've uncommented the next connector on server.xml (and commented the default Coyote connector listening on port 8009, jk2, i think): !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=9/ When I start tomcat, using ./catalina.sh run, I can see this on the screen: [root@telemako bin]# ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/local/jdk (after 2 or 3 minutes ...) Oct 7, 2002 2:22:05 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 7, 2002 2:22:12 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 (after a few minutes more ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === (And this is repeated every few minutes ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === ... If I execute netstat: bash-2.05$ netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 1 telemako:33000 telemako:8009 SYN_SENT tcp0 0 telemako:telnet 217-126-67-42.uc.:62839 ESTABLISHED tcp0 0 telemako:1 217-126-67-42.uc.:61040 ESTABLISHED tcp0 0 telemako:telnet 217-126-67-42.uc.:60082 ESTABLISHED tcp0133 telemako:telnet 217-126-67-42.uc.:60410 ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 8 [ ] DGRAM1011462860 /dev/log unix 2 [ ] DGRAM1553906393 unix 2 [ ] DGRAM1553556776 unix 2 [ ] DGRAM1553481826 unix 2 [ ] DGRAM1011466541 unix 2 [ ] DGRAM1011466462 unix 2 [ ] DGRAM1011463525 bash-2.05$ Seems than the connector is listening on port 8009, but if I try to connect to a jsp page using apache (on port 80), after a lot of time I receive an 'Internal Server Error', apache receives the request, but cannot connect with tomcat, tries it a few times, and finaly returns the error. Am I using the correct connector? how can I know if it is running ok? anybody knows what is the problem?? Thank you all Bye! Marc
Re: Is ajp13 connector running?
Hi Marc, Can you see the JSP page in standalone Tomcat? Test if you can see the apge on port 8080. Raj Marc wrote: Hi Raj, I've defined an application on apache (without using virtual hosting (I've tried using it, with the same results)) with: DocumentRoot /var/www/html/ JkMount /*.jsp ajp13 There I've placed a jsp page, that just writes something in the browser. In my server.xml, I've defined a Context with docBase=/var/www/html and path= (the host is localhost) Marc Raj Saini wrote: What is the URL you are using? Your Jk worker will only root the *.jsp requests to tomcat. Try changing your jkMount directive to: JkMount /* ajp13 Raj Marc wrote: Hi Raj, here is my workers.properties, it's located in $CATALINA_HOME/conf ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 and in my httpd.conf: ## Tomcat setup ## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta-tomcat-4.1.12/conf/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.12/logs/mod_jk.log JkLogLevel debug ## End Tomcat setup ## JkMount /*.jsp ajp13 (I've defined a Context path=... in my server.xml) Thanks Marc Raj Saini wrote: There must be some thing wrong with your worker.properties or the configuration of apache. Please post your worker.properties and relevent part of the apache configuration. Your apache configuration may be in mod_jk.conf which is generally included in http.conf. Raj Saini Marc Vila Pérez wrote: Hi!!! I'm using tomcat 4.1.12, apache 1.3.22 and jdk 1.4.1, on Linux Red Hat. I cannot connect to execute jsp pages via apache. I've configured tomcat and apache to connect them simultaneously. To use ajp13 protocol, I've uncommented the next connector on server.xml (and commented the default Coyote connector listening on port 8009, jk2, i think): !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=9/ When I start tomcat, using ./catalina.sh run, I can see this on the screen: [root@telemako bin]# ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/local/jdk (after 2 or 3 minutes ...) Oct 7, 2002 2:22:05 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 7, 2002 2:22:12 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 (after a few minutes more ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === (And this is repeated every few minutes ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === ... If I execute netstat: bash-2.05$ netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 1 telemako:33000 telemako:8009 SYN_SENT tcp0 0 telemako:telnet 217-126-67-42.uc.:62839 ESTABLISHED tcp0 0 telemako:1 217-126-67-42.uc.:61040 ESTABLISHED tcp0 0 telemako:telnet 217-126-67-42.uc.:60082 ESTABLISHED tcp0133 telemako:telnet 217-126-67-42.uc.:60410 ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 8 [ ] DGRAM1011462860 /dev/log unix 2 [ ] DGRAM1553906393 unix 2 [ ] DGRAM1553556776 unix 2 [ ] DGRAM1553481826 unix 2 [ ] DGRAM1011466541 unix 2 [ ] DGRAM1011466462 unix 2 [ ] DGRAM1011463525 bash-2.05
Re: Is ajp13 connector running?
Hi Marc, I dont see any thing wrong with the snippts of your configuration files. I have my apache, tomcat integrated with mod_jk on solaris and Linux box as well. I have even more advanced where I load balance the tomcat by running different tomcat instances in production invironment. Try having a look in the logs of your tomcat. You may get some information. Also look in the mod_jk.log log file of the jk connectior. You can do a tail -f mod_jk.log and monitor the logs when you access the URL. You sould get some error there. You can also post your complete configuration files. I can try them on my server and check if I can find some thing. Raj Marc wrote: Yes, I can, and before configure ajp13, I could access to the page using apache on port 80 (I could see the page source, of course). Marc Raj Saini wrote: Hi Marc, Can you see the JSP page in standalone Tomcat? Test if you can see the apge on port 8080. Raj Marc wrote: Hi Raj, I've defined an application on apache (without using virtual hosting (I've tried using it, with the same results)) with: DocumentRoot /var/www/html/ JkMount /*.jsp ajp13 There I've placed a jsp page, that just writes something in the browser. In my server.xml, I've defined a Context with docBase=/var/www/html and path= (the host is localhost) Marc Raj Saini wrote: What is the URL you are using? Your Jk worker will only root the *.jsp requests to tomcat. Try changing your jkMount directive to: JkMount /* ajp13 Raj Marc wrote: Hi Raj, here is my workers.properties, it's located in $CATALINA_HOME/conf ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 and in my httpd.conf: ## Tomcat setup ## IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule JkWorkersFile /usr/local/jakarta-tomcat-4.1.12/conf/workers.properties JkLogFile /usr/local/jakarta-tomcat-4.1.12/logs/mod_jk.log JkLogLevel debug ## End Tomcat setup ## JkMount /*.jsp ajp13 (I've defined a Context path=... in my server.xml) Thanks Marc Raj Saini wrote: There must be some thing wrong with your worker.properties or the configuration of apache. Please post your worker.properties and relevent part of the apache configuration. Your apache configuration may be in mod_jk.conf which is generally included in http.conf. Raj Saini Marc Vila Pérez wrote: Hi!!! I'm using tomcat 4.1.12, apache 1.3.22 and jdk 1.4.1, on Linux Red Hat. I cannot connect to execute jsp pages via apache. I've configured tomcat and apache to connect them simultaneously. To use ajp13 protocol, I've uncommented the next connector on server.xml (and commented the default Coyote connector listening on port 8009, jk2, i think): !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=9/ When I start tomcat, using ./catalina.sh run, I can see this on the screen: [root@telemako bin]# ./catalina.sh run Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.12 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.12/temp Using JAVA_HOME: /usr/local/jdk (after 2 or 3 minutes ...) Oct 7, 2002 2:22:05 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 Starting service Tomcat-Standalone Apache Tomcat/4.1.12 Oct 7, 2002 2:22:12 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on port 8080 (after a few minutes more ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === (And this is repeated every few minutes ...) === Ajp13Connector active threads=6 java.lang.ThreadGroup[name=Ajp13Connector[8009],maxpri=10] Thread[Ajp13Connector[8009],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][0],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][1],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][2],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][3],5,Ajp13Connector[8009]] Thread[Ajp13Processor[8009][4],5,Ajp13Connector[8009]] === ... If I execute netstat: bash-2.05$ netstat Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 1 telemako:33000 telemako:8009 SYN_SENT tcp0 0 telemako:telnet 217-126
Re: tomcat 4.1.12 JDBC driver class 'null'
I experienced the same problem when I ported my application to 4.1.12. In my case the exception was about the null url. It is evident from the exception that the jdbc driver class is not loaded as it was set to null. Try changing the sequence of the parameter in the datasource defincation. Put your driver class parameter just after the factory and username and password at the end. Have a look on your classes.jar. Does the file have read permissions? Raj Saini This may be one cause, Robert Herold wrote: Thanks for the suggestion. I just tried the example JDBC configuration from the JNDI-howto, and unfortunately it still gets the same error. I am using tomcat standalone. Weird. Guess I'll stick with tomcat 4.0.x for now... -- bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] g]On Behalf Of Jake Tweer Sent: Tuesday, October 01, 2002 8:11 PM To: Tomcat Users List Subject: Re: tomcat 4.1.12 JDBC driver class 'null' I'm getting the same error with MySQL and I've seen posts for PostgreSQL, MySQL and Oracle. I have followed all suggestions with no luck except for one case - the example given in the JNDI - How To works for me. The example is using standalone Tomcat and that works. As soon as I use Apache/mod_webapp I get the exception Cannot load JDBC driver class 'null'. Robert Herold wrote: I've been happily using tomcat 4.0.4 for a while, and thought I'd upgrade to version 4.1.12. Alas, I cannot get tomcat to find my Oracle JDBC driver when I use 4.1.12. It worked fine in 4.0.4. Any ideas what might be wrong? My classes12.jar is in common/lib where it is supposed to be. It's the same file as I used under tomcat 4.0.4, so it is known to be good. I followed the configuration steps for setting up the JNDI Datasource very carefully. The exception I get is: Caused by: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107) ... 31 more My resource definition in server.xml is: DefaultContext debug=0 reloadable=true Resource name=jdbc/CotagesoftDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/CotagesoftDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuefred/value /parameter parameter namepassword/name valuefred/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namedriverName/name valuejdbc:oracle:thin:@localhost:1521:ctg/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /DefaultContext And it is referenced in web.xml with: resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-namejdbc/CotagesoftDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Any ideas on what to try would be appreciated. Thanks. -- bob -- Robert Herold Cotagesoft, Inc. 650 474 9013 x808 -- 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] -- 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]
Re: tomcat 4.1.12 JDBC driver class 'null'
Jake, You will need to put a defaulthost attribute in your engine defination. This is a bug in the server.xml and it was detacted long back ago. Dont know why it is not still corrected in the server.xml file. May be the warp connecter is no more actively developed. Your Engine tag should be:- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 defaulthost=prod_host I hope this will work. Cheers, Raj Jake Tweer wrote: Raj, Thanks for the tip - I tried your suggestion by moving the JNDI-How To example out of the standalone tomcat service and into the Tomcat-Apache service. Bear in mind that the example works Ok in tomcat standalone. The Tomcat-Apache service I am using is the default provided and works in all other ways. To that I added the virtual host and the context. In other words in the following sample, what I have added to the default Apache-Tomcat service is contained in and includes the Host tags. I am still getting the error. !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector ClassName=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / !-- Define the default virtual host -- Host name=prod_host debug=9 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=prod_host_log. suffix=.txt timestamp=true/ !-- test context -- 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 parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuejavausr/value /parameter parameter namepassword/name valuejavadud/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value /parameter /ResourceParams /Context !-- end test context -- /Host /Engine /Service /Server Raj Saini wrote: Hi jake, You woll need to define a context under a Tomcat-Apache service. I belive you are using the context defined in the Stand-Alone service. you must have a virtual host and your context under this virtual host. I hope this helps you. Raj Jake Tweer wrote: I'm getting the same error with MySQL and I've seen posts for PostgreSQL, MySQL and Oracle. I have followed all suggestions with no luck except for one case - the example given in the JNDI - How To works for me. The example is using standalone Tomcat and that works. As soon as I use Apache/mod_webapp I get the exception Cannot load JDBC driver class 'null'. Robert Herold wrote: I've been happily using tomcat 4.0.4 for a while, and thought I'd upgrade to version 4.1.12. Alas, I cannot get tomcat to find my Oracle JDBC driver when I use 4.1.12. It worked fine in 4.0.4. Any ideas what might be wrong? My classes12.jar is in common/lib where it is supposed to be. It's the same file as I used under tomcat 4.0.4, so it is known to be good. I followed the configuration steps for setting up the JNDI Datasource very carefully. The exception I get is: Caused by: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107) ... 31 more My resource definition in server.xml is: DefaultContext debug=0 reloadable=true Resource name=jdbc/CotagesoftDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/CotagesoftDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter
Re: tomcat 4.1.12 JDBC driver class 'null'
Yes, mod_jk is a better. warp is no more activly devloped. I also switched to mod_jk on 4.1.12. Raj Jake Tweer wrote: Raj, Thanks again but I am still getting the exception. I'll probably have to shelve working on this for the time being. Should I look at the mod_jk2 connector as an alternative? Raj Saini wrote: Jake, You will need to put a defaulthost attribute in your engine defination. This is a bug in the server.xml and it was detacted long back ago. Dont know why it is not still corrected in the server.xml file. May be the warp connecter is no more actively developed. Your Engine tag should be:- Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 defaulthost=prod_host I hope this will work. Cheers, Raj Jake Tweer wrote: Raj, Thanks for the tip - I tried your suggestion by moving the JNDI-How To example out of the standalone tomcat service and into the Tomcat-Apache service. Bear in mind that the example works Ok in tomcat standalone. The Tomcat-Apache service I am using is the default provided and works in all other ways. To that I added the virtual host and the context. In other words in the following sample, what I have added to the default Apache-Tomcat service is contained in and includes the Host tags. I am still getting the error. !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector ClassName=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ Engine className=org.apache.catalina.connector.warp.WarpEngine name=Apache debug=0 Logger className=org.apache.catalina.logger.FileLogger prefix=apache_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.MemoryRealm / !-- Define the default virtual host -- Host name=prod_host debug=9 appBase=webapps unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=prod_host_log. suffix=.txt timestamp=true/ !-- test context -- 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 parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value30/value /parameter parameter namemaxWait/name value1/value /parameter parameter nameusername/name valuejavausr/value /parameter parameter namepassword/name valuejavadud/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value /parameter /ResourceParams /Context !-- end test context -- /Host /Engine /Service /Server Raj Saini wrote: Hi jake, You woll need to define a context under a Tomcat-Apache service. I belive you are using the context defined in the Stand-Alone service. you must have a virtual host and your context under this virtual host. I hope this helps you. Raj Jake Tweer wrote: I'm getting the same error with MySQL and I've seen posts for PostgreSQL, MySQL and Oracle. I have followed all suggestions with no luck except for one case - the example given in the JNDI - How To works for me. The example is using standalone Tomcat and that works. As soon as I use Apache/mod_webapp I get the exception Cannot load JDBC driver class 'null'. Robert Herold wrote: I've been happily using tomcat 4.0.4 for a while, and thought I'd upgrade to version 4.1.12. Alas, I cannot get tomcat to find my Oracle JDBC driver when I use 4.1.12. It worked fine in 4.0.4. Any ideas what might be wrong? My classes12.jar is in common/lib where it is supposed to be. It's the same file as I used under tomcat 4.0.4, so it is known to be good. I followed the configuration steps for setting up the JNDI Datasource very carefully. The exception I get is: Caused by: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107) ... 31 more My resource definition in server.xml is: DefaultContext debug=0 reloadable=true Resource
Re: tomcat 4.1.12 JDBC driver class 'null'
There is an error in your datasource configureation. The DriveName element is changed to url in 4.1.12 parameter namedriverName/name valuejdbc:oracle:thin:@localhost:1521:ctg/value /parameter should be parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:ctg/value /parameter Raj Robert Herold wrote: I've been happily using tomcat 4.0.4 for a while, and thought I'd upgrade to version 4.1.12. Alas, I cannot get tomcat to find my Oracle JDBC driver when I use 4.1.12. It worked fine in 4.0.4. Any ideas what might be wrong? My classes12.jar is in common/lib where it is supposed to be. It's the same file as I used under tomcat 4.0.4, so it is known to be good. I followed the configuration steps for setting up the JNDI Datasource very carefully. The exception I get is: Caused by: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107) ... 31 more My resource definition in server.xml is: DefaultContext debug=0 reloadable=true Resource name=jdbc/CotagesoftDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/CotagesoftDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuefred/value /parameter parameter namepassword/name valuefred/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namedriverName/name valuejdbc:oracle:thin:@localhost:1521:ctg/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /DefaultContext And it is referenced in web.xml with: resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-namejdbc/CotagesoftDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Any ideas on what to try would be appreciated. Thanks. -- bob -- Robert Herold Cotagesoft, Inc. 650 474 9013 x808 -- 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]
Re: tomcat 4.1.12 JDBC driver class 'null'
Hi jake, You woll need to define a context under a Tomcat-Apache service. I belive you are using the context defined in the Stand-Alone service. you must have a virtual host and your context under this virtual host. I hope this helps you. Raj Jake Tweer wrote: I'm getting the same error with MySQL and I've seen posts for PostgreSQL, MySQL and Oracle. I have followed all suggestions with no luck except for one case - the example given in the JNDI - How To works for me. The example is using standalone Tomcat and that works. As soon as I use Apache/mod_webapp I get the exception Cannot load JDBC driver class 'null'. Robert Herold wrote: I've been happily using tomcat 4.0.4 for a while, and thought I'd upgrade to version 4.1.12. Alas, I cannot get tomcat to find my Oracle JDBC driver when I use 4.1.12. It worked fine in 4.0.4. Any ideas what might be wrong? My classes12.jar is in common/lib where it is supposed to be. It's the same file as I used under tomcat 4.0.4, so it is known to be good. I followed the configuration steps for setting up the JNDI Datasource very carefully. The exception I get is: Caused by: java.sql.SQLException: Cannot load JDBC driver class 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:529) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 12) at com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107) ... 31 more My resource definition in server.xml is: DefaultContext debug=0 reloadable=true Resource name=jdbc/CotagesoftDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/CotagesoftDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuefred/value /parameter parameter namepassword/name valuefred/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter namedriverName/name valuejdbc:oracle:thin:@localhost:1521:ctg/value /parameter parameter namemaxActive/name value20/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxWait/name value-1/value /parameter /ResourceParams /DefaultContext And it is referenced in web.xml with: resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-namejdbc/CotagesoftDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Any ideas on what to try would be appreciated. Thanks. -- bob -- Robert Herold Cotagesoft, Inc. 650 474 9013 x808 -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: excessive cpu use with 4.0.4
Hi, I am using the Tomcat 4.0.3 in a very big site. I have few hundereds of JSP, around 15 servlets, integrated with JBoss with my own framework (which consists around 500 class files. You can think of it a complete J2EE implementation of a commercial business application. Off late, I have been facing the huge memory usage by the tomcat and due to this very reason, I need to restart the tomcat every day. I have allocated 384 MB of maximum RAM to the tomcat. Since I did not profile my application, I cant say yet, which one is real culprit, tomcat and my application. I will report back my findings after profiling my application. Raj Saini Seb B wrote: Hi, I'm running a stand-alone Tomcat 4.0.4 (not using jsp, so no need to upgrade to 4.0.5) on Linux RedHat 7.3, with IBM's 1.3.1 jvm. There is very little static content to serve and the server doesn't have to listen on port 80, so I haven't tried learning how to configure it behind Apache. Everything works great in the lab, so I'm now experimenting in our production system (whose servers are running other servlet containers so far), behind a load balancer. On the last run, 4 of the java threads started taking all of the cpu. I stopped sending traffic to tomcat, and those 4 went on taking all the cpu they could (for several days). So it looked like they were stuck in some infinite loop somewhere. Of course, I suspect this would come from our code. I tried enabling all sorts of logging in our code, but couldn't get anything from the process. As a last resort, I sent the process a SEGV signal, which leads the jvm to print stack traces. All 4 threads (I knew their PID from ps/top) had the following stack trace: HttpProcessor[9090][44] (TID:0x100502B8, sys_thread_t:0x46DCDD98, state:R, native ID:0x10442) prio=5 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso r.java:1125) at java.lang.Thread.run(Thread.java:512) PID: 8013 None of the other HttpProcessor threads were on that same line (1125), all those I looked at were (as they should be I guess): HttpProcessor[9090][43] (TID:0x10050300, sys_thread_t:0x46DCD918, state:CW, native ID:0x10041) prio=5 at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor.await(HttpProces sor.java(Compiled Code)) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso r.java:1119) at java.lang.Thread.run(Thread.java:512) PID: 8012 So *if* the stack traces from the jvm are worthwhile, this would point to a tomcat problem. I'm posting to this list and not the developer list, as I'm wondering whether anyone has experienced such a problem before. This has happened in only one of my test runs, I don't know how reproduceable it will be. Also, this has been asked already, but I didn't see many answers: is there any sort of real-world benchmark of what load I can expect in such a set-up ? I understand it depends a lot on what the servlets do, so I'm wondering how big the biggest sites using tomcat are; John Turner mentioned 500k for his, is anyone doing anything bigger ? Thanks a lot, Seb -- 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]
Re: binary mod_webapp.so for solaris7?
I have the webapps and mod_jk connectors solaris 2.7. How can I put them on the server? I tried to send through mailing list but it is too big to put here. Raj David Bishop wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 See subject :-) Anyone have one of those? I was never able to get the module to load correctly with a self-compiled version, even with Solaris 8, but the binary modules seem to work fine, when I can get them. I am running Apache 1.3.26, Solaris 7 on an ultra 60, tomcat 4.0.4. Thanks *very* much. - -- A mouse is a device used to point at the xterm you want to type in. --Kim Alm, a.s.r -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE9lLcIEHLN/FXAbC0RAs5qAKDRS0k9JH1RYWVejGOZKZ5oJ6EngQCfXujH tesH8v2Al8zEGXEjzS/S08o= =AJT9 -END PGP SIGNATURE- -- 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]
Re: 4th day offline, getting desperate, please help
2002-09-30 11:34:02 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom 2002-09-30 11:34:02 StandardManager[/webdav]: Seeding of random number generator has been completed 2002-09-30 11:34:02 StandardWrapper[/webdav:default]: Loading container servlet default 2002-09-30 11:34:02 StandardWrapper[/webdav:invoker]: Loading container servlet invoker So it looks like it deploys the jars and classes for my Turbine app and I checked that templates images etc were there? Maybe it is a problem with Turbine on 4.1.12, it worked fine on 4.0.4 except for the IllegalStateException? There are no anomolies in the error.log for Apache2. I will post to the Turbine list. While i am here how do I disable the example servlet etc. I don't want folk to be able ot see thi son my site. David -Original Message- From: David Wynter [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 10:11 To: 'Tomcat Users List' Cc: Raj Saini Subject: RE: 4th day offline, getting desperate, please help Hi Raj, I can get www.roamware.com:8080/index.jsp which is the standard Tomcat installation. I had accidently removed the connector for port 8080. But I cannot get my WAR file to deploy, I get a 404 error when I hit www.roamware.com:8080/rwsite/servlet/rwsite/template/index.vm So I add a context within the default virtual host (which is set to unpackWARS=true and autoDeploy=true, but it does not do it!). The Context looks like this and it is placed just below the Root Context Context path= docBase=rwsite debug-0/ Just in case I need it i have a symbolic link from webapps/ROOT called rwsite that points to webapps/rwsite directory (Yes, I tried www.roamware.com:8080/servlet/rwsite/template/index.vm too, it doesn't work either) It is still the same server.xml I posted earlier, bu twith the 8080 connector added back in. Next step? David -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 09:22 To: [EMAIL PROTECTED] Subject: Re: 4th day offline, getting desperate, please help Hi, OK, I will help you. Stop doing any thing with your server. Mail me [EMAIL PROTECTED] I will do my best to help you out. Raj -- 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]
Re: (OT) Cannot see Localhost on Apache
Try there two things on DOS prompt of your PC. ping localhost ping 127.0.0.1 If you receive the ping response, it means you have your network installed properly. If you can not see the ping respone there must be some thing wrong with your network settings. You can also have a look on the apache error logs. See if you apache is accepting the browser request. Raj Geoffrey Khan wrote: John, I have Zone Alarm installed on my PC and it worked fine with Apache for a long time and I haven't changed any of the settings in this to prevent Apache from working. I've tried shutting down Zone Alarm, starting Apache and going to Localhost but still get a blank, white screen. I haven't changed any network settings in any shape or form or added any kind of hardware. I know Apache starts because I have a console window running saying Apache 1.3.26 running whenever I start it up (and it shows up in the Task Manager list when I do start it). Geoff -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 13:26 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache Did you install a firewall? Did you change your network settings in any way, shape or form? Add a cable modem, DSL router, or other network hardware? Do you have some sort of virus filter running on port 80? Are you sure Apache even starts? Apache works out of the box in a default install...there could be any number of other reasons why it doesn't serve pages, none of them related to the Apache config file. John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 7:05 AM To: [EMAIL PROTECTED] Subject: (OT) Cannot see Localhost on Apache Hello, Sorry for the off topic manner of this email but I am having trouble with my Apache server and was wondering if anyone on this list can help me? For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type http://localhost/ (or http://127.0.0.1/) in my browser and be able to see the directories with all my files in them and edit them accordingly. However, last week I started up Apache and opened a browser and typed Localhost but nothing happened! All I would get would be a white blank screen and if I typed in the address of a specific file within the directory I would get a Pager cannot be displayed error. I tested this in IE, Netscape and Mozilla (along with clearing the cache in each browser) and all of them were the same. I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that if I started with a newer version of Apache the problem would be eradicated and I would have a more up-to-date version of the server. This I have done, but still I cannot gain access to any of my files and still it gives me a blank white screen if I type Localhost and a Page cannot be displayed error message if I try and navigate to a specific file within the directory. I have scanned the Apache web site, trawled through the newsgroups, studied my config file indepth, but cannot see where the problem lies. Could someone please take a look at my config file and try to see why this is happening because as far as I can tell everything is fine and I haven't changed anything since the last time it worked OK? Please disregard the fact that I haven't loaded the PHP modules yet (and Coldfusion as well) as I will do this after I have managed to sort out the Localhost problem. Your help would be very much appreciated. Regards, Geoff Khan B.Sc (Hons) www.shining-path.com -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: (OT) Cannot see Localhost on Apache
Try telnetting to your apache server and open the access log and error log and watch the message there. telnet 127.0.0.1 80 If telnet connects to your server send a a get request get index.html you may not see the echo of your charachters on the console. But the apache should output some stuff. If you see thsi working, there is problem with your browser. Check your browser proxy settings. Raj Geoffrey Khan wrote: Michael, I pinged Localhost and got the message: Reply from 127.0.0.1: bytes=32 time10ms TTL64 I presume from this all is fine, as I have a reply? Geoff -Original Message- From: Kajen, Michael [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 13:31 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache HI, See if you can ping localhost. Maybe something happened to your dns settings. mk -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 7:05 AM To: [EMAIL PROTECTED] Subject: (OT) Cannot see Localhost on Apache Hello, Sorry for the off topic manner of this email but I am having trouble with my Apache server and was wondering if anyone on this list can help me? For about a year I had Apache 1.3.20 set-up on my Windows 98SE machine running PHP 4.1.1 (and Coldfusion) on it with no problems. I would type http://localhost/ http://localhost/ (or http://127.0.0.1/ http://127.0.0.1/ ) in my browser and be able to see the directories with all my files in them and edit them accordingly. However, last week I started up Apache and opened a browser and typed Localhost but nothing happened! All I would get would be a white blank screen and if I typed in the address of a specific file within the directory I would get a Pager cannot be displayed error. I tested this in IE, Netscape and Mozilla (along with clearing the cache in each browser) and all of them were the same. I decided to uninstall Apache 1.3.20 and upgrade to 1.3.26 figuring that if I started with a newer version of Apache the problem would be eradicated and I would have a more up-to-date version of the server. This I have done, but still I cannot gain access to any of my files and still it gives me a blank white screen if I type Localhost and a Page cannot be displayed error message if I try and navigate to a specific file within the directory. I have scanned the Apache web site, trawled through the newsgroups, studied my config file indepth, but cannot see where the problem lies. Could someone please take a look at my config file and try to see why this is happening because as far as I can tell everything is fine and I haven't changed anything since the last time it worked OK? Please disregard the fact that I haven't loaded the PHP modules yet (and Coldfusion as well) as I will do this after I have managed to sort out the Localhost problem. Your help would be very much appreciated. Regards, Geoff Khan B.Sc (Hons) http://www.shining-path.com www.shining-path.com -- 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]
Re: (OT) Cannot see Localhost on Apache
There is nothing wrong with the the apache Installation. telnet to port 80 shows that apache is configured properly and working. Few things to check are:- Check the hosts file int he window directory. See if you have setup any hosts in the host files. Check proxy setting of your browser. Do you have a LAN card installed on your PC? If yest what is the host name you have set in your LAN settings? There is a problem with network settings. Browser is not sending the correct hostname to the server and therefore you dont see any thing. THe telnet shows that it got the index.html and other image files. Raj Your browser proxy setting. Geoffrey Khan wrote: Well, that is what I'll do - reinstall Apache. However, as I said previously, this whole situation arose due to Apache not showing the Localhost directory. It was working fine for over a year on this PC and I didn't change ANY of the settings or add any hardware prior to it's not working. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:36 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, we're going around in circles. There are a couple of issues here. - if ServerName in httpd.conf is 127.0.0.1, then that is what you put in the URL - 127.0.0.1 = localhost, on every computer in the world, it's a standard - do you have a hosts file or some other DNS setting that is resolving jk.mshome.net to 127.0.0.1? Basically, things have to match. If jk.mshome.net = 127.0.0.1, then jk.mshome.net should be your ServerName in httpd.conf. My advice is to reinstall Apache, and don't answer _anything_ when asked for hostname, IP address, or anything else. Let the installer figure that stuff out on its own. You can't just type hostnames willy-nilly, they have to resolve correctly for services that are looking for them to work correctly. Since jk.mshome.net does not resolve publicly, either set up DNS on your LAN or a local hosts file on your PC to resolve the name. Otherwise, don't use it anywhere, in any configuration, because it won't work. Typing ping localhost should return an IP address of 127.0.0.1. Typing ping jk.mshome.net should return nothing. Apache should be set to defaults, across the board (localhost). John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:23 AM To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache I've checked the config file and the Server Name is 127.0.0.1, so I don't know why it says jk.mshome.net when I try to ping Localhost. I've attache my config file again. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:15 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, that's a problem. I don't have your httpd.conf any more, but there shouldn't be any hostnames in there whatsoever if all you are doing is accessing localhost. Instead of hostnames, it should say localhost. John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:07 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: (OT) Cannot see Localhost on Apache Raj, I have pinged Localhost and 127.0.0.1 and have got responses. However, I did notice that when I started to ping Localhost it began with the message: Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data: jk.mshome.net is/was what I called my site when first installing Apache 1.3.26 - it asks you what you want to call the server, etc when you first install it. I have since changed it to shining-path.com in the Apache config file. Maybe this is a problem?? I have checked the Apache error log and there are no errors reported. Geoff -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 13:54 To: Tomcat Users List Subject: Re: (OT) Cannot see Localhost on Apache Try there two things on DOS prompt of your PC. ping localhost ping 127.0.0.1 If you receive the ping response, it means you have your network installed properly. If you can not see the ping respone there must be some thing wrong with your network settings. You can also have a look on the apache error logs. See if you apache is accepting the browser request. Raj Geoffrey Khan wrote: John, I have Zone Alarm installed on my PC and it worked fine with Apache for a long time and I haven't changed any of the settings in this to prevent Apache from working. I've tried shutting down Zone Alarm, starting Apache and going to Localhost but still get a blank, white screen. I haven't changed any network settings in any shape or form or added any kind of hardware. I know Apache starts because I have a console window running saying Apache 1.3.26 running whenever I start it up (and it shows up in the Task Manager list when I
Re: (OT) Cannot see Localhost on Apache
it is better to re-install your networks (the TCP/IP stack) then re-installing the apache. Apache can not change the behaviour of the ping commonad. It should be some thing to do with your hostname in the network settings or in the hosts file in your windoes directory. Raj Geoffrey Khan wrote: I pinged jk.mshome.net and the IP address is one I recognise. I'll just uninstall and reinstall Apache. Thanks for your help anyway. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:51 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache I won't debate you. You mentioned that you entered jk.mshome.net when the installer asked. That's fine, but that means that jk.mshome.net has to work. By work I mean resolve correctly and Apache has to be expecting requests for that hostname. If Apache is set to look for localhost, and instead sees a request for jk.mshome.net, it won't work. Conversely, if Apache is set to look for jk.mshome.net but instead receives requests for localhost or 127.0.0.1, it won't work then, either. As I said, things have to match. If a previous version handled things differently, that's something that was probably resolved in later versions (which you are using now), for better or worse. John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:44 AM To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache Well, that is what I'll do - reinstall Apache. However, as I said previously, this whole situation arose due to Apache not showing the Localhost directory. It was working fine for over a year on this PC and I didn't change ANY of the settings or add any hardware prior to it's not working. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:36 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, we're going around in circles. There are a couple of issues here. - if ServerName in httpd.conf is 127.0.0.1, then that is what you put in the URL - 127.0.0.1 = localhost, on every computer in the world, it's a standard - do you have a hosts file or some other DNS setting that is resolving jk.mshome.net to 127.0.0.1? Basically, things have to match. If jk.mshome.net = 127.0.0.1, then jk.mshome.net should be your ServerName in httpd.conf. My advice is to reinstall Apache, and don't answer _anything_ when asked for hostname, IP address, or anything else. Let the installer figure that stuff out on its own. You can't just type hostnames willy-nilly, they have to resolve correctly for services that are looking for them to work correctly. Since jk.mshome.net does not resolve publicly, either set up DNS on your LAN or a local hosts file on your PC to resolve the name. Otherwise, don't use it anywhere, in any configuration, because it won't work. Typing ping localhost should return an IP address of 127.0.0.1. Typing ping jk.mshome.net should return nothing. Apache should be set to defaults, across the board (localhost). John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:23 AM To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache I've checked the config file and the Server Name is 127.0.0.1, so I don't know why it says jk.mshome.net when I try to ping Localhost. I've attache my config file again. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:15 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, that's a problem. I don't have your httpd.conf any more, but there shouldn't be any hostnames in there whatsoever if all you are doing is accessing localhost. Instead of hostnames, it should say localhost. John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:07 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: (OT) Cannot see Localhost on Apache Raj, I have pinged Localhost and 127.0.0.1 and have got responses. However, I did notice that when I started to ping Localhost it began with the message: Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data: jk.mshome.net is/was what I called my site when first installing Apache 1.3.26 - it asks you what you want to call the server, etc when you first install it. I have since changed it to shining-path.com in the Apache config file. Maybe this is a problem?? I have checked the Apache error log and there are no errors reported. Geoff -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 13:54 To: Tomcat Users List Subject: Re: (OT) Cannot see Localhost on Apache Try there two things on DOS prompt of your PC. ping localhost ping 127.0.0.1 If you receive the ping response, it means you
Re: (OT) Cannot see Localhost on Apache
yes, that is where the trouble start. Are you using this card for Internet access? You can try re-installing the network. I can certainly tell you now that this is the problem of your network nothing else. If you can remove your card and network setting, try installing only dialup adapter. There is certainly some thing wrong with your network. Check for some virus attack. That may also be a possibitiy. Raj Geoffrey Khan wrote: Raj, I checked the HOSTS.sam file in the Windows directory and 127.0.0.1 Localhost is listed and nothing else. I do not have any Proxy server settings set-up (and didn't previously when Apache was working fine). I have a LAN card installed on this PC - the computer name is JK and the Workgroup is MSHOME. This is obviously where Apache got the jk.mshome.net configuration from. Geoff -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:59 To: Tomcat Users List Subject: Re: (OT) Cannot see Localhost on Apache There is nothing wrong with the the apache Installation. telnet to port 80 shows that apache is configured properly and working. Few things to check are:- Check the hosts file int he window directory. See if you have setup any hosts in the host files. Check proxy setting of your browser. Do you have a LAN card installed on your PC? If yest what is the host name you have set in your LAN settings? There is a problem with network settings. Browser is not sending the correct hostname to the server and therefore you dont see any thing. THe telnet shows that it got the index.html and other image files. Raj Your browser proxy setting. Geoffrey Khan wrote: Well, that is what I'll do - reinstall Apache. However, as I said previously, this whole situation arose due to Apache not showing the Localhost directory. It was working fine for over a year on this PC and I didn't change ANY of the settings or add any hardware prior to it's not working. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:36 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, we're going around in circles. There are a couple of issues here. - if ServerName in httpd.conf is 127.0.0.1, then that is what you put in the URL - 127.0.0.1 = localhost, on every computer in the world, it's a standard - do you have a hosts file or some other DNS setting that is resolving jk.mshome.net to 127.0.0.1? Basically, things have to match. If jk.mshome.net = 127.0.0.1, then jk.mshome.net should be your ServerName in httpd.conf. My advice is to reinstall Apache, and don't answer _anything_ when asked for hostname, IP address, or anything else. Let the installer figure that stuff out on its own. You can't just type hostnames willy-nilly, they have to resolve correctly for services that are looking for them to work correctly. Since jk.mshome.net does not resolve publicly, either set up DNS on your LAN or a local hosts file on your PC to resolve the name. Otherwise, don't use it anywhere, in any configuration, because it won't work. Typing ping localhost should return an IP address of 127.0.0.1. Typing ping jk.mshome.net should return nothing. Apache should be set to defaults, across the board (localhost). John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:23 AM To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache I've checked the config file and the Server Name is 127.0.0.1, so I don't know why it says jk.mshome.net when I try to ping Localhost. I've attache my config file again. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:15 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, that's a problem. I don't have your httpd.conf any more, but there shouldn't be any hostnames in there whatsoever if all you are doing is accessing localhost. Instead of hostnames, it should say localhost. John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:07 AM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: (OT) Cannot see Localhost on Apache Raj, I have pinged Localhost and 127.0.0.1 and have got responses. However, I did notice that when I started to ping Localhost it began with the message: Pinging jk.mshome.net [127.0.0.1] with 32 bytes of data: jk.mshome.net is/was what I called my site when first installing Apache 1.3.26 - it asks you what you want to call the server, etc when you first install it. I have since changed it to shining-path.com in the Apache config file. Maybe this is a problem?? I have checked the Apache error log and there are no errors reported. Geoff -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 13
Re: (OT) Cannot see Localhost on Apache
Run the following command on Dos prompt ipconfig Do you see an IP adress apart from 127.0.0.1? If you see some thing like 192... or 10.. try accessing your application by enterging this addess in ur browser. However, your network setting shows that your network is missconfigured. Your jk.mshome.net should have returned a private IP and not the localhost. I strongly recommed to run a virus scanner and re-install your network. This problem is related to network and not apache. Raj Geoffrey Khan wrote: Yes, I am using this PC for internet access. Basically, I have an XP PC downstairs which connects directly to the net (and is the master PC in the network) and this one with the Apache server on it is connected as the slave. I did think I may have a virus, but haven't run a check yet because it takes so long - I mean REALLY long. -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 15:32 To: Tomcat Users List Subject: Re: (OT) Cannot see Localhost on Apache yes, that is where the trouble start. Are you using this card for Internet access? You can try re-installing the network. I can certainly tell you now that this is the problem of your network nothing else. If you can remove your card and network setting, try installing only dialup adapter. There is certainly some thing wrong with your network. Check for some virus attack. That may also be a possibitiy. Raj Geoffrey Khan wrote: Raj, I checked the HOSTS.sam file in the Windows directory and 127.0.0.1 Localhost is listed and nothing else. I do not have any Proxy server settings set-up (and didn't previously when Apache was working fine). I have a LAN card installed on this PC - the computer name is JK and the Workgroup is MSHOME. This is obviously where Apache got the jk.mshome.net configuration from. Geoff -Original Message- From: Raj Saini [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:59 To: Tomcat Users List Subject: Re: (OT) Cannot see Localhost on Apache There is nothing wrong with the the apache Installation. telnet to port 80 shows that apache is configured properly and working. Few things to check are:- Check the hosts file int he window directory. See if you have setup any hosts in the host files. Check proxy setting of your browser. Do you have a LAN card installed on your PC? If yest what is the host name you have set in your LAN settings? There is a problem with network settings. Browser is not sending the correct hostname to the server and therefore you dont see any thing. THe telnet shows that it got the index.html and other image files. Raj Your browser proxy setting. Geoffrey Khan wrote: Well, that is what I'll do - reinstall Apache. However, as I said previously, this whole situation arose due to Apache not showing the Localhost directory. It was working fine for over a year on this PC and I didn't change ANY of the settings or add any hardware prior to it's not working. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:36 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, we're going around in circles. There are a couple of issues here. - if ServerName in httpd.conf is 127.0.0.1, then that is what you put in the URL - 127.0.0.1 = localhost, on every computer in the world, it's a standard - do you have a hosts file or some other DNS setting that is resolving jk.mshome.net to 127.0.0.1? Basically, things have to match. If jk.mshome.net = 127.0.0.1, then jk.mshome.net should be your ServerName in httpd.conf. My advice is to reinstall Apache, and don't answer _anything_ when asked for hostname, IP address, or anything else. Let the installer figure that stuff out on its own. You can't just type hostnames willy-nilly, they have to resolve correctly for services that are looking for them to work correctly. Since jk.mshome.net does not resolve publicly, either set up DNS on your LAN or a local hosts file on your PC to resolve the name. Otherwise, don't use it anywhere, in any configuration, because it won't work. Typing ping localhost should return an IP address of 127.0.0.1. Typing ping jk.mshome.net should return nothing. Apache should be set to defaults, across the board (localhost). John -Original Message- From: Geoffrey Khan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:23 AM To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache I've checked the config file and the Server Name is 127.0.0.1, so I don't know why it says jk.mshome.net when I try to ping Localhost. I've attache my config file again. -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 14:15 To: 'Tomcat Users List' Subject: RE: (OT) Cannot see Localhost on Apache OK, that's a problem. I don't have your httpd.conf any more
Re: Problem with mod_jk.so
I had the same proplem on Redhat 7.2. I have compiled from source and it worked. Raj Turner, John wrote: Which one did you download? EAPI or no EAPI? John -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 12:27 PM To: Tomcat Users List Subject: Problem with mod_jk.so I downloaded the binary of mod_jk.so from Jakarta's downloads in /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/ i386. I am running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux release 7.1 (Seawolf). The binary is compiled for 7.2, however. That may explain the following error when trying to start Apache: [root@dev bin]# ./apachectl configtest Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf: Cannot load /usr/local/apache-new/libexec/mod_jk.so into server: /usr/local/apache-new/libexec/mod_jk.so: undefined symbol: ap_ctx_get Any ideas? Do I need to upgrade gcc, possibly? What do the binaries rely upon? Thanks in advance, Ben Ricker -- Ben Ricker [EMAIL PROTECTED] Wellinx.com -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: how to integrate tomcat with apache
It looks your host is not a public one. Your URLs are not accessible. Try if you can access your host from out of your local network. How are you integrating with Apache? Are you using AJP connector or Warp conenctor or proxy? Post the complete information for people to help you. Raj Saini - Original Message - From: micael [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, September 27, 2002 7:01 AM Subject: RE: how to integrate tomcat with apache Tried to help, but discovered neither url worked. At 12:53 AM 9/27/2002 -0500, you wrote: On Thu, 26 Sep 2002, Anup Ray wrote: I did not get any response. so I am reposting it. Please help me: Anup I am a newbie in tomcat. I installed tomcat in Solaris and configured it at port 8090. Now I want to integrate it with apache ssl web server working with port 443 in the same server and get a spellcheck application working. Now with tomcat spellcheck is working as you see here: http://u10-3:8090/jspellhtml/test.html.org---click spellcheck But when it is accessed via apache spellcheck does not work as you see here: https://u10-3/jspellhtml/test.html.org --click spellcheck It is giving error: 405 Method not allowed. Could any body help me out. Thanks, anup ray Well, I didn't respond to your post because you gave us basically no information to go on. That's now the way to go if you'd like people to try to help you. As a first measure, I suggest you check the list archives for similar problems, and see what kinds of things have helped in those situations, including what information you need to provide so people can help troubleshoot it. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.12 memory leak
I am experiencing the same problem with tomcat 4.0.3. I have my JVM memory setting as -Xms=32 -Xmx=384 and running the tomcat on Sun Solaris 2.7, integrated with Apache 1.3.x through warp connector. I have a JSP page monitoring the memory consumption at http://www.emerging-trade.pt/servlets/memory.jsp, The memory consumption pattern of the JSP shows the GC runs as you can see the increase/decerece in the free memory of the current heap size. Raj Saini Raj Saini - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 2:29 PM Subject: Re: Tomcat 4.1.12 memory leak Each request allocates memory. (And relinquishes accordingly) The garbage collector runs when it feels like it should. The JVM will continually suck up memory until it reaches its startup parameters. (-mx ...) Once a JVM takes memory from the OS - it does not release it to the OS - it only releases it to its own memory heap. Ing. Damiano Bolla wrote: System: Linux redhat 7.2 Java: /usr/local/j2sdk1.3.1 Tomcat 4.1.12 To reproduce the behaviour you install the 4.1.12 distribution, set the JAVA_HOME run startup.sh and then keep refreshing the homepage http://localhost:8080/ If you monitor the memory usage using top and switching it into display memory usage (Capital M) you sull see tipically something like 22824 22832 22840 23576 23676 23684 23904 23908 23934 23938 . This is the SIZE field of the top command. The point is that it never goes down and eventually you run very slowly. Any idea ? Ah, the same behaviour is with jdk 1.4.1 Damiano -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.1.12 memory leak, still
I also did a small test where I was calling a simple servlet in a loop. The only resource used in the servlet was a random number generator. The tomcat crashed after running few hours. I used the tomcat 4.1.10 for this. Though I did this test on a very small machine (Intel 166Mhz with 128 MB RAM), but the real reason of the crash was the insufficent memory. Tomcat had used all the physical and the swap file size grown upto 300 MB. Since there was no enough space on the file system and swap file size could not be increased, Tomcat crashed eventually. I attach the servlet code for you evaluation. Raj Saini - Original Message - From: Ing. Damiano Bolla [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 3:14 PM Subject: Re: Tomcat 4.1.12 memory leak, still I did two more test, here are the results. At 09.50 26/09/2002 -0400, you wrote: you can easily test it out by setting JAVA_OPTS='-Xmx=64M' Did set the above before starting tomcat and had the folowing results. This is the value of SIZE of top 22684 22692 22700 23560 23908 23960 23980 24040 24170 24328 24432 24468 24492 24552 24572 24704 24760 24768 24788 Always reloading the same page (the default page) I then changed JAVA_OPTS='-Xmx=24M' and I still had an increasing result 22848 23576 23592 23804 23836 23896 23972 23992 24080 24152 And I must say that if I keep reloading it will keep increasing. It is a very simple test to do, are you shure that you have the SIZE number decreasing sometimes ? It chews little ram at the time so if you have 1Gb ram you notice it only if you really look at it. I've ran extensive load testing with 4.1.10 w/o any problems. Haven't done it with 4.1.12, but hopefully it's not a new bug, since the release notes don't list anything that might create a new bug. peter Ing. Damiano Bolla wrote: Good explanation but it does not solve the problem. Let me try to be clear. - What I am doing is reloading always the same page. - What I see is an ever increasing consumption of memory. Really why should the JVM want more and more ram ? In any case if you keep reloading, this ever increasing consumption eventually will eat all your ram. Whatever is the explanation it does not seem right to me, is there a way to fix it ? Damiano -- 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] HttpProxyServlet.java Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JK2: Mod_jk2 Isapi_redirector2.dll
mod_jk2 - me to isapi_redirector2.dll - no - Original Message - From: Short, Dave [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 3:55 PM Subject: RE: JK2: Mod_jk2 Isapi_redirector2.dll mod_jk2 - me too isapi_redirector2.dll - soon -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: September 26, 2002 1:08 AM To: 'tomcat-user' Subject: JK2: Mod_jk2 Isapi_redirector2.dll Hola a todos: We ( jk2 developers ) need some numbers about people using mod_jk2 and isapi_redirector2.dll, simply reply to this message with a me too, you can in addition outline problems you are having with this new code, we will try to solve them before the first beta ( later on october ) .. Thanks all in advance.. Saludos , Ignacio J. Ortega -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Admin tool Setup
Hi, Tomcat should run for you outof box. You dont need to make any changes to run the examples. There is no tomcat4.conf in the conf directory. And which java pages you are including in that direcotry? Raj Saini - Original Message - From: Medha Parthasarathy Iyengar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 4:18 PM Subject: Tomcat Admin tool Setup Hi, I am learner java and tomcat. I have installed tomcat 4.1.10 and java jdk1.4.1. I have changed the tomcat4.conf in /var/tomcat4/conf/tomcat4.conf to include the correct page of java. On my brower, the system comes and stop here http://localhost:8080/index.jsp When i try to click on Tomcat Administration or Tomcat Manager, It is asking for userid and password. As suggest and i have made changes in the tomcat-users.xml and the same look as under : === ?xml version='1.0' encoding='utf-8'? === STill the password has not got set ot the above in the tomcat-user.xml. Assist me in getting the web administration and manager tool to work. Regards Medha -- To unsubscribe, e-mail: For additional commands, e-mail: tsdok -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: can javascript execute a servlet?
Yes, you can call a servlet from the javascript but only in Mozilla 1.x (And mozilla based browser) and IE6. You can use the XMLHttpRequest object to make HTTP calls. Please refer the http://www.mozilla.org/xmlextras/ Raj - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 4:13 PM Subject: AW: can javascript execute a servlet? This has already been answered the last time you asked. (Last Friday) Just reposting the question is not a good idea, as you may get the same result as last time. If you want a different answer you should at least indicate that you tried that solution and it didn't work for you. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 23. September 2002 16:15 An: [EMAIL PROTECTED] Betreff: can javascript execute a servlet? i don't want the user's screen to REFRESH each time they click a servlet inside an A tag. Can Javascript execute a servlet? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] tsdok -- 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]
Re: Tomcat Admin tool Setup
Hi, It is fairly simple. You dont need to do much to make your Admin application to work. In your tomcat-user.xml file add a admin role (without quotes). You can copy an existing role and element. There are two existing roles, role1 and tomcat. There are also three existing users i.e role1, tomcat, and both. Add the admin role to any of there users. You must chage your password to make your application secure. When tomcat asks for the username password, enter the name and password of the user with admin role as you defined above. You should see your admin application working. If you have already messed up with you installation you can make a fresh install and do the above changes. Raj Saini - Original Message - From: Medha Parthasarathy Iyengar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 4:18 PM Subject: Tomcat Admin tool Setup Hi, I am learner java and tomcat. I have installed tomcat 4.1.10 and java jdk1.4.1. I have changed the tomcat4.conf in /var/tomcat4/conf/tomcat4.conf to include the correct page of java. On my brower, the system comes and stop here http://localhost:8080/index.jsp When i try to click on Tomcat Administration or Tomcat Manager, It is asking for userid and password. As suggest and i have made changes in the tomcat-users.xml and the same look as under : === ?xml version='1.0' encoding='utf-8'? === STill the password has not got set ot the above in the tomcat-user.xml. Assist me in getting the web administration and manager tool to work. Regards Medha -- To unsubscribe, e-mail: For additional commands, e-mail: tsdok -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Admin tool Setup
Hi, Tomcat should run for you outof box. You dont need to make any changes to run the examples. There is no tomcat4.conf in the conf directory. And which java pages you are including in that direcotry? Raj Saini - Original Message - From: Medha Parthasarathy Iyengar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 4:18 PM Subject: Tomcat Admin tool Setup Hi, I am learner java and tomcat. I have installed tomcat 4.1.10 and java jdk1.4.1. I have changed the tomcat4.conf in /var/tomcat4/conf/tomcat4.conf to include the correct page of java. On my brower, the system comes and stop here http://localhost:8080/index.jsp When i try to click on Tomcat Administration or Tomcat Manager, It is asking for userid and password. As suggest and i have made changes in the tomcat-users.xml and the same look as under : === ?xml version='1.0' encoding='utf-8'? === STill the password has not got set ot the above in the tomcat-user.xml. Assist me in getting the web administration and manager tool to work. Regards Medha -- To unsubscribe, e-mail: For additional commands, e-mail: tsdok -- 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]
Re: can javascript execute a servlet?
Yes, you can call a servlet from the javascript but only in Mozilla 1.x (And mozilla based browser) and IE6. You can use the XMLHttpRequest object to make HTTP calls. Please refer the http://www.mozilla.org/xmlextras/ Raj - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 4:13 PM Subject: AW: can javascript execute a servlet? This has already been answered the last time you asked. (Last Friday) Just reposting the question is not a good idea, as you may get the same result as last time. If you want a different answer you should at least indicate that you tried that solution and it didn't work for you. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 23. September 2002 16:15 An: [EMAIL PROTECTED] Betreff: can javascript execute a servlet? i don't want the user's screen to REFRESH each time they click a servlet inside an A tag. Can Javascript execute a servlet? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] tsdok -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Email - JavaMail Advice.
Hi, The one solution I suggest is to using a messaging product like JbossMQ or OpenJMS. You you web application collect the data of the mail and wrap it into an object and send it to the JMS server. Your web application will be free to do another work now. You can have a Message Drive Bean (MDB) or async client to the JMS. As and when the mail message will arive the MDB or the Async client will automatically pick this up and send it to any server. You can load balance your web application just to collect the the mail information and not to sit in a tight loop for processing the mails. I am using this for a Trading system where the order execution messages are mailed to user. The advantage here is if you have a lot of mail to send they will be put in a queue and you application will always be available for doing the core work. In my opinion, this should be the best solution for your problem Raj Saini - Original Message - From: Alex Wallace [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 23, 2002 6:22 PM Subject: Tomcat Email - JavaMail Advice. I need to make a web app that will notify and monitor activity to users by email, and potentially thousands of users (therefor emails). I want to ask for advice as to how to handle this. Should the web app generate all the emails? May be use another machine as a mail server (linux with exim?), but have the web app generate them? Have the web app just insert all emails to be sent in a database table and have a separate application monitor the table or have trigers in the db server (postgresql) that will launc the app (java?) that will send the emails? As far as JavaMail, i did a small test with the code in the example in tomcat (EmailServlet), I tried to send 1000 emails to a server of mine, using localhost as the smtp server, and around the 70th email, the app complained about a nested error, the localhost could not be contacted, connection refused, etc. My code is very simplistic, and I only did a for loop to try to send the same email a thousand times to the same host. Evidently this doesn't work. I'm very new to this, so could someone give me some advice on how to send large amounts of email? Currently using linux (debian woody) with exim. Advise in all aspects of this email is greatly appreciated. Thank you in advance! -- 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]
Web application deployment with .xml files with multiple virtual hosts
Hi, I am using Tomcat 4.1.10. I integrated with Apache 1.3.x. I have multiple virtual hosts configured on tomcat. Tomcat 4.1.10 have a feature where we can deploy an application by coping a .xml file in with webapps directory. There are examples of admin and maanger applications. I want to deploy the applications with the .xml file with multiple virtual hosts and integrate with apache. In the server.xml file contexts related to a virtual host are created under that particular virtual host. How this can be achieved with .xml file. I feel, by default the applications deployed from .xml files are assocaited with the defaulthost. Is there a way to associate these applications to a virtual host other then default virtual hosts? Thanks Raj Saini
Application .xml context and multiple virtual hosts
Hi, I am using Tomcat 4.1.10. I integrated with Apache 1.3.x. I have multiple virtual hosts configured on tomcat. Tomcat 4.1.10 have a feature where we can deploy an application by coping a .xml file in with webapps directory. There are examples of admin and maanger applications. I want to deploy the applications with the .xml file with multiple virtual hosts and integrate with apache. In the server.xml file contexts related to a virtual host are created under that particular virtual host. How this can be achieved with .xml file. I feel, by default the applications deployed from .xml files are assocaited with the defaulthost. Is there a way to associate these applications to a virtual host other then default virtual hosts? Thanks Raj Saini -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]