Re: Problem with POST to servlet: 16384 bytes maximum?

2008-08-09 Thread Konstantin Kolinko
buffer in that call of InputStream.read(). You have just demonstrated that one cannot read all contentLength bytes of data in one call. The easiest fix here will be to use a loop, see Christopher Schultz's message for an example. Best regards, Konstantin Kolinko

Re: CGIServlet in Tomcat 6

2008-08-13 Thread Konstantin Kolinko
2008/8/13 Mark Thomas [EMAIL PROTECTED]: The privileged attribute needs to be set on the context. In your own web application create a file, META-INF/context.xml, with the following content: ?xml version=1.0 encoding=UTF-8? Context privileged=true / See the manager application for an

Re: Image rendering problem in Tomcat 5.5.1

2008-08-13 Thread Konstantin Kolinko
All this sounds like a browser issue. Firefox 3.0 now supports zooming of the whole page (as compared to scaling the font sizes only). Press Ctrl+0 to reset the page to 100% (see the View menu for details). 2008/8/12 Szűcs Attila [EMAIL PROTECTED]: Christopher, Even if I am opening it

Re: errors in deploying war file to tomcat 5.5

2008-08-28 Thread Konstantin Kolinko
Hi, sam wun! It is https://issues.apache.org/bugzilla/show_bug.cgi?id=44463 The problem is in the manager application, not in yours. The commons-io*.jar should be placed into {your tomcat 5.5 installation folder}/server/webapps/manager/WEB-INF/lib Best regards, Konstantin Kolinko 2008/8/23

Re: Default application or HTML redirect

2008-08-31 Thread Konstantin Kolinko
there. 4. Is your Microsoft Internet Security and Acceleration (ISA) 2006 server on the same PC? You mentioned it, but where it comes into play here? I do not have experience with that product. Best regards, Konstantin Kolinko 2008/8/30 Mostafa Mossaad [EMAIL PROTECTED]: Can you please tell me how

Re: Default application or HTML redirect

2008-09-07 Thread Konstantin Kolinko
be displayed by this instance of the server. What is the configuration of your ISA? How your publishing the server through it is configured? So, what is not working? Best regards, Konstantin Kolinko 2008/9/8 Mostafa Mossaad [EMAIL PROTECTED]: Konstantin, any ideas? Guys? -Original

Re: Tomcat loops indefinitely

2008-09-07 Thread Konstantin Kolinko
: SettingsService.getProperty(sublima.joseki.endpoint); is the address to where it opens an HttpURLConnection. What is that address? Judging from the behavior, it occurs that it makes request back to itself. Best regards, Konstantin Kolinko 2008/9/5 Kjetil Kjernsmo [EMAIL PROTECTED]: Hi all! I'm

Re: Tomcat 6 and corruption of text in French error pages

2008-09-07 Thread Konstantin Kolinko
firefox plugin, or using wget --save-headers, or connecting through telnet. In my case, the Content-Type: of the 404 page is text/html;charset=utf8, and the browser (Firefox 3) correctly detects that the page encoding is UTF-8. Best regards, Konstantin Kolinko

Re: Good JSP editor

2008-09-07 Thread Konstantin Kolinko
what is their status now. Some of them might be more mature than WST/JST. Best regard, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: tomcat-users.xml MD5 sum

2008-09-10 Thread Konstantin Kolinko
. Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: specifying a custom access log pattern

2008-09-10 Thread Konstantin Kolinko
my question is: how should a I handle the nested double quotes in the pattern attribute? How should i escape them? quot; or #34; See 4.6 Predefined Entities in XML Spec for details, http://www.w3.org/TR/2006/REC-xml-20060816/#sec-predefined-ent 2008/9/11 Jonathan Mast [EMAIL PROTECTED]:

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Konstantin Kolinko
display the pound sign irregardless of what encoding the browser thinks that your page uses. Use the #..; notation if generic xml processing is involved (the pound; entity is defined for (X)HTML only). Best regards, Konstantin Kolinko

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Konstantin Kolinko
regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Konstantin Kolinko
are present in my response and are always in sync. Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-12 Thread Konstantin Kolinko
2008/9/12 André Warnier [EMAIL PROTECTED] Konstantin Kolinko wrote: 2008/9/12 André Warnier [EMAIL PROTECTED]: Caldarale, Charles R wrote: I'm not sure these days what the normal web character set really is. If you're referring to ASCII (aka Basic Latin), then no, the Pound Sterling

Re: Remote debugging via shmem, Tomcat as a service

2008-09-12 Thread Konstantin Kolinko
://msdn.microsoft.com/en-us/library/aa366559(VS.85).aspx Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat shutdown event

2008-09-12 Thread Konstantin Kolinko
want to call Thread.setDaemon(true), because non-demon (default) threads prevent JVM from shutdown. Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED

Re: image download

2008-09-26 Thread Konstantin Kolinko
2008/9/27 Dave [EMAIL PROTECTED]: For img src=http://domain.com/servlet/pictures/image.jpg/ in servlet get method, InputStream is = new FileInputStream(/apphome/pictures/image.jpg); OutputStream os = response.getOutputStream(); byte[] buffer = new byte[256*1024]; //256k while (true) {

Re: ${user.home} and other server.xml tags accepted by Tomcat?

2008-09-28 Thread Konstantin Kolinko
2008/9/28 Maxim Veksler [EMAIL PROTECTED]: Are you perhaps familiar with a programmatic / configurable method to output putting the full list of properties recognized by tomcat during Catalina start up ? System.getProperties() shows them all.

Re: Tomcat outputs php to stderr

2008-09-30 Thread Konstantin Kolinko
/ binaries are not compatible... All the above was just out of my curiosity, trying to find the sources... Best regards, Konstantin Kolinko 2008/9/30 Serge Fonville [EMAIL PROTECTED]: Thank you so far, I will definitely look into Quercus. Still, I would like to understand why output is sent

Re: Tomcat stops with error after calling setclasspath.bat

2008-09-30 Thread Konstantin Kolinko
their output in a file. Maybe there are some oddities there, like too many quotes, backslashes, expanded variables. Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: Tomcat stops with error after calling setclasspath.bat

2008-10-01 Thread Konstantin Kolinko
the results of my running catalina start without the echo off statements. On Tue, Sep 30, 2008 at 8:56 PM, Konstantin Kolinko [EMAIL PROTECTED] wrote: 2008/9/30 Bai Shen [EMAIL PROTECTED]: Okay, if I keep this up I'll be able to fit both feet in my mouth. Apparently setclasspath.bat does

Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

2008-10-03 Thread Konstantin Kolinko
2008/10/3 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]: Hi, I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found when I ported my web application from tomcat 5.5.9 to 5.5.26 Following is code

Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

2008-10-06 Thread Konstantin Kolinko
? Thanks and Regards, Vinit -Original Message- From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 7:08 PM To: Tomcat Users List Subject: Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26 2008/10/3 Bhagwat, Vinit (Vinit

Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26

2008-10-06 Thread Konstantin Kolinko
to include jsp page which is not in the same directory. Can you please look into Bug 37326 for 5.5.25 I think this is related with my problem. Thanks and Regards, Vinit -Original Message- From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] Sent: Monday, October 06, 2008 4:27 PM To: Tomcat

Re: Too many open files

2008-10-08 Thread Konstantin Kolinko
that it refers, [1]: [1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg04338.html I do not know, if that applies to your case. That message thread ([1]) is of December 2003, thus I do not know whether it is still applicable. Just my 0.02 EUR. Best regards, Konstantin Kolinko

Re: Problem running TC 6.0.18 with CATALINA_BASE

2008-10-10 Thread Konstantin Kolinko
/show_bug.cgi?id=45585 The message with no class name is caused by passing an empty argument to /usr/bin/java. Also, you are missing /work subdirectory in your ${catalina.base}. Maybe it is auto-created, but just in case. Best regards, Konstantin Kolinko

Re: Why can NOT run Tomcat on my Laptop

2008-10-11 Thread Konstantin Kolinko
In cmd.exe window type set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07 or whetever the path to your jdk is, or JRE_HOME= .. if you only have a JRE. Also, if your Glassfish, or some other Tomcat instance (like some HP printer management page) is already running, there can be port numbers conflict.

Re: Why can NOT run Tomcat on my Laptop

2008-10-11 Thread Konstantin Kolinko
2008/10/11 IceManPat [EMAIL PROTECTED]: It still says environment variable not correctly defined ..and i also closed the Glassfish ...I do not use any printers nowthere should not have any conflict on port 8080. In cmd.exe window In cmd.exe window I type C:\set JAVA_HOME

Re: NoclassDefFoundError!!

2008-10-14 Thread Konstantin Kolinko
\SAM_MPP\WEB-INF\classesjava -classpath . admintool.CSVParser Also, if you are not the only java developer there, try asking your colleagues for help. Best regards, Konstantin Kolinko - To start a new topic, e-mail: users

Re: Tomcat 5.5.26 Vulnerability - Test

2008-10-23 Thread Konstantin Kolinko
, the following issue is present in 5.5.26, but fixed in 5.5.27: https://issues.apache.org/bugzilla/show_bug.cgi?id=44494 Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

Re: Class loading issue

2007-10-26 Thread Konstantin Kolinko
Tony, have you seen http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html In general, implementing classloader hierarchies, as the one in tomcat 5.5, is not a simple matter. Citing from those pages: As mentioned above,

Re: Exception in thread HttpProcessor[8080][2] java.lang.NullPointerException

2007-10-29 Thread Konstantin Kolinko
1. Tomcat 4.0.3 is pretty old and unsupported. The last version in the 4.x series is 4.1.36. 2. Trying to google checkHead site:mail-archives.apache.org shows some mentions of similar issues in the year 2002, e.g. (note: The bugzilla server name has changed, but bug ids are the same)

Re: Creating files dynamically and antiJarLocking

2007-10-29 Thread Konstantin Kolinko
This is likely because Tomcat expects all the resources for a web app to be available at deployment time, rather than randomly appearing during the life of the deployed webapp. Jsps are recompiled when modified, and are compiled on the first access. Thus I do not see why they cannot appear

Re: tomcat trouble

2007-11-07 Thread Konstantin Kolinko
When class cannot be loaded, it usually is a classloader issue. Are you familiar with Tomcat classloaders hierarchy? See here: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Note that although Webapp classloader is a child of all the others, but it is being asked first, as if it

Re: Setting Java property inside a webapp

2007-11-19 Thread Konstantin Kolinko
For tomcat you can define JAVA_OPTS system variable to supply additional parameters for the java machine. That includes the possibility to define -Dyour.property= See the comments at the begin of catalina.bat or catalina.sh. You can either modify catalina.bat/.sh or whatever bat file that is used

Re: multiple instances for tomcat6.0

2007-11-20 Thread Konstantin Kolinko
1. Read RUNNING.txt that comes with Tomcat distribution. There is a chapter entitled Advanced Configuration - Multiple Tomcat Instances. The trick is to have several $CATALINA_BASE directories for different instances of Tomcat. 2. Make sure that your $CATALINA_BASE\conf\server.xml specify

Re: Problem with redirection

2007-11-23 Thread Konstantin Kolinko
What is your configuration? What version of Tomcat?! Is there Apache HTTPD in front of it? What versions of Acegi, Spring do you use? Can you reproduce your problem with a simple example? E.g. explicitly sending the redirect, using response.sendRedirect(). Please look at this message

Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

2007-12-02 Thread Konstantin Kolinko
I'm still not sure why the ${CATALINA_HOME}/common/lib version isn't picked up via tomcat. ./server/webapps/admin/WEB-INF/lib/[commons-collections].jar ./common/lib/[commons-collections-tomcat5].jar ./common/lib/[commons-dbcp-tomcat5].jar

Re: Tomcat data source

2007-12-05 Thread Konstantin Kolinko
I have seen the documentatio many and many times... My question is clear? The response to my question is: Isn't possible get dataSource reference if is not defined on webApp context... Yes, it is not possible.The reference should be defined (either in context.xml, or in web.xml, but it should

Re: Deploying to a sub context

2007-12-05 Thread Konstantin Kolinko
I have a folder in my application which I would like to deploy in a separate sub context. This is because it includes content media, and is very large to include in the main application war every time I deploy it. You have not mentioned your Tomcat version. That media is just a

Re: Error receiving message body -1 2

2007-12-05 Thread Konstantin Kolinko
It is No such file or directory. I can't find what errno 2 represents. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Value can't be changed in bean extended from AbstractController of Spring

2007-12-05 Thread Konstantin Kolinko
Isn't is obvious? Why do you expect it to become value2? What are you changing? Are you changing the source code for the class? I do not expect hot-swapping of compiled classes to be available here. If it is the same class instance, it will still be value. Restart your webapp, or reload your

Re: Request parameters incorrect

2007-12-05 Thread Konstantin Kolinko
Get the request parameters from the request object from a page, concatenate them into a string, store the string in the db. Do you url-encode the names and the values before concatenating them into the string? If not, there might be '', '=' symbols in the value string that break your parsing.

Re: Value can't be changed in bean extended from AbstractController of Spring

2007-12-07 Thread Konstantin Kolinko
Do you have Serve modules without publishing option in Eclipse configuration for the server turned on or off? (Double click the server on the servers view to open the configuration dialog). 2007/12/8, kkus [EMAIL PROTECTED]: In my another project (JBoss+Spring+Hibernate), I see my changes

Re: rare occurrence of an Exception in Filter.doFilter()

2007-12-07 Thread Konstantin Kolinko
Also, you may want to search Bugzilla (http://issues.apache.org/) or user/dev list archives for those strings, Cannot create a session after the response has been committed, Cannot forward after response has been committed E.g., I have found

Re: Value can't be changed in bean extended from AbstractController of Spring

2007-12-07 Thread Konstantin Kolinko
In this case should I expect to see ... due to Java hot-swapping when breakpoint is reached? Obviously, if you do not see it working, it probably does not. You should familiarize yourselves with code hot-swapping technology, its implications, and how it works upon tomcat, web application

Re: Problems with Xerces under Tomcat 5.5

2007-12-16 Thread Konstantin Kolinko
1. Why do you need xerces.jar? Isn't Java API for XML processing, available since Java 1.4, enough for you? 2. Read http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html There is a chapter on using an alternate XML parser implementation. 2007/12/13, Salvatore Capolupo [EMAIL

Re: need help for CVE-2007-1355

2007-12-17 Thread Konstantin Kolinko
Please note that it is fixed in the sources (aka SVN) only, but not in any released version. The fix was committed on May 19th in revision http://svn.apache.org/viewvc?view=revrevision=539759 4.1.36 released in April does not contain the fix. 2007/12/17, Mary Joseph [EMAIL PROTECTED]: Looks

Re: Hql error throws when the application specific jar name with starting a capital letter

2007-12-17 Thread Konstantin Kolinko
I am not sure, but it MAY be that a jar is being loaded twice: a) directly, as any other jar located in WEB-INF/lib b) indirectly, if it is mentioned in Class-Path directive of the manifest file of some other jar. If the name mentioned in manifest file differs from the actual name of the jar, I

Re: User roles

2007-12-17 Thread Konstantin Kolinko
When stop command is invoked on tomcat (catalina), the value of the shutdown password is being read by catalina from the same server.xml file. So, it just has to be some random string. It is not mentioned anywhere in the scripts files. Of course, tomcat instance must be stopped while you change

Re: Ordered loading of WAR files

2008-01-23 Thread Konstantin Kolinko
On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... cached is not the right word. It is how deployment mechanism works in tomcat. The presence of app_name.xml in tc/conf/Catalina/localhost/ means that you application

Re: Server 2008 x64 + Java + Tomcat - does not work

2008-01-24 Thread Konstantin Kolinko
You should search through the list archives, e.g. at Nabble.com. In this list there were several reports of successfully running Tomcat on 64-bit Windows during the last 6 months. Though that required some manual configuration or tweaks. Have a look at 1)

Re: misconfigured log4j issue

2008-01-25 Thread Konstantin Kolinko
What exactly tomcat, log4j versions are you using? It may be a classloader issue. Some of them are occasionally found and fixed. That looks like commons-logging resorts to use log4j for the Digester class (instead of java logging aka juli for the server classes), but cannot find configuration.

Re: Download Dialog inclusing file extention

2008-01-26 Thread Konstantin Kolinko
You should use Content-Disposition header in your response. It allows you to provide filename of the file, and that includes its extension. Also, I suppose that the save as dialog honors the mime-type of your response. If that mime-type is known at your client computers, it may offer the relevant

Re: find out the possible bottleneck webapp

2008-01-26 Thread Konstantin Kolinko
I think that java thread dump can be printed even if workload is heavy. kill -3 command will produce it under UNIXes. 2008/1/24, maggie [EMAIL PROTECTED]: Is there any tool to provide such information Remotely even if the workload of Tomcat is very heavy?

Re: broken webapp after upgrading Tomcat

2008-01-27 Thread Konstantin Kolinko
It is strange. Looks like it should be working. 1) Please check how WEB-INF, classes, mvcs directories and web.xml file names are spelled on the Linux machine. 2) You may configure AccessLogValve in your META-INF/context.xml to log all requests that are coming to your application. See

Re: How to Disable TRACE and DELETE methods in tomcat 6.x

2008-01-31 Thread Konstantin Kolinko
- Disable 8005 Port on Tomcat instance. Users can shutdown tomcat from that port. Only if you give them telnet or other direct access to the machine Tomcat is running on. The shutdown port is used only with 127.0.0.1, no other IP address. Yes, and you also may change the shutdown

Re: Upgrading to 5.5.25 causes File /javax/servlet/resources/web-app_2_3.dtd not found

2008-02-01 Thread Konstantin Kolinko
The file /javax/servlet/resources/web-app_2_3.dtd is in servlet-api.jar in common/lib, both in 5.5.25 and 5.5.20. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: How to use https together with http

2008-02-01 Thread Konstantin Kolinko
You cannot and must not show that your page is secure, because it is not. The problem is that your page is vulnerable to a man-in-the-middle attack: there is no guarantee that the text of your web page or of the javascript files that it is using was not altered by someone while it was transmitted

Re: StandardContext start,SEVERE: Error filterStart When Including HttpServletRequestWrapper in Filter in 6.0.14

2008-02-02 Thread Konstantin Kolinko
How do you package and deploy your application? If you are seeing java.lang.NoClassDefFoundError: test/filter/TestFilter$1 please check, that the class file TestFilter$1.class is present in your app's WEB-INF/classes/test/filter/ directory on the web server. still present. The localhost log

Re: StandardContext start,SEVERE: Error filterStart When Including HttpServletRequestWrapper in Filter in 6.0.14

2008-02-03 Thread Konstantin Kolinko
Hi, Ole In this case I just recompiling the filter and copying it over the the classes folder of the webapp. It's definitely there. Once again, just to be sure. The compiler creates two files, TestFilter.class and TestFilter$1.class. Do you copy both of them? You wrote it, not they.

Re: misconfigured log4j issue

2008-02-03 Thread Konstantin Kolinko
Yes. I manage the log4j configuration myself when my webapp loads - from a props file - I'm not using any of log4j's auto configure / discovery stuff. Tomcat uses commons-logging for its logging needs. Apache commons logging does decide what logging implementation to use at the time when a

Re: j_security_check

2008-02-03 Thread Konstantin Kolinko
You do 1) GET call int_result = httpClient.executeMethod( getMethod ); The server caches your request and returns html page that contains the login form. 2) POST call postMethod = new PostMethod( https://localhost:8444/j_security_check; ); int_result =

Re: j_security_check

2008-02-03 Thread Konstantin Kolinko
You may look into FormAuthenticator.java of package org.apache.catalina.authenticator and see it with your own eyes. 2008/2/3, Ashok Venkat [EMAIL PROTECTED]: Thanks for the detailed explanation, as you mentioned it seems that the second request is being ignored ,but i am not clear how come

Re: proxy trouble

2008-02-06 Thread Konstantin Kolinko
It is browser configuration issue. You should add 172.168.0.15 or 172.168.0.* to the list of not-proxied servers in your browser. In Internet Explorer look where the proxy is configured (on the Connections tab), and there is Advanced... button. Click it to open advanced proxies configuration

Re: Incorrect cookie value in tomcat5.5.26

2008-02-11 Thread Konstantin Kolinko
I guess the cause is the same as for tomcat 6.0.16. See messages entitles Cookies are broken in 6.0.16?. http://www.nabble.com/Cookies-are-broken-in-6.0.16--to15369118.html - To start a new topic, e-mail: users@tomcat.apache.org

Re: Leap-year problem with commons-net

2008-02-29 Thread Konstantin Kolinko
See https://issues.apache.org/jira/browse/NET-190 https://issues.apache.org/jira/browse/NET-188 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Help on Tomcat configurations

2008-03-01 Thread Konstantin Kolinko
-Problem: when I try to access using other computer, I typed http://192.168.0.1/webapplication/login.jsp, error page occured. where ip address is address of machine where Tomcat is installed. (Page cannot be displayed -- from IE 6.0) If you are using Windows XP SP2 or something later,

Re: difference between TC5.5 and TC6

2008-03-06 Thread Konstantin Kolinko
And also there is http://tomcat.apache.org/migration.html Is there any documentation available where I can read about all the changes that has happened from TC 5 to TC6. http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Re: meaning of tomcat's memory options

2008-03-11 Thread Konstantin Kolinko
Also, see options for java in the list of tools in documentation for your version of Java SDK, e.g. http://java.sun.com/javase/6/docs/technotes/tools/windows/java.html http://java.sun.com/javase/6/docs/technotes/tools/index.html#basic 2008/3/11, Owen Rees [EMAIL PROTECTED]: --On Tuesday, March

Re: Authorization on Apache Tomcat the J2ee Way.

2007-10-05 Thread Konstantin Kolinko
Take a look at Acegi Security for Spring Framework, http://acegisecurity.org/ It is a complete, container non-specific framework. The web part of it is configured as a filter (a chain of filters) in your web.xml. The SecurityContextHolderAwareRequestFilter class there publishes acegi-specific

Re: Over 70 instances of Tomcat after startup

2007-10-08 Thread Konstantin Kolinko
It looks like ps ax | grep ... lists several processes for the same JVM, due to threads behavior is Linux, (see 1. http://tomcat.apache.org/faq/unix.html#ps 2. http://java.sun.com/developer/technicalArticles/Programming/linux/index.html (scroll down to About Linux Threads) 3.

Re: Error track can't track the exact line and display the bug line number

2007-10-08 Thread Konstantin Kolinko
When compiling with Ant the debug information is off by default. Look for the debug option of javac task in Ant manual here: http://ant.apache.org/manual/CoreTasks/javac.html - To start a new topic, e-mail:

Re: How can I specify the Tomcat directory?

2007-10-08 Thread Konstantin Kolinko
How can I specify the Tomcat installation directory? What am I missing in the configurations of the Eclipse? The answer is that you specify the Tomcat installation directory when you are configuring Server Runtime Environment. It is like Java Runtime Environment, but for Java EE. In the main

Re: Very Long Full GC after Inactivity

2007-10-08 Thread Konstantin Kolinko
Just a hypothesis. During these off-peak hours some other applications are actively running (maintenance etc.), and as java is not intensively used, its memory is swapped to the hard disks. Thus, when it awakens and does the GC, it takes so much time to wake up the memory walking through it to

Re: Using RequestDispatcher.include() outside of Request/Response cycle.

2007-10-10 Thread Konstantin Kolinko
Hi, Andrei! You may consider looking at existing mock implementations of HttpServletRequest/Response that are available. For example, Spring Framework (http://springframework.org) has org.springframework.mock.web.MockHttpServletRequest, org.springframework.mock.web.MockHttpServletResponse Those

Re: Native Library Not found

2007-10-10 Thread Konstantin Kolinko
What is this. I am getting an outofmemory error on running QuartzScheduler. Does this has anything to do with that? No, Apache Tomcat Native library is not related to your out-of-memory errors. You may note, that the message shows even if you do not have your webapp deployed.

Re: Second webapp lib folder

2007-10-13 Thread Konstantin Kolinko
in catalina.properties file. Best regards, Konstantin Kolinko - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: More number of connections got created than maxActive

2007-10-16 Thread Konstantin Kolinko
Isn't it http://issues.apache.org/jira/browse/DBCP-28 ? Connection leak ... It was fixed in DBCP 1.2.2. You may want to read through the Release History of DBCP for other bugs that have been already found and fixed, http://commons.apache.org/dbcp/changes-report.html

Re: Error unregistering mbean

2007-10-16 Thread Konstantin Kolinko
You may consider upgrading from Tomcat 5.0 to Tomcat 5.5. + It implements the same version of the specification (Servlets 2.4/JSP 2.0), thus there must be no impact for your webapp. + It is designed to run on JVM 1.5 in its default configuration. (Running with JVM 1.4 requires additional

Re: java.library.path / Unsatisfied Link Error problem with Linux Tomcat 5.5

2007-10-16 Thread Konstantin Kolinko
Is your third-party jar placed into the shared libraries folder as it should be? See http://wiki.apache.org/tomcat/HowTo#head-a4b7185ee95d0cf14a48f92c08d1eb66b561139d http://forum.java.sun.com/thread.jspa?threadID=780109 See also http://java.sun.com/docs/books/jni/html/design.html chapters

Re: java.library.path / Unsatisfied Link Error problem with Linux Tomcat 5.5

2007-10-16 Thread Konstantin Kolinko
Does the native library consist of a single .so file, or there are several ones? See the second NOTE MEG here: http://wrapper.tanukisoftware.org/doc/english/prop-java-library-path-n.html It is about requirements for LD_LIBRARY_PATH if there are several libraries. Does your printenv mention the

Re: java.library.path / Unsatisfied Link Error problem with Linux Tomcat 5.5

2007-10-17 Thread Konstantin Kolinko
be relevant? Konstantin Kolinko wrote: Does the native library consist of a single .so file, or there are several ones? See the second NOTE MEG here: http://wrapper.tanukisoftware.org/doc/english/prop-java-library-path-n.html It is about requirements for LD_LIBRARY_PATH

Re: UTF-8 Properties File

2007-10-17 Thread Konstantin Kolinko
You may try some tools to edit those files. E.g., I am using this one as a plugin for Eclipse, but it may run separately: http://propedit.sourceforge.jp/index_en.html 2007/10/17, Billy Ng [EMAIL PROTECTED]: This is the major problem for the people to localize context. \u unicode format

Re: jndi.properties in Tomcat 5.5.23 ??

2007-10-17 Thread Konstantin Kolinko
I do not have recent experience with JNDI, so the following are just my guesses, trying to help. May be someone will provide a better answer, or You will be able to find it by yourself. Thus said, it looks to me that what you are trying is not possible. As seen from [1], Tomcat 5.5 already has

Re: custom web.xml digester call

2007-10-17 Thread Konstantin Kolinko
Is it possible to call the digester of the web.xml by hand? Hmm, I can imagine a couple of ways how I am able to call it, thus it is theoretically possible. Why do you need it? Do you need to go that way? See, that 1. You have not said about your reasons. 2. You have not said about your

Re: Tomcat mixes sessions?

2007-10-23 Thread Konstantin Kolinko
Just to be sure. I hope that others have more fruitful thoughts. 1) Do you invalidate the session when the users log out ? 2) I do not like the following fragment: req.getSession().setAttribute(user, p); req.getSession().setAttribute(prev_session_time,

Re: Changing HTTP port from 8080 prevents HTTPS redirects, Tomcat 5.5

2008-03-12 Thread Konstantin Kolinko
You should have asked this question at Spring Framework community support forum, http://forum.springframework.org/forumdisplay.php?f=33 Acegi Security is implemented as a filter, and its configuration is independent of Tomcat. I have not an example at hand, so the following is from the reference

Re: where to get older versions of JK, e.g. JK 1.2.19 ?

2008-03-16 Thread Konstantin Kolinko
Download Tomcat Connectors Archive That is http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/source/ http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ 2008/3/16, [EMAIL PROTECTED] [EMAIL PROTECTED]: where can I download older versions of JK, e.g. JK 1.2.19 ?

Re: Data lost on response in 6.0.16, works fine in 6.0.14

2008-05-21 Thread Konstantin Kolinko
It is a bug of 6.0.16 / 5.5.26. See https://issues.apache.org/bugzilla/show_bug.cgi?id=44494 It occurs for requests that use multibyte code pages (like UTF-8). Single-byte ones AFAIK are working fine. - To start a new topic,

Re: Add context definition

2008-05-21 Thread Konstantin Kolinko
Created a new web app, and tried to see the index.html page, just to test. Comes up blank. Have you tried http://localhost:8080/your project name/index.html ? There is no context in server.xml for my project. Yes, there should not be any. Have a look into

Re: Disabling Asserts on Tomcat 5.0.x

2008-05-21 Thread Konstantin Kolinko
Program: ...Software Foundation\Tomcat 5.0\bin\tomcat5.exe File: CheckFailureSnippet.cpp Line: 41 Whose code it is? AFAIK, service startup code for TC 5.5 and 6.0 for Windows comes from procrun project (http://commons.apache.org/daemon/procrun.html, search this mailing list archives for

Re: [Fwd: Tomcat manager]

2008-05-21 Thread Konstantin Kolinko
Aren't you using some national characters in your user name or password? Admin application specifies SetCharacterEncodingFilter in its web.xml and uses FORM authentication. The Manager one does not specify the filter and uses BASIC authentication. Also,

Re: COMPATABILITY APACHE /TOMCAT/CONNECTOR

2008-05-28 Thread Konstantin Kolinko
As you may see from your logs: [Wed May 28 18:45:28 2008] [1316:1392] [info] jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8009) (errno=61) You forgot to specify different ports for your AJP/1.3 connectors. They both try to start listening on port 8009, but that is not possible,

Re: Obtain catalina-home variable

2008-05-28 Thread Konstantin Kolinko
The answer is correct as a direct match to the question, but I would recommend using the following code instead: System.getProperty(catalina.home) System.getProperty(catalina.base) The catalina.bat / catalina.sh script passes values of CATALINA_* environment variables as system properties, when

Re: Obtain catalina-home variable

2008-05-29 Thread Konstantin Kolinko
. Konstantin Kolinko wrote: The answer is correct as a direct match to the question, but I would recommend using the following code instead: System.getProperty(catalina.home) System.getProperty(catalina.base) The catalina.bat / catalina.sh script passes values of CATALINA_* environment variables

Re: COMPATABILITY APACHE /TOMCAT/CONNECTOR

2008-05-29 Thread Konstantin Kolinko
1) What is in your worker.properties file? 2) The following lines in Apache log: [Thu May 29 20:25:56 2008] [1264:2008] [info] jk_connect.c (566): connect to 10.10.16.63:8009 failed (errno=61) mod_jk tries to connect to 10.10.16.63. Is the IP address correct? In the worker.properties that you

Re: default page absent if tomcat started from eclipse

2008-05-29 Thread Konstantin Kolinko
The default webpage does belong to the default application (the name of that application is ROOT). If ROOT application is not deployed on the server, there is no default page to be displayed. See also,

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Konstantin Kolinko
at run time. JMX servlet in Tomcat Manager application is an example of using it. (search the archives for more info on JMX) Best regards, Konstantin Kolinko 2008/7/7 Jonas Wagner [EMAIL PROTECTED]: Good morning, I'm still trying to figure out how I can cause tomcat to re-read JNDI resources

  1   2   3   4   5   6   7   8   9   10   >