SSL Session x Non SSL Session Problem
Please, Does anybody know anything about the problem below !!! I can't share an session object that was instatiated on a SSL connection with a NON SSL connection. I am trying to authenticate users using a SSL connection and after the authentication I forward the request to an Non-SSL connection but the session object is invalidated. How can I solve this problem ? Thanks in advance, Junior Don't E-Mail, ZipMail! http://www.zipmail.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Howto add shared libs to tomcat's classpath?
Hi, There should be an easy way to extend tomcats classpath. I disagree ;) Tomcat should support the servlet spec, which it does. The servlet spec says your webapp should be a war containing all the jars. You would have to duplicate the jars in that case. Tomcat is nice enough to also let you deploy an exploded war on disk. In that case, you can symlink to the jars (you don't have to copy) from the WEB-INF/lib directory of your webapp, or from tomcat's common/lib directory if more than one app requires the same jar. (I'm assuming you're using tomcat 4.x here when describing the above directories). The documentation on class-loading is good: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html From experience, I would caution against various scripts modifying the tomcat startup scripts to reference external jars. It's a slippery slope... Just my $.02 ;) Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Load balancing problem
The machines that get the much load are web01, web02, web03, web04 Jean-Christophe Rioux Shapira, Yoav wrote: Hi, Is it web10 and ajp13 getting all the load? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jean-Christophe Rioux [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: Load balancing problem We got mod_jk working and configuration seem ok. lbfactor is the same for the 10 servers. The problem is that the load is not distribute evenly to all the server. 1 or 2 server seem to be receiving all the load. Does I miss something in the configuration? Thanks for your help Jean-Christophe Rioux worker.web01.port= worker.web01.host=web01 worker.web01.type=ajp13 worker.web01.lbfactor=1 worker.web01.cachesize=30 worker.web02.port= worker.web02.host=web02 worker.web02.type=ajp13 worker.web02.lbfactor=1 worker.web02.cachesize=30 worker.web03.port= worker.web03.host=web03 worker.web03.type=ajp13 worker.web03.lbfactor=1 worker.web03.cachesize=30 worker.web04.port= worker.web04.host=web04 worker.web04.type=ajp13 worker.web04.lbfactor=1 worker.web04.cachesize=30 worker.web05.port= worker.web05.host=web05 worker.web05.type=ajp13 worker.web05.lbfactor=1 worker.web05.cachesize=30 worker.web06.port= worker.web06.host=web06 worker.web06.type=ajp13 worker.web06.lbfactor=1 worker.web06.cachesize=30 worker.web07.port= worker.web07.host=web07 worker.web07.type=ajp13 worker.web07.lbfactor=1 worker.web07.cachesize=30 worker.web08.port= worker.web08.host=web08 worker.web08.type=ajp13 worker.web08.lbfactor=1 worker.web08.cachesize=30 worker.web09.port= worker.web09.host=web09 worker.web09.type=ajp13 worker.web09.lbfactor=1 worker.web09.cachesize=30 worker.web10.port= worker.web10.host=web10 worker.web10.type=ajp13 worker.web10.lbfactor=1 worker.web10.cachesize=30 worker.web11.port= worker.web11.host=web11 worker.web11.type=ajp13 worker.web11.lbfactor=1 worker.web11.cachesize=30 worker.ajp13.port= worker.ajp13.host=localhost worker.ajp13.type=ajp13 worker.ajp13.lbfactor=1 worker.list=ajp13,loadbalancer,web10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=web01,web02,web03,web04,web05,web0 6,we b07,web08,web09,web11 -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [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: Howto add shared libs to tomcat's classpath?
On Thu, 8 Aug 2002, SHURTLEFF,ROBERT (HP-FtCollins,ex1) wrote: Date: Thu, 8 Aug 2002 12:27:30 -0700 From: SHURTLEFF,ROBERT (HP-FtCollins,ex1) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Howto add shared libs to tomcat's classpath? We have several 3rd party products that install onto the same machine are are used by other applications than just tomcat. These apps install themselves into their expected locations, etc. They are also nice enough to add an env setting for their classes/jars. These are primarily middleware services for our platform. Some webapps also need access to these jars. We don't want to duplicate the jars into multiple locations. There should be an easy way to extend tomcats classpath. Here's two easy ways: * Create symbolic links from Tomcat's common/lib directory to your previously installed modules. * Modify the startup script logic that calculates the CLASSPATH environment variable. A little historical perspective might be illuminating about why Tomcat doesn't provide an easy way to do this. Up to and including Tomcat 3.2, messing around with CLASSPATH was the only way to add JARs, because there was no such thing as a directory like common/lib to put them in. Fully 50% of the requests for help on the TOMCAT-USER list were from people who were screwing around with CLASSPATH and getting the syntax wrong, or otherwise messing up their Java environments becaues they didn't know what they were doing. Tomcat 3.3 and 4.x releases both follow the pattern of giving you a directory to dump shared JARs into (or link to them on an operating system that supports symlinks). Since those releases, the percentage of problem reports has gone from 50% to around 2% -- and the only question nowdays is the one you ask (how to make additional JARs available) -- the problems people had about breaking the CLASSPATH for Tomcat, or for their other Java based applications, have gone totally away, because how it actually works is trivially simple to understand, and easy to deal with via drag-and-drop tools through a GUI. Bottom line -- if you want to manually modify your CLASPATH, you're welcome to do so, in your own copy of the startup scripts. But you're on your own if you screw it up. I'm not at all interested in going back to the bad old days, and I don't imagine anyone else who answers support questions on TOMCAT-USER would be very thrilled either. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: SSL Session x Non SSL Session Problem
On Thu, 8 Aug 2002, Jose Francisco Junior wrote: Date: Thu, 08 Aug 2002 15:39:16 -0400 From: Jose Francisco Junior [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: SSL Session x Non SSL Session Problem Please, Does anybody know anything about the problem below !!! I can't share an session object that was instatiated on a SSL connection with a NON SSL connection. I am trying to authenticate users using a SSL connection and after the authentication I forward the request to an Non-SSL connection but the session object is invalidated. How can I solve this problem ? You really really really don't want to do that. Once you switch back to non-SSL, the session id would be transmitted in cleartext -- so anyone snooping on your network connection could easily impersonate you. If the user's password is sensitive enough to protect, the whole session should be as well. Otherwise, you'll just live under an illusion of security. Thanks in advance, Junior Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: SSL Session x Non SSL Session Problem
Jose Francisco Junior wrote: Please, Does anybody know anything about the problem below !!! I can't share an session object that was instatiated on a SSL connection with a NON SSL connection. I am trying to authenticate users using a SSL connection and after the authentication I forward the request to an Non-SSL connection but the session object is invalidated. How can I solve this problem ? The only solution I recommend is to use SSL for all connections (or not use at all). The ID associated with the SSL session will certainly not the same as the one created without SSL (how is the Principal (user, password) get passed. If it was, how can you differenciate an authenticated user? -- Jeanfrancois Thanks in advance, Junior Don't E-Mail, ZipMail! http://www.zipmail.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Jean-Francois Arcand Java and XML Software, Sun Microsystems 450.224.475 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Forcing authentication
Hi Martin, That sounds like a good idea. I'll give it a shot and post my results here. thanks --G On Thu, Aug 08, 2002 at 04:32:21PM +0200, Martin Jacobson wrote: Guillermo Payet wrote: Hi, I've asked this one before, but got no answers, so here goes an abridged version. I'd like to force a FORM authentication by somehow calling /login/j_security_check from a jsp page, or doing something equivalent, so that the application can decide to force the authentication of a session in some cases, whithout the user having to go through the login form. We're using Tomcat 4.0.3 I found this pointer to a purported solution to our problem: http:[EMAIL PROTECTED]%3E But it ain't working. I've tried all kinds of variations on this, but I cannot figure out how to make it work. It seems that once a request is matched against auth constraints, (which happens when the registration page is first loaded) it will not be matched again. This means that any redirection of the request to j_security_check just returns a 404, since authenticate() is never called again and so it fails to intercept the request and authenticate the session. Any ideas?? Any help is appreciated! Caveat: I haven't tried the following, so I don't know whether it'll work... Use FORM authentication, but with a combined registration login form. Place a filter in front of j_security_check that picks the registration data from the form, registers them, so that when the filter exits, j_security_check then discovers a valid account. Hope this helps, Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Guillermo Payet O C E A NG R O U P email: [EMAIL PROTECTED] web: http://www.oceangroup.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Load balancing problem
Have you tried changing the lbfactor in favor of the other machines? Say a factor of 10 for web1-4 and factor of 5 for web6-11 BTW, your worker.loadbalancer.balanced_workers line is missing web10, I believe - Andrew -Original Message- From: Jean-Christophe Rioux [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:38 PM To: Tomcat Users List Subject: Re: Load balancing problem The machines that get the much load are web01, web02, web03, web04 Jean-Christophe Rioux -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Trying to work with JDBC
Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Trying to work with JDBC
No exceptions being thrown? Dave -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- 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]
jsp:forward
I am not certain this question was posted and since it is important to me, I am sending it again just to be certain. I apologize in advance if I have cluttered up your inboxes. I am using Tomcat 4.0 downloaded as part of the Forte 4 download (Java 1.4) running on a Win 2000 computer. Whenever I use jsp:forward page=/jsp/somepage / I get a null pointer error: 2002-08-08 14:29:45 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.netbeans.modules.web.monitor.catalina.DispatchListener.instanceEvent(DispatchListener.java:65) at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:342) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355) at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:409) at org.apache.jsp.forward$jsp._jspService(forward$jsp.java:93) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:174) at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:247) at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:117) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:536) 2 I have even tried running the forward example (/jsp/forward/forward.jsp) included with the
RE: Trying to work with JDBC
First and foremost, don't unjar the oracle classes. They're fine in the jar files as is. You'll just need to put them in the lib directory under your WEB-INF or in tomcat's lib directory. Also another thing to watch for is what jar's you're putting out there. You only need the classes12.jar and nlscharset12.jar generally. If your jdk isn't 1.2+ then you'll want the 11 series drivers. Don't put both of the versions in your classpath however, you can sometimes get weird results that way. Second, your driver is ok, but the jdbc url is all wrong. It should be something like the following: jdbc:oracle:thin:@server-name-or-ip-address:1521:ORCL Third, I'm not sure what you're attempting to do with the server.xml file, unless you're attempting to use the jdbcrealm authentication you don't need to do anything with it (I don't do jdbcrealm, so you'll need to ask someone else). If you are attempting to use it (jdbcrealm) then you'll need to put the oracle jar files into the tomcat lib directory. If you put them in the webapp tomcat won't be able to see them and you'll not get anywhere. As for your Java Beans and JSPs, you might have better luck after you fix the url that you're using to connect to the database. If you don't post a message and get some more help. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 1:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- 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: Apache2 - Tomcat4 Integration
Have you gotten any help on this? Last night I started on practically the same task, the only difference is that I'm using Tomcat4.18Beta (I hear the performance is far superior to any other tomcat version), anyway I found this page that gives great instructions for apache 1.3.26 / tomcat 4.0.4 / mod_jk. I'm going to try to follow the directions tonight. I'm hoping that apache 1.3.26 is similar enough to apache 2, and tomcat 4.0.4 is similar to tomcat 4.1.8 beta. Here's the link: http://www.johnturner.com/howto/apache-tomcat-howto.html Let me know how it goes and I'll do the same for you. Good luck. - Original Message - From: Brian Orledge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 08, 2002 12:06 PM Subject: Apache2 - Tomcat4 Integration Hello, I have spent over 3 days trying to integrate Apache2 and Tomcat4.0.3 on RH 7.2. Standalone tomcat works fine. I am using mod_jk2.so. When I try to request a jsp page from Apache, I notice 2 main errors : In apache2/log/error.log : [error] ajp14.service() error sending, retry on new endpoint tomcat1 The page returned is Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process this request I am trying to access a page /usr/local/jakarta-tomcat-4.0.3/webapps/examples/jsp/dates/date.jsp through the url http://localhost/examples/jsp/dates/date.jsp Thanks in advance. Brian Orledge Revenue Solutions, Inc. 301.240.2182 My config files follow : Server.xml: !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=99 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 tomcatAuthentication=false minProcessors=5 maxProcessors=75 enableLokups=true debug=99 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 tomcatAuthentication = false minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ /Connector -- !-- Define a Proxied HTTP/1.1 Connector on port 8081 -- !-- See proxy documentation for more information about using this. -- !--
Re: Load balancing problem
All the machines are identitcal, I should not have to change the load balancing values. JC Andrew wrote: Have you tried changing the lbfactor in favor of the other machines? Say a factor of 10 for web1-4 and factor of 5 for web6-11 BTW, your worker.loadbalancer.balanced_workers line is missing web10, I believe - Andrew -Original Message- From: Jean-Christophe Rioux [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:38 PM To: Tomcat Users List Subject: Re: Load balancing problem The machines that get the much load are web01, web02, web03, web04 Jean-Christophe Rioux -- 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: Load balancing problem
Right, you shouldn't have to, but you may be able to determine the problem by trying new values and forcing connectivitiy with web05-11. - Andrew -Original Message- From: Jean-Christophe Rioux [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 4:48 PM To: Tomcat Users List Subject: Re: Load balancing problem All the machines are identitcal, I should not have to change the load balancing values. JC Andrew wrote: Have you tried changing the lbfactor in favor of the other machines? Say a factor of 10 for web1-4 and factor of 5 for web6-11 BTW, your worker.loadbalancer.balanced_workers line is missing web10, I believe - Andrew -Original Message- From: Jean-Christophe Rioux [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:38 PM To: Tomcat Users List Subject: Re: Load balancing problem The machines that get the much load are web01, web02, web03, web04 Jean-Christophe Rioux -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- 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]
RE: Howto add shared libs to tomcat's classpath?
I understand. And it makes sense. But... I agree that monkeying around with the system classpath is not the optimal solution! But, that's what i thought the classpath section was for in tomcat.properties. So, exactly what is/does this section do? It seemed like a great way to add additional classpaths for more advanced needs. # CLASSPATH environment value passed to the JVM # Syntax: wrapper.classpath=[path] (String) # Default: NONE (Sun's JDK/JRE already have a default classpath) # Note: if more than one line is supplied these will be concatenated using # : or ; (depending wether Unix or Win32) characters. JVM must be # able to find JSDK and JServ classes and any utility classes used by # your servlets. # Note: the classes you want to be automatically reloaded upon modification # MUST NOT be in this classpath or the classpath of the shell # you start the Apache from. # wrapper.classpath=@JSERV_CLASSES@ wrapper.classpath=@JSDK_CLASSES@ wrapper.classpath=@HPMS_CLASSPATH@ -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thu, August 08, 2002 13:47 To: Tomcat Users List Subject: RE: Howto add shared libs to tomcat's classpath? On Thu, 8 Aug 2002, SHURTLEFF,ROBERT (HP-FtCollins,ex1) wrote: Date: Thu, 8 Aug 2002 12:27:30 -0700 From: SHURTLEFF,ROBERT (HP-FtCollins,ex1) [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Howto add shared libs to tomcat's classpath? We have several 3rd party products that install onto the same machine are are used by other applications than just tomcat. These apps install themselves into their expected locations, etc. They are also nice enough to add an env setting for their classes/jars. These are primarily middleware services for our platform. Some webapps also need access to these jars. We don't want to duplicate the jars into multiple locations. There should be an easy way to extend tomcats classpath. Here's two easy ways: * Create symbolic links from Tomcat's common/lib directory to your previously installed modules. * Modify the startup script logic that calculates the CLASSPATH environment variable. A little historical perspective might be illuminating about why Tomcat doesn't provide an easy way to do this. Up to and including Tomcat 3.2, messing around with CLASSPATH was the only way to add JARs, because there was no such thing as a directory like common/lib to put them in. Fully 50% of the requests for help on the TOMCAT-USER list were from people who were screwing around with CLASSPATH and getting the syntax wrong, or otherwise messing up their Java environments becaues they didn't know what they were doing. Tomcat 3.3 and 4.x releases both follow the pattern of giving you a directory to dump shared JARs into (or link to them on an operating system that supports symlinks). Since those releases, the percentage of problem reports has gone from 50% to around 2% -- and the only question nowdays is the one you ask (how to make additional JARs available) -- the problems people had about breaking the CLASSPATH for Tomcat, or for their other Java based applications, have gone totally away, because how it actually works is trivially simple to understand, and easy to deal with via drag-and-drop tools through a GUI. Bottom line -- if you want to manually modify your CLASPATH, you're welcome to do so, in your own copy of the startup scripts. But you're on your own if you screw it up. I'm not at all interested in going back to the bad old days, and I don't imagine anyone else who answers support questions on TOMCAT-USER would be very thrilled either. Craig -- 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: Trying to work with JDBC
Ok, so there are no exceptions being thrown. Is there any data in the database? This is the time to come clean if you're hiding something from us.Why don't you post the code you're using to connect and query the data. -Original Message- From: Durham David Cntr 805CSS/SCBE Sent: Thursday, August 08, 2002 3:36 PM To: Tomcat Users List Subject: RE: Trying to work with JDBC No exceptions being thrown? Dave -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- 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: Trying to work with JDBC
He's not using oracle's jdbc drivers, although maybe that is something to try. I recommend getting the newest drivers from oracle because it has been reduced to a single jar file, is much smaller (I think the old drivers were like 8MBs the new ones are around 2MB), and there is support for the jdbc 2 optional packages which means that connection pooling is supported. -Dave -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:42 PM To: Tomcat Users List Subject: RE: Trying to work with JDBC First and foremost, don't unjar the oracle classes. They're fine in the jar files as is. You'll just need to put them in the lib directory under your WEB-INF or in tomcat's lib directory. Also another thing to watch for is what jar's you're putting out there. You only need the classes12.jar and nlscharset12.jar generally. If your jdk isn't 1.2+ then you'll want the 11 series drivers. Don't put both of the versions in your classpath however, you can sometimes get weird results that way. Second, your driver is ok, but the jdbc url is all wrong. It should be something like the following: jdbc:oracle:thin:@server-name-or-ip-address:1521:ORCL Third, I'm not sure what you're attempting to do with the server.xml file, unless you're attempting to use the jdbcrealm authentication you don't need to do anything with it (I don't do jdbcrealm, so you'll need to ask someone else). If you are attempting to use it (jdbcrealm) then you'll need to put the oracle jar files into the tomcat lib directory. If you put them in the webapp tomcat won't be able to see them and you'll not get anywhere. As for your Java Beans and JSPs, you might have better luck after you fix the url that you're using to connect to the database. If you don't post a message and get some more help. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 1:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- 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]
error in jsp??? Response has already been committed
Hi, I am developing some jsp pages, and i get the following error br java.lang.IllegalStateException: Response has already been committed at allaire.jrun.servlet.JRunResponse.resetContent(../servlet/JRunResponse.java:172) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1201) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)br In my jsp, I have some logic which check if there is anydata in database or else forwards the request to other page, so when i m trying to forward the request i get this error. I tried request.getRequestDispatcher(PL1077Display.jsp).forward(request, response); also response.sendRedirect(PL1077Display.jsp); and also jsp:forward br with same error... br how can i solve it br Ashish __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat not encrypting connection
HI I have just followed the Tomcat SSL HOWTO and I am able to get my https://localhost:443/ page. I then right-click on my mouse to get up the page properties; Protocol:Hyper Text Transfer With Privacy Type: HTML Document Connection:Not Encrypted Address(URL):https://localhost:443/index.html Size: 2572 bytes but it says the page is not encrypted why does this happen? should it not state some sought of encryption like 128 bit? I also tried the Apache + mod_ssl HOWTO and I do get an encrypted connection which says the following; Connection:TLS 1.0, RC4 with 128 bit encryption (High); RSA with 1024 bit exchange I have apache 1.3.26 (Linux box) + mod_jk + Tomcat 4.04 (Windows box) The Tomcat server in my environment handles login forms processes them and then puts the user to their homepage. I wish to encrypt this login process. I don't think I need to use apache +mod_ssl to do any connection encryption because the login form is sent to the Tomcat server. I cannot figure out what I am missing? Can anyone help please? Thanxs in Advance -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: error in jsp??? Response has already been committed
Sneaky sneaky - posting a JRun problem on the tomcat-user list :0 Anyhow - It appears you are trying to forward to another page but you can't because you (actually your servlet engine) have already sent data back to the client. (Why? I don't know. Maybe because you are using a JSP that has lots of whitespace which is filling up a buffer?) Once data is sent back the to client - your can't do any of the following: - Send redirects - Forward to another JSP (or servlet) - Set response headers (Cookies, character encoding ...) Ashish Kulkarni wrote: Hi, I am developing some jsp pages, and i get the following error br java.lang.IllegalStateException: Response has already been committed at allaire.jrun.servlet.JRunResponse.resetContent(../servlet/JRunResponse.java:172) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1201) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)br In my jsp, I have some logic which check if there is anydata in database or else forwards the request to other page, so when i m trying to forward the request i get this error. I tried request.getRequestDispatcher(PL1077Display.jsp).forward(request, response); also response.sendRedirect(PL1077Display.jsp); and also jsp:forward br with same error... br how can i solve it br Ashish -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1 and IIS
Quick question.. Has anyone had any luck with the Coyote connector and IIS 5? Thanks, Michael Reardon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Dirk Dussart/BE/MCS/PwC is out of the office.
I will be out of the office starting 04/08/2002 and will not return until 19/08/2002. I will respond to your message when I return. For urgent messages please use [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Trying to work with JDBC
He might still need the nlscharset classes to support his character encoding, those are the really big classes, the base jdbc classes are pretty small. And why isn't this guy posting to the list directly? --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 2:41 PM To: Tomcat Users List Subject: RE: Trying to work with JDBC He's not using oracle's jdbc drivers, although maybe that is something to try. I recommend getting the newest drivers from oracle because it has been reduced to a single jar file, is much smaller (I think the old drivers were like 8MBs the new ones are around 2MB), and there is support for the jdbc 2 optional packages which means that connection pooling is supported. -Dave -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:42 PM To: Tomcat Users List Subject: RE: Trying to work with JDBC First and foremost, don't unjar the oracle classes. They're fine in the jar files as is. You'll just need to put them in the lib directory under your WEB-INF or in tomcat's lib directory. Also another thing to watch for is what jar's you're putting out there. You only need the classes12.jar and nlscharset12.jar generally. If your jdk isn't 1.2+ then you'll want the 11 series drivers. Don't put both of the versions in your classpath however, you can sometimes get weird results that way. Second, your driver is ok, but the jdbc url is all wrong. It should be something like the following: jdbc:oracle:thin:@server-name-or-ip-address:1521:ORCL Third, I'm not sure what you're attempting to do with the server.xml file, unless you're attempting to use the jdbcrealm authentication you don't need to do anything with it (I don't do jdbcrealm, so you'll need to ask someone else). If you are attempting to use it (jdbcrealm) then you'll need to put the oracle jar files into the tomcat lib directory. If you put them in the webapp tomcat won't be able to see them and you'll not get anywhere. As for your Java Beans and JSPs, you might have better luck after you fix the url that you're using to connect to the database. If you don't post a message and get some more help. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Nagpal, Vikas [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 1:22 PM To: '[EMAIL PROTECTED]' Subject: Trying to work with JDBC Hi everybody, I was trying to connect to the ORACLE database thru the JDBC driver. I have downloaded the DRIVER TYPE 4 and unzip this driver. On unzipping one of ORACLE.JAR driver i have got the hierarchy like com/ddtek/jdbc/oracle/OracleDriver.class. I have placed this hierarchy in WEB-INF/classes directory. I have configured my CLASSPATH to point towards the tools.jar, servlet.jar, WEB-INF/classes, jdbc2_0-stdext.jar. Also in my JAVA code i have put myDriver =com.ddtek.jdbc.oracle.OracleDriver and myURL=http://bioinfo.utmb.edu/cgi-bin/bsql_ProbeSet.cgi. I am not sure what exactly i need to do with the SERVER.XML file. Also i have created the instance of my JAVABEAN class in the JSP file to retrieve the requisite fields into my page. But even after this my code is not able to pull anything from the database. Can anyone help. Thanks, With regards, Vikas Nagpal. -- 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: Howto add shared libs to tomcat's classpath?
Tomcat 3.3 and 4.x releases both follow the pattern of giving you a directory to dump shared JARs into (or link to them on an operating system that supports symlinks). Since those releases, the percentage of problem reports has gone from 50% to around 2% -- and the only question nowdays is the one you ask (how to make additional JARs available) -- the problems people had about breaking the CLASSPATH for Tomcat, or for their other Java based applications, have gone totally away, because how it actually works is trivially simple to understand, and easy to deal with via drag-and-drop tools through a GUI. If Java has one significant paradigm blip that throws EVERY body, it's the CLASSPATH. 99.99% of problems folks seem to encounter is a problem with the CLASSPATH. So just to be clear, I always thought that TC 4 pretty much completely ignored the system CLASSPATH variable, and built its own classloaders up from scratch. But, I see now, that's only done within the Tomcat startup scripts, not within the application itself. So a little script surgery and we can do anything we want. Cool. Regards, Will Hartung ([EMAIL PROTECTED]) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and SOCKS
Hello, I am trying to get Tomcat working with a SOCKS firewall. Can this be done? I tried setting it like this... TOMCAT_OPTS=-DproxySet=true -DproxyHost=proxyHost -DproxyPort=1080 ..without luck. Anyone been able to get this going? This was the only reference I've been able to find on getting TomCat working with a firewall. Regards! Aaron -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Stop Tomcat
Hi all I have a question. I have an application which starts the tomcat and when it tries to stop tomcat, the tomcat application does a System.exit(0) and my application quits. Can Any one please help me !! I want my application to start the tomcat and stop as when required and the i want to restart it. Thanks Regards Vijay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Missing constructor!??
Hi, I'm getting the following from tomcat: C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No constructor matching FormCheckbox(java.lang.String, java.lang.String, java.lang.String) found in class au.com.multemedia.wf.ui.FormCheckbox. checkbox = new FormCheckbox(testform,check1,Checkbox 1); Which seems to be bogus, as FormCheckbox.java contains this: FormCheckbox(String newformname, String newvarname, String newdescription) { this.setFormName(newformname); this.setVarName(newvarname); this.setDescription(newdescription); this.setValue(on); } And I know that package is being imported, as tomcat has no problems with the FormCheckbox checkbox; line before the one causing the problem... Am I overlooking something in plain sight here? -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat + apache
Here you go Aaron, ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc This is an install for Win2k, Tomcat 4.1.8, JDSK1.4.0, mod_jk2 It' fairly easy to install. Sorry, all I have right now is a Word Doc, but all the hyper links work, I think. If you want Apache with SSL then I can do that too, but it's more complicated. Yall have fun now, hear? rls Aaron Chan [EMAIL PROTECTED] 08/07/2002 02:29 AM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: Subject:RE: Tomcat + apache Hi, I am using Windows 2000 Server instead of Linux. Anywhere I can go to find help on setting up? Thanks. Aaron Chan -Original Message- From: Simone Chiaretta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 06, 2002 7:57 PM To: Tomcat Users List Subject: R: Tomcat + apache Ops, sorry I forgot to mention I've linux red hat 7.3 Tomcat 4.0.4 Apache 2.0.39 java 1.4.0 I've seen the 3 connectors which is the best? Thx Simone -Messaggio originale- Da: Turner, John [mailto:[EMAIL PROTECTED]] Inviato: martedì 6 agosto 2002 13.44 A: 'Tomcat Users List' Oggetto: RE: Tomcat + apache To get tomcat to work with apache for serving mixed content, you will need to choose a connector. At this time, there are three to choose from: mod_jk (AJP), mod_webapp (WARP), and mod_jk2. Then you configure apache to serve certain content, and send other content to tomcat via the connector for processing. Without knowing your platform and OS environment, there's no way to point you to documentation on how to work with a connector. You can make the entire environment start at boot time quite easily. Again, not knowing your environment, there's no way to point you to alternatives. John Turner [EMAIL PROTECTED] -Original Message- From: Simone Chiaretta [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 06, 2002 7:28 AM To: [EMAIL PROTECTED] Subject: Tomcat + apache Sorry for this questions that could have been already answered, but I didn't find anything on the net and the archive doesn't have a search feature. I'm new in tomcat world, basically I'm a programmer but I've to setup a web server on linux with apache and tomcat. What I'd like to know is: 1 - How can I integrate apache 2.x with tomcat 4.0.4 (I mean having apache handle static files and php, while tomcat just handles java dynamic contents) 2 - How can I make this environment start at boot time. Thank you Simone -- 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: Missing constructor!??
Shouldn't the constructor be declared public? Josh wrote: Hi, I'm getting the following from tomcat: C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No constructor matching FormCheckbox(java.lang.String, java.lang.String, java.lang.String) found in class au.com.multemedia.wf.ui.FormCheckbox. checkbox = new FormCheckbox(testform,check1,Checkbox 1); Which seems to be bogus, as FormCheckbox.java contains this: FormCheckbox(String newformname, String newvarname, String newdescription) { this.setFormName(newformname); this.setVarName(newvarname); this.setDescription(newdescription); this.setValue(on); } And I know that package is being imported, as tomcat has no problems with the FormCheckbox checkbox; line before the one causing the problem... Am I overlooking something in plain sight here? -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- 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: Missing constructor!??
I thought constructors weren't supposed to be marked public? Either way I tried and it made no difference. -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. - Original Message - From: Ben Walding [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, August 09, 2002 2:34 PM Subject: Re: Missing constructor!?? Shouldn't the constructor be declared public? Josh wrote: Hi, I'm getting the following from tomcat: C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No constructor matching FormCheckbox(java.lang.String, java.lang.String, java.lang.String) found in class au.com.multemedia.wf.ui.FormCheckbox. checkbox = new FormCheckbox(testform,check1,Checkbox 1); Which seems to be bogus, as FormCheckbox.java contains this: FormCheckbox(String newformname, String newvarname, String newdescription) { this.setFormName(newformname); this.setVarName(newvarname); this.setDescription(newdescription); this.setValue(on); } And I know that package is being imported, as tomcat has no problems with the FormCheckbox checkbox; line before the one causing the problem... Am I overlooking something in plain sight here? -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- 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: Load balancing problem
I made changes for you and believe you should have it like this instead. If you don't mind, could you try it out and let us know if this works. You bought up a good point and I am experimenting this myself also. -Original Message- From: Jean-Christophe Rioux [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: Load balancing problem We got mod_jk working and configuration seem ok. lbfactor is the same for the 10 servers. The problem is that the load is not distribute evenly to all the server. 1 or 2 server seem to be receiving all the load. Does I miss something in the configuration? Thanks for your help Jean-Christophe Rioux worker.web01.port= worker.web01.host=web01 worker.web01.type=ajp13 worker.web01.lbfactor=1 worker.web01.cachesize=30 worker.web02.port= worker.web02.host=web02 worker.web02.type=ajp13 worker.web02.lbfactor=1 worker.web02.cachesize=30 worker.web03.port= worker.web03.host=web03 worker.web03.type=ajp13 worker.web03.lbfactor=1 worker.web03.cachesize=30 worker.web04.port= worker.web04.host=web04 worker.web04.type=ajp13 worker.web04.lbfactor=1 worker.web04.cachesize=30 worker.web05.port= worker.web05.host=web05 worker.web05.type=ajp13 worker.web05.lbfactor=1 worker.web05.cachesize=30 worker.web06.port= worker.web06.host=web06 worker.web06.type=ajp13 worker.web06.lbfactor=1 worker.web06.cachesize=30 worker.web07.port= worker.web07.host=web07 worker.web07.type=ajp13 worker.web07.lbfactor=1 worker.web07.cachesize=30 worker.web08.port= worker.web08.host=web08 worker.web08.type=ajp13 worker.web08.lbfactor=1 worker.web08.cachesize=30 worker.web09.port= worker.web09.host=web09 worker.web09.type=ajp13 worker.web09.lbfactor=1 worker.web09.cachesize=30 worker.web10.port= worker.web10.host=web10 worker.web10.type=ajp13 worker.web10.lbfactor=1 worker.web10.cachesize=30 #note list only includes loadbalancers #each one will loadbalance on their own so don't expect perfection #but if you run for thousands, the numbers shouldn't be way off as well worker.list=loadbalancer1,loadbalancer2 #lb marks this worker has Loadbalancer #each lb balances 10 ajp connectors #add more lb workers below and to the worker.list above #for fault tolerance lb, in case the lb worker fails. worker.loadbalancer1.type=lb worker.loadbalancer1.balanced_workers=web01,web02,web03,web04,web05,web06,we b07,web08,web09,web10 #lb marks this worker has Loadbalancer worker.loadbalancer2.type=lb worker.loadbalancer2.balanced_workers=web01,web02,web03,web04,web05,web06,we b07,web08,web09,web10 -- 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]
Another fun error that makes no sense :(
Hi, I'm also getting this error all of a sudden: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. I have no idea what this is, and i certainly don't use any JSPNote or JasperException classes in my code... -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Another fun error that makes no sense :(
OK, this one i've tracked down, it's a 1.4 thing but I still can't figure out my constructor problems... Now, it tells me there's no such constructor as () when I tried using the default constructor. /me smash head -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. - Original Message - From: Josh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 09, 2002 2:56 PM Subject: Another fun error that makes no sense :( Hi, I'm also getting this error all of a sudden: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. I have no idea what this is, and i certainly don't use any JSPNote or JasperException classes in my code... -Josh Rimmer, real dumplings, proper dumplings when they're properly cooked to perfection, proper dumplings, should not bounce. -- 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: Exception
What I really needed to know was did you install the JDK or the JRE. From your answer I take it you installed the JDK, that's good. If you are getting these errors while going to http://localhost/examples then apache is starting tomcat in process but tomcat is not able to find the JDK stuff if needs to operate. This is actually good because the major hurdle of getting apache and tomcat to communicate is done. Now all you need is to get tomcat to know where the JDK or the JRE is or both. I've seen this problem when I forgot to reboot after I installed J2SDK. I also got this when I installed as a user who did not have administrator privileges. You should get this same error even if you start Tomcat manually. It can't find the Java libs and dll's it needs to function. So start tomcat manually from startprogramsapache tomcat 4.1 then open a browser to http://localhost:8080. If this works then go to the examples dir and select something. It should blow up somewhere. If it does then reinstall the J2SDK and pay particular attention to all your env variables and path statements, and I would install it as Administrator. BTW these env variables should be set in the system environment, and not the user environment. I've installed it in c:\www\Java so my 'system' environment variables are; JAVA_HOME = c:\www\Java and this is tacked onto the end of my 'system' PATH c:\www\Java;c:\www\Java\bin Check your apache error log for more clues. Check your tomcat error log for clues too. Here is a document I made to help with installs. ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc Hope it helps you. rls ChinHo Tan [EMAIL PROTECTED] 08/07/2002 10:51 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:Re: Exception I set to JDK .. is this correct ? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, August 07, 2002 2:50 PM Subject: RE: Exception Hi, Is your $JAVA_HOME set to a JDK or a JRE? Yoav Shapira Millennium ChemInformatics -Original Message- From: ChinHo Tan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 07, 2002 2:42 PM To: [EMAIL PROTECTED] Subject: Exception May I know what is the cause for the following errors ? Thanks .. type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j a va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j ava: 2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23 47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve . java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 0 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46 8) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j ava: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 472) at
Tomcat with IIS
Does anyone know where I can get the Tomcat extensions that allow it to work with IIS. I am usinf Tomcat 4.04. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Accessing Mapped Drives
What permissions do I need to setup for Tomcat to be able to access shared network drives on win2k? I'm able to access shares through an IDE of course, but Tomcat returns null for all io calls to these mapped drives. If anyone has accomplished this or can point me in the right direction, I would be much obliged :-) Regards, Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]