Re: [mod_jk] 1.2.22 won't build (libtool error) :(
Hi Christopher, Perhaps this (potential - I've /never/ seen it on other systems) issue could be avoided by adding a bit of documentation to the BUILD.txt file that says if you get a weird error about tags not being defined, try running this: export CC=`apxs -q CC` I've now reordered configure and added a warning at the end, in case CC doesn't really fit, to what apxs spits out. You might want to test the new configure script. For convenience you can find it at http://people.apache.org/~rjung/mod_jk-dev/configure Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ProxyErrorOverride problem with ajp
Hello, i have a strange Problem with apache - tomcat configuration. I use one apache 2.2 and three tomcats for dynamic contents (apache- tomcat communication via ajp protocol). If i setup ProxyErrorOverride On i expect that apache handels 4xx and 5xx errors with his own ErrorDocument's. But tomcat still handels the errorpages ...??? Any Problem with ProxyErrorOverride and AJP? Thank you, Thomas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cant't log in to tomcat manager
Martin Gainty schrieb: login with username which has %CATALINA_HOME%/conf/tomcat-users.xml with roles=admin,manager defined.. M-- helo, i have tried all manager roles form the tomcat-users.xml file, to login. but it doesen't work. My tomcat server works normal. i use tomcat 5.5.16 where is the problem? thank you achi ases i know the roles!, and the tomcat-users.xml is working properly, but i cant login!!! bevor it works, but know not, but why? thank you - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to read file content from servlet?
Teh... you kinda got the right idea... but I think the question is wrong thats why u getting no responses. You cant get a servlet to call an applet but I have a feeling what you really asking is how to get a response from the servlet. This stuff you should find in a google so I'm going to let you do that first... if you get stuck, I'll show you how to do it... Search for how to POST to a servlet... google! Can combine the search with HTTPClient or URLConnection you'll find lots of articles So wot you do is post a parameter that says fileToGet=MyGameFile.game Then remember that just like a form... a servlet wants to respond... so in the servlet you do something like this if the parameter is MyGameFile... then.. File x = new File(PathToGameFile); //So your applet knows when its got the whole file maybe you can send this as a long instead and just read first first long as file length. response.setContentLength((int)x.length()); OutputStream out = response.getOutputStream(); //Create a stream FileInputStream in = null; try { in = new FileInputStream(fileName); int c; //Change this to a buffer if more speed required... unlikely. while ((c = in.read()) != -1) { out.write(c);} } finally { if (in != null) { in.close(); } } out.close(); Should get u going.. - Original Message - From: Teh Noranis Mohd Aris [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, May 14, 2007 5:57 AM Subject: How to read file content from servlet? Dear All, I have an applet that sends data name, score and ScoreFile to a servlet that get these data to be saved in a file. My question is, how can I send these data from the servlet to the applet (reversed) so that I can use only the data name in processing? Please help. Thank you. Yours Sincerely; TEH The applet is as follows: URL servletUrl = null; URLConnection con; String servletName = http://localhost:8080/examples/servlet/ServerSide;; try { servletUrl = new URL(servletName+?name=+name+score=+score+ScoreFile=+ScoreFile); con=servletUrl.openConnection(); con.setUseCaches(false); BufferedReader buf = new BufferedReader(new InputStreamReader(con.getInputStream())); } catch(Exception e) { System.out.println(Exception caught...+e); } The servlet is as follows: String name = request.getParameter(name); int score = Integer.parseInt(request.getParameter(score)); String ScoreFile = request.getParameter(ScoreFile); String fileName = C:/temp/+ScoreFile; FileWriter resultsFile = new FileWriter(fileName,true); PrintWriter toFile = new PrintWriter(resultsFile,true); toFile.println(name+ +score); toFile.close(); - Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling javax.net.ssl.SSLHandshakeException: null cert chain
Hi, How do I handle this exception, when the user clicks Cancel upon SSL Client authentication when prompted for a certificate. javax.net.ssl.SSLHandshakeException: null cert chain Tomcat throws this exception, but I would like to catch it and redirect the user to a proper error page. The full stack trace is as follows: 2007-05-14 10:35:36 org.apache.tomcat.util.net.jsse.JSSE14Support synchronousHandshake INFO: SSL Error getting client Certs javax.net.ssl.SSLHandshakeException: null cert chain at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientCertificate(Unknown Source) at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) at java.io.InputStream.read(Unknown Source) at org.apache.tomcat.util.net.jsse.JSSE14Support.synchronousHandshake(JSSE14Support.java:87) at org.apache.tomcat.util.net.jsse.JSSE14Support.handShake(JSSE14Support.java:66) at org.apache.tomcat.util.net.jsse.JSSESupport.getPeerCertificateChain(JSSESupport.java:120) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:1126) at org.apache.coyote.Request.action(Request.java:348) at org.apache.catalina.authenticator.SSLAuthenticator.authenticate(SSLAuthenticator.java:134) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 2007-05-14 10:35:36 org.apache.coyote.http11.Http11Processor action WARNING: Exception getting SSL attributes javax.net.ssl.SSLHandshakeException: null cert chain at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.ServerHandshaker.clientCertificate(Unknown Source) at com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source) at java.io.InputStream.read(Unknown Source) at org.apache.tomcat.util.net.jsse.JSSE14Support.synchronousHandshake(JSSE14Support.java:87) at org.apache.tomcat.util.net.jsse.JSSE14Support.handShake(JSSE14Support.java:66) at org.apache.tomcat.util.net.jsse.JSSESupport.getPeerCertificateChain(JSSESupport.java:120) at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:1126) at org.apache.coyote.Request.action(Request.java:348) at org.apache.catalina.authenticator.SSLAuthenticator.authenticate(SSLAuthenticator.java:134) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at
Tomcat Memory Usage
Hi all, I run a cocoon webapp which is hosted on a shared Linux environnement and runs under tomcat 5.5.9. There are about 7 applications running under that tomcat instance (2 cocoon, at least 1 jsp, don't know for the others). My host provider complains that he tomcat uses a lot of memory and that he needs to restart it every 4 hours to release the memory. Tomcat runs as a daemon (started using jsvc) and with the following parameters: jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -java.awt.headless=true -Xmx5 -XX:MaxPermSize=300m -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security I'm really not sure where to start looking: memory leak due to bad programming in the webapp or bad tomcat configuration leading to memory leaks. I also noticed there are quiet a few links in google pointing to problems with Tomcat not releasing memory (objets not getting garbage-collected), although they are mostly related to Tomcat 4.x. What is the situation on with Tomcat 5.5.9 ? I'm looking for help on what to look for, what configuration parameters should be used in production environnement, how can I pinpoint this memory problem ? Cheers, Jerome Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Memory Usage
Hi! If you get OutOfMemory Errors and running java 1.6 (maybe later versions of java 1.5) you can make the vm to save a memory dump which you could load in ie. YourKit java profiler. And After a crach you could analyse the memroy in your applications. I did that resently and it works like a charm. This is the parameters I used: -verbose:gc -XX:HeapDumpPath=C:\Java\heapdump -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails You could also look in the gc_log, sometimes you could see what's released and what needs correcting when jvm is doing a full gc. Hope it helps. (If you don't run java6 I can recommend it, faster and better :-) /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 11:21 To: users@tomcat.apache.org Subject: Tomcat Memory Usage Hi all, I run a cocoon webapp which is hosted on a shared Linux environnement and runs under tomcat 5.5.9. There are about 7 applications running under that tomcat instance (2 cocoon, at least 1 jsp, don't know for the others). My host provider complains that he tomcat uses a lot of memory and that he needs to restart it every 4 hours to release the memory. Tomcat runs as a daemon (started using jsvc) and with the following parameters: jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -java.awt.headless=true -Xmx5 -XX:MaxPermSize=300m -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security I'm really not sure where to start looking: memory leak due to bad programming in the webapp or bad tomcat configuration leading to memory leaks. I also noticed there are quiet a few links in google pointing to problems with Tomcat not releasing memory (objets not getting garbage-collected), although they are mostly related to Tomcat 4.x. What is the situation on with Tomcat 5.5.9 ? I'm looking for help on what to look for, what configuration parameters should be used in production environnement, how can I pinpoint this memory problem ? Cheers, Jerome Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Memory Usage
Hi, We're on Java 1.5 and do not get any OutOfMemory but after some point, Tomcat uses 50% of the server memory and stops serving requests. --- Per Johnsson [EMAIL PROTECTED] wrote: Hi! If you get OutOfMemory Errors and running java 1.6 (maybe later versions of java 1.5) you can make the vm to save a memory dump which you could load in ie. YourKit java profiler. And After a crach you could analyse the memroy in your applications. I did that resently and it works like a charm. This is the parameters I used: -verbose:gc -XX:HeapDumpPath=C:\Java\heapdump -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails You could also look in the gc_log, sometimes you could see what's released and what needs correcting when jvm is doing a full gc. Hope it helps. (If you don't run java6 I can recommend it, faster and better :-) /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 11:21 To: users@tomcat.apache.org Subject: Tomcat Memory Usage Hi all, I run a cocoon webapp which is hosted on a shared Linux environnement and runs under tomcat 5.5.9. There are about 7 applications running under that tomcat instance (2 cocoon, at least 1 jsp, don't know for the others). My host provider complains that he tomcat uses a lot of memory and that he needs to restart it every 4 hours to release the memory. Tomcat runs as a daemon (started using jsvc) and with the following parameters: jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -java.awt.headless=true -Xmx5 -XX:MaxPermSize=300m -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security I'm really not sure where to start looking: memory leak due to bad programming in the webapp or bad tomcat configuration leading to memory leaks. I also noticed there are quiet a few links in google pointing to problems with Tomcat not releasing memory (objets not getting garbage-collected), although they are mostly related to Tomcat 4.x. What is the situation on with Tomcat 5.5.9 ? I'm looking for help on what to look for, what configuration parameters should be used in production environnement, how can I pinpoint this memory problem ? Cheers, Jerome Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JCaptcha with Tomcat
Hi, I am trying to use JCaptcha with TC 5.5.23 on the same machine. Is there any way to use JCaptcha without running X server on this machine ? Rakesh Kumar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Oracle JDBC connection Tomcat 5.5
Hi Martin, thanks for help. I have tried your suggestion and it works fine - I am able to get OracleConnection. (I had to change String c_sUserNameKey=username; to String c_sUserNameKey=user;) It works for common Connection, but I need OracleConnection interface. jdbc configuration: Resource name=sisPool auth=Container type=javax.sql.DataSource factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory username=USER_51319 password=USER_51319 driverClassName=oracle.jdbc.driver.OracleDriver or driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@192.168.100.119:1521:orcl maxActive=20 maxIdle=10 maxwait=-1/ But the datasource is not found if I use this configuration: Resource name=sisPool auth=Container type=oracle.jdbc.pool.OracleDataSource factory=oracle.jdbc.pool.OracleDataSourceFactory username=ISMART_USER_51319 password=ISMART_USER_51319 driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@192.168.100.119:1521:orcl maxActive=20 maxIdle=10 maxwait=-1/ I have found in dbcp configuration other way to get inner connection: Connection conn = ds.getConnection(); Connection dconn = ((DelegatingConnection) conn).getInnermostDelegate(); but when I get connection from Tomcat it doesn't implement DelegatingConnection interface. initContext = new InitialContext(); envContext = (Context)initContext.lookup(java:/comp/env); DataSource ds = (DataSource) ctxt.lookup(poolName); conn = ds.getConnection(); I am not able to find any way how to get OracleConnection instead Connection. Do you have any idea? Thanks. Regards, Zdenek On 5/13/07, Martin Gainty [EMAIL PROTECTED] wrote: make sure the driver is ok first e.g. import java.sql.*; Properties props = new Properties(); String c_sUserNameKey=username; String c_sPasswordKey=password; String c_sDBURL =jdbc:oracle:thin:@; String c_sDriverName =oracle.jdbc.driver.OracleDriver; //Instantiate driver Driver c_Driver=null; try { c_Driver = (Driver)Class.forName( c_sDriverName ).newInstance(); } catch(SQLException sqle) { System.out.println(Cannot instantiate driver ..is it right version..is it on classpath?); return; } //make sure Oracle listenet is operational (netstat -a | grep 1521) //make SURE Oracle DB is up and listening (tnsping SID) returns successful //make sure you acquire the username/password to establish connection to oracle db //place username,password into properties props.put( c_sUserNameKey, c_sDBUser ); props.put( c_sPasswordKey, c_sDBPassword ); //Get a connection try { Connection = c_Driver.connect( c_sDBURL, props ); } catch ( SQLException sqlex ) { System.out.println( Error connecting to database, sqlex ); return; } //should get you started.. M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Rashmi Rubdi [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Sunday, May 13, 2007 3:23 PM Subject: Re: Oracle JDBC connection Tomcat 5.5 On 5/12/07, Zdeněk Vráblík [EMAIL PROTECTED] wrote: Hi Rashmi, thans for reply. Configuration that is described in link you sent me works fine. Problem is when I change the datasource factory to Oracle datasource factory. Than is not possible to find this datasource through JNDI lookup and this connection disappear from admin console. I think that ojdbc14.jar is newer version of oracle drivers and it You are right, sorry you don't need classes12.jar in this case please ignore my previous post. I also happen to have oracle 10g, in order to answer your question, I was trying to see if I could set up a connection pool and then try to get OracleConnection instead of SQL Connection, I tried for almost 1/2 a day so far, to get things set up but got an error java.sql.SQLException: No more data to read from socket that is taking too long to figure out, even after searching for answers on the Internet. I have other things to do :-) so I will give up on this for now. Anyway, there's some more instructions here : http://www.oracle.com/technology/sample_code/tech/java/oc4j/htdocs/jdbc_in_j2ee/jdbc_in_j2ee.html the above instructions are written for Oracle9iAS Container and not Tomcat, however they demonstrate how to obtain OracleConnection may be you'll find some useful information there unless someone on this list has a solution. You may also want to check with Oracle's Technology Forums. works fine with standard datasource factory org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory and javax.sql.DataSource. It stops work when I use
RES: Tomcat 6 trimDirectiveWhitespaces
Thanks for your attention! I'll try RegEX! -Mensagem original- De: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Enviada em: sábado, 12 de maio de 2007 00:04 Para: Tomcat Users List Assunto: Re: Tomcat 6 trimDirectiveWhitespaces On 5/11/07, Milanez, Marcus [EMAIL PROTECTED] wrote: Hi, Do I need something else besides declaring %@ page trimDirectiveWhitespaces=false % to have my page's white spaces trimmed? This directive doesn't seem to work at all... You are right it doesn't seem to work on Tomcat 6.0.10, well I think you don't need anything else , just setting trimDirectiveWhitespaces=true is supposed to work but it didn't either. Well the trimDirectiveWhitespaces doesn't remove all white spaces in a HTML page, it is only supposed to remove the blank lines left behind by JSP directives (as described here http://java.sun.com/developer/technicalArticles/J2EE/jsp_21/ ) when the HTML is rendered. If you want to trim all white spaces one option is Ant RegEx (see bottom: http://ant.apache.org/manual/OptionalTasks/replaceregexp.html) Thanks in advance, Marcus Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Remote EJB calls from Tomcat 5 to Weblogic 8.1 appear to be slower than from Weblogic 8.1 as a web server
With weblogic - EJB calls were done in the same JVM. With Tomcat - all the EJB calls occur outsite Tomcat's JVM and in weblogic's JVM. This is a BG performance penalty. (But allows for scalability). You should notice the same performance suckage if you ran 2 copies of weblogic where one of the weblogics was acting only as a servlet container and the other as an EJB container. -Tim Jonathan Kitchner wrote: I am migrating from WebLogic 8.1 as a web server to Tomcat 5.0.28. I continue to use WebLogic as my EJB container. My application functions fully in both environments. However I am seeing the following: Under Tomcat the EJB calls are much slower ( I know that Tomcat does not perform the actual call - we are using the thin client from WebLogic). As the size of the result set from the EJB call increases the degradation in performance increases. The CPU usage and Load factor and user response time are all considerably larger under Tomcat. Does anyone know where this degradation in performance is coming from? Has anyone who has done this migration experienced the same behavior? If so how did you mitigate it? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning
I must tell you guys, that the only way I can get Tomcat running along with IIS is doing an extra step that is not documented anywhere, which consists on creating a Virtual Directory on IIS for my application and pointing it to my tomcat app folder. I do all those known steps (registry import, create an ISAPI filter, etc...) but I also create a Virtual directory with the same name in IIS. For example, if I have an application located in c:\tomcat\webapps\foo , I also create a new virtual direcory in IIS names foo and point it to c:\tomcat\webapps\foo folder.. Thats the only way I can get tomcat working with IIS. Have you tried it? -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 11 de maio de 2007 19:26 Para: Tomcat Users List Assunto: Re: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning I set up and allowed the extension. I even set IIS to allow all ISAPI extensions. I've even set the CATALINA_HOME tree to Everyone - Full Control and still no ISAPI log and no errors in any of the other logs or system event logs. If I can at least get the log to work, I'll have something to work on. I've found quite a few similar problems in the archives and other sites, but no working solution. Thank you for the suggestion, got any others? Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] [EMAIL PROTECTED] net To 05/11/2007 02:08 users@tomcat.apache.org PM cc Subject Please respond to Re: Tomcat 6.0 on Windows Server Tomcat Users 2003 IIS 6.0 connector not List functioning [EMAIL PROTECTED] che.org Have you configured the Web Service Extension? I can't access Tomcat content through IIS. The troubleshooting steps on the IIS How-to were insufficient to identify my problem. What am I missing? A few bits of relevant information: The isapi log file does not get created. I've verified that the registry settings are correct for the redirector. I also tried using isapi_redirect.properties, with no success. The ISAPI filter on the default web site shows loaded (green arrow), high priority. The urimappings reference the worker in the workers.properties file. The port for the work matches in the workers file and the server.xml file. Directory browsing is enabled for both the website and the jakarta directory. The Catalina log shows it is listening on the right port, but Jk running ID=0 Thanks! Various relevant files and log entries: Problem: http://localhost:8080/examples works http://localhost/examples doesn't work Info: ISAPI information: isapi_redirect.dll v1.2.22.0 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0 \\logs\\isapi.log log_level=debug worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0 \\conf\\workers.properties worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0\\conf\\uriworkermap.properties workers.properties: worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 uriworkermap.properties: /servlets-examples*=ajp13w #tried leaving off trailing slash as suggested in archives /examples/*=ajp13w !/servlets-examples/*.jpeg=ajp13w server.xml ... Service name=Catalina Connector port=8080 protocol=HTTP/1.1 maxThreads=150 connectionTimeout=2 redirectPort=8443 / Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true maxThreads=150 scheme=https secure=true clientAuth=false sslProtocol=TLS / Connector port=8009 protocol=AJP/1.3 redirectPort=8443 / ... On IIS: Default Web Site and Jakarta Virtual Directory: Directory browsing enabled Anonymous access enabled Jakarta virtual directory allows scripts and executables IIS Log: #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 2007-05-09 22:23:17 W3SVC1 127.0.0.1 GET /examples/ - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 404 0 2 Catalina log: May 9, 2007 3:23:09 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 May 9, 2007 3:23:09 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/94 config=null Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] NOTICE: This email message is for the sole use of the intended
Re: JCaptcha with Tomcat
I cant remember offhand wot it was that made me unhappy with Jcaptcha's real time operation, but there was definitely something that I found very buggy and yes... you got a problem with headless java as well although I did see some articles on how to try and get around this, its too much hassle anyway just want to tell you what I ended up doing and it works well. I use JCaptcha to PRE- generate a a few thousand entries which I simply store in files 1,2,3,4,5,6 for images and similar thing for capcha's etc... then I just use a random number generator to get them servlets are quick and no problems with headless java all I'm saying if u go that way... you probably going to bump into the issue I had as well there was something wrong with it... probably something to do with threads and swing... anyway rather go for the pre-gen method... its very efficient. Also dont have to have all the XML in your servlets anymore other than that JCatcha is very cool but swing dependent unfortuanately - Original Message - From: Rakesh Kumar [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, May 14, 2007 12:43 PM Subject: JCaptcha with Tomcat Hi, I am trying to use JCaptcha with TC 5.5.23 on the same machine. Is there any way to use JCaptcha without running X server on this machine ? Rakesh Kumar - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Inner Gold Mine
In this case - it might better to reinvent the wheel and not rely on tomcat's apis. Why? Tomcat might change from version to version and re-writing perfrectly good good due to API changes is not fun. But there are exceptions. Such as the (jakarata) commons api's that tomcat uses. For example: It is safe to rely on digester, commons-collections, and the other commons code since they are in the 5.X distribution. But be prepared to copy those libraries into your installation when you upgrade to tomcat6. Another caveat about relying on the commons libraries is reversion-ing. If you deploy multiple webapps - each which rely on digester but developed at different times - you might be relying on digester 1.5,1.6,1.7, and 1.8. Luckily - the newer versions are binary compat with older versions - but you might be hit by other bugs. -Tim Johnny Kewl wrote: Been wondering about something... Often in a tomcat application I use separate XML files for configuration. I normally end up using a lite weight sax parser that I wrote especially for this, but every time I do this... I think to myself... I'm just doing what has already been done in tomcat. I dont imagine that these internal libs are exposed in a normal tomcat application, unless i'm missing something, but I was wondering if its not possible to get at the libraries almost as its done in embedded tomcat, so one can reduce the overhead of duplicate functionality. For example if one went for a similar parameter structure in a separate xml file... its in not possible to get at that using a tomcat lib? If so I'd imagine there is a whole range of tricks one could use... In theory a user should never have to go find a base64 lib, or an MD5 lib etc etc... nor anything else that Tomcat has to use I think there is a lot of very standard stuff that tomcat could expose through an API... if it has an Xerces lib, why make a user get another one? For example is it possible to do somelike an XSLT transform without any external libs... It feels like I'm sitting on a gold mine... but I'm still prospecting... if u know wot I mean... Seems like everyone is missing it remember reading some article where the guy was saying that one can get at the undocumented sun.misc.BASE64 Decoder which he spent hours discovering...and this was for a tomcat application... seems kinda stupid when Tomcat must have that class already?? So as the actual developers of Tomcat... if you make a web-app... do you download duplicate infrastructure... or do you just dig into a class when you know its there already? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Handling javax.net.ssl.SSLHandshakeException: null cert chain
Subscriber wrote: Hi, How do I handle this exception, when the user clicks Cancel upon SSL Client authentication when prompted for a certificate. Basically you can't without some custom Tomcat code. Since the handshake occurs before any HTTP traffic is sent, Tomcat doesn't know which web app the user was eventually going to try and connect to. Therefore, this has to be handled entirely within Tomcat rather than by any particular web app. This is going to be the same for every container - each will require a custom solution. If you want your app to be portable, I wouldn't bother going down this road. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Memory Usage
Ok, turn on the -verbose:gc and -XX:+PrintGCDetails and see if you could find any strange things in the logs. I have seen that when the jvm is making big full garbage collection the jvm practicaly halts for several seconds which could cause some strange behaviors. We had for example a xsl-stylesheet which used the mozilla javascript functions and that singe stylesheet generated very big full gc's. Check this page for which options you can run on your version of java 1.5 they are different depending on the versions. http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 12:33 To: Tomcat Users List Subject: RE: Tomcat Memory Usage Hi, We're on Java 1.5 and do not get any OutOfMemory but after some point, Tomcat uses 50% of the server memory and stops serving requests. --- Per Johnsson [EMAIL PROTECTED] wrote: Hi! If you get OutOfMemory Errors and running java 1.6 (maybe later versions of java 1.5) you can make the vm to save a memory dump which you could load in ie. YourKit java profiler. And After a crach you could analyse the memroy in your applications. I did that resently and it works like a charm. This is the parameters I used: -verbose:gc -XX:HeapDumpPath=C:\Java\heapdump -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails You could also look in the gc_log, sometimes you could see what's released and what needs correcting when jvm is doing a full gc. Hope it helps. (If you don't run java6 I can recommend it, faster and better :-) /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 11:21 To: users@tomcat.apache.org Subject: Tomcat Memory Usage Hi all, I run a cocoon webapp which is hosted on a shared Linux environnement and runs under tomcat 5.5.9. There are about 7 applications running under that tomcat instance (2 cocoon, at least 1 jsp, don't know for the others). My host provider complains that he tomcat uses a lot of memory and that he needs to restart it every 4 hours to release the memory. Tomcat runs as a daemon (started using jsvc) and with the following parameters: jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -java.awt.headless=true -Xmx5 -XX:MaxPermSize=300m -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security I'm really not sure where to start looking: memory leak due to bad programming in the webapp or bad tomcat configuration leading to memory leaks. I also noticed there are quiet a few links in google pointing to problems with Tomcat not releasing memory (objets not getting garbage-collected), although they are mostly related to Tomcat 4.x. What is the situation on with Tomcat 5.5.9 ? I'm looking for help on what to look for, what configuration parameters should be used in production environnement, how can I pinpoint this memory problem ? Cheers, Jerome Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To
RE: Tomcat Memory Usage
Thanks. Will ask the host provider to try that (difficult to be on shared hosting :) --- Per Johnsson [EMAIL PROTECTED] wrote: Ok, turn on the -verbose:gc and -XX:+PrintGCDetails and see if you could find any strange things in the logs. I have seen that when the jvm is making big full garbage collection the jvm practicaly halts for several seconds which could cause some strange behaviors. We had for example a xsl-stylesheet which used the mozilla javascript functions and that singe stylesheet generated very big full gc's. Check this page for which options you can run on your version of java 1.5 they are different depending on the versions. http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 12:33 To: Tomcat Users List Subject: RE: Tomcat Memory Usage Hi, We're on Java 1.5 and do not get any OutOfMemory but after some point, Tomcat uses 50% of the server memory and stops serving requests. --- Per Johnsson [EMAIL PROTECTED] wrote: Hi! If you get OutOfMemory Errors and running java 1.6 (maybe later versions of java 1.5) you can make the vm to save a memory dump which you could load in ie. YourKit java profiler. And After a crach you could analyse the memroy in your applications. I did that resently and it works like a charm. This is the parameters I used: -verbose:gc -XX:HeapDumpPath=C:\Java\heapdump -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDetails You could also look in the gc_log, sometimes you could see what's released and what needs correcting when jvm is doing a full gc. Hope it helps. (If you don't run java6 I can recommend it, faster and better :-) /Regards Per Jonsson -Original Message- From: Jerome Benezech [mailto:[EMAIL PROTECTED] Sent: den 14 maj 2007 11:21 To: users@tomcat.apache.org Subject: Tomcat Memory Usage Hi all, I run a cocoon webapp which is hosted on a shared Linux environnement and runs under tomcat 5.5.9. There are about 7 applications running under that tomcat instance (2 cocoon, at least 1 jsp, don't know for the others). My host provider complains that he tomcat uses a lot of memory and that he needs to restart it every 4 hours to release the memory. Tomcat runs as a daemon (started using jsvc) and with the following parameters: jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -java.awt.headless=true -Xmx5 -XX:MaxPermSize=300m -debug -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose org.apache.catalina.startup.Bootstrap -security I'm really not sure where to start looking: memory leak due to bad programming in the webapp or bad tomcat configuration leading to memory leaks. I also noticed there are quiet a few links in google pointing to problems with Tomcat not releasing memory (objets not getting garbage-collected), although they are mostly related to Tomcat 4.x. What is the situation on with Tomcat 5.5.9 ? I'm looking for help on what to look for, what configuration parameters should be used in production environnement, how can I pinpoint this memory problem ? Cheers, Jerome Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or any information it contains, is prohibited. If you are not an intended recipient, please contact the sender and delete the material from your computer. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Jerome Benezech [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and the information it contains may be privileged and/or confidential. It is for the intended addressee(s) only. The unauthorised use, disclosure or copying of this e-mail, or
Re: Handling javax.net.ssl.SSLHandshakeException: null cert chain
Hi, Thanks for your answer Mark! I would like to add custom code to Tomcat to make this work, but I can't figure out where to start...I can't see any alternative solution to my problem. Besides that, I'm hard hung up on Tomcat anyway. I've tried to download the Tomcat source code, but I can see the exception occurs within the JSSE - this is where the confusio starts :-) ...solutions are very welcome! regards, kews Mark Thomas wrote: Subscriber wrote: Hi, How do I handle this exception, when the user clicks Cancel upon SSL Client authentication when prompted for a certificate. Basically you can't without some custom Tomcat code. Since the handshake occurs before any HTTP traffic is sent, Tomcat doesn't know which web app the user was eventually going to try and connect to. Therefore, this has to be handled entirely within Tomcat rather than by any particular web app. This is going to be the same for every container - each will require a custom solution. If you want your app to be portable, I wouldn't bother going down this road. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2264 (20070514) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run Xalan on Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rashmi, Rashmi Rubdi wrote: One way to use Xalan is with JSTL XML tags inside a JSP. A much better way is to use Cocoon (http://cocoon.apache.org). - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSFqO9CaO5/Lv0PARAgB8AJ0R9oWPKwRn/Tkw+7uYL1qe2oarxQCgwN8x GDeY006V0HDO1sUba3QSsGs= =u6q9 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [mod_jk] 1.2.22 won't build (libtool error) :( [SOLVED]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, Rainer Jung wrote: Hi Christopher, I've now reordered configure and added a warning at the end, in case CC doesn't really fit, to what apxs spits out. Excellent! You might want to test the new configure script. For convenience you can find it at http://people.apache.org/~rjung/mod_jk-dev/configure Here's the new configure output: $ ./configure --with-apxs=/usr/bin/apxs2 ... checking for gcc... i486-linux-gnu-gcc (used to say gcc) ... $ make (works) I'd be interested to see the changes to the sources that generate the configure script (then I might know enough to be dangerous). Thanks for looking into this, Rainer. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSFwl9CaO5/Lv0PARAmcTAJ99EVNbsOC7dq7qRucctg0w7VAbKACgiV2X h5XKmTFAEVJ4ywYRZRMwqX4= =O7S4 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JCaptcha with Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rakesh, Rakesh Kumar wrote: I am trying to use JCaptcha with TC 5.5.23 on the same machine. Is there any way to use JCaptcha without running X server on this machine ? If the -Djava.awt.headless=true trick doesn't work, you can always use xvfb, the X virtual frame buffer. In order to run xvfb, you'll need to have a base X system installed. Most package managers probably have an xvfb package that you can install. Hope that helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSF1w9CaO5/Lv0PARAsCHAJ9sC2M63bT1b40xhjm1hMCzC0uexACeL7GX LV0FZicopogWAhH/JX0w/Sw= =JvY5 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 is not starting on CENTOS 4
Try catalina.sh run and see if you get some more info. Also make sure that all of those directories exist and that you have adequate rights to them. Larry On 5/14/07, reym [EMAIL PROTECTED] wrote: Hi All, I have installed Tomcat5.5 on CENTOS 4, which is located on a remote machine, and I have configured the environment variables, and everything else. However when I try to start Tomcat, using this command: $CATALINA_HOME/bin/startup.sh I only get as far as this (this is what is shown in PUTTY): Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/latest And no further... What am i doing wrong??? Please advise. Thanks in advance. I look forward to hearing from you somebody soon. Kind regards. -- View this message in context: http://www.nabble.com/Tomcat5.5-is-not-starting-on-CENTOS-4-tf3752519.html#a10604296 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 is not starting on CENTOS 4
reym wrote: else. However when I try to start Tomcat, using this command: $CATALINA_HOME/bin/startup.sh I only get as far as this (this is what is shown in PUTTY): Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/latest That's what is to be expected. And no further... What am i doing wrong??? Propably nothing. Check whether Tomcat is running (using ps or similar) and listening to the configured ports (using, for example, netstat). Also check the logfiles in $CATALINA_HOME/logs. If, for testing purposes, you'd like to have Tomcat's messages printed to stdout, start it using $CATALINA_HOME/bin/catalina.sh run Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 is not starting on CENTOS 4
To see messages from tomcat tail -f $CATALINA_HOME/logs/catalina.out En l'instant précis du 14/05/07 16:02, reym s'exprimait en ces termes: Hi All, I have installed Tomcat5.5 on CENTOS 4, which is located on a remote machine, and I have configured the environment variables, and everything else. However when I try to start Tomcat, using this command: $CATALINA_HOME/bin/startup.sh I only get as far as this (this is what is shown in PUTTY): Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/latest And no further... What am i doing wrong??? Please advise. Thanks in advance. I look forward to hearing from you somebody soon. Kind regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 is not starting on CENTOS 4
Thank you all, so much, for the prompt responses I have done as you have all advised, and there is something wrong... but I am baffled because I have never encountered this problem when I installed and configured Tomcat5.5 in a windows environment anyways here is the error message(s), after i typed in the command $CATALINA_HOME/bin/catalina.sh run: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/latest May 14, 2007 8:36:16 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_01/jre/lib/i386/server:/usr/java/jdk1.6.0_01/jre/lib/i386:/usr/java/jdk1.6.0_01/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib May 14, 2007 8:36:17 AM org.apache.coyote.http11.Http11BaseProtocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298) at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139) at org.apache.catalina.connector.Connector.initialize(Connector.java:1017) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) May 14, 2007 8:36:17 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 at org.apache.catalina.connector.Connector.initialize(Connector.java:1019) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) May 14, 2007 8:36:17 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2040 ms May 14, 2007 8:36:17 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina May 14, 2007 8:36:17 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 May 14, 2007 8:36:17 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 14, 2007 8:36:19 AM org.apache.coyote.http11.Http11BaseProtocol start SEVERE: Error starting endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298) at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:313) at org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:151) at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:76) at org.apache.catalina.connector.Connector.start(Connector.java:1090) at org.apache.catalina.core.StandardService.start(StandardService.java:457) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) May 14, 2007 8:36:19 AM org.apache.catalina.startup.Catalina start SEVERE:
Re: Tomcat5.5 is not starting on CENTOS 4
java.net.BindException: Address already in use:8080 There is already somthing (probably another tomcat instance) listening on port 8080, tomcat can't bind and will refuse to start. Kill whatever use this port (use netstat to find it) or configure tomcat to use another port. En l'instant précis du 14/05/07 16:41, reym s'exprimait en ces termes: Thank you all, so much, for the prompt responses I have done as you have all advised, and there is something wrong... but I am baffled because I have never encountered this problem when I installed and configured Tomcat5.5 in a windows environment anyways here is the error message(s), after i typed in the command $CATALINA_HOME/bin/catalina.sh run: Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/latest May 14, 2007 8:36:16 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_01/jre/lib/i386/server:/usr/java/jdk1.6.0_01/jre/lib/i386:/usr/java/jdk1.6.0_01/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib May 14, 2007 8:36:17 AM org.apache.coyote.http11.Http11BaseProtocol init SEVERE: Error initializing endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298) at org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139) at org.apache.catalina.connector.Connector.initialize(Connector.java:1017) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) May 14, 2007 8:36:17 AM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use:8080 at org.apache.catalina.connector.Connector.initialize(Connector.java:1019) at org.apache.catalina.core.StandardService.initialize(StandardService.java:578) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782) at org.apache.catalina.startup.Catalina.load(Catalina.java:504) at org.apache.catalina.startup.Catalina.load(Catalina.java:524) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) May 14, 2007 8:36:17 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2040 ms May 14, 2007 8:36:17 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina May 14, 2007 8:36:17 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 May 14, 2007 8:36:17 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled May 14, 2007 8:36:19 AM org.apache.coyote.http11.Http11BaseProtocol start SEVERE: Error starting endpoint java.net.BindException: Address already in use:8080 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298) at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:313) at org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:151) at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:76) at org.apache.catalina.connector.Connector.start(Connector.java:1090) at org.apache.catalina.core.StandardService.start(StandardService.java:457) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
RE: JK connector issue - Can't get JKStatus working with IIS 6.0
Hi, Thank you everyone for the support, it's really appreciated. I think my problem is a rule priority problem, here is the JK log with debug on: May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (747): Filter started [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (813): Virtual Host redirection of /hostname.domainname.com/jkmanager [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/hostname.domainname.com/jkmanager' from 2 maps [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jkmanager' [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*' [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match wlb - /* [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (830): check if [/jkmanager] is points to the web-inf directory [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (848): [/jkmanager] is a servlet url - should redirect to wlb [Mon May 14 10:27:59 2007] [2564:2720] [debug] wc_get_worker_for_name::jk_worker.c (111): found a worker wlb [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpExtensionProc::jk_isapi_plugin.c (1003): got a worker for name wlb Is it correct to say that my URI rule /*=wlb Has a higher priority than /jkmanager=jkstatus? If yes, it there a way to tell the JK to match the jkstatus rule prior to the other one? Thank you very much -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: May 12, 2007 7:02 AM To: Tomcat Users List Subject: Re: JK connector issue - Can't get JKStatus working with IIS 6.0 Since your original config looked OK, could you set your log level for the isapi redirector to trace and log startup and a single test against your configured status URL? Please post the results, so we can see, if the URL got mapped, and why the request didn't get forwarded. Regards, Rainer Mladen Turk wrote: Jean-Francois Beaulac wrote: The Connector itselfs works perfectly, I just want to enable the JKStatus page that shows information about the workers and also allow to make changes at runtime to work. In the documentation I've seen specific configuration for Apache HTTPD to mount the JKStatus, but I could not find similar information for IIS. I presume you have added in workers.properties ... worker.list=jkstatus,... ... worker.jkstatus.type=status Then inside uriworkermap.properties add something like: /one-very-fancy-manger=jkstatus Finally hitting the http://yourhost/one-very-fancy-manger will open you the whole new world :) Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- kippdata informationstechnologie GmbH Tel: 0228 98549 -0 Bornheimer Str. 33aFax: 0228 98549 -50 53111 Bonn www.kippdata.de HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417 Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann === kippdata informationstechnologie GmbH Tel: +49 228 98549 -0 Bornheimer Str. 33aFax: +49 228 98549 -50 D-53111 Bonn www.kippdata.de HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417 Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JCaptcha with Tomcat
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rakesh, Rakesh Kumar wrote: I am trying to use JCaptcha with TC 5.5.23 on the same machine. Is there any way to use JCaptcha without running X server on this machine ? If the -Djava.awt.headless=true trick doesn't work, you can always use xvfb, the X virtual frame buffer. In order to run xvfb, you'll need to have a base X system installed. Most package managers probably have an xvfb package that you can install. Hope that helps, - -chris And you might like to try SimpleCaptcha which I recently found to be more user friendly and easier to configure. Our users were unable to correctly read the JCaptcha image text in 20-30% of attempts. http://www.google.co.uk/search?q=simplecaptcha p -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSF1w9CaO5/Lv0PARAsCHAJ9sC2M63bT1b40xhjm1hMCzC0uexACeL7GX LV0FZicopogWAhH/JX0w/Sw= =JvY5 -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
How to change Tomcat 5.5 default socket factory
Dear All ! Could somebody help me to find out how can I redefine the Tomcat 5.5 default socket factory (client and server) ? We need to develop an own socket factory for SSL compliance sockets, we couldn't use the existing SSL configuration for it. Thank you, Robert @vantage CAF Support (V7.5 SP2) CSS INS 2, Siemens PSE Ltd. Hungary Tel.: +36 1 4713090 Mob.: +36 30 6769504 Fax.: +36 1 4713490 E-mail: [EMAIL PROTECTED]
RE: Remote EJB calls from Tomcat 5 to Weblogic 8.1 appear to be s lower than from Weblogic 8.1 as a web server
| From: Jonathan Kitchner [mailto:[EMAIL PROTECTED] | Sent: Friday, 11 May, 2007 14:39 | | Under Tomcat the EJB calls are much slower ( I know that | Tomcat does not perform the actual call - we are using the thin client | from WebLogic). Were you using local EJB references in WebLogic? If so, then that's probably 99.44% of the reason. Remote EJB references require that the request and results be serialized (which would also explain why larger result sets are slower than small ones). Local EJB references are a *huge* performance win. | The CPU usage and Load factor and user response time are all | considerably larger under Tomcat. Sure, you've got a lot more communications overhead between two JVMs now, whereas before you only had method calls within one JVM. I'm not sure what the WebLogic thin client does (some kind of EJB connector for Tomcat?), but you might want to see if it offers any kind of optimizations if both JVMs are running on the same machine (assuming they are). | Does anyone know where this degradation in performance is coming from? It's to be expected when you switch to a distributed environment. | Has anyone who has done this migration experienced the same behavior? If | so how did you mitigate it? Set user expectations accordingly. Maybe consider keeping EJB-heavy apps on WebLogic, and migrating just your more JSP- and servlet-heavy apps to Tomcat. You might also need to re-architect your app a bit and set up some Session Facades to provide some coarse-grained services, thereby keeping a lot of your EJB calls local (if in fact that is the problem). - The information contained in this message is confidential proprietary property of Nelnet, Inc. and its affiliated companies (Nelnet) and is intended for the recipient only. Any reproduction, forwarding, or copying without the express permission of Nelnet is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 is not starting on CENTOS 4
reym wrote: error message(s), after i typed in the command $CATALINA_HOME/bin/catalina.sh run: [...] SEVERE: Error initializing endpoint java.net.BindException: Address already in use:8080 Just as the message says, there's an application listening on port 8080 already running. I'd bet it's the Tomcat instance you previously started by $CATALINA_HOME/bin/startup.sh To find out for sure, use something like netstat. If it really is a previously launched Tomcat $CATALINA_HOME/bin/shutdown.sh should help. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5 is not starting on CENTOS 4
Keep replys on the list, please. There's a reason why the Reply-To header is set. [EMAIL PROTECTED] wrote: I have rectified the problem. Tomcat is now running on port 80, with the root user. But this is a concern for me because it is a security risk. How do I get around this? I have also read that one must never run Tomcat through port 80 with root, but if I try running Tomcat through port 80 with another user, i cannot because any port under 1024 is a privileged port, and only root has access to these ports. How do I get around this without using the iptables command?? Take a look at jsvc. The sources of jsvc come with the official Tomcat distribution from apache.org. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and Maven2
I looked at the embedded distribution, and can't tell what JARs are required for a basic Bootstrap embedded setup. In the lib folder there are 16 JARs...are they all required? At the following link I can't tell whether there's one Maven project that is the one I'm looking for, or whether I'll have to specify many different artifacts as dependencies (i.e. is there one artifact that lists as its own dependencies everything that's needed for an embedded distribution?) http://repo1.maven.org/maven2/tomcat/ David Smith-2 wrote: This is partially going to depend on what feature you use (or don't use). I would download the embedded tomcat .zip and take a look at the jars provided in server/lib, common/lib and bin directories. --David lightbulb432 wrote: I'd like to use Tomcat for in-place development, which can be done by using the Tomcat JARs itself. Of course the scope dependency would be something like provided for when the app is actually deployed, but for the purposes of development what JARs are needed to run an embedded bootstrap Tomcat? Thanks. David Smith-2 wrote: Could you post more details? Most Maven project only ever need the servlet api (and optionally jsp api) declared in dependencies as: dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId version2.0/version scopeprovided/scope /dependency I can't imagine a need for tomcat specific jars in any project. --David lightbulb432 wrote: I'd like to obtain Tomcat JARs using Maven, but I don't know which of its JARs from the following URL are required: http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/ Which of those JARs are required for Tomcat? Could somebody who uses Maven with Tomcat comment on how they use it for obtaining Tomcat JARs? Thanks. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Smith Network Operations Supervisor Department of Entomology Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: (607) 255-9571 Fax: (607) 255-0940 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Which-Tomcat-JARs-are-required--tf3716344.html#a10607347 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSVC configure errors
Hi, I have been using Tomcat 5.0 in the past but now have downloaded version 6.0 and see that there is this JSVC component which allows Tomcat to be run as a daemon but am having trouble building it. I am following the instructions at http://tomcat.apache.org/tomcat-6.0-doc/ setup.html but get the following errors when doing so: 1) When extracting the jsvc.tar.gz file with 'tar xvfz jsvc.tar.gz' I get an error of: tar: A lone zero block at 640 I'm not sure if this maters but thought I should include it just in case it has something to do with my other problems. 2) When I run configure, I get the following output: *** Current host *** checking build system type... powerpc-apple-darwin8.9.0 checking host system type... powerpc-apple-darwin8.9.0 checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Host support *** checking C flags dependant on host system type... ok *** Java compilation tools *** checking for javac... /System/Library/Frameworks/JavaVM.framework/ Home/bin/javac checking wether the Java compiler (/System/Library/Frameworks/ JavaVM.framework/Home/bin/javac) works... yes checking for jar... /System/Library/Frameworks/JavaVM.framework/Home/ bin/jar gcc flags added *** Writing output files *** sed: confdefs.h: No such file or directory configure: creating ./config.status config.status: creating Makefile config.status: error: cannot find input file: Makefile.in I'm not sure what to do here, I've checked and both of the files 'confdefs.h' and 'Makefile.in' exist and are readable. I'd also like to know if I can run Tomcat without JSVC as I am having problems trying to do that too, but will put that in a separate post. Any help is greatly appreciated, I'm on a Mac OS X 10.4.9 system trying to get Tomcat 6.0.10 running. Thanks, Greg - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning
Hi Sean, Take a look at my uriworkermap.properites file and see if it helps you. My web sites are working just fine on Windows 2003 and IIS 6. # *** Begin uriworkermap.properties *** # # Simple worker configuration file # /servlet/*=ajp13 # Mount the IC context to the ajp13 worker /ic/servlet/*=ajp13 /ic/*.jsp=ajp13 /ic/=ajp13 # Mount all jsp pages to the ajp13 worker /*.jsp=ajp13 /*.jws=ajp13 -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 14 de maio de 2007 13:40 Para: Tomcat Users List Assunto: Re: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning Thanks for the suggestion! With directory browsing enabled, after creating an Examples virtual directory, I can now get to those pages, but I'm still getting Page Not Found Errors when executing servlets. My IIS log shows that the ISAPI filter is not picking up the requests. I've tried 1.2.22 and 1.2.21. I get the green arrow showing its loaded on both versions, but neither is actually doing any redirecting. I'll try explicitly listing a servlet in the urimap file and see if that helps. Thanks for the tip, Marcus, it's got me a step closer. IIS Log: 2007-05-14 16:27:41 W3SVC1 127.0.0.1 GET /examples/servlets/index.html - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 200 0 0 2007-05-14 16:27:41 W3SVC1 127.0.0.1 GET /examples/servlets/images/code.gif - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 200 0 0 2007-05-14 16:27:53 W3SVC1 127.0.0.1 GET /examples/servlets/servlet/HelloWorldExample - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 404 0 3 #Software: Microsoft Internet Information Services 6.0 #Version: 1.0 #Date: 2007-05-14 16:31:41 #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 2007-05-14 16:31:41 W3SVC1 127.0.0.1 GET /examples/servlets/servlet/HelloWorldExample - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 404 0 3 2007-05-14 16:31:45 W3SVC1 127.0.0.1 GET /examples/servlets/servlet/RequestParamExample - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 404 0 3 Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] Milanez, Marcus [EMAIL PROTECTED] iebold.com To Tomcat Users List 05/14/2007 04:16 users@tomcat.apache.org AM cc Subject Please respond to RES: Tomcat 6.0 on Windows Server Tomcat Users 2003 IIS 6.0 connector not List functioning [EMAIL PROTECTED] che.org I must tell you guys, that the only way I can get Tomcat running along with IIS is doing an extra step that is not documented anywhere, which consists on creating a Virtual Directory on IIS for my application and pointing it to my tomcat app folder. I do all those known steps (registry import, create an ISAPI filter, etc...) but I also create a Virtual directory with the same name in IIS. For example, if I have an application located in c:\tomcat\webapps\foo , I also create a new virtual direcory in IIS names foo and point it to c:\tomcat\webapps\foo folder.. Thats the only way I can get tomcat working with IIS. Have you tried it? -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 11 de maio de 2007 19:26 Para: Tomcat Users List Assunto: Re: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning I set up and allowed the extension. I even set IIS to allow all ISAPI extensions. I've even set the CATALINA_HOME tree to Everyone - Full Control and still no ISAPI log and no errors in any of the other logs or system event logs. If I can at least get the log to work, I'll have something to work on. I've found quite a few similar problems in the archives and other sites, but no working solution. Thank you for the suggestion, got any others? Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] [EMAIL PROTECTED] net To 05/11/2007 02:08 users@tomcat.apache.org PM cc Subject Please respond to Re: Tomcat 6.0 on Windows Server Tomcat Users 2003 IIS 6.0 connector not List functioning [EMAIL PROTECTED] che.org Have you configured the Web Service Extension? I can't access Tomcat content through IIS. The troubleshooting steps on the IIS How-to were
RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning
Sean, I just forgot to mention that everytime (at least in my case) you change the uriworkermap.properties file you must perform an iisreset command to take effect... Have you done it? -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 14 de maio de 2007 13:40 Para: Tomcat Users List Assunto: Re: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning Thanks for the suggestion! With directory browsing enabled, after creating an Examples virtual directory, I can now get to those pages, but I'm still getting Page Not Found Errors when executing servlets. My IIS log shows that the ISAPI filter is not picking up the requests. I've tried 1.2.22 and 1.2.21. I get the green arrow showing its loaded on both versions, but neither is actually doing any redirecting. I'll try explicitly listing a servlet in the urimap file and see if that helps. Thanks for the tip, Marcus, it's got me a step closer. IIS Log: 2007-05-14 16:27:41 W3SVC1 127.0.0.1 GET /examples/servlets/index.html - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 200 0 0 2007-05-14 16:27:41 W3SVC1 127.0.0.1 GET /examples/servlets/images/code.gif - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 200 0 0 2007-05-14 16:27:53 W3SVC1 127.0.0.1 GET /examples/servlets/servlet/HelloWorldExample - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 404 0 3 #Software: Microsoft Internet Information Services 6.0 #Version: 1.0 #Date: 2007-05-14 16:31:41 #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status 2007-05-14 16:31:41 W3SVC1 127.0.0.1 GET /examples/servlets/servlet/HelloWorldExample - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 404 0 3 2007-05-14 16:31:45 W3SVC1 127.0.0.1 GET /examples/servlets/servlet/RequestParamExample - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.432 2) 404 0 3 Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] Milanez, Marcus [EMAIL PROTECTED] iebold.com To Tomcat Users List 05/14/2007 04:16 users@tomcat.apache.org AM cc Subject Please respond to RES: Tomcat 6.0 on Windows Server Tomcat Users 2003 IIS 6.0 connector not List functioning [EMAIL PROTECTED] che.org I must tell you guys, that the only way I can get Tomcat running along with IIS is doing an extra step that is not documented anywhere, which consists on creating a Virtual Directory on IIS for my application and pointing it to my tomcat app folder. I do all those known steps (registry import, create an ISAPI filter, etc...) but I also create a Virtual directory with the same name in IIS. For example, if I have an application located in c:\tomcat\webapps\foo , I also create a new virtual direcory in IIS names foo and point it to c:\tomcat\webapps\foo folder.. Thats the only way I can get tomcat working with IIS. Have you tried it? -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 11 de maio de 2007 19:26 Para: Tomcat Users List Assunto: Re: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning I set up and allowed the extension. I even set IIS to allow all ISAPI extensions. I've even set the CATALINA_HOME tree to Everyone - Full Control and still no ISAPI log and no errors in any of the other logs or system event logs. If I can at least get the log to work, I'll have something to work on. I've found quite a few similar problems in the archives and other sites, but no working solution. Thank you for the suggestion, got any others? Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] [EMAIL PROTECTED] net To 05/11/2007 02:08 users@tomcat.apache.org PM cc Subject Please respond to Re: Tomcat 6.0 on Windows Server Tomcat Users 2003 IIS 6.0 connector not List functioning [EMAIL PROTECTED] che.org Have you configured the Web Service Extension? I can't access Tomcat content through IIS. The troubleshooting steps on the IIS How-to were insufficient to identify my problem. What am I missing? A few bits of relevant information: The isapi log file does not get created. I've verified that the registry settings are correct for the redirector. I also tried using
Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning
I added one specific example explicity to get this: /servlets-examples/*=ajp13w /examples/*=ajp13w /examples/jsp/jsp2/el/basic-arithmetic.jsp=ajp13w /*=ajp13w !/servlets-examples/*.jpeg=ajp13w But I am still getting this from IIS: 2007-05-14 16:54:06 W3SVC1 127.0.0.1 GET /examples/jsp/jsp2/el/basic-arithmetic.jsp - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) 404 3 50 And, yes, I've been reseting IIS after every change and frequently tomcat too just to be safe. At this point I'm trying hard not to take anything for granted. I've been stuck on this for more time than I care to admit. Clearly I'm missing something, but I can't seem to find it. Can you think of anything I might be missing in the redirect settings? It seems to me this is the most likely place for my error, since I'm also not getting a log file. Here is the output when I export my registry key: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0 \\logs\\isapi.log log_level=debug worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0 \\conf\\workers.properties worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0\\conf\\uriworkermap.properties I also have isapi_redirect.properties in C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin: # Configuration file for the Jakarta ISAPI Redirector # The path to the ISAPI Redirector Extension, relative to the website # This must be in a virtual directory with execute privileges extension_uri=/jakarta/isapi_redirect.dll # Full path to the log file for the ISAPI Redirector log_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0 \logs\isapi_redirect.log # Log level (debug, info, warn, error or trace) log_level=debug # Full path to the workers.properties file worker_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0 \conf\workers.properties # Full path to the uriworkermap.properties file worker_mount_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0 \conf\uriworkermap.properties I know that the log file names do not match, but neither is getting created. If it finally does work, the log file name should tell me which one is working. I've also tried cutting and pasting those file names into explorer and the files do open. Except of course for the log files which dont exist. Also, permissions on the entire tomcat home tree is set to everyone full control. I'm temped to make Everyone an admin on the server to see if it helps. Thanks again for the suggestions, I'm near the end of my rope! Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] Milanez, Marcus [EMAIL PROTECTED] iebold.comTo Tomcat Users List 05/14/2007 09:46 users@tomcat.apache.org AM cc Subject Please respond to RES: RES: Tomcat 6.0 on Windows Tomcat Users Server 2003 IIS 6.0 connector not List functioning [EMAIL PROTECTED] che.org Hi Sean, Take a look at my uriworkermap.properites file and see if it helps you. My web sites are working just fine on Windows 2003 and IIS 6. # *** Begin uriworkermap.properties *** # # Simple worker configuration file # /servlet/*=ajp13 # Mount the IC context to the ajp13 worker /ic/servlet/*=ajp13 /ic/*.jsp=ajp13 /ic/=ajp13 # Mount all jsp pages to the ajp13 worker /*.jsp=ajp13 /*.jws=ajp13 -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 14 de maio de 2007 13:40 Para: Tomcat Users List Assunto: Re: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning Thanks for the suggestion! With directory browsing enabled, after creating an Examples virtual directory, I can now get to
Re: JK connector issue - Can't get JKStatus working with IIS 6.0
OK, that solves the quiz: The isapi plugin has a speciality. It first checks for a forwarding rule, which is specific for the virtual server. If it doesn't find one, then it checks for global rules. Unfortunately there is a little gotcha, if you use /* as a rule. It will always map as a virtual host rule. ;ore precisely the plugin first prefixes your request URL with /YOURVIRTUALHOST, in your case /hostname.domainname.com. This new URL is then matched against all forwarding rules. In your case /* will match and will be chosen. If none would match, then it would use the original URL without virtual host prefix and try again. So if you really have to use the global /*, then you need to use /hostname.domainname.com/jkmanager in your forwarding rule for the manager. Longer rules will be preferred about shorter ones, but the virtual server match will always be done first. Regards, Rainer Jean-Francois Beaulac wrote: Hi, Thank you everyone for the support, it's really appreciated. I think my problem is a rule priority problem, here is the JK log with debug on: May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (747): Filter started [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (813): Virtual Host redirection of /hostname.domainname.com/jkmanager [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/hostname.domainname.com/jkmanager' from 2 maps [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/jkmanager' [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*' [Mon May 14 10:27:59 2007] [2564:2720] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match wlb - /* [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (830): check if [/jkmanager] is points to the web-inf directory [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpFilterProc::jk_isapi_plugin.c (848): [/jkmanager] is a servlet url - should redirect to wlb [Mon May 14 10:27:59 2007] [2564:2720] [debug] wc_get_worker_for_name::jk_worker.c (111): found a worker wlb [Mon May 14 10:27:59 2007] [2564:2720] [debug] HttpExtensionProc::jk_isapi_plugin.c (1003): got a worker for name wlb Is it correct to say that my URI rule /*=wlb Has a higher priority than /jkmanager=jkstatus? If yes, it there a way to tell the JK to match the jkstatus rule prior to the other one? Thank you very much - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
port problem
I'm running tomcat 5.5 and sniffing out problems with a somewhat complex web site. After deploying the war into the running tomcat, I go to the home page and get some exceptions. Looking at the sniffer output, most of the requests are to localhost:8080, but some are to just localhost, which causes a Connection Refused. Why would some requests not go to port 8080? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat without JSVC
Wow, I had done that once already but figured I would try again and everything works with version 5.5 and 6.0. It appears that my download came from a different mirror this time. I double checked, and the mirror I originally used was http:// apache.siamwebhosting.com and when I do and md5 hash of the zip file I downloaded I get 5d4e0d7632c5ccf43bd684655fba42d6 as opposed to 145ea3ac0053d599c2a3601c12e6eca2. Is there someone I should notify of this problem? I also just re-downloaded from this mirror and got the same result so I don't think it was a problem in the transfer that caused it. I guess I should have checked the md5 checksum of my download before troubling the list, thanks for your help though. BTW - This also fixed the problem I was having with getting configure to work in a previous post. Thanks, Greg On May 14, 2007, at 11:03 AM, Caldarale, Charles R wrote: From: Greg Spitzer [mailto:[EMAIL PROTECTED] Subject: Tomcat without JSVC Exception in thread main java.lang.NoClassDefFoundError: Server/Web No such class is used in a standard Tomcat download. If you haven't done so already, try installing a fresh copy from http://tomcat.apache.org/download-55.cgi and see how that wotks. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e- mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat without JSVC
This problem has been solved and was due to a bad download. I have re- downloaded from a different mirror and everything works now. Sorry to bother. Thanks, Greg On May 14, 2007, at 10:54 AM, Greg Spitzer wrote: Hi, I'm trying to run Tomcat for development purposes by just starting it up from bin/startup.sh rather than using JSVC as I did with previous pre 5.5 versions. However, when I try to run Tomcat via the startup.sh script, I get the following error in the catalina.out log file and it doesn't startup: Exception in thread main java.lang.NoClassDefFoundError: Server/Web I've checked and it appears everything (JRE_HOME, CATALINA_HOME, etc) is getting setup properly so I'm not sure where to look next. Any help is greatly appreciated. Thanks, Greg - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSVC configure errors
This problem has been solved and was due to a bad download. I have re- downloaded from a different mirror and everything works now. Sorry to bother. Thanks, Greg On May 14, 2007, at 10:41 AM, Greg Spitzer wrote: Hi, I have been using Tomcat 5.0 in the past but now have downloaded version 6.0 and see that there is this JSVC component which allows Tomcat to be run as a daemon but am having trouble building it. I am following the instructions at http://tomcat.apache.org/ tomcat-6.0-doc/setup.html but get the following errors when doing so: 1) When extracting the jsvc.tar.gz file with 'tar xvfz jsvc.tar.gz' I get an error of: tar: A lone zero block at 640 I'm not sure if this maters but thought I should include it just in case it has something to do with my other problems. 2) When I run configure, I get the following output: *** Current host *** checking build system type... powerpc-apple-darwin8.9.0 checking host system type... powerpc-apple-darwin8.9.0 checking cached host system type... ok *** C-Language compilation tools *** checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib *** Host support *** checking C flags dependant on host system type... ok *** Java compilation tools *** checking for javac... /System/Library/Frameworks/JavaVM.framework/ Home/bin/javac checking wether the Java compiler (/System/Library/Frameworks/ JavaVM.framework/Home/bin/javac) works... yes checking for jar... /System/Library/Frameworks/JavaVM.framework/ Home/bin/jar gcc flags added *** Writing output files *** sed: confdefs.h: No such file or directory configure: creating ./config.status config.status: creating Makefile config.status: error: cannot find input file: Makefile.in I'm not sure what to do here, I've checked and both of the files 'confdefs.h' and 'Makefile.in' exist and are readable. I'd also like to know if I can run Tomcat without JSVC as I am having problems trying to do that too, but will put that in a separate post. Any help is greatly appreciated, I'm on a Mac OS X 10.4.9 system trying to get Tomcat 6.0.10 running. Thanks, Greg - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: port problem
Dave Sailer wrote: I'm running tomcat 5.5 and sniffing out problems with a somewhat complex web site. After deploying the war into the running tomcat, I go to the home page and get some exceptions. Looking at the sniffer output, most of the requests are to localhost:8080, but some are to just localhost, which causes a Connection Refused. Why would some requests not go to port 8080? because someone hard coded the full url? which requests are you referring to, the sub-requests from the HTML that refer to images, scripts, stylesheets? p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: port problem
more detail: we have a customer 404 error page with... :iframe src=http://www.blahblah.net/mypage.html; width=100% height=105 scrolling=no frameborder=0/iframe The build script replaces http://www.blahblah.net with http://test.blahblah.net and my hosts file maps test.blahblah.net to 127.0.0.1, this to keep all links pointing to the local tomcat. Dave Sailer wrote: I'm running tomcat 5.5 and sniffing out problems with a somewhat complex web site. After deploying the war into the running tomcat, I go to the home page and get some exceptions. Looking at the sniffer output, most of the requests are to localhost:8080, but some are to just localhost, which causes a Connection Refused. Why would some requests not go to port 8080? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with JDBCRealm and mysql ...
I am successfully running a local web application on Windows XP, using Tomcat 5.5.20, and a JDBCRealm for the application that accesses two simple tables (users and user_roles) on a local mysql database. However, when I try to run the identical set-up on a remote linux server I get database connectivity problems. A sample logging error message is: ERROR 14 May 07 12:44:54 - Exception opening database connection java.sql.SQLException: com.mysql.jdbc.Driver I can connect to the database and its tables, using the user/password/database details in the server.xml JDBCRealm specification, as shown below. So why can't Tomcat? Here is an excerpt from the server.xml on the remote linux machine. Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=/userroleadmin docBase=/opt/tomcat5/webapps/userroleadmin debug=99 Realm className=org.apache.catalina.realm.JDBCRealm driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3306/test connectionName=frank connectionPassword=burns userTable=users userNameCol=username userCredCol=password userRoleTable=user_roles roleNameCol=role / / /Context Thanks, Frank Burns.
RE: port problem
From: Dave Sailer [mailto:[EMAIL PROTECTED] Subject: Re: port problem more detail: we have a customer 404 error page with... :iframe src=http://www.blahblah.net/mypage.html; width=100% height=105 scrolling=no frameborder=0/iframe Why don't you just get rid of the http://www.blahblah.net; part? (Leave in the leading slash before mypage.html.) Leaving the host in the reference forces it to port 80; taking it out will let the browser automatically fill in both the host and the port. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK Connector errors under heavy load
All, I'm doing some load testing and I'm having a bit of trouble trying to interpret the numbers on the Tomcat Manager's Server Status page. Specifically, each defined connector (http or jk) has a block telling you the values of maxThreads, minSpareThreads, etc. In my testing, I've found that I start getting some errors under heavy load and the Error count number starts going way up on my JK connector. Can someone tell me what Error count indicates? Additional symptoms are that Tomcat appears to not have properly associated a session with an incoming user (it doesn't get the wrong session, it appears to get a new, empty session). When I first started seeing this, I found that I was bumping up against maxThreads, but now I have maxThreads sitting at approximately 125% of the number of users I'm using to test, and I'm getting this same issue. I'm unsure of where else to start looking for bottlenecks now. I'm not CPU, I/O or database bound, but there's no other log entries. For the record, it's Apache 2.0.52/mod_jk 1.2.22/Tomcat 5.5.23. Thanks, Brantley Hobbs - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: port problem
I can't do that because, well, you know how this business is. I will just run on port 80. Caldarale, Charles R wrote: From: Dave Sailer [mailto:[EMAIL PROTECTED] Subject: Re: port problem more detail: we have a customer 404 error page with... :iframe src=http://www.blahblah.net/mypage.html; width=100% height=105 scrolling=no frameborder=0/iframe Why don't you just get rid of the http://www.blahblah.net; part? (Leave in the leading slash before mypage.html.) Leaving the host in the reference forces it to port 80; taking it out will let the browser automatically fill in both the host and the port. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RES: RES: Tomcat 6.0 on Windows Server 2003 IIS 6.0 connector not functioning
I tried adding the following lines to workers.properties from your config files, Marcus, worker.tomcat_home=C:\Program Files\Apache Software Foundation\Tomcat 6.0 worker.java_home=C:\Program Files\Java\jdk1.6.0 I tried using single quotes as well. I also tried your isapi_redirect.dll. Thanks for the contribution, but neither resolved the problem. I think my next step will be to start over and use pathnames without any spaces. It can't hurt anything at this point. Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] [EMAIL PROTECTED] sea.com To 05/14/2007 10:09 Tomcat Users List AMusers@tomcat.apache.org cc Please respond to Subject Tomcat Users Re: RES: RES: Tomcat 6.0 on Windows List Server 2003 IIS 6.0 connector not [EMAIL PROTECTED] functioning che.org I added one specific example explicity to get this: /servlets-examples/*=ajp13w /examples/*=ajp13w /examples/jsp/jsp2/el/basic-arithmetic.jsp=ajp13w /*=ajp13w !/servlets-examples/*.jpeg=ajp13w But I am still getting this from IIS: 2007-05-14 16:54:06 W3SVC1 127.0.0.1 GET /examples/jsp/jsp2/el/basic-arithmetic.jsp - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.2;+SV1;+.NET+CLR+1.1.4322) 404 3 50 And, yes, I've been reseting IIS after every change and frequently tomcat too just to be safe. At this point I'm trying hard not to take anything for granted. I've been stuck on this for more time than I care to admit. Clearly I'm missing something, but I can't seem to find it. Can you think of anything I might be missing in the redirect settings? It seems to me this is the most likely place for my error, since I'm also not getting a log file. Here is the output when I export my registry key: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0 \\logs\\isapi.log log_level=debug worker_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0 \\conf\\workers.properties worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Tomcat 6.0\\conf\\uriworkermap.properties I also have isapi_redirect.properties in C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin: # Configuration file for the Jakarta ISAPI Redirector # The path to the ISAPI Redirector Extension, relative to the website # This must be in a virtual directory with execute privileges extension_uri=/jakarta/isapi_redirect.dll # Full path to the log file for the ISAPI Redirector log_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0 \logs\isapi_redirect.log # Log level (debug, info, warn, error or trace) log_level=debug # Full path to the workers.properties file worker_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0 \conf\workers.properties # Full path to the uriworkermap.properties file worker_mount_file=C:\Program Files\Apache Software Foundation\Tomcat 6.0 \conf\uriworkermap.properties I know that the log file names do not match, but neither is getting created. If it finally does work, the log file name should tell me which one is working. I've also tried cutting and pasting those file names into explorer and the files do open. Except of course for the log files which dont exist. Also, permissions on the entire tomcat home tree is set to everyone full control. I'm temped to make Everyone an admin on the server to see if it helps. Thanks again for the suggestions, I'm near the end of my rope! Sean McKellips Systems Administrator Associated Grocers 206-767-8725 phone 206-764-7879 fax [EMAIL PROTECTED] Milanez, Marcus [EMAIL PROTECTED] iebold.comTo Tomcat Users
Re: Problems with JDBCRealm and mysql ...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank Burns wrote: However, when I try to run the identical set-up on a remote linux server I get database connectivity problems. A sample logging error message is: ERROR 14 May 07 12:44:54 - Exception opening database connection java.sql.SQLException: com.mysql.jdbc.Driver Can we get the rest of that exception? The name of the driver isn't exactly helpful :( I can connect to the database and its tables, using the user/password/database details in the server.xml JDBCRealm specification, as shown below. How do you connect? Using the mysql command-line interface? So why can't Tomcat? Several things can go wrong. First, the command-line interface will use a named pipe on the filesystem to communicate with the server unless you specify the -h parameter and use something other than localhost (such as 127.0.0.1). If your MySQL server is configured to disable TCP/IP networking (and rely only on this named pipe), then Connector/J will be unable to connect (Connector/J uses sockets to connect, and requires TCP/IP networking to be enabled on the server). See /etc/my.conf and friends to see if the skip-networking setting it active. If it is, then you'll have to disable it and restart MySQL in order to use Connector/J. Not sure why this wouldn't be the case on win32... win32 has named pipes (of a sort), but I'm not entirely sure how they are supported by MySQL. The second thing that can go wrong is the name of localhost. This used to be a problem back in the day with Linux distros that has host files that declared localhost.localdomain to be the first alias to 127.0.0.1 instead of plain-old localhost. This makes connections to 127.0.0.1 from Java look like they are coming from localhost.localdomain to MySQL. Since MySQL does pretty simple host checking, and you are likely to have created users like '[EMAIL PROTECTED]', the authentication fails. Check /etc/hosts to ensure that localhost is the first alias for 127.0.0.1. Alternatively, you can add a GRANT in MySQL for '[EMAIL PROTECTED]'. There could be other things wrong, but these are the most obvious to me to try first. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSNDW9CaO5/Lv0PARAsQYAJ4iCcglCT6f0jssMcHR1mu9J1DjWQCgvYDF vc4QrWyTeyzE7dljgdDEfBk= =LwyE -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK Connector errors under heavy load
I have had the same question without any answer from this forum. You can turn on mod_jk logging to see what the httpd side of the ajp protocol has to say. I got those errors to go away, but I don't know how to turn on detailed logging for the tomcat side of ajp I am unable to find any error information from tomcat on this issue. Hope you get our answer. regards, tony Brantley Hobbs-3 wrote: All, I'm doing some load testing and I'm having a bit of trouble trying to interpret the numbers on the Tomcat Manager's Server Status page. Specifically, each defined connector (http or jk) has a block telling you the values of maxThreads, minSpareThreads, etc. In my testing, I've found that I start getting some errors under heavy load and the Error count number starts going way up on my JK connector. Can someone tell me what Error count indicates? Additional symptoms are that Tomcat appears to not have properly associated a session with an incoming user (it doesn't get the wrong session, it appears to get a new, empty session). When I first started seeing this, I found that I was bumping up against maxThreads, but now I have maxThreads sitting at approximately 125% of the number of users I'm using to test, and I'm getting this same issue. I'm unsure of where else to start looking for bottlenecks now. I'm not CPU, I/O or database bound, but there's no other log entries. For the record, it's Apache 2.0.52/mod_jk 1.2.22/Tomcat 5.5.23. Thanks, Brantley Hobbs - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/JK-Connector-%22errors%22-under-heavy-load-tf3754760.html#a10613310 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with JDBCRealm and mysql ...
Hi Chris. In the in the server.xml JDBCRealm specification, I changed localhost to 127.0.0.1 and it works. Thanks for your help. Frank. On 5/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Frank, Frank Burns wrote: However, when I try to run the identical set-up on a remote linux server I get database connectivity problems. A sample logging error message is: ERROR 14 May 07 12:44:54 - Exception opening database connection java.sql.SQLException: com.mysql.jdbc.Driver Can we get the rest of that exception? The name of the driver isn't exactly helpful :( I can connect to the database and its tables, using the user/password/database details in the server.xml JDBCRealm specification, as shown below. How do you connect? Using the mysql command-line interface? So why can't Tomcat? Several things can go wrong. First, the command-line interface will use a named pipe on the filesystem to communicate with the server unless you specify the -h parameter and use something other than localhost (such as 127.0.0.1). If your MySQL server is configured to disable TCP/IP networking (and rely only on this named pipe), then Connector/J will be unable to connect (Connector/J uses sockets to connect, and requires TCP/IP networking to be enabled on the server). See /etc/my.conf and friends to see if the skip-networking setting it active. If it is, then you'll have to disable it and restart MySQL in order to use Connector/J. Not sure why this wouldn't be the case on win32... win32 has named pipes (of a sort), but I'm not entirely sure how they are supported by MySQL. The second thing that can go wrong is the name of localhost. This used to be a problem back in the day with Linux distros that has host files that declared localhost.localdomain to be the first alias to 127.0.0.1 instead of plain-old localhost. This makes connections to 127.0.0.1 from Java look like they are coming from localhost.localdomain to MySQL. Since MySQL does pretty simple host checking, and you are likely to have created users like '[EMAIL PROTECTED]', the authentication fails. Check /etc/hosts to ensure that localhost is the first alias for 127.0.0.1. Alternatively, you can add a GRANT in MySQL for '[EMAIL PROTECTED]'. There could be other things wrong, but these are the most obvious to me to try first. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSNDW9CaO5/Lv0PARAsQYAJ4iCcglCT6f0jssMcHR1mu9J1DjWQCgvYDF vc4QrWyTeyzE7dljgdDEfBk= =LwyE -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 6 trimDirectiveWhitespaces
You're welcome. It may be a good idea to file a bug, because Tomcat 6.0.10 supports JSP 2.1 and trimDirectiveWhitespaces is a new feature in JSP 2.1 , it is supposed to work. I've personally tried Ant's RegEx to compress the white spaces in HTML, JS and other files, I've also heard that it is pointless to compress white spaces because files sent by the server are gzip compressed anyway --- which takes care of the white spaces, and then they are uncompressed on the browser --- which makes the white spaces appear again. There are some things you should watch out when white space compressing with Ant's RegEx. It puts everything in one single line. So if you've used open comments such as // in either JSP or JavaScript, the code after // will be commented out. Similarly if you omit the closing semicolon in JavaScript, and everything falls on one line, the Javascript wont work as expected. The solutions are not to use open style comments // and to close all Javascript statements with a semi colon. Anyway, your situation may be different but I just thought I'll let you know. -Regards Rashmi On 5/14/07, Milanez, Marcus [EMAIL PROTECTED] wrote: Thanks for your attention! I'll try RegEX! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run Xalan on Tomcat
On 5/14/07, Christopher Schultz [EMAIL PROTECTED] wrote: Rashmi Rubdi wrote: One way to use Xalan is with JSTL XML tags inside a JSP. A much better way is to use Cocoon (http://cocoon.apache.org). I've not tried Cocoon yet, so I really cant compare JSTL XML tags with Cocoon but I know that with JSTL XML tags you only need 3 lines of code to transform an XML with an XSLT file, and show the output on a JSP --- and it requires Xalan JAR files. 3 lines are 1) Import XML 2) Import XSLT 3) x:transform xml with xslt Well other than the above, it is also possible transform within a JSP with x:parse tag. In addition to Cocoon, JSTL XML tags, I think there are other frameworks also available by Apache , each framework serves it's own purpose. - -chris -Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Tomcat 6
lightbulb432 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Why is there no embedded Tomcat download for Tomcat 6, while there is for Tomcat 5.5? In TC 6 (at least with the default configuration) there really isn't much difference between embedded and regular TC (except, of course for the bootstrap.jar in regular TC). What's the difference between regular and embedded Tomcat, in terms of functionality and what the distributions come with? Regular TC is configured using server.xml, and embedded is configured using your Java/JMX code. -- View this message in context: http://www.nabble.com/Embedded-Tomcat-6-tf3736013.html#a10457545 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to change Tomcat 5.5 default socket factory
Tomcat (at least since 4.1.x) doesn't allow overriding the socket factory. However, you can override the SSLImplementation in the Connector / element and implement your own socket factory there. Look in the o.a.t.u.net package of the Tomcat source distro to see what is required. Kovacs, Robert [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear All ! Could somebody help me to find out how can I redefine the Tomcat 5.5 default socket factory (client and server) ? We need to develop an own socket factory for SSL compliance sockets, we couldn't use the existing SSL configuration for it. Thank you, Robert @vantage CAF Support (V7.5 SP2) CSS INS 2, Siemens PSE Ltd. Hungary Tel.: +36 1 4713090 Mob.: +36 30 6769504 Fax.: +36 1 4713490 E-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Embedded Tomcat 6
Thanks for your response. How can I get Tomcat running from my Java code, now that bootstrap.jar is not in the Tomcat distribution for 6? I'm used to the pre-Tomcat 6 API of the Bootstrap class...has this changed in the latest version? (Bootstrap isn't available in any of Tomcat 6's JARs.) Could somebody point me to the documentation that explains how to take advantage of this with Tomcat 6? Bill Barker-2 wrote: lightbulb432 [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Why is there no embedded Tomcat download for Tomcat 6, while there is for Tomcat 5.5? In TC 6 (at least with the default configuration) there really isn't much difference between embedded and regular TC (except, of course for the bootstrap.jar in regular TC). What's the difference between regular and embedded Tomcat, in terms of functionality and what the distributions come with? Regular TC is configured using server.xml, and embedded is configured using your Java/JMX code. -- View this message in context: http://www.nabble.com/Embedded-Tomcat-6-tf3736013.html#a10457545 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Embedded-Tomcat-6-tf3736013.html#a10616561 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]