Re: Tomcat 6.0.26 startup issue

2011-01-17 Thread Konstantin Kolinko
. This call hangs due to a deadlock. In 6.0.30 that call can be turned off by setting attribute urlCacheProtection="false" on JreMemoryLeakPreventionListener. Maybe that will work for 6.0.26 as well. Best regards, Konstantin Kolinko --

Re: How to configure Tomcat/Coyote to deliver a P3P Header on Every Request

2011-01-17 Thread Konstantin Kolinko
Level" in the docs. 2011/1/18 André Warnier : > The documentation says : A "rule" must contain a "from" and a "to", and can > have zero or more "condition" elements and zero or more and/or &qu

Re: Enabling SSL on Tomcat 6

2011-01-18 Thread Konstantin Kolinko
ther uses native libraries. Your connector is pure java (Nio), but your configuration settings are for the APR (native) connector. Thus the warning messages in your log. Read the docs more carefully - it is described there. http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html Best r

Re: maxSpareThreads and minSpareThreads options on tomcat 6 ajp connector

2011-01-18 Thread Konstantin Kolinko
e attributes as empty > 2) were the properties renamed or was the functionality of these two > properties rolled into some other property? > http://markmail.org/message/qhpcpy3m2anpwp23 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Konstantin Kolinko
's bin/ directory. > >  C:\Programme\Java\jdk1.6.0_23\bin > More details are here: http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F Best regards, Konstantin Kolinko - To u

Re: Geo-Server shows running state false when deployed on tomcat

2011-01-19 Thread Konstantin Kolinko
2011/1/20 Deepak Pal : > /srv/apache-tomcat-5.5.31/ I'd better consider running it on 6.0. 5.5.31 includes commons-logging-1.1.1.jar and it will conflict with the one in your war. 6.0 does not have this issue. > Logs in catalina.2011-01-20.log are: And what is in localhost.2011-01-20.log ? >

Re: Why does tomcat need a shutdown port on Windows?

2011-01-20 Thread Konstantin Kolinko
t files or running from withing an IDE the port will be needed. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Exception when starting tomcat 7.0.6

2011-01-21 Thread Konstantin Kolinko
ooks like tcnative-1.dll cannot be loaded. Try to delete/rename tcnative-1.dll. Tomcat can run without it. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Exception running precompiled JSP

2011-01-22 Thread Konstantin Kolinko
t.apache.org/tomcat-7.0-doc/jasper-howto.html that suggest > that jasper.jar needs to be copied into the webapp's WEB-INF/lib > directory, and that seems dangerous anyway. You are right, you should not copy it to webapp. I have not tried to repr

Re: Tomcat upgradation from 6.0.29 to 6.0.30

2011-01-22 Thread Konstantin Kolinko
using Nio connector, please wait for 6.0.31 (will be soon). There is a regression in 6.0.30 that can lead to out-of-memory errors. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For add

Re: servlet spec violation?

2011-01-25 Thread Konstantin Kolinko
> This seems to violate the rule: >requestUri = contextPath + servletpath + pathInfo > on page 28 of the Servlet 2.5 spec (pathInfo should be null). Looks like it. Though I have never seen such requests - as said above. Best regards, Konstantin Kolinko

Re: Which is right, the comment or the docs?

2011-01-25 Thread Konstantin Kolinko
"); } Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: What are the units for the session ID length

2011-01-25 Thread Konstantin Kolinko
3) it has 32 > characters, does anyone know for sure what the units are? Those are bytes. I updated the docs. http://svn.apache.org/viewvc?rev=1063257&view=rev Best regards, Konstantin Kolinko - To unsubscribe, e-m

Re: writing logs on a separate server while the project as jar file

2011-01-25 Thread Konstantin Kolinko
a wrapper around the actual logging implementation. That said, I know nothing about tibco. [1] http://commons.apache.org/logging/ Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.

Re: Why does tomcat need a shutdown port on Windows?

2011-01-25 Thread Konstantin Kolinko
s.apache.org/daemon/ 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 to access tomcat conf dir from my webapp

2011-01-25 Thread Konstantin Kolinko
m.getProperty("catalina.base"); Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Konstantin Kolinko
nt.markmail.org/thread/ojjm7g5otejua33i > Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: 400 error when a request does not map to a context

2011-01-26 Thread Konstantin Kolinko
available), but at least we can give blank response with correct HTTP result code (like Http11Processor and others do). > HTTP Spec says 400 means "The request could not be understood by the > server due to malformed syntax" but the request is perfectly valid. Best regards, Konstan

Re: [OT] 400 error when a request does not map to a context

2011-01-26 Thread Konstantin Kolinko
pec ? > It is just the context that is mapped to path "". Naming it "ROOT" is a Tomcat convention. Technically, you can put element into server.xml and use any name there. Best regards, Konstantin Kolinko ---

Re: ServletWebRequest.getServletPath() returns strange values on uris with german umlauts

2011-01-26 Thread Konstantin Kolinko
attribute is ignored there. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: tomcat-juli.jar not on classpath of bootstrap.jar MANIFEST.MF anymore in Tomcat 7

2011-01-27 Thread Konstantin Kolinko
2011/1/27 Nick Wiedenbrück : > Trying to start Tomcat 7 with "java -jar bootstrap.jar" doesn't work > anymore, because tomcat-juli.jar is not on classpath (it was on Tomcat 6). > Looks like the Class-Path in MANIFEST.MF does not contain it anymore. Is > there a reason for this? There is. Search de

Re: Valid values for digestEncoding attribute?

2011-01-27 Thread Konstantin Kolinko
2011/1/27 Ing. Etienne V. Depasquale : > Good day, > > > > I am unable to identify valid values for the digestEncoding attribute to use > with the tag of my app's context.xml file. > > I've inspected RealmBase.java and JDBCRealm.java, apart from some googling, > without finding anything suitable.

Re: Detected malware in the download of Tomcat 6.0.30

2011-01-27 Thread Konstantin Kolinko
2011/1/27 Barry Kortekaas : > I am receiving a virus detection in the download of > apache-tomcat-6.0.30-windows-x64.zip (MD5 - 03416951ad4094d1f0de1c55cf9180c1) > from different mirrors. > > www.takeyellow.com > www.eng.lsu.edu > mirrors.devlib.

Re: Mod_JK inserted header case sensitivity issue

2011-01-28 Thread Konstantin Kolinko
u create an issue in Bugzilla and attach a patch there. That is how it usually goes. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: About maxThreads

2011-01-31 Thread Konstantin Kolinko
2011/1/31 Semih Gokalp : > I'm using Tomcat 6.0.29 and I have changed to maxThreads parameter to 300 > from 200 and restart tomcat but I have still getting below error in catalina > log. > server.xml > >             maxThreads="300" connectionTimeout="2" URIEncoding="UTF-8" /> 1) What conn

Re: custom class as resource

2011-01-31 Thread Konstantin Kolinko
2011/1/31 alexis : > actually im already using a class extending servletcontextlistener, this > class is the responsible to start all other threads on processing. Some > threads stores results on a DB, some threads should store results in an > object to be accesed by a servlet and presented via

Re: Problem with standard taglibs after precompiling a web app with TCD in 7.0.6 & no support for "addWebXmlMappings" in jasper

2011-01-31 Thread Konstantin Kolinko
_query_0(Unknown Source) 1) Can you compare the java source of index_jsp._jspx_meth_sql_query_0 when generated by TCD and the one generated when index.jsp is compiled at run time? 2) Please create a bugzilla entry. Best regards, Konstantin Kolinko ---

Re: About maxThreads

2011-01-31 Thread Konstantin Kolinko
ool was exhausted. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: About maxThreads

2011-01-31 Thread Konstantin Kolinko
nce 6.0.30). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Problem with standard taglibs after precompiling a web app with TCD in 7.0.6 & no support for "addWebXmlMappings" in jasper

2011-01-31 Thread Konstantin Kolinko
ml Deprecated. Nobody uses that. You should be using the jars that come with Tomcat. The real docs are here: http://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html > I think it's early to create a bugzilla entry. Should I look for jasper > >4.1.36

Re: Shared context.xml on WIndows XP

2011-01-31 Thread Konstantin Kolinko
2011/1/31 Jonathan Rosenberg : > I'm new to Tomcat so I'm probably missing something simple here.  Any > help appreciated. > > I'm trying to allow symlinking form any app on my development PC.  I > added the following to $CATALINA_HOME/conf/context.xml > >     >     >     allowLinking="true" shoul

Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2

2011-02-01 Thread Konstantin Kolinko
r or the logs. > https://issues.apache.org/jira/browse/DAEMON-195 Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2

2011-02-01 Thread Konstantin Kolinko
originally reported, or any other concerns. [1] https://issues.apache.org/jira/secure/ShowConstantsHelp.jspa?decorator=popup#PriorityLevels Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomc

Re: Tomcat shutdown

2011-02-01 Thread Konstantin Kolinko
p://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/ Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat on Windows XP: WAR file not fully unpacked

2011-02-01 Thread Konstantin Kolinko
single file. 3. How do you unpack "by hand"? Do you use jar.exe? 4. The full version of Tomcat (x.y.z) and vendor and version of JVM = ? 5. What are attributes of element in server.xml ? Best regards, Konstantin Kolinko ---

Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2

2011-02-01 Thread Konstantin Kolinko
2011/2/1 André Warnier : > Konstantin Kolinko wrote: >> >> 2011/2/1 Tom Kielty : >>> >>> Konstantin, >>> >>> Thanks for the reply. I tried to look for a defect but must not have >>> looked in the right place. It says this is a minor defec

Re: Tomcat 7.0.6 won't shutdown via SCM on Windows 2003 R2

2011-02-02 Thread Konstantin Kolinko
2011/2/1 Konstantin Kolinko : > See my comment in > https://issues.apache.org/jira/browse/DAEMON-195 > > -- I think reconfiguring the service will solve the issue. > Update: To resolve this Tomcat shutdown behaviour was changed to avoid calling System.exit(). This will be i

Re: how to refresh connection pool before it gets completely busy

2011-02-02 Thread Konstantin Kolinko
2011/2/1 Rhonny David : > http://commons.apache.org/dbcp/mail-lists.html http://commons.apache.org/dbcp/configuration.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Cannot connect to tomcat 5.5.23 on RedHat Linux

2011-02-02 Thread Konstantin Kolinko
2011/2/2 Sanford Stein > > After updating to Red Hat's latest version of tomcat 5 What version (x.y.z) of Tomcat is that? >    at gnu.java.net.PlainSocketImpl.connect(libgcj.so.7rh) GNU's Java isn't usable. Throw it away. You may search the list archives for "libgcj" --

Re: Unregistering context mbean twice

2011-02-02 Thread Konstantin Kolinko
2011/2/3 : > I hope someone can help me with the problem I have with undeploying a webapp. > We recently upgrade from 5.5 to 7 What exact version of Tomcat 7 (x.y.z)? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.o

Re: Missing something with custom tags.

2011-02-02 Thread Konstantin Kolinko
uot;xName". More details should be in the JavaBeans spec, http://www.oracle.com/technetwork/java/javase/documentation/spec-136004.html Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache

Re: Unregistering context mbean twice

2011-02-02 Thread Konstantin Kolinko
s in the logs? Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: memory leak in tomcat?

2011-02-03 Thread Konstantin Kolinko
loader. Both > are weak and are tomcat classes. There exists a category of leaks that are not seen by profiler: Those that were found were corrected when fixing https://issues.apache.org/bugzilla/show_bug.cgi?id=50460 See the links there for more info. Consider upgrading to 6.0.32.

Re: NPE instead of '400 Bad Request' response when sending invalid request on Tomcat 7.0.7

2011-02-03 Thread Konstantin Kolinko
a big issue, just wanted to note that behavior.) > Thank you a lot. Fixed with http://svn.apache.org/viewvc?rev=1067072&view=rev It fixes the NPE. Changing the code so that it actually responds with "400 Bad Request" line instead of closing the connection will r

Re: dbcp with embedded tomcat7

2011-02-07 Thread Konstantin Kolinko
) will be too late if webapp obtains the reference to the pool during its startup. Though if it does jdbc lookup only when needed you will be fine. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomc

Re: problem in shutting down Tomcat server

2011-02-08 Thread Konstantin Kolinko
2011/2/8 James Godrej : > ./catalina.sh: 373: /usr/lib/jvm/java-6-sun-1.6.0.20/bin/java: not found > ./catalina.sh: 373: /usr/lib/jvm/java-6-sun-1.6.0.20/bin/java: not found > ./catalina.sh: 373: /usr/lib/jvm/java-6-sun-1.6.0.20/bin/java: not found > > Upon seeing the last 3 lines I verified in the

Re: problem in shutting down Tomcat server

2011-02-08 Thread Konstantin Kolinko
2011/2/8 James Godrej : > > On Tue, Feb 8, 2011 at 2:20 PM, Konstantin Kolinko > wrote: >> 2011/2/8 James Godrej : >>> ./catalina.sh: 373: /usr/lib/jvm/java-6-sun-1.6.0.20/bin/java: not found >>> ./catalina.sh: 373: /usr/lib/jvm/java-6-sun-1.6.0.20/bin/java: not f

Re: Tomcat Cluster Membership establishment query

2011-02-08 Thread Konstantin Kolinko
find out exactly when the fix was created. AFAIK, that was backported to TC6 more than a year ago, http://svn.apache.org/viewvc?view=revision&revision=892521 Best regards, Konstantin Kolinko - To unsubscribe, e-m

Re: JNDIRealm userPattern DOMAIN/username

2011-02-08 Thread Konstantin Kolinko
e's no bug number listed and no revision number > mentioned, either, so you might have to dig through the svn logs to find > the appropriate update and see what changed. > http://svn.apache.org/viewvc?view=revision&revision=812115 Was there a stacktrace for that InvalidN

Re: problem in shutting down Tomcat server

2011-02-08 Thread Konstantin Kolinko
2011/2/8 James Godrej : > I could not understand your suggestion completely. > Sakai needs JAVA_HOME in a particular fashion. > https://confluence.sakaiproject.org/display/DOC/Sakai+2.7 > see the binary version on the link I mentioned Where is "particular fashion" there? The document says JAVA_HOM

Re: Registry settings location for Procrun after a 64 bit installation

2011-02-08 Thread Konstantin Kolinko
e Foundation\Tomcat\6.0 where the other keys are located?  Is Procrun > running in 32 bit mode? > That is by design. prunsrv (tomcat6.exe) is 64-bit/32-bit (whatever version of JRE you are using), prunmgr (tomcat6w.exe) is always 32-bit. Bes

Re: Servlet 3.0, @WebFilter and ordering

2011-02-08 Thread Konstantin Kolinko
in chapters 8.2.2 and 8.2.3 of the servlet 3.0 spec. In 8.2.3 it is explicitly written: "As described above, when using annotations to define the listeners, servlets and filters, the order in which they are invoked is unspecified" Best regards, Konstantin Kolinko

Re: More traces from tomcat 3.2.X

2011-02-09 Thread Konstantin Kolinko
high load of CPU. Taking a thread dump may provide some clue. http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr.

Re: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-14 Thread Konstantin Kolinko
2011/2/14 Shaun Farrugia : >  I would think the same but I'm wondering that Tomcat is doing.  Would it > allow http requests to a JSP to be serviced before ALL of the servlets marked > as load-on-startup are loaded? > They will be loaded, but any failure will just mark this specific servlet as u

Re: Tomcat 5.5.28 Servlet Spec 2.3 - When does Tomcat actually service requests?

2011-02-14 Thread Konstantin Kolinko
or will not be loaded.  I am wondering if http > requests to a JSP page are blocked before the servlets are loaded. > > > > -----Original Message- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Monday, February 14, 2011 12:14 PM > To: Tomcat Users List

Re: Reading a file in tomcathome/conf folder

2011-02-17 Thread Konstantin Kolinko
ourfile.properties")); Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: error when tomcat is shutting down

2011-02-17 Thread Konstantin Kolinko
2011/2/17 James Godrej : > /opt/apache-tomcat-5.5.31/bin/bootstrap.jar > 2011-02-17 12:50:38,919 ERROR main org.apache.catalina.startup.Catalina - > Catalina.stop: > > java.net.ConnectException: Connection refused >    at java.net.PlainSocketImpl.socketConnect(Native Method) >  I am getting above

Re: requests die with a stack overflow

2011-02-17 Thread Konstantin Kolinko
r map the filter to process only incoming requests (see how it mapped in your web.xml, what is specified in your ). I think that you can use request.setAttribute() and then check if the attribute is present to detect looping. Best regards, Konstantin Kolinko -

Re: Updating Tomcate Windows Service

2011-02-17 Thread Konstantin Kolinko
on. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Integrating Tomcat with Apache/IIS

2011-02-17 Thread Konstantin Kolinko
ther > Apache or IIS.  I can't seem to find any documentation on _why_ to do that > though. It was discussed a lot and many times. IIRC, it is also mentioned in the FAQ. Have you tried to search the list archives. E.g. this thread is one of first hits: http://markmail.org/thread/pdfydh

Re: Integrating Tomcat with Apache/IIS

2011-02-17 Thread Konstantin Kolinko
earch an archive directly where it has search feature (or limit Google search to a site), to avoid seeing N copies of each message. Best regards, Konstantin Kolinko 2011/2/17 Visuvasam, Rohan : > I was searching through Google, but I'm guessing I was either using the wrong > search term or

Re: AccessLogValve pattern (timestamp, bytes sent and time taken)

2011-02-18 Thread Konstantin Kolinko
ater) the access valve has different implementation, and is directly invoked from the connector adapter layer. That version prints timestamp when request was received, timing for the whole request processing cycle (though '0' whe

Re: 400 Errors while trying to deploy manager app.

2011-02-21 Thread Konstantin Kolinko
nager.xml deployed on that host, but is it actually running? (autodeploy is off on your host, so Tomcat won't notice the new webapp, unless you restart it, or tell it through API or JMX like the manager app does). Is the manager webapp starting up mentioned in the logs when Tomcat starts up? Is

Re: 400 Errors while trying to deploy manager app.

2011-02-22 Thread Konstantin Kolinko
text.xml" (exact name -- case of characters does matter!) and add it into your war file. (That is easy with Ant, or with `jar -uf`, I do not know about jenkins). That file will be used by Tomcat when you deploy your application. See "Context" page in the configuration reference

Re: Response.SendRedirect problems

2011-02-25 Thread Konstantin Kolinko
>> It concerns the servlet response.sendRedirect(...) method. >> >> When using the response.sendRedirect("/myexample") in my java class, i do >> n= >> ot want the servlet engine to reconstruct >> an absolute URL, before sending the response to the browser. That is not possible, because of how HTTP

Re: Sudden change in Tomcat 7.0.6 behaviour

2011-02-25 Thread Konstantin Kolinko
the class file and of the JSP file. Regardless of any changes to the JSP, if the JSP is older than the class it wouldn't be recompiled. To force recompilation, delete the files of the said application from the /work folder of Tomcat, as Chris already mentioned. Best regards,

Re: Question on Realm Configuration

2011-02-26 Thread Konstantin Kolinko
n't the column name "user_name" instead?) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Login page not showing up with configured realm.

2011-02-27 Thread Konstantin Kolinko
.jsp, you will see your Login.jsp after successfully typing in the password. BTW, if you want to run Tomcat with a debugger, http://wiki.apache.org/tomcat/FAQ/Developing Best regards, Konstantin Kolinko - To unsubscribe, e-mail

Re: request.getParameter() not working in Tomcat 7.0.8

2011-02-27 Thread Konstantin Kolinko
sense - it was early when I typed that. Lets > continue this in the non-hijacked thread. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Where are my compiled jsp's?

2011-02-27 Thread Konstantin Kolinko
2011/2/25 : > Hi, > > I have an expanded webapp moved into a directory out of tomcats webapps-dir. > I have changed the docbase in server.xml (I know, bad practice). But now the > compiled jsp's are no longer in tomcats work directory. Where are they now? > Try ServletContext.getAttribute("javax.

Re: AccessLogValve pattern (timestamp, bytes sent and time taken)

2011-02-27 Thread Konstantin Kolinko
h discussed on dev@ to change the behaviour, but it has not been applied yet). BTW, if you want to debug Tomcat, http://wiki.apache.org/tomcat/FAQ/Developing Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-u

Re: Error in Tomcat when redeploying the Web application

2011-03-03 Thread Konstantin Kolinko
pt that builds the war file and copy it to > Tomcat.webapps folder In the script you can split it into two steps: 1) copy it to "webapps/your.war.new" 2) rename it into "your.war" Renaming is fast so you are less likely

Re: Tomcat failing to process JAR's within web app

2011-03-04 Thread Konstantin Kolinko
HOME/conf/Catalina/localhost reads as follows > > > >   value="/home/lewis/Downloads/wombra" override="true"/> > > Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Forcing SSL use

2011-03-07 Thread Konstantin Kolinko
2011/3/7 Olivier Lefevre : > I put this in my webapp's web.xml, then intent being to > allow GET and POST over https and nothing else: > >     >       >        forbidden >        /* >        HEAD >        PUT >        DELETE >        OPTIONS >        TRACE >       >       >     > >     >       >  

Re: Running Tomcat as service - is it possible to make "tomcat7.exe" run a batch file each time it starts?

2011-03-07 Thread Konstantin Kolinko
to Bootstrap.main() afterwards 2) implement a Listener and configure it in server.xml to programmatically configure Tomcat before it starts. That is, if the configuration should not be done before JVM starts. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Logging level

2011-03-07 Thread Konstantin Kolinko
API is close to useless. Use you favourite logging > framework instead. > SevletContext.log(message) is logged as INFO SevletContext.log(message, throwable) is logged as ERROR (See o.a.catalina.core.ApplicationContext) That is not much, but at

Re: Servlet mapping doesn't work after upgrading from Tomcat 5 to 6

2011-03-08 Thread Konstantin Kolinko
to load the servlet saying > that the requested servlet not found. > > Can anyone please help? Please let me know if you have any questions. Read the Servlet spec. You must have a with that name. The is only half of the picture. http://wiki.apache.org/tomcat/Specif

Re: StackOverFlowError in Tomcat 6.0.29

2011-03-12 Thread Konstantin Kolinko
e) Each doForward() wraps the request once. So, after a thousand of forwards you have a long chain of thousand requests, on which you are calling that setAttribute() method. Thus, there is no wonder that that method is mentioned on the stack

Re: Migrated from 6.0.29 to 7.0.10, Now I get "INFO: TLD skipped. URI: http://struts.apache.org/tags-bean is already defined"

2011-03-13 Thread Konstantin Kolinko
r). See also the JSP specification for the background on the issue. E.g. chapters JSP.7.3.2 and JSP.7.3.4 of jsp-2_2-mrel-spec.pdf http://wiki.apache.org/tomcat/Specifications Best regards, Konstantin Kolinko - To unsubscribe, e

Re: Form Authentication Illegal Characters

2011-03-14 Thread Konstantin Kolinko
do not think that there is such a limitation. I would suggest you to try debugging it, http://wiki.apache.org/tomcat/FAQ/Developing#Debugging And an update to the latest 6.0.32 should not hurt. Best regards, Konstantin Kolinko ---

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 4:56 PM, Caldarale, Charles R wrote: >> >> You have a *server* JVM installed on Windows XP?  Want to verify that? > > Like I said, $JAVA_HOME/bin/server/jvm.dll is there. I did nothing > special: I just ran the installer. > --Jvm "C:\Programme\Java\jre6\b

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 7:44 PM, Konstantin Kolinko wrote: >> >> Windows versions of JDK do have server JVM, while JREs do not. > > Saying it does not make so. I assure you that both the JRE and the > JDK include the bin/server/jvm.dll. > On Linux y

Re: Problem with keystore location on Unix

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > In the HTTPS Connector element of my server.xml I have > keystoreFile="/tomcat.jks". This works fine on Windows > but fails on Linux with "java.io.FileNotFoundException: > /tomcat.jks (No such file or directory)". "/tomcat.jks" is a relative path on Windows, but absol

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-15 Thread Konstantin Kolinko
ot;http-bio-8080"-exec-9" ... > > And the numbers (exec-8, exec-9) keep growing, sometimes it skips one or two > and after a few minutes I can get 4 or 5 of them even though I have made > only one request. Where those messages are printed? Are they in the log files? Best

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 8:28 PM, Konstantin Kolinko wrote: >>> >>> Saying it does not make so. I assure you that both the JRE and the >>> JDK include the bin/server/jvm.dll. >> >> On Linux yes. On Windows no. Have you looked there? Or

Re: Error overview in catalina.out

2011-03-17 Thread Konstantin Kolinko
gt; Unable to receive message through TCP channel Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Hard time finding a but on Tomcat 7 (doesn't happen on 6.)

2011-03-17 Thread Konstantin Kolinko
You just have to know what those things are. http://wiki.eclipse.org/WTP_Tomcat_FAQ Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Konstantin Kolinko
ackagename.level". Without the package ".level" (with a leading dot) states the default. It defaults to INFO. 2. The ".level" sets what logging statements are generated. Those are further filtered by the Handler. (

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Konstantin Kolinko
robably reduce > the security of your session IDs. > > Mark > > [1] http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html > Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 7: manager application takes forever to deploy - or not

2011-03-18 Thread Konstantin Kolinko
2011/3/18 Mark Thomas : > On 18/03/2011 14:07, Konstantin Kolinko wrote: >> Just a note: Maybe it is worth to measure the time that the sessionId >> generation takes (looking at the stack trace in [1]) and print some >> warning if org.apache.catalina.util.SessionIdGen

Re: FW: Issue with tomcat 6 connector

2011-03-20 Thread Konstantin Kolinko
2011/3/21 Krish : > Martin, > > Thanks for the email. > > Please find the answers for your questions. Before that this is connector > between sun one webserevr and Tomcat 6 not websphere. > > > a)which OS will you be targetting? > Windows 2003 > b)which JVM are you implementing? > Sun Java 1.6 > c)

Re: Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Konstantin Kolinko
please let us know. > > Mark > 2011/3/22 Billy Bacon : > Tomcat 6.0.26 > Java 1.6 > OS: Mac OS X and Linux There was a number of fixes between 6.0.26 and the latest 6.0.32... Best regards, Konstantin Kolinko --

Re: manager app problem

2011-03-25 Thread Konstantin Kolinko
A-INF/context.xml is broken (like a typo somewhere: a stray '>' or a nested comment ('--' is not allowed inside comments)). There should be errors logged somewhere. As Chuck wrote: > Are you sure you looked in *all* of the Tomcat logs? Best regards, Konstantin Kolin

Re: Cannot set JAVA_HOME for jsvc/Tomcat 7.0.11... i've tried EVERYTHING

2011-03-25 Thread Konstantin Kolinko
ed $echo > $JAVA_HOME to verify it was set) > 1) Are you able to start Tomcat without jsvc with that JAVA_HOME? ./bin/catalina.sh start 2) Enable debug logging in jsvc: add "-debug" to the command line http://commons.apache.org/daemon/jsvc.html That will p

Re: Tomcat 7.0.11: bug with manager application when undeploying

2011-03-25 Thread Konstantin Kolinko
t; answers OK, but it is not. As is written elsewhere: when asking questions on this list, please state your exact Tomcat version (which is three numbers). $CATALINA_HOME/bin/version.sh will tell you the version, as well as it is displayed in the manager app and in the logs when Tomcat starts.

Re: Startup error in 6.0.20 with JSF application

2011-03-25 Thread Konstantin Kolinko
2011/3/24 Murugan, Subash : > > Also we tried upgrading the myFaces version to 1.2 for 6.0.20 version but > still the issue occurs. Why not with 6.0.32? There were a lot of fixes since 6.0.20. Best regards, Konstanti

Re: Tomcat 7.0.11, manager application: is this expected?

2011-03-25 Thread Konstantin Kolinko
2011/3/24 Francis GALIEGUE : > On Thu, Mar 24, 2011 at 17:03, Mark Thomas wrote: > [...] >> >> The only validation done is that the path is either zero length or >> starts with a '/'. Anything else is permitted. Could the validation be >> stricter? Sure. But in this case all you get (if I a readin

Re: tomcat 7 lib

2011-03-27 Thread Konstantin Kolinko
of that line. 2) usually you add it only to "common.loader". Do not add to three at once. 3) do not confuse ${catalina.base} with ${catalina.home} and vice versa. 4) do not forget to restart Tomcat 5) if you are still confused, you may want to enable logging for org.apache.catal

Re: tomcat 7 lib

2011-03-27 Thread Konstantin Kolinko
2011/3/27 Henry Lu : > On 3/27/2011 2:01 PM, Konstantin Kolinko wrote: >> >> the suffix is exactly "*.jar". No other patterns are recognized. > > Thank you very much for you info. here was what I did: > >>> the suffix is exactly "*.jar"

Re: tomcat 7 lib

2011-03-27 Thread Konstantin Kolinko
2011/3/27 Henry Lu : > I did downloaded tomcat 7.0.11 and tried it with same settings and apps as > 7.0.8 this time I got the following errors which I didn't get at all: > > INFO: Deploying web application directory cppclient > log4j:ERROR Error occured while sending e-mail notification. > javax.ma

<    10   11   12   13   14   15   16   17   18   19   >