Re: strange exception - need advise
Hello! I think, that when exception occurs, something has already been written to output stream. Tomcat tries to redirect to error page, but it cannot do it, because something was written. Thank you, Igor - Original Message - From: Guy Katz [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, May 01, 2005 8:44 AM Subject: strange exception - need advise hi; i keep getting this exception below (tomcat 5.0.30). can anybody shed some light on this? my error page configuration is as follows: error-page exception-typejava.lang.Exception/exception-type location/faces/error.jsp/location /error-page error-page error-code404/error-code location/faces/error.jsp/location /error-page !-- Forbidden -- error-page error-code403/error-code location/faces/error.jsp/location /error-page error-page error-code500/error-code location/faces/error.jsp/location /error-page thanks in advance. [EMAIL PROTECTED]: Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/faces/error.jsp] java.lang.IllegalStateException at org.apache.coyote.Response.reset(Response.java:296) at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:646) at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:912) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:389 ) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java: 225) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange exception - need advise
Hello! If you want to locate line which causes this error, you can insert loggers on your page. This way you could determine, which line is the reason of error, and what should be fixed. The other possible solution is to set response.setBufferSize(... large number ...); for example, response.setBufferSize(10); in the beggining of the page. Then error page will work properly with this modification, so you will be able to see exception in log. Thank you, Igor - Original Message - From: Guy Katz [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, May 05, 2005 11:45 AM Subject: RE: strange exception - need advise thanks. so what should i look for to solve this? -Original Message- From: Igor [mailto:[EMAIL PROTECTED] Sent: Thursday, May 05, 2005 11:41 AM To: tomcat-user@jakarta.apache.org Subject: Re: strange exception - need advise Hello! I think, that when exception occurs, something has already been written to output stream. Tomcat tries to redirect to error page, but it cannot do it, because something was written. Thank you, Igor - Original Message - From: Guy Katz [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, May 01, 2005 8:44 AM Subject: strange exception - need advise hi; i keep getting this exception below (tomcat 5.0.30). can anybody shed some light on this? my error page configuration is as follows: error-page exception-typejava.lang.Exception/exception-type location/faces/error.jsp/location /error-page error-page error-code404/error-code location/faces/error.jsp/location /error-page !-- Forbidden -- error-page error-code403/error-code location/faces/error.jsp/location /error-page error-page error-code500/error-code location/faces/error.jsp/location /error-page thanks in advance. [EMAIL PROTECTED]: Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/faces/error.jsp] java.lang.IllegalStateException at org.apache.coyote.Response.reset(Response.java:296) at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:646) at org.apache.coyote.tomcat5.CoyoteResponse.reset(CoyoteResponse.java:912) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:389 ) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java: 225) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:684) at java.lang.Thread.run(Thread.java:534) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to perform background process on manager question
Hello! I have the following entry in catalina.out: org.apache.catalina.core.StandardContext backgroundProcess WARNING: Unable to perform background process on manager java.util.NoSuchElementException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:790) at java.util.HashMap$KeyIterator.next(HashMap.java:823) at java.util.AbstractCollection.toArray(AbstractCollection.java:176) at org.apache.catalina.session.StandardSession.keys(StandardSession.java:1523) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:706) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:566) at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:782) at org.apache.catalina.session.StandardManager.backgroundProcess(StandardManager.java:795) at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4618) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1619) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1628) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1608) at java.lang.Thread.run(Thread.java:595) There is no any entries in access log, that can correspond to this event. Could somebody please tell me what does it mean? Thank you in advance, Igor
OT: JGroups problem
Hello! I am trying to integrate JGroups into web aplication. Does somebody know solution to JGroups problem described in http://jira.jboss.com/jira/browse/JGRP-31 Thank you, Igor
Re: Failed JDBC connection hangs Tomcat
Hello! I am referring to JTDS 1.0. I think, that the problem is in net.sourceforge.jtds.jdbc.SharedSocket class: it should set timeout for socket, otherwise methods getNetPacket and sendNetPacket may hang. Igor - Original Message - From: Arthur D'Alessandro [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; Hari Mailvaganam [EMAIL PROTECTED] Cc: Igor [EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 3:40 PM Subject: Re: Failed JDBC connection hangs Tomcat What version of the JTDS are you referring to, I know they recently released 1.0 code... On Sun, 30 Jan 2005 20:06:07 -0800, Hari Mailvaganam [EMAIL PROTECTED] wrote: The JTDS driver can cause the hanging you described - this has occured in a test we did on Win 2k, SQL Server 2k, 1.5 JDK. reagrds, Hari Mailvaganam On Sun, 30 Jan 2005 08:39:50 +0200, Igor [EMAIL PROTECTED] wrote: We have the same problem, that described in http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html There is ServletContextListener in our application, that schedule two tasks for repeated fixed rate execution on context initialization (Timer.scheduleAtFixedRate). First task is executed every minute. It queries MS SQL server, second task is executed every hour. If MS SQL server goes down, first task tries to use connection to database. After this Tomcat may hang: when user tries to download a page, he or her will wait for a long time (more that 1 day). At the same time second taks (that is executed every hour) works as it was expected: there are corresponding entries in log file. First task is executed in separate thread, and I do not understand how can it hang whole tomcat (at least one context). We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for MS and JTDS drivers :-( Does somebody know how can I prevent tomcat from hang in such situations? Thank you in advance, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Art D'Alessandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Failed JDBC connection hangs Tomcat
Hello! I sent answer to tomcat users yesterday, but it seems not to be accepted ... So I am sending it once more ... I am referring to JTDS 1.0. I think, that the problem is in net.sourceforge.jtds.jdbc.SharedSocket class: it should set timeout for socket, otherwise methods getNetPacket and sendNetPacket may hang. Igor - Original Message - From: Arthur D'Alessandro [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; Hari Mailvaganam [EMAIL PROTECTED] Cc: Igor [EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 3:40 PM Subject: Re: Failed JDBC connection hangs Tomcat What version of the JTDS are you referring to, I know they recently released 1.0 code... On Sun, 30 Jan 2005 20:06:07 -0800, Hari Mailvaganam [EMAIL PROTECTED] wrote: The JTDS driver can cause the hanging you described - this has occured in a test we did on Win 2k, SQL Server 2k, 1.5 JDK. reagrds, Hari Mailvaganam On Sun, 30 Jan 2005 08:39:50 +0200, Igor [EMAIL PROTECTED] wrote: We have the same problem, that described in http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html There is ServletContextListener in our application, that schedule two tasks for repeated fixed rate execution on context initialization (Timer.scheduleAtFixedRate). First task is executed every minute. It queries MS SQL server, second task is executed every hour. If MS SQL server goes down, first task tries to use connection to database. After this Tomcat may hang: when user tries to download a page, he or her will wait for a long time (more that 1 day). At the same time second taks (that is executed every hour) works as it was expected: there are corresponding entries in log file. First task is executed in separate thread, and I do not understand how can it hang whole tomcat (at least one context). We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for MS and JTDS drivers :-( Does somebody know how can I prevent tomcat from hang in such situations? Thank you in advance, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Art D'Alessandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Failed JDBC connection hangs Tomcat
We have the same problem, that described in http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html There is ServletContextListener in our application, that schedule two tasks for repeated fixed rate execution on context initialization (Timer.scheduleAtFixedRate). First task is executed every minute. It queries MS SQL server, second task is executed every hour. If MS SQL server goes down, first task tries to use connection to database. After this Tomcat may hang: when user tries to download a page, he or her will wait for a long time (more that 1 day). At the same time second taks (that is executed every hour) works as it was expected: there are corresponding entries in log file. First task is executed in separate thread, and I do not understand how can it hang whole tomcat (at least one context). We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for MS and JTDS drivers :-( Does somebody know how can I prevent tomcat from hang in such situations? Thank you in advance, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: windows-1251 (Russian encoding)
Hello! Please try to run tomcat with -Dfile.encoding=ISO-8859-1 java option. It might help I am from Ukraine too :-) Igor - Original Message - From: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Friday, December 24, 2004 12:57 PM Subject: windows-1251 (Russian encoding) Good day. Sorry for my English, I'll try to explain. I'm using Tomcat to construct site (using JSP) that extract data using SQL from DB Server. But I have trouble. Some information from DB written using character encoding windows-1251. After SQL request I retrieve information like ??? ? instead of normal russian word. If you ever used Sybase Jaguar Server you saw that there you can correct charsets parameters for your language but in Tomcat I don't know how I can do it. How I can configure retrieve info from DB in correct charset in Tomcat? Thanks a lot. ps: sorry for my English. By the way, I'm from Ukrain. 8) Kvitka Maxim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Environment entries question
Hello! I have made some researches and I think, that I have found patch, that solves my problem. I tested it a little. It works fine for me. But I might miss something important while testing. As I mentioned in previous letter, open Bugzilla item is related with my problem, but it is not the same. It is JNDI env-entry not reload when context reloaded (http://issues.apache.org/bugzilla/show_bug.cgi?id=29727) My patch will solve the following problem If Environment entry is changed using admin app, the change is not visisble in JNDI. So I am attaching my patch to the letter. Thank you, Igor - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, November 01, 2004 4:01 PM Subject: RE: Environment entries question Hi, But it appears that I can change this value in admin application. And this change is not visible in JNDI :-( There's a Bugzilla item open for this. it was: Attach your patch in diff -u format to the open Bugzilla item. Could you please tell you opinion - is this modification ok? You test it and tell us ;) If you get it into Bugzilla within the next couple of days it'll probably make it to Tomcat 5.0.30. Yoav This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Environment entries question
Hello! There's a Bugzilla item open for this. Bugzilla item states the following: when context is reloaded JNDI resorces should be reloaded too. I think it is not needed. If we will be able to see new JNDI values after changing in admin application, it will be enough. So Bugzilla item is related with my problem, but it is not the same. Attach your patch in diff -u format to the open Bugzilla item. You test it and tell us ;) If you get it into Bugzilla within the next couple of days it'll probably make it to Tomcat 5.0.30. I think, that my patch is wrong. Sorry for trouble. I will continue researches on this problem. Could somebody please tell me: I think, that in NamingContextListener class in public void lifecycleEvent(LifecycleEvent event) method new property change listener should be added to namingResources if container is instance of Context. Am I going in right direction? Any help will be appreciated. Thank you, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Environment entries question
Hello! Thank you for reply! How developers pass parameters to their web applications? There are several ways of doing it. One of them is: put parameters to web.xml as Environment entry. It is very convinient. But it appears that I can change this value in admin application. And this change is not visible in JNDI :-( I have to restart tomcat to see new parameters ... or change them in admin and reload contex. Maybe it is of no importance for others, but I really care :-) I made some researches and I think, that org.apache.catalina.core.NamingContextListener class should be corrected: it was: public void lifecycleEvent(LifecycleEvent event) { ... // Binding the naming context to the class loader if (container instanceof Context) { // Setting the context in read only mode ContextAccessController.setReadOnly(getName()); try { ContextBindings.bindClassLoader (container, container, ((Container) container).getLoader().getClassLoader()); } catch (NamingException e) { log(sm.getString(naming.bindFailed, e)); } } ... } I think, it should be: public void lifecycleEvent(LifecycleEvent event) { ... // Binding the naming context to the class loader if (container instanceof Context) { namingResources.addPropertyChangeListener(this); // Setting the context in read only mode ContextAccessController.setReadOnly(getName()); try { ContextBindings.bindClassLoader (container, container, ((Container) container).getLoader().getClassLoader()); } catch (NamingException e) { log(sm.getString(naming.bindFailed, e)); } } ... } With this modification changes in Admin application are visible in JNDI. Could you please tell you opinion - is this modification ok? Thank you, Igor - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, October 22, 2004 4:13 PM Subject: RE: Environment entries question Hi, I think there's been an open bugzilla issue for this for months. It's such a marginal use-case that (as evidenced by the fact no one's done it for months) no one seems to care, given the two workarounds in your post. So if you really care, maybe you could submit a patch? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Igor [mailto:[EMAIL PROTECTED] Sent: Friday, October 22, 2004 3:25 AM To: [EMAIL PROTECTED] Subject: Environment entries question Hello! I created environment entry in web.xml: env-entry env-entry-nametest/env-entry-name env-entry-valuesimple test/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry This entry is used in the following way: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); String value = (String) envCtx.lookup(test); Then I tried to change this environment entry using admin application. It was changed correctly in admin application, but code, listed above, returns old value. I know two ways of how to make this code know of new value: 1. Change it in web.xml and restart tomcat 2. Change it in admin application and reload corresponding context I do not like both of these ways. Could somebody please tell me - is there a way of changing environment entry value, so that code, described above will see new value? Thank you in advance, Igor This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interesting discoveries about catalina GUI manager deploy (5.0.28 and 5.0.29)
Hello! Another question is: how do I get the JNDI enviroment variable value from the java program? still using ctx.lookup or other way. All JNDI references should be lookup using the naming context. If you're using simple Environment variables, you don't need to use JNDI, you retrieve them like normal environment entries in any Java program. Could you please tell me how environment variables can be accessed without JNDI? Is there corresponding section in documentation? Thank you, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Environment entries question
Hello! I created environment entry in web.xml: env-entry env-entry-nametest/env-entry-name env-entry-valuesimple test/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry This entry is used in the following way: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); String value = (String) envCtx.lookup(test); Then I tried to change this environment entry using admin application. It was changed correctly in admin application, but code, listed above, returns old value. I know two ways of how to make this code know of new value: 1. Change it in web.xml and restart tomcat 2. Change it in admin application and reload corresponding context I do not like both of these ways. Could somebody please tell me - is there a way of changing environment entry value, so that code, described above will see new value? Thank you in advance, Igor
Re: Synchronization in cluster
You are right :-( Igor - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, October 01, 2004 5:31 PM Subject: Re: Synchronization in cluster cause if you have two servers, two different sessions can perform upload in two different VMs. He never said there is only one session doing upload, he was asking for a distributed lock Filip - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, October 01, 2004 7:36 AM Subject: RE: Synchronization in cluster Why not ? As I understood the static variable holds the information for the current upload. If the session is sticky the user will stay in the same jvm and see the same static variable with each refresh. I just see some downsides: - if you want to assure that the downloads are serialised you have to implement a locking mechanism. - you loose the central point to see all states at the same time. - if the instance that performs the update dies, the user will get to an instance that doesn't know anything about the download. -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:51 PM To: Tomcat Users List Subject: RE: Synchronization in cluster That doesn't solve the problem -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 4:26 AM To: Tomcat Users List Subject: RE: Synchronization in cluster With this usage scenario i would recommend sticky sessions. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Synchronization in cluster
Hello! Thank you for answers! I will try to use JGroups We have data, that is often need to be read. And it is rarely written. It is implemented using Singleton pattern. Synchronization is used in several parts of web application. It is used mostly to access database Thank you, Igor - Original Message - From: LERBSCHER Jean-Pierre [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:41 AM Subject: RE : Synchronization in cluster Hi, What are your needs? Why distributed singleton or distributed locking are so important ? Perhaps you can use Database to implement locking functionality and Jgroups library to replicate state (or distributed singleton) across members of a group (see www.jgroups.org).
Re: Synchronization in cluster
Hello! Thank you for advice ! I will think about restructure my application. Users of my application can upload comma separeted files, that are imported in database. This process can take 10-30 minutes, if file is large, so new Thread is started with import process and user is redirected to refreshing page, that displays status of import. Information about import process is stored in static variable (import thread and status jsp can access this information). If it happens in one JVM, everething is ok. But what will be in the case of load balancing? Thank you, Igor - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 30, 2004 6:36 PM Subject: Re: Synchronization in cluster sounds like your system needs a little rethinking, if you have singleton access to your DB. That is why the DBs are transactional, so that you can use connection pooling. you can use JGroups, but you might run into serious performance problems, not because of JGroups, but because of the fact that you want to lock several tomcats in a distributed lock when accessing the DB. Filip - Original Message - From: Igor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:16 AM Subject: Re: Synchronization in cluster Hello! Thank you for answers! I will try to use JGroups We have data, that is often need to be read. And it is rarely written. It is implemented using Singleton pattern. Synchronization is used in several parts of web application. It is used mostly to access database Thank you, Igor - Original Message - From: LERBSCHER Jean-Pierre [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:41 AM Subject: RE : Synchronization in cluster Hi, What are your needs? Why distributed singleton or distributed locking are so important ? Perhaps you can use Database to implement locking functionality and Jgroups library to replicate state (or distributed singleton) across members of a group (see www.jgroups.org).
Re: Synchronization in cluster
Thank you :-) Igor - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:42 PM Subject: Re: Synchronization in cluster If it happens in one JVM, everething is ok. But what will be in the case of load balancing? and that is why they pay you the big bucks...to figure this stuff out :) remember, sometimes the solution is super simple, just not thought of. Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Synchronization in cluster
Hello! if you are talking about distributed locking, then the answer is no Thank you for reply ! Our web application uses locking and Singleton pattern. I am making researches - is there a possibility to move to cluster architecture or load balancing. Distributed locking is not possible. Distiributed Singleton (static variables) seems not to be possible too. So web applications, that use locking or Singleton cannot use cluster architecture or load balancing. Maybe there is indirect way of implementing distributed locking or distributed Singleton? For example, code that needs synchronization may be concentrated in main Tomcat, and other Tomcats will call this code via http or SOAP? Is there any way to move web application with locking and Singleton to cluster or load balancing? Thank you, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Synchronization in cluster
Hello! We use synchronization on several JSP and classes: synchronized ( ... ) { ... } But what about synchronization in cluster? Tomcats in cluster will work in different JVM on different computers. Is there a possibility of such synchronization in cluster? Thank you, Igor
Re: Error page problem
Hello! Is it possible to exclude certain servlets from error page mechanism? Thank you, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error page problem
Hello! You probably focused on the rest of your application and didn't notice that the exception occurs in the error page itself. Thank you for responses! May I ask you - how did you conclude that expection occurs on error page itself? I think, exception does not occur on error page. I may be wrong, but I think, that the reason is the following: To notify client of web service, that non standard situation occured, we throw SOAPFaultException in web service. Axis library takes care of this exception and client reseives response with 200 code status. But when error page is defined for context, Tomcat tries to send error page to client. Tomcat tries to reset the response, but it is not possible because Axis library tries to send response too. That is why IllegalStateException occurs. Sending error page (that is intended for ordinary servlets or jsp) does not make sense, because clients expect SOAP messages. Is it possible to remove certain servlets from error page mechanism? Error page does not make sense for web services. Thank you, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
On 07/09/04 15:27, Shapira, Yoav wrote: Hi, Is there any additional debug output in the logger, specifically a ClassNotFoundException or a NoClassDefFoundError for a TLS-related class? Has the JVM you're using changed? Unfortunately, there is no additional output. I would have been very happy with a ClassNotFoundException, with any exception at all, that would have told me what the problem is. Everything it says is the following: [spell:/opt/catalina/bin]# ./catalina.sh run Using CATALINA_BASE: /opt/catalina Using CATALINA_HOME: /opt/catalina Using CATALINA_TMPDIR: /opt/catalina/temp Using JAVA_HOME: /opt/j2se Sep 7, 2004 6:47:11 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 80 and there it remains for all times. The JVM has not changed. This is the one: [spell:/opt/catalina/bin]# java -version java version 1.4.2_05 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) That is a Java2 SDK, installed in /opt/j2se. By the way, This all happens on a RedHat 9 system. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
On 07/09/04 17:42, Jason Palmatier wrote: Has the certificate the SSL/TLS connection uses expired? This will cause the TLS connection to fail to come up. Then, if you have a security constraint defined in your web.xml file that requires TLS for your initial pages, the redirect from your normal port to the TLS port will fail (since the TLS port is not active). Thanks for the idea. Unfortunately, the keystore hasn't changed from the time when everything worked. It is a JKS keystore, contains two certificates. The one is the self-signed CA, the other is for the TLS connection, signed by that CA. Both valid until 2013, for another nine years. Tomcat 5.0.18 worked happily with that keystore for several months. Tomcat 5.0.25 also worked with it for several weeks, until I restarted it few days ago. Besides, just the TLS connection not working is not the problem. When a TLS connector is present in conf/server.xml, nothing comes up, not even the normal port. The normal port (80) is open, but no requests are served. The TLS port isn't open at all, according to netstat. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
I have found the solution and will share it here incase someone encounters a similar problem in the future. The solution is: # cd /dev # mv random random-old # ln -s urandom random however bizarre that may sound. It seems that the recent Linux kernel update wasn't up to Tomcat's liking. For whatever the reason, Tomcat's initialising of the TLS connector blocks in a read from /dev/random, always. Ensuring that it reads from /dev/urandom instead makes it happy again. Although I haven't had anything to try with, I assume that every Java program was affected by this, not only Tomcat. I am also aware of the fact that this kind of solution is far from perfect, but it is a way through until I find something else. Thanks to everyone for answers and suggestions. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLS-Enabled Connector Prevents Startup
On 07/09/04 20:12, QM wrote: You may want to check what the kernel's using as a source of randomness. I forget the details, but IIRC /dev/urandom never blocks, whereas /dev/random may block under {some condition I can't recall in detail}. Well, the server in question is a vServer, a virtual server which shares the physical hardware with other virtual servers. The machine is hosted on provider's land and I have no physical access to it. All I can do is a ssh to my vServer instance. So, whatever it uses as a source of randomness, I have no way of discovering or changing it. And you are right, /dev/random will block if you try to read more random bytes than it currently has in the pool, it will wait for more random data to become available. /dev/urandom won't block if you ask for more than it has, it will give you what it has and perhaps inform you somehow that it wasn't as much as you requested. My linking /dev/random to /dev/urandom may well affect the quality of the encrypted connection, depends on how the underlying TLS library handles the random sources. In this case it thinks that it reads from /dev/random, so I guess that my solution can result in poor encryption keys. It isn't advisable for high security environments to follow my solution, but rather to check their random sources, as you suggested. In my case, I am one man and that server is my private hobby, a bad key with less random background than it should have is still more than good enough. Ciao, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TLS-Enabled Connector Prevents Startup
Hi there. On one day, an otherwise perfectly functioning Tomcat stops responding to requests. The log file says that one of the threads received an OutOfMemory exception, so I restart the server. Not a big deal, it has happened before. But this time the server never comes up, it hangs somewhere. Some experimentation has shown that it works again if I remove the TLS-enabled connector from the conf/server.xml file. I have two connectors there, one for HTTP, the other for HTTPS. Both worked good until this last crash. Now, for some mysterious reason, if the HTTPS connector is present, the startup of Tomcat shows the following messages: Sep 4, 2004 5:21:12 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-80 and there it stops. The port 80 is opened for listening but noone answers when you ring there. According to previous good starts, I should see another two lines just like those above, related to the port 443. Since the container hangs just before it should have printed them, I commented out the TLS-enabled connector and Tomcat started. What else can I say? The actual port numbers don't matter, I tried several with the same result. TLS worked perfectly before the crash and the configuration hasn't changed in between. It was Tomcat 5.0.25, I downloaded the fresh 5.0.28 and had the same result. I installed 5.0.28 on my workstation, copied the configuration files from the server and voila, everything works here. Now I have two identical installations, the same configuration, the same keystore, the same Java VM, and on the workstation I see it working, but on the server it hangs unless I disable the TLS connector in conf/server.xml. The weirdest thing is, this TLS connector has worked on that very server for several months now, since the 5.0.18 release. I don't know wether it matters, the server is a vServer, means it shares hardware with other virtual servers. It shouldn't matter though, because I allready had this configuration working there. Does anyone have any idea? Ciao, Igor Zlatkovic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.25 and windows 2003
I'm running Jonas, Tomcat, Enhydra and Jetty under win 2003 server and it works fine. - Original Message - From: zhicheng wang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 10:50 PM Subject: tomcat 5.0.25 and windows 2003 dear all does any one know if tomcat 5.0.25 runs on windows server 2003 smoothly? also if IIS also running (on different port), will they live in the same server well? thanks cheng = Best wishes Z C Wang ___ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Webapps Log4j config problem
Hi, I am having a problem with BarracudaDiscRack application that load withing Tomcat. I;m useing Enhydra, jonas 4.1, Tomcat 5. I have all the necessary files(lof4j, barracuda etc) jars in Web-inf/lib and the classes in Web-inf\classes. In the main BarracudaDiscRack folder, I have the log4j.xml that contains the following lines: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false threshold=debug appender name=A1 class=org.apache.log4j.ConsoleAppender layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout /appender appender name=A2 class=org.apache.log4j.FileAppender param name=File value=C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/main.log / param name=Append value=false / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout /appender appender name=JUnitAppender class=org.apache.log4j.FileAppender param name=File value=C:/IgorEnhydra6.0-1/work/webapps/Enhydra/BarracudaDiscRack/WEB-INF/test.log / param name=Append value=true / layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%-4r [%t] %-5p %c %x - %m%n/ /layout /appender logger name=test.org.enhydra.barracuda additivity=falselevel value=off/appender-ref ref=JUnitAppender//logger !-- standard debuggers which should stay on -- logger name=org.enhydra.barracuda.plankton.Classesappender-ref ref=A1//logger logger name=org.enhydra.barracuda.plankton.data.ObjectRepositoryAssemblerlevel value=warn/appender-ref ref=A1//logger !-- other debuggers (testing/debugging purposes) -- logger name=org.enhydra.barracuda.core.event.ApplicationGatewayappender-ref ref=A1//logger !-- Note: This root logger will be inherited by all loggers unless you use additivity=false. -- root level value=warn/ appender-ref ref=A1/ !--appender-ref ref=A3/-- !--appender-ref ref=A4/-- /root /log4j:configuration Now, when the application is loaded I get an error: log4j:WARN No appenders could be found for logger (root). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase) log4j:WARN Please initialize the log4j system properly. The servers starts, but no logging is performed. What might be going wrong. I had no similiar problem withing jonas 3x ant Tomcat 4x. Thank you! Igor
RE: JK2 connector binary for solaris8
Try the following instructions: 1. Download and open mod_jk2. Because binary mod_jk2 is not available for solaris2 OS , we need to download source code (jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz) and compile it. You can download it from http://mirrors.combose.com/apache/jakarta/tomcat-connectors/jk2 page. gunzip jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz tar xvf jakarta-tomcat-connectors-jk2-2.0.4-src.tar It created jakarta-tomcat-connectors-jk2-2.0.4-src directory. 2. Compile mod_jk2 connector. (http://soccf-oj-001.ddns.comp.nus.edu.sg/y2004s/docs/bk04apds03.html) In order to compile the mod_jk2 connector we need to refer to the location where Apache server, Tomcat server and JDK are installed. So, make sure they are installed before we can continue. cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 chmod u+x buildconf.sh ./configure --with-apxs2=/development/username/apache2_0_49_ld/bin/apxs --with-tomcat41=/development/appserver/tomcat/nandap2 --with-java-home=/bea2/jdk131 --with-jni make libtool -finish /development/username/apache2_0_49_ld/modules cp jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build/jk2/apache2/mod_jk2.so apache2_0_49_ld/modules cp jakarta-tomcat-connectors-jk2-2.0.4-src/jk/build/jk2/apache2/libjkjni.so apache2_0_49_ld/modules Igor. -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 4:31 AM To: Tomcat Users List Subject: RE: JK2 connector binary for solaris8 Try following the instructions below, these are what I use when building the connector. cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2.0.49/bin/apxs --with-tomcat-41=/usr/local/jakarta-tomcat-5.0.25 \ --with-apr-lib=/usr/local/apache2.0.49/lib --with-java-home=/usr/local/j2sdk --with-jni make cd ../build/jk2/apache2 cp mod_jk2.so /usr/local/apache2.0.49/modules cp libjkjni.so /usr/local/apache2.0.49/modules Obviously you will have to edit the paths i've used here to suit your own environment and you'll need the gnu version of gcc and make at least. Good luck. -Original Message- From: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] Sent: 25 May 2004 08:36 To: '[EMAIL PROTECTED]' Subject: JK2 connector binary for solaris8 Hi there, I have been strugling to compile Mod_jk2 2.0.4 for solaris8. I have never worked with solaris and compiling C packages. Can any body please help me finding a binary version of Mod_jk2.0.4-SPARK-Solaris8-Apache2.0.49 or proper documentation? I have had already spent 2 weeks for this and no use :-( Most of the documentation I found so far, expects one has the strong background of C, C++ and solaris and not for any specific to versions and platforms Thanks in advance Bhaskar __ For information about the Standard Bank group visit our web site www.standardbank.co.za __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the group. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of the group. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. ___ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Taglib development - how to prevent EL expansion inside a custom tag
Hi folks! I have the following situation: In a given custom tag (a data-bound grid), I use several EL variables to allow to tag consumer to tailor the tag's output. While in Tomat 4.1 this was no issue - since the container didn't know nothing about EL, my tag took care of all EL parsing (using Commons EL). But now I got in trouble. Tomcat 5 parses all EL expressions it finds in a JSP page. This way I can't do it my own way. My question is: Is there a way to tell Jasper I don't way it to parse the EL expressions it finds *inside* my custom tag? Notice that I don't want to disable it for the whole page, so jsp-config is not suitable. I think this should be done at TLD or TagInfo level. Thanks in advance, Igor Abade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How deploy EJB on Tomcat?
Does the Tomcat-IIS support deploing Enterprise Java Beans? Can you send me information or links about it, please? __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL alias
Probably, using a filter is an overkill in this situation. If you are sending a GET request, just extend your URL: http://myhost:8080/webappname/login?event=login . If you are posting from a form, you can include a hidden parameter with name=event and value=login. Igor TN On Mon, 27 Jan 2003, Erik Price wrote: Paul Phillips wrote: Just for convenience sake, I would like to make an alias for login purposes that looks something like: http://myhost:8080/webappname/login I can't figure out how to map that to my controller servlet AND at the same time include the parameter event=login. The servlet-mapping configuration in web.xml will allow me to map login - controller, but how do I throw in the parameter and its value? Why not create a filter -- map login to your filter (LoginFilter) and have the Filter intercept the request and add the parameter to the request before it calls the doFilterChain() (which means before it passes the request to the Controller). Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Start 2 x tomcat on same server
Hello, i have a question. It is possible to run Tomcat 2x on same server? So, that 1. Tomcat used port 8080 and 2. used port ? Thank you very much. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
how to redefine server's URL
Hi, A simple and, maybe, a little incompetent question. If I need to use not the URL http://localhost:8080/myapp but something like http://myserver.mycompany.com, can I do it without using Apache as a front end, and how? Thank you. Igor TN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Out of memory
I'm using 1.4.1_01 Sun's JVM which is all right. 1.3.1 had a memory leak. I'm not quite sure about 1.4.0, I would upgrade it, it's easy to do. Also, try the following which works for me: 1. I use the environment variable CATALINA_OPTS. 2. I noticed that you didn't use quotes, this may be a problem if it's not a typo. I have the following: CATALINA_OPTS=-server -Xss128k -Xincgc -Xms256m -Xmx256m I believe quotes are important. Two last parameters give a large heap for your JVM. Good luck, Igor TN On Wed, 22 Jan 2003, Nate wrote: We are using 1.4.0_01, this shouldn't suffer from any of the documented issues that 1.3.1 had. Really my question just pertains to the proper method of passing jvm startup parameters when tomcat is configured to run as a service. Anyone have any input? - Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 4:08 PM Subject: RE: Tomcat Out of memory we have the exact same configuration JDK 1.3.1, Tomcat 4.x, Linux. We also have 512 allocated, but run out of memory just over 200 MB. I think JDK 1.3.1 from sun has a memory leak (according to a post yesterday), so we are going to try to upgrade to IBM's 1.4 JDK and see what happens. Brandon -Original Message- From: Nate [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 3:46 PM To: Tomcat Users List Subject: Re: Tomcat Out of memory Thanks for the info, but I think our problem is more related to allocating the amount of memory we need than the -server option. Also, I'm not even sure that I am setting these in the right place. - Original Message - From: Claudio Pracilio [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 3:30 PM Subject: RE: Tomcat Out of memory Hi There, We have had problems with our JVM running out-of-memory on Linux with Suns JDK 1.3.1. This was resolved by not using the -server option. Not sure what the JVM does differently internally, but using the default -client option had resolved our problems. Regards, Claudio -Original Message- From: Nate [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 1:09 PM To: Tomcat Users List Subject: Tomcat Out of memory We are running Tomcat 4.0.6 on Windows 2000 server using JDK 1.4.0_01. Tomcat is set to run as a service. In our catalina.bat file we have set: JAVA_OPTS= -server -Xms512m -Xmx512m If I am not mistaken, this should start the VM in server mode, and allocate 512MB of memory for it to use. Our application gets an out of memory error when the vm has used about 64MB of memory, well short of what we have told it to use. Am I setting the JVM parameters in the right place, or is my syntax perhaps incorrect? When tomcat is run as a service, is the catalina.bat startup script even called? --Nate -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
encodeURL problem
Hi, I developed an app which is heavily relied upon session tracking. It works good and robust without doing URL rewriting, i.e. without pushing all emitted URL's through HttpServletResponse.encodeURL() method. As soon as I start filtering URL's through the encodeURL(), my app breaks. It starts giving me NullPointerException's at runtime the source of which I wasn't able to track down so far. Can anybody suggest what might be the problem? I'm using Tomcat-4.1-18 and IE5 as a client. Thank you. Igor TN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Any data from ORACLE, please help..
It cannot be true. I need help! I have Oracle 8.7.1, tomcat 4.0.6, cocoon 2.0.4, windows2000, solaris. If i run tomcat on Oracle Server(win2000), everything works successfully, but if i run Tomcat on another server(windows or solaris), Tomcat dont't get any data from Oracle Server. Why? If i run some application how TOAD on different Servers - it works, but Tomcat not. I write small Java-proram, it make connection to oracle and runs a stored procedure - it works! Tomcat and this program use one JDBC-Driver. What is wrong? Please, any ideas.. Configuration in Tomcat: datasources jdbc name=mydb auto-commitfalse/auto-commit pool-controller min=5 max=10/ dburljdbc:oracle:thin:@sv000111:1521:mydb/dburl userdbo/user passwordxxx-xxx/password /jdbc /datasources I can ping all servers, network seems to be ok. Thank you very, very much, best regards. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
IllegalStateException
Hello, i use tomcat 4.0.6, cocoon 2.0.4, Oracle 8, NT4.0 i got this exception: 2003-01-15 15:53:33 StandardWrapperValve[OMSWebgate]: Servlet.service() for servlet OMSWebgate threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.reset(ResponseFacade.java:243) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:531) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125 ) at java.lang.Thread.run(Thread.java:536) can anybody tell me what is wrong? thank you very much, best regards Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
No data from Oracle
Hello, i have some problem with Tomcat. If i run Tomcat on myhost-Server, everything functioned correctly, but if i run Tomcat on any other server, become no data transferred from DB, but user autorization works. Other programs, like TOAD, works however correctly on each server. Can you tell me, what is wrong in configuration and may be i must configure something else? I use Tomcat 4.0.6, Oracle 8.1.7. Realm configuration in file $TOMCAT/conf/server.xml: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@myhost:1521:mydb202 connectionName=mydb connectionPassword=mydb userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name digest=MD5/ Configuration in $TOMCAT/webapps/oms/WEB-INF/web.xml datasources jdbc name=mydb auto-commitfalse/auto-commit pool-controller min=5 max=10/ dburljdbc:oracle:thin:@myhost:1521:mydb202/dburl usermydb/user passwordmydb/password /jdbc /datasources Thank you for answer. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
general question - Tomcat/Linux deployment
Hi, I have a question to people who have an experience with production level deployments of Tomcat based apps on Linux (preferrably RedHat). What are the best recommended combinations of Tomcat version - OS version (maybe with patches) - JVM version for deployment? Also, please share your related experience with WinNT/Win2000/WinXP. Thank you. Igor TN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: help - Tomcat/Linux deployment
Yoav, thanks a lot for your response. Let me describe my situation more clear as I see it now. It's definitely not DBCP, DBCP works fine. This morning again the server was running but it couldn't serve my request. This time I copied the exception which I will paste later. The number of threads is not growing. There are 25 threads after the start and the amount stays the same. It still bothers me that 'ps' shows that each thread consumes about 6MB memory which seems to be too much but maybe that information is not really adequate. I'm trying to read the exception stack which I do not understand completely, but this is what it looks like to me: Http11 connector tries to pass the request to a service but cannot allocate a thread from a thread pool. Can anybody understand what really goes on and how to deal with it? Please take a look at the exception stack a couple of lines down. Thank you. Igor TN - exception stack javax.servlet.ServletException: Communication link failure: java.io.IOException at pro.servlets.LoginServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) --- end of exception stack --- On Mon, 13 Jan 2003, Shapira, Yoav wrote: Howdy, I can't help much with DBCP, but I noticed your other thread was hijacked with a how did you get DBCP to work? ... question ;) I did want to comment on something else: Also, immediately after I start Tomcat on Linux I see a lot (26) of java processes running. As I understand, they are Tomcat internal threads launched as OS processes, because Linux JVMs (I tried both SUN's and IBM's) use green, not native threads. Be careful interpreting the Linux ps/vmstat command output with regards to JVM memory consumption and thread usage. More information on this issue is available in the list archives, so you may want to search there. Tomcat by default will record that it's starting a new request processing thread in its log. So you can look there and see how many request processing threads tomcat has running. There are only a few threads on top of that (main, finalizer, timer, etc, the standard JVM threads). Now, as the time goes by, the number of these threads/processes grows, and Do you create any threads in your
Re: help - tomcat/dbcp deployment
Well, to get DBCP working was not difficult at all. I just followed Tomcat how-to docs. And, as I learned from other people, it's being used on a production level. My Tomcat's version is 4.1.12. Thank you. Igor TN Hi, I developed a web-app consisting mostly of servlets and JSP, almost no static content. The application uses mysql and obtains connections from a dbcp connection pool. Now I'm deploying it for production on Linux (RedHat 7.2) in a tomcat standalone configuration. (Almost no static content, no cgi, no virtual hosts, no clustering, so I decided Apache httpd is not really needed.) It works pretty good for some time but ... The next morning the server is up and running but I can't obtain connection. When I'm trying to login into the app, the LoginServlet which is supposed to get a connection from the pool gives me an exception. Unfortunately, I can't show it here now, because I didn't copy it, and it will appear next time only tomorrow. But it reports something like Connection Failure, so it looks like a connection cannot be obtained from the pool. I'm quite positive that all my ResultSet's, Statement's and Connection's are closed in all appropriate places, and I'm also using 'removeAbandoned' in the server.xml descriptor. What can be the source of this problem? Also, immediately after my tomcat server is started, I lookup the running processes ( ps -ux ) and see that 25 JVM's is launched. Why so many? Is this normal? And what scares me is that all of those 25 JVM's are using 6% of memory each ( 25*6% 100% ! ). At least this is what the ps command shows. Can anybody shed some light on this? Is DBCP good for production? I configured it exactly as the Tomcat docs instruct. I will appreciate any comments and advices. Thank you. Wow! you actually got DBCP working What version of tomcat are you using??? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
help - Tomcat/Linux deployment
I was doing a development of the servlet/JSP web app on Windows and now I'm deploying it on Linux RedHat7.2 for production. The software used is Tomcat - MySQL - DBCP connection pool. On Windows my app is running fine but I have the following problem on Linux. The app runs stable all day long but next morning I can't login to my app, the exception says: 'Connection Failure'. Also, immediately after I start Tomcat on Linux I see a lot (26) of java processes running. As I understand, they are Tomcat internal threads launched as OS processes, because Linux JVMs (I tried both SUN's and IBM's) use green, not native threads. Now, as the time goes by, the number of these threads/processes grows, and when I try next morning to login, the server cannot create extra processes needed to fulfill the client's request, because on Linux/UNIX the number of user processes is limited. Can anybody tell me if I understand this right, and what might be a workaround? Thank you. Igor TN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
help - tomcat/dbcp deployment
Hi, I developed a web-app consisting mostly of servlets and JSP, almost no static content. The application uses mysql and obtains connections from a dbcp connection pool. Now I'm deploying it for production on Linux (RedHat 7.2) in a tomcat standalone configuration. (Almost no static content, no cgi, no virtual hosts, no clustering, so I decided Apache httpd is not really needed.) It works pretty good for some time but ... The next morning the server is up and running but I can't obtain connection. When I'm trying to login into the app, the LoginServlet which is supposed to get a connection from the pool gives me an exception. Unfortunately, I can't show it here now, because I didn't copy it, and it will appear next time only tomorrow. But it reports something like Connection Failure, so it looks like a connection cannot be obtained from the pool. I'm quite positive that all my ResultSet's, Statement's and Connection's are closed in all appropriate places, and I'm also using 'removeAbandoned' in the server.xml descriptor. What can be the source of this problem? Also, immediately after my tomcat server is started, I lookup the running processes ( ps -ux ) and see that 25 JVM's is launched. Why so many? Is this normal? And what scares me is that all of those 25 JVM's are using 6% of memory each ( 25*6% 100% ! ). At least this is what the ps command shows. Can anybody shed some light on this? Is DBCP good for production? I configured it exactly as the Tomcat docs instruct. I will appreciate any comments and advices. Thank you. Igor TN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple instances of Tomcat
Greetings A long, long time i´m trying to configure tomcat to run with multiple instances (tomcat+apache). Has some one in this list that can help me to do this ? Or just give me the firt step Thanks a lot ... Pedro Igor
Re: Multiple instances of Tomcat
Thanks ... The page that you have send me is what i was looking for ... Thanks a lot I 'll try it ... Pedro Igor - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 9:50 AM Subject: RE: Multiple instances of Tomcat One Apache. Many Tomcats. For many Tomcats, if you intend to delegate each Tomcat to a specific web app, virtual host, or business client, you need a server.xml for each, and you need to set CATALINA_BASE and things like appBase and docBase in each server.xml accordingly. You will need to change the connector port as well. If by multiple instances you mean that you want to load-balance Tomcat requests, you need to set up a worker in workers.properties (assuming that you are using JK) for each Tomcat. Good load-balancing HOWTO: http://www.ubeans.com/tomcat John -Original Message- From: Pedro Igor Craveiro e Silva [mailto:pedroigor;aip.com.br] Sent: Tuesday, November 05, 2002 6:43 AM To: [EMAIL PROTECTED] Subject: Multiple instances of Tomcat Greetings A long, long time i´m trying to configure tomcat to run with multiple instances (tomcat+apache). Has some one in this list that can help me to do this ? Or just give me the firt step Thanks a lot ... Pedro Igor -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
mod_jk
Some body have this mod_jk ??? Or any place where i can find it ... Pedro Igor
JVM error on compiling jsp
Hi My jsp file, contains many custom tags. And on compile phase I get the JVM error # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 47454E45524154452F4F502D41500E435050084B # # Problematic Thread: prio=5 tid=0x18eb95b8 nid=0x4a4 runnable # When I remove some insignificant tags - all ok. Somebody can tell me - where is problem? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Does anybody know any usage survey on Tomcat
Hi! I need some arguments to provide to my boss so that I am allowed to install tomcat as productive server. There are surveys for using Apache, but I couldn't find anything on Tomcat. I would prefere to use version 4. Please help. mit freundlichen Grssen / best regards / srdacan pozdrav / meilleures salutations / med glada hlsningar Galexis AG Igor LASTRIC, Fachtechnische Koordination SW-Entwicklung (DDIS/ASW) Grubenstrasse 11, CH-3322 Schoenbuehl tel: +41 (0)31 858 73 36 . fax: +41 (0)31 858 78 78 . mobile: +41 (0)79 447 07 70 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] . http://www.e-galexis.com/ http://www.e-galexis.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is it a BUG? (Tomcat Web Server v3.2 (final))
Hello All: I'm new to this list, so please forgive me if I post something which was posted before. I tried to search http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ and come up with nothing. Environment: 1. Netbeans 3.3.1 with built in Tomcat 3.2 server 2. web.xml fragment: security-constraint web-resource-collection web-resource-nameSecurePages/web-resource-name descriptionSecurity constraint for resources in the secure directory/description url-pattern/secure/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint descriptiononly let the system user login /description role-nameadmin/role-name /auth-constraint user-data-constraint descriptionSSL not required/description transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config security-role descriptionAdmin ROLE/description role-nameadmin/role-name /security-role 3. Problem: a. request such as http://localhost:8080/secure getting routed to /LoginForm.html as described in web.xml which is cool and what I want. b. request such as http://localhost:8080//secure returns directory listing of secure directory without auth... If this is fixed or known bug please let me know. Thanks! -- Best regards, -- HTTP is a stateless protocol, and the Internet is a stateless development environment -- Igor Fedulov E-mail : [EMAIL PROTECTED] Work Ph: 773.775.1595 Home Ph: 773.281.8938 Cell Ph: 773.580.5935 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Is it a BUG? (Tomcat Web Server v3.2 (final))
This is a known bug in 3.2 and 3.2.1. I think it was fixed in Tomcat 3.2.2. It is not a problem in Tomcat 3.3 and Tomcat 4.x versions as well. Thanks! Now I have to find out if it's possible to upgrade built in tomcat in Netbeans to 3.3... -Original Message- From: Igor Fedulov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: Is it a BUG? (Tomcat Web Server v3.2 (final)) Hello All: I'm new to this list, so please forgive me if I post something which was posted before. I tried to search http://www.mail-archive.com/tomcat-user@jakarta.apache.org/ and come up with nothing. Environment: 1. Netbeans 3.3.1 with built in Tomcat 3.2 server 2. web.xml fragment: security-constraint web-resource-collection web-resource-nameSecurePages/web-resource-name descriptionSecurity constraint for resources in the secure directory/description url-pattern/secure/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint descriptiononly let the system user login /description role-nameadmin/role-name /auth-constraint user-data-constraint descriptionSSL not required/description transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config security-role descriptionAdmin ROLE/description role-nameadmin/role-name /security-role 3. Problem: a. request such as http://localhost:8080/secure getting routed to /LoginForm.html as described in web.xml which is cool and what I want. b. request such as http://localhost:8080//secure returns directory listing of secure directory without auth... If this is fixed or known bug please let me know. Thanks! -- Best regards, -- HTTP is a stateless protocol, and the Internet is a stateless development environment -- Igor Fedulov E-mail : [EMAIL PROTECTED] Work Ph: 773.775.1595 Home Ph: 773.281.8938 Cell Ph: 773.580.5935 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Best regards, -- HTTP is a stateless protocol, and the Internet is a stateless development environment -- Igor Fedulov E-mail : [EMAIL PROTECTED] Work Ph: 773.775.1595 Home Ph: 773.281.8938 Cell Ph: 773.580.5935 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat 4.01 war not extracting
I put a .war into the webapps folder, restarted Tomcat 4.01, but it didn't extract it... any ideas? File permissions maybe? webapps folder permissions? Ownership? Who as server is running? Best regards, -- HTTP is a stateless protocol, and the Internet is a stateless development environment -- Igor Fedulov E-mail : [EMAIL PROTECTED] Work Ph: 773.775.1595 Home Ph: 773.281.8938 Cell Ph: 773.580.5935 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Code request; Code to reveal a DB schema
*Totally* DB specific. For Oracle try searching http://technet.oracle.com; for anything else try asking on a database list? ;-) For code examples I would poke around Netbeans code they have some cool functionality in Runtime tab of the explorer, i.e. database browser of some kind. Try to download the sources from netbeans.org and poke around. Other then that I would just research java.sql.DatabaseMetaData class, it will do it for you (assuming that driver implements all supporting interfaces correctly). Igor -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Win2K + Netbeans 3.3 + Tomcat 3.2 (build-in)
Hi guys: I'm new to this list and I have just one question. Could somebody explain me why I'm getting this error: java.lang.NullPointerException at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:471) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:136) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.netbeans.modules.web.tomcat.JspServlet.doLoadJSP(JspServlet.java:248) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at org.netbeans.modules.web.tomcat.JspServlet.service(JspServlet.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) When running Tomcat from Netbeans and I don't have this problem when for example running the same webapp using Resin 2.0.1? Where should I look for the cause? -- Best regards, -- HTTP is a stateless protocol, and the Internet is a stateless development environment -- Igor Fedulov E-mail : [EMAIL PROTECTED] Work Ph: 773.775.1595 Home Ph: 773.281.8938 Cell Ph: 773.580.5935 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: ODBC-JDBC ** with JSP ** : 'No suitable driver'
Brendan, If you still have this problem ... I had the same problem with Oracle8i, NT 4.0. But, I had it only with Server side internal driver - kprb. The thin and the oci worked fine. So, the question is which driver are you using (there are 4 of them)? I hope it will help, Igor Igor Klacansky UCSD, Cancer Center [EMAIL PROTECTED] -Original Message- From: Brendan McKenna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 8:37 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: ODBC-JDBC ** with JSP ** : 'No suitable driver' Hi, If you unzipped the file into the WEB-INF/lib directory, then you did it in the wrong place. They should go in the WEB-INF/classes directory. I've been using that approach successfully here for a while now. Brendan : Ok, I'll try that. : Nevertheless, I already tried to put the developped classtree of : classes12.zip (oracle.jdbc) in the lib directory (unzipped file), and : it didn't work properly either. I may guess that renaming the .zip in .jar : would have the same (non-)effect, wouldn't it ? : : Jean-François : : -- Brendan McKenna Email: [EMAIL PROTECTED] Development Strategist Phone: +353-61-338177 Taringold Ltd. Fax: +353-61-338065
mod_jk, $TOMCAT_HOME/work directory and gigantic files
Hello, Today i got a request from one of our developers to install Tomcat or Solaris 7 machine running JDK1.2 and Apache 1.3.19 I compiled and installed mod_jk with no problems and installed binary distribution of Tomcat 3.2.1 But then i found out that for some strange reason it can only process Servlets out of webapps/examples directory, and when i call any .jsp files it sits there and trying to contact the server. At the mean time, while it is making an inpression of contacting the server my $TOMCAT_HOME/work dramatically grows, so in 15 minutes or me clicking the .jsp links it filled up my 580Mb partition.. So, i decided to look into that evil directory and see what is going on there, And what i found in 30Mb plain text file was pretty disturbing: Thousands of these lines: -- snip -- // HTML // begin [file="/a/local/tomcat/webapps/examples/jsp/dates/date.jsp";from=(0,0);to=(6,0)] out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); out.write("html\r\n!--\r\n Copyright (c) 1999 The Apache Software Foundation. All rights \r\n reserved.\r\n--\r\n\r\n"); -- snip -- I am sure that this question popped up on this mailing list more then few times, but i do not seem to be able to find an answerd to it, so i am forced to ask it again. Here is goes: -How do i fix it ?- Please help, I do not want to kill another 8 hour day fighting the software i do not really have an idea about. Sincerely, Igor Pruchanskiy igor (at) linuxinside (dot) com
Re: problem with JSP displaying broken image link
Do you know a way around this? You can put this one-line html page to the same geocitices site/account : img src="." and load it in your JSPs/htmls using iframe Not tested.. -Jeff - Original Message ----- From: Igor Shevchenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 18, 2001 11:55 PM Subject: Re: problem with JSP displaying broken image link My JSP is located on my own server (ISP is pacbell). The images are hosted by geocities. Do you pay for hosting on geocities ? If not then this is a hotlinking - you're trying to cheat them by stealing their traffic... So dont be surprised that images are not downloading - protection from such cheats is quite simple (using mod_rewrite). Regards, Igor -Jeff I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
Re: problem with JSP displaying broken image link
I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
Re: problem with JSP displaying broken image link
My JSP is located on my own server (ISP is pacbell). The images are hosted by geocities. Do you pay for hosting on geocities ? If not then this is a hotlinking - you're trying to cheat them by stealing their traffic... So dont be surprised that images are not downloading - protection from such cheats is quite simple (using mod_rewrite). Regards, Igor -Jeff I have been having trouble displaying images from my JSP(s). It seems like all my images that exist on http://www.geocities.com come up as broken image links.Is there a bug in the JSP server? I can display those images as plain .html file but not in my JSP. Where is your JSP located ? On geocities.com or somewhere else ? They (like all free hosters) dont like hotlinking and dont send requested images if "Referer" isn't pointing to somewhere inside of geocities.com...
Re: mod_jk does not compile (3.2b7)
I'm having the same problem on solaris(apache_1.3.14, gcc version 2.95.2 19991024 (release)) Any tips or pointers are greatly appreciated! I've tried everything mentioned on http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html I have also collected kernel trace - apxs tries execute "-o" ?! If I run manually (gcc -shared -o mod_jk.so *.o) afterwards - I get 10 pages worth of "undefined" stuff. apxs -o mod_jk.so -DSOLARIS -I../jk -I/opt/java/include -I/opt/java/include/solaris -c *.c ../jk/*.c good messages and then: ---try execute -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o Can't exec "-o": No such file or directory at /usr/local/apache/bin/apxs line 246. apxs:Break: Command failed with rc=255 [root@aurora apache1.3]# [root@aurora apache1.3]# uname -a[root@aurora apache1.3]# gcc -shared -o mod_jk.so *.o Text relocation remains referenced against symbol offset in file unknown 0x85c jk_ajp12_worker.o unknown 0x858 jk_ajp12_worker.o unknown 0x828 jk_ajp12_worker.o unknown 0x84c jk_ajp12_worker.o SunOS aurora 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-80 carnell wrote: cd /opt/tomcat/jakarta-tomcat/src/native/apache1.3 /opt/apache/bin/apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -lposix4 -c *.c ../jk/*.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c mod_jk.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_ajp12_worker.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_ajp13.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_ajp13_worker.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_connect.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_jni_worker.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_lb_worker.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_map.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_msg_buff.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_nwmain.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_pool.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_sockbuf.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_uri_worker_map.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_util.c gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -fPIC -DSHARED_MODULE -I/ opt/apache_1.3.12/include -I../jk -I/usr/java/include -I/usr/java/include/so laris -DSOLARIS -c ../jk/jk_worker.c ld -G -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o -lposix4 apxs:Break: Command failed with rc=16711680 And it worked under 3.2 b6 :( Any ideas? Craig.