Re: Good JSP editor

2008-09-07 Thread Konstantin Kolinko
/JST project (e.g. MyEclipse), but I do not know 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

Re: tomcat-users.xml MD5 sum

2008-09-10 Thread Konstantin Kolinko
2008/9/10 Niki Diulgerov <[EMAIL PROTECTED]>: > I implemented aide monitoring on tomcat (and the webapps) yesterday and > today faced a very strange problem. > tomcat-users.xml seems the same file (it contents) but aide reports MD5 and > SHA different checksums. > is it possible that on restart apa

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? " or " 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]>: > Hi,

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Konstantin Kolinko
ed ones). 3. Save both pages as HTML (choose "HTML only" format when saving), and compare their text. Is there any difference? 4. Well, £ (notice the trailing ';'), or better £ should display the pound sign irregardless of what encoding the bro

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-11 Thread Konstantin Kolinko
todetect their encoding, http://www.w3.org/TR/html4/charset.html#spec-char-encoding Also, Tomcat wiki: http://wiki.apache.org/tomcat/FAQ/CharacterEncoding 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
sp-config element in web.xml. It can be done in the default one in conf/web.xml. The configuration element is described in JSP.3.3.4 of JSP2.0 spec. By the way: in my pages I usually declare <[EMAIL PROTECTED] contentType="text/html; charset=..." pageEncoding="..." %> and add Thus both HTTP Content-Type: header and the META tag 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 se

Re: Remote debugging via shmem, Tomcat as a service

2008-09-12 Thread Konstantin Kolinko
s that the Shared Memory Transport is implemented using memory-mapped files. You may try to dig there, http://msdn.microsoft.com/en-us/library/aa366551(VS.85).aspx http://msdn.microsoft.com/en-us/library/aa366559(VS.85).aspx Best regards, Konstantin Kolinko -

Re: Tomcat shutdown event

2008-09-12 Thread Konstantin Kolinko
oks. Also, if you start your own thread you may 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.

Re: image download

2008-09-26 Thread Konstantin Kolinko
2008/9/27 Dave <[EMAIL PROTECTED]>: > For 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. http://java.sun.com/javase/6/docs/api/java

Re: Tomcat outputs php to stderr

2008-09-30 Thread Konstantin Kolinko
ridge / sapi of PHP, and the code / 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. > >

Re: Tomcat stops with error after calling setclasspath.bat

2008-09-30 Thread Konstantin Kolinko
latest version. I reckon that I once stumbled into misbehaving bat files, that were also complaining about some wrong goto. I fixed them in couple of minutes by adding some blank lines or removing trailing spaces -- I do not rememb

Re: Tomcat stops with error after calling setclasspath.bat

2008-10-01 Thread Konstantin Kolinko
hat would throw an > error. > > I've enclosed 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

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 > > Follow

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

2008-10-06 Thread Konstantin Kolinko
ened in above mentioned jars from > tomcat 5.5.9 to 5.5.26 which is breaking my code? > > Thanks and Regards, > > Vinit > -Original Message- > From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] > Sent: Friday, October 03, 2008 7:08 PM > To: Tomcat Users List > Su

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

2008-10-06 Thread Konstantin Kolinko
it > tries 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 PROTE

Re: Too many open files

2008-10-08 Thread Konstantin Kolinko
message thread 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

Re: Problem running TC 6.0.18 with CATALINA_BASE

2008-10-10 Thread Konstantin Kolinko
, see https://issues.apache.org/bugzilla/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. B

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 J

Re: NoclassDefFoundError!!

2008-10-14 Thread Konstantin Kolinko
age hierarchy. Try the following: D:\Products\Tomcat_4.1_004\webapps\SAM_MPP\WEB-INF\classes>java -classpath . admintool.CSVParser Also, if you are not the only java developer there, try asking your colleagues for help. Best regards, Konstantin Kolinko ---

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 sec

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. http://publib.bou

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: users@tomcat.apache

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 co

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 Thos

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
uration 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 componen

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 11.2.3

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
file so does that mean the LD_LIBRARY_PATH stuff won't > 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://

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 forma

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 s

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 const

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", > p.getLas

Re: Confused about startup

2007-10-24 Thread Konstantin Kolinko
Hi, I can say you a few words about this bootstrap class. I remember how I was proud, when I managed to decypher what it actually does. It was a year ago, but it is still a good memory. ;) It's an excellent piece. I hope that in a while you will be able to share these feelings of joy. In essence

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, t

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) http://is

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 r

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 diff

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 http://www.n

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 org/apache/commons/collections/SequencedHashMa

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 s

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 change

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 http://issues.apache.org/bugzilla/show_bug.cgi?id=4

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 depl

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 PROTECT

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=rev&revision=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 th

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 .xml in tc/conf/Catalina/localhost/ means that you application has bee

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) http://www.nabble.com/Installing-Tomcat-o

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: Redeploy a war file

2008-01-26 Thread Konstantin Kolinko
It sounds like jar locking issue that is specific to Windows OS. Look for the antiJARLocking attribute of Context element. http://wiki.apache.org/tomcat/FAQ/Windows - To start a new topic, e-mail: users@tomcat.apache.org To unsub

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 relev

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 http://tomc

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 "shu

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 com

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

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 whe

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: servlet mapping question(I believe)

2008-02-03 Thread Konstantin Kolinko
>"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> Why are you using such an old version of specification? Why not 2.4 or 2.5?? Nowadays, with tomcat 5.5 and 6.0 it is very rare (and discouraged) to configure context in server.xml. For the root application it is sufficient to name it "ROOT"

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 com

Re: url encoding in ie6

2008-02-03 Thread Konstantin Kolinko
What do you observe? When authentication form is shown, does it include session id in its target url (in its HTML source)? Does jsessionid shows up in the url in the address bar? Is the problem reproducible if you clear the browser cache and start from a new (blank) browser window? What Tomcat v

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 configuratio

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.or

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: [EM

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 lat

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, M

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, e-ma

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//index.html ? > There is no context in server.xml for my project. Yes, there should not be any. Have a look into .metadata/.plugins/org.eclipse.wst.server.core/t

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, https://issues.apache.org/bugzilla/show_bug

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, thu

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, w

Re: Obtain catalina-home variable

2008-05-29 Thread Konstantin Kolinko
t only valid for windows? > > Thank you very much. > > > 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&

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 po

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, http://wiki.eclipse.org/WTP_Tomcat_FAQ#If_I_start_my_Tomcat_server_and_try_to_display_Tomcat.27s

Re: giving default write permission to tomcat created files on linux

2008-05-31 Thread Konstantin Kolinko
umask worked for me. May be you are applying it in a wrong place. 2008/5/31 dexter.deepak <[EMAIL PROTECTED]>: > > i am running a shell script through a jsp to modify the contents of the > existing files creatd by the the tomcat server. i tried 'umask' , but it > only gives me the default permis

Re: Tomcat 5.5.26 Vulnerability - Test

2008-10-23 Thread Konstantin Kolinko
links or search the mailing list archive. Also, 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

Re: Deploy WAR on ROOT without losing Manager application

2008-12-28 Thread Konstantin Kolinko
2008/12/29 nodje : > > We need tp have our application accessed from the Root context /. > So we usually delete the ROOT.war and rename our application to ROOT.war. > This works well of course but we lose the benefit of using the Tomcat > manager. > No, you are not loosing it. The ROOT application

Re: java.lang.ClassNotFoundException with small jsp file

2008-12-31 Thread Konstantin Kolinko
2008/12/31 John Byrne : > All, > > Thank you for your previous suggestions. I have stopped the server running > in Eclipse and started it from the services window (under control > panel/Administration). Now it works fine. So, the problem was with Eclipse > and Eclipse not being able to find wher

Re: “java.lang.NullPointerException” with JDBC connection from InitialContext

2008-12-31 Thread Konstantin Kolinko
succeeded, but some other call few lines later is failing. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: How can the login page see parameters in the original request?

2008-12-31 Thread Konstantin Kolinko
2008/12/30 : > To hide the existence of the page from robots. > > --- On Tue, 12/30/08, Pid wrote: > >> From: Pid >> Subject: Re: How can the login page see parameters in the original request? >> To: "Tomcat Users List" >> Date: Tuesday, December 30, 2008, 6:26 AM >> removeps-gro...@yahoo.com w

<    1   2   3   4   5   6   7   8   9   10   >