Re: favicon when serving non-html

2010-07-07 Thread Nikola Milutinovic
Why would you? FavIcon is meant as attributes of pages, more specifically pages of whole sites. You can potentially have different FavIcons for different parts of your web site, but that is not common. Resources, which PDF is, have no reason for having a favourite icon. It would be the same

Re: Windwos Integrated Authentication using AD and Tomcat (no prompt to the users)

2009-09-16 Thread Nikola Milutinovic
: 303 438 9585 -Original Message- From: Nikola Milutinovic [mailto:alok...@yahoo.com] Sent: Monday, September 14, 2009 11:26 AM To: Tomcat Users List; Tomcat Users List Subject: Re: Windwos Integrated Authentication using AD and Tomcat (no prompt to the users) There is also a module

Re: Windwos Integrated Authentication using AD and Tomcat (no prompt to the users)

2009-09-14 Thread Nikola Milutinovic
There is also a module from Quest Software, using Kerberos authentication, but it costs mega $. Has anyone considered writing a TC realm for Kerberos? Before MS ADS came into popular use, Kerberos was a rare beast, but now it is more present. And it much better than NTLM, which is why MS

Re: Right way to close database connection pool

2009-08-06 Thread Nikola Milutinovic
Why exactly would you want connection pool to be closed by TC? I understand your point of view - you have that one web application and it is using the pool and you are seeing something that looks like a leak. Take a look from Tomcat's perspective. It has a JNDI bound resource, DataSource in

Re: .html pages as .jsp pages

2009-05-15 Thread Nikola Milutinovic
Well, it should be relatively simple. Add the following to your web.xml: servlet-mapping servlet-namejsp/servlet-name url-pattern*.html/url-pattern /servlet-mapping Nix. From: Dola Woolfe dolac...@yahoo.com To: Tom Cat

Re: Tomcat 6.0.18 on Win32 - Enabling Security Manager

2009-05-04 Thread Nikola Milutinovic
I must say that the nature of your questions leaves me with some concern about the content of your guide... Hmmm, I wont bite but I will provide a little more information on what I am doing. The guide is specifically being written for Tomcat on Windows, which in my searching of the web

Re: AJP vs HTTP connectors?

2009-02-08 Thread Nikola Milutinovic
Hi all. Jumping in a bit late, but... You have 3 options for plugging TC into Apache's URL space: 1. mod_proxy + mod_proxy_http 2. mod_proxy + mod_proxy_ajp 3. mod_jk Solution 1 is a simple proxy, works like a charm, except for one thing - it WILL NOT give you the identity of authenticated

Re: Iterations in JSF using JSTL via forEach

2008-11-02 Thread Nikola Milutinovic
JSTL is not a part of TC. Use Maven2 to assemble your application so it includes the desired version of JSTL. Or Ant. Nix. From: Alexander Hartner [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, October 17, 2008 3:14:45 PM Subject: Re: Iterations

Balancing solution which allows graceful partial node migrations

2008-08-28 Thread Nikola Milutinovic
Hi all. This is just a question out of curiousity. Is there a balancer solution that can allow for controlled migration/upgrade of nodes? To explain, suppose you have Apache/mod_jk and you have N Tomcats in balance over that setup, same web application on all of them. Now, suppose you would

Re: tomcat and active x problem

2008-03-23 Thread Nikola Milutinovic
Hi, i have an html page that has a javascript function that opens an outlook mail window .the function is pretty basic: function OpenOutlookDoc() {try{ var outlookApp = new ActiveXObject(Outlook.Application); var nameSpace = outlookApp.getNameSpace(MAPI); mailFolder =

Re: How Do I do (Can I do) Apache like redirects in Tomcat

2008-01-09 Thread Nikola Milutinovic
There is a project called URL Filter doing just that. http://tuckey.org/urlrewrite/ Nix., - Original Message From: Rob Tanner [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, January 8, 2008 7:51:45 AM Subject: How Do I do (Can I do) Apache like redirects

Re: super happy build time: package org.eclipse.jdt.core.compiler org.eclipse.jdt.internal.compiler does not exist

2007-12-17 Thread Nikola Milutinovic
someone refresh me why CLASSPATH=/usr/share/java is inadequate, and CLASSPATH=/usr/share/java/ecj.jar is required? CLASSPATH is a list of resource locations where JVM can search for Java classes and other resources. A resource can be either a directory or a JAR, which is just a ZIP of the

Re: How to write this elegantly in JSP/EL

2007-06-23 Thread Nikola Milutinovic
img src=${imageUrl} alt=Author photo height=c:out value=${DATA_PHOTO_HEIGHT}/ width=c:out value=${DATA_PHOTO_WIDTH}/ / (sigh) I feared as much. It is just that I hate JSTL tags inside another tag's attributes. Why would you use `src=${imageUrl}` and then use the clumsy 'c:out'

Re: How to write this elegantly in JSP/EL

2007-06-23 Thread Nikola Milutinovic
Also you talk about the DATA_PHOTO_HEIGHT and DATA_PHOTO_WIDTH properties being static propertys of the AuthorController class. Why not create a Constant object called PHOTO or something. make the height and width proper static on that, then pass that into the model. Then you can use the

How to write this elegantly in JSP/EL

2007-06-22 Thread Nikola Milutinovic
Hi all. This is not really TC related, but more JSP and EL question, but I thought I'd ask. I would like to have an elegant way of using constants from Java classes in EL. This is a relatively good illustration of what I am talking about. Take, for instance, a Spring controller. It has a

Re: How to write this elegantly in JSP/EL

2007-06-22 Thread Nikola Milutinovic
Thank you all who responded. I think the following should do you img src=${imageUrl} alt=Author photo height=c:out value=${DATA_PHOTO_HEIGHT}/ width=c:out value=${DATA_PHOTO_WIDTH}/ / (sigh) I feared as much. It is just that I hate JSTL tags inside another tag's attributes. On 6/22/07,

TC as windows service - thread dump

2007-04-28 Thread Nikola Milutinovic
Hi all. This may have been asked before, but I couldn't find the answer. Perhaps it should be in the FAQ. I have installed TC 5.5 as Windows service. Tomcat Monitor application (the one that sits among tray icons) that is used to start, stop and configure service, also features a command

Re: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-08 Thread Nikola Milutinovic
You have quite a bit of memory in your 'Old Generation'. You need to determine what you're allocating that isn't being released. Not true, see below. Heap Usage: PS Young Generation Eden Space: capacity = 10223616 (9.75MB) used =

Re: URL Redirect Question

2007-02-08 Thread Nikola Milutinovic
Actually, there is already a project URL Filter for Java Web applications, basically does what mod_rewrite and mod_proxy give you. Maybe not in so many details, but it is going to save our hide on our next project. :-) Nix. - Original Message From: Caldarale, Charles R [EMAIL

Re: run service in jdk 6

2006-12-31 Thread Nikola Milutinovic
Hi. Just installed JDK 6 and Tomcat 6.0. JDK is installed under REGULAR path: C:\Program Files\Java\jre1.6.0. Runs fine. Let me just say that I have always installed JDK on Windows under expected path, in Program Files. Both ZIP and service versions ran with no problem. This was true of 5.

OT: Re: Solaris 10 Apache 2 Tomcat mod_jk

2006-11-24 Thread Nikola Milutinovic
Installing from source is super simple. It's a pretty basic untar, configure, make, install kinda package, and always results in the binary that is appropriate for your setup. You just need to make sure that you have a C compiler handy (which, as I recall, Solaris does not always have).

Re: Defining loggers best approach?

2006-09-29 Thread Nikola Milutinovic
But as Mark's loggers are 'static', don't they have the same semantics WRT serialization as 'instance transient' ? Should be. After deserialization, all static fields should be (re-)initialized, thus, leading to logger being present, class-wide. If so, Mark's would seem more efficient to

Re: Perm Gen not being released in GC

2006-09-15 Thread Nikola Milutinovic
Im a Project Manager, not a techie but we had the same problem and had to increase the perm gen to the following: Tomcat sets it at default at 64MB. Perm Gen Memory: 150 MB Max Perm Gen: 256 MB Perm gen is memory reserved for class loading and is directly proportional to the number/size of

Re: [OT] Re: PUT or POST?

2006-07-30 Thread Nikola Milutinovic
Apparently our fat client can issue either a POST or a PUT request. The client developer has a slight preference for PUT. I must admit to not being familiar with HTTP PUTs - are there any downside to using PUTs (aside from having to override doPut())? I don't think your code will not be

Re: apache not talking to tomcat w/ mod_jk

2006-07-27 Thread Nikola Milutinovic
I set mod_jk to log level debug, and saw it was telling apache 2No.Host.matches.server.name. This simply means that Apache is accepting a request for one Virtual Host an that host is not configured in TC. This issue can be as trivial as not defining the actual hostname as a Host element in

Re: BOOBIES!

2006-07-22 Thread Nikola Milutinovic
Could this person (inject other undesirable word) please consider the fact that women are in the user's group also. -- I fail to see any reason for the subject. It is not spam and it is a real

Re: Re: BOOBIES!

2006-07-22 Thread Nikola Milutinovic
Two using their work email. These low lifes are so entertaining. On 7/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: http://www.globaladrenaline.com/hbs/images/QN---Blue-Footed-Boobie-1.jpg -- Charles Knell [EMAIL PROTECTED] - email Why was this one labeled as a low life? I

Re: Intermediate write in JSP

2006-07-19 Thread Nikola Milutinovic
I had a similar issue in the past that I overcome by having the servlet start a separate thread that was producing the report, And a jsp page refreshing every 10 seconds or so checking for completion. That is, of course, the asynchronous application design. Sometimes it is necessary, but it

Re: Flash and Javascript

2006-06-29 Thread Nikola Milutinovic
I currently have a Flash file which uses the ExternalInterface.call function to call some JavaScript functions I have on a JSP page running in Jetspeed 2. When I publish the file to an HTML in Flash and just view it on my computer it works great, but I have tried making a JSP page out of it and

Re: downloaded JK binaries for Linux - which to use? workers or prefork?

2006-06-15 Thread Nikola Milutinovic
--- Kim Albee [EMAIL PROTECTED] wrote: yes -- but what is the difference? i'm running Fedora Core 3 on a single processor Linux box, running Apache 2.x what does prefork mean? vs. worker? Basically, PreFork is the old MPM from Apache 1.3 series and forks one process for each new request.

Re: Problem starting tomcat with jsvc cron job

2006-04-05 Thread Nikola Milutinovic
--- Peter Neu [EMAIL PROTECTED] wrote: Hello, I'm stopping restarting tomcat ervery night with a cron job. I do this because we have many applications running and sometimes we need to simply clean the system. The cron job invokes a shell script which then starts tomcat with jsvc. Up

Re: PHP Servlet Fails in Tomcat 5.5.15-SOLVED

2006-04-04 Thread Nikola Milutinovic
Hi all. Just one opinion, if it hasn't been said before. Do not mix Java and PHP. PHP is inherently thread un-safe. Basically the PHP code itself is, AFAIK, OK (thread safe), but all those myriads of 3rd-party libraries providing needed functionality to the myriads of PHP extensions can, and

Re: [OT] Better JSP Performance with Opteron

2006-04-04 Thread Nikola Milutinovic
--- Leon Rosenberg [EMAIL PROTECTED] wrote: Ok, my fault, read page and java in one sentence - map to Java Page - Java Server Page. Must be a circuit error in the brain. Anyway, does it mean, that a proper configured JVM on an opteron processor, will be significantly faster? Could be very

Re: File upload giving error: Stream ended unexpectedly

2006-03-29 Thread Nikola Milutinovic
--- Manish Agrawal [EMAIL PROTECTED] wrote: Hi, I have a web applications using sturts framework. The application allow users to upload data files on server. The application is running on Apache Tomcat 5.0 server. I am using Commons File Upload 1.0 for uploading files. Struts has it's own

Re: PHP Servlet Fails in Tomcat 5.5.15

2006-03-26 Thread Nikola Milutinovic
*exception* java.io.IOException: null net.php.servlet.send(Native Method) net.php.servlet.service(servlet.java:207) net.php.servlet.service(servlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) This exception is not only generic, but it is also

Re: Performance Tuning on Tomcat 5.5.16 for site with 150,000 daily hits

2006-03-26 Thread Nikola Milutinovic
--- Leon Rosenberg [EMAIL PROTECTED] wrote: On 3/27/06, Per Johnsson [EMAIL PROTECTED] wrote: Hi! One good thing you could do is make sure you have the APR installed (Apache Portal Runtime) apr.apache.org. APR = Apache Portable Runtime library Why??? Well, it can spead things up,

Re: Tomcat - Hibernate

2006-03-02 Thread Nikola Milutinovic
--- Giorgio Clavelli [EMAIL PROTECTED] wrote: Hi, I'm not an exper at all, but I try to put my 2 cents. The fact that your app can connect successfully after the server restart, suggests that you should have your app's context.xml (or whatever it is called) not in the server.xml but in the

Re: c:forEach not working as expected

2006-02-14 Thread Nikola Milutinovic
--- Reinhard Moosauer [EMAIL PROTECTED] wrote: Hi List, it seemed clear to me, that this construct: c:forEach items=${t.records} var=x ... (some inner logic) /c:forEach should be equivalent to this one: No. It is roughly equvalent to (see my corrections): % for

RE: Apache 2.0.50 - Tomcat 5.0.28 - Mod_jk - .htaccess

2006-02-09 Thread Nikola Milutinovic
There are any form of change the loading order or i would need reinstall apache. Re-intalling will do you no good. You'd still end up with the same Apache. Re-building it, would, but that can be quite a task. Finding a newer version, differently compiled, might also be a good idea. Anyway, I'm

Re: get element by long name

2006-02-08 Thread Nikola Milutinovic
--- Tony Smith [EMAIL PROTECTED] wrote: in my jsp, there is something like: html:text property=plateDetail.name value=${plateDetailEditForm.plateDetail.name} / How can I get this element in javascript? the following code does not work: var name =

Re: Tomcat Startup Messages

2006-02-06 Thread Nikola Milutinovic
In the catalina.out I stumbled over these entries. Feb 6, 2006 4:55:17 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

Re: Asynchronous messaging in tomcat *

2006-01-29 Thread Nikola Milutinovic
Leon Rosenberg wrote: On 1/27/06, Duan, Nick [EMAIL PROTECTED] wrote: Spawning your own threads in a web app is usually not recommended. Why? Well, you have to take care of them manually or some code has to do it. If forgotten, those threads can stop TC from shutting down

Re: Encrypting/Protecting JSP/Struts source code (UNCLASSIFIED)

2006-01-17 Thread Nikola Milutinovic
Rob Gregory wrote: Good comments, but how would you encrypt the config files when Struts needs these to run out code (hence before I can decrypt). While I personally prefer Cocoon over struts these are pretty much 'Sister' projects so the same solution would help me also. This is a valid

Re: css and images (stupid question?)

2005-11-28 Thread Nikola Milutinovic
Kristian Rink wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all; playing around with tomcat in order to both learn using the package and create a small web site there, I'm currently left with a problem which, though probably being small (and not really related to tomcat), keeps

Re: JDBC Resource Configuration

2005-11-28 Thread Nikola Milutinovic
Martin Dubuc wrote: I am defining a number of JNDI resources in the server.xml file in the GlobalNamingResources section. As part of defining JDBC resources in this section, the username and password attributes are specified. The password is specified as clear text. I am wondering if there are

Re: Web-application and Tomcat icon

2005-11-28 Thread Nikola Milutinovic
Caldarale, Charles R wrote: From: Anto Paul [mailto:[EMAIL PROTECTED] Subject: Re: Web-application and Tomcat icon On 11/29/05, Aladin Alaily [EMAIL PROTECTED] wrote: I would like to know how I can replace that icon with my own... or better yet, no put any icon at all. The icon

Re: New Tomcat install problem

2005-11-21 Thread Nikola Milutinovic
Terry Allen wrote: at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) There can be two

Re: New Tomcat install problem

2005-11-21 Thread Nikola Milutinovic
Terry Allen wrote: Anything in the logs for this new setup? Nix. Hi again, Okay, I've included the last log entries from a few logs as listed below - the other logs in that directory contain only information about startup notification etc... apologies if this is not the right way to

Re: New Tomcat install problem

2005-11-21 Thread Nikola Milutinovic
Anthony Carlos wrote: Just out of curiosity, what is JAVA_HOME? JAVA_HOME is an environment variable, that should contain the path to the installed JDK or JRE. Since you're using TC 5.5, you can point JAVA_HOME to a JRE (5.5 comes with Eclipse Java Compiler). Older versions had to have a

Re: New Tomcat install problem

2005-11-20 Thread Nikola Milutinovic
Terry Allen wrote: Hi again, Out of that Catalina.out log I mentioned earlier, the last few log lines read like so: INFO: Stopping Coyote HTTP/1.1 on http-8080 Nov 20, 2005 7:24:02 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Nov 20,

Re: Sharing webapps between linux and windows on single computer

2005-11-16 Thread Nikola Milutinovic
Dhaval Patel wrote: My question is, is it possible to put only webapps on P_FAT32 while tomcat install files are in P_NTFS and P_RES and configured tomcat to read P_FAT32 webapps directory as appbase in host node of server.xml? Have anyone done anything like this before? Only thing I am

Re: Use of JSF view in welcome file list

2005-11-08 Thread Nikola Milutinovic
Tim Dean wrote: Hello, I am trying to configure a welcome file list in my Tomcat-deployed web app so that a Java Server Faces (JSF) view is used as the welcome file. My web.xml file contains the following: welcome-file-list welcome-filemain.faces/welcome-file

Re: Unix socket communications on Tomcat 5.5

2005-11-06 Thread Nikola Milutinovic
Bill Barker wrote: Currently mod_jk doesn't support unix sockets (ditto for mod_proxy_ajp :). To use unix sockets currently, you must use (the currently unsupported) mod_jk2. However, there is some intial support for them in the new APR Connector. It's not complete (and so not usable :),

Re: Unix socket communications on Tomcat 5.5

2005-11-04 Thread Nikola Milutinovic
Oliver Hookins wrote: I've been trying to find some decent documentation on setting up Tomcat to communicate with mod_jk2 and Apache over unix sockets. So far what I've found suggests I only need to alter jk2.properties with details of the socket, and workers2.properties with the same

Re: Please help ! configure Tomcat 5.5.12 and Eclipse 3.1 for debugging

2005-10-24 Thread Nikola Milutinovic
Sara Hugh wrote: Please help me out !! I try to setup debugging on tomcat 5.5.12 and Eclipse 3.1. For Eclipse, the setting is same as previous version, but for Tomcat 5.5.12, the script file for windows (catalina.bat) does not exist. How do I set JPDA_TRANSPORT and other values for tomcat