Re: need help

2005-04-25 Thread Nikola Milutinovic
Robert U. Chan wrote: Good day! Hope somebody can help me with my current problem in tomcat. I have been seeing an 'error in getDescSql in StaticMethod' in the console of tomcat. Can somebody help me know the cause and solution to this problem. This could be some SQL code in your web app. For

OT: Good taglib repository - looking for date hadling tags

2005-04-25 Thread Nikola Milutinovic
Hi all. This is not exactly a Tomcat question, but since there are so many of us developers (and admins) around, I thought I ask. Is there a good repository of free JSP tag libraries for some common things, like date printing/formatting, table display, etc? When I say, date printing, I mean,

Re: Problem Binding Tomcat to Ports 80/443

2005-04-26 Thread Nikola Milutinovic
Craig wrote: Hey Tomcat Users! I am having a very desperate problem with Tomcat. I have a demonstration due later today, and the script I have been using to run tomcat (5.0.27) on ports 80/443 doesn't seem to do the job -- though it had been workingfor weeks up until a restart earlier today.

Re: Why 8080 and 8443 ..?

2005-04-27 Thread Nikola Milutinovic
David Whitehurst wrote: Chuck: Could you elaborate on what those parameters would be? A port is just a number. I'm trying to understand the history, but I would appreciate your comments on the other things required to make Tomcat production ready on top of just changing the Coyote connector

Re: OT: Good taglib repository - looking for date hadling tags

2005-04-27 Thread Nikola Milutinovic
Rahul Akolkar wrote: One such repository: http://jakarta.apache.org/taglibs/ I feel dumb not looking there first. Alas, I'm not in a position to use them, can you believe that? I'm using Struts 1.1 and it just doesn't live well with JSTL. Tried it and had XML parser errors during application

(Maybe not so) strange behaviour of request.getRequestURL()

2005-04-29 Thread Nikola Milutinovic
Hi all. I've been struck all of a sudden with this. servletRequest.getRequestURL() returns null. Now, thinking about it, I can give some facts that might shed some light on it and I'm pretty sure I know why it is happening, just want to confirm with you guys. And just wandering if anyone can

Re: upgrading a servlet

2005-05-05 Thread Nikola Milutinovic
Zohar Amir wrote: Hello, I'm using Tomcat 5.0.28 on Red Hat linux. What is the correct procedure to deploy a new version of the same servlet? If the servlet is in WEB-INF/classes/... upload the class file. If it is in a JAR in WEB-INF/lib/... upload the whole JAR. The reload the web

Re: DBCP ClassCastException

2005-05-11 Thread Nikola Milutinovic
Dhiren Bhatia wrote: I'm using BasicDataSource because javax.sql.DataSource does not have methods to set the driver class name, url, username/pwd etc. My app needs to support different databases and the driver is loaded based on which database is installed. You've got it backwards. It is the

Re: Apache+Tomcat

2005-05-11 Thread Nikola Milutinovic
Praveen KUMAR wrote: Hello, I am little bit confuse in following decision: Should be use 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener (through Coyote connector) configured with mod_jk (1.2.12) with apache 2- Or Standalone Tomcat (with their standard apache provided by

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
Akhthar Parvez. K wrote: Hi, I used to access the html webpages using servername.(http://servername/~username) But I am not able to access JSPs in the above fashion. What could be added into server.xml so that I can access jsps using servername.(http://servername/~username) There is no ellegant

Re: RE : Common vs. Shared

2005-05-12 Thread Nikola Milutinovic
LERBSCHER Jean-Pierre wrote: -Message d'origine- De : Ron Heeb [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 mai 2005 18:18 À : tomcat-user@jakarta.apache.org Objet : RE: Common vs. Shared my understanding comes from this book i got: 'common is responsible for classes that are used by

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
Tim Funk wrote: There is the concept of user dirs ... http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html See the section User Web Applications I stand corrected. I still prefer explicit context mappings. How would you deploy JNDI resources in userdir case? Nix.

Re: Tomcat and SuSE 9.3...

2005-05-12 Thread Nikola Milutinovic
Quinton Delpeche wrote: On Thursday 12 May 2005 14:12, Bjrn T Johansen wrote: But why do you use the Tomcat that comes with SuSE 9.3?? I am using SuSE 9.3 and Tomcat works like a charm.. (but I don't use SuSE's version...) Yeah ... I asked myself that same question 3 minutes ago. :( I

Re: how to access JSPs using servername/~username

2005-05-12 Thread Nikola Milutinovic
Tim Funk wrote: ~user/public_html/META-INF/context.xml might do the trick. So, the magical name of the UserDir context is context? Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Apache vs Tomcat WRT Security

2005-05-19 Thread Nikola Milutinovic
David Smith wrote: I won't argue with no. 1 since I don't use SSL connectors in Tomcat. However, no. 2 can be mitigated with the commons-daemon project among other tricks and IMHO, not a valid argument against having Tomcat out front. Just my thoughts on the subject. :-) I'll just add to the

Re: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-20 Thread Nikola Milutinovic
Steve Kirk wrote: When TC starts up, the webapp deploys OK from its war file, and the context.xml is copied to the /conf/[engine]/[host]/ folder OK, without any parsing errors logged. The connection pool initially seems to work, in the sense that this code executes OK: Context ctx = new

Re: DBCP datasource works on 5.0.28 but fails on 5.5.9

2005-05-21 Thread Nikola Milutinovic
Steve Kirk wrote: Thanks nix. Could it be that you've missed the fact that DataSource JNDI resource setup definition has changed in TC 5.5? It is no longer with those parametername.../namevalue.../value/parameter. Yes I already changed that. I used to use the approach you

Re: IMPORTANT NEED Tomcat Connection advice

2005-05-25 Thread Nikola Milutinovic
[EMAIL PROTECTED] wrote: Please, I need Advice for connections Hi guys. I need a technical advice using tomcat 5.0 Presently, tomcat server is used with JBOSS in a solution that I am developping for my clients. Users are connecting to the solution by invoking a servlet (runned by

Re: Force Non-SSL

2005-05-25 Thread Nikola Milutinovic
August Detlefsen wrote: Is there no way to do it? SSL creates a lot of overhead for a site that is serving up 100MB image files. There are ugly or less ugly workarounds, like the one yahoo uses. Login can go against HTTPS, sets up it's version of session and then redirects the user to

Re: html:errors/ blank page on invalid form

2005-05-25 Thread Nikola Milutinovic
Andy wrote: Hi All, I'm unable to output any errors using html:errors/ tag, in Tomcat 5.5.7 I've tried numerous configurations and have now ran out of patience. As I haven't been using Struts for more than three days I hope somebody more experienced can point help me out. When I select

Re: An unexpected exception has been detected in native code outside the VM.

2005-05-26 Thread Nikola Milutinovic
David B Sullivan wrote: We're running Tomcat 4.1 on Sun Solaris 9, connecting to another Solaris 9 box running Oracle 9.2.0.1 and Java 1.4.2_05. When Tomcat tries to connect to the DataBase, it crashes, with the log file shown below. We can point Tomcat at another DataBase, same versions of

Tomcat and RMI client - setup

2005-05-27 Thread Nikola Milutinovic
Hi all. This might be a simple question. I have a working RMI client and server. I have tested it no problem. Now I would like to make a JSP/Servlet that will act as a RMI client and connect to the RMI server running outside Tomcat JVM. I keep running into access permission violations. I

[Addendum] Re: Tomcat and RMI client - setup (ClasCastException)

2005-05-28 Thread Nikola Milutinovic
Bill Barker wrote: Nikola Milutinovic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - setup catalina.policy - run it with -security option I'm on Windows XP, how do I enable security mode for TC? That's the idea. And, as a bonus, it works the same on Linux, Solaris

TC and RMI ClassLoader issue

2005-05-28 Thread Nikola Milutinovic
Hi all. I'm having problems with ClassLoader. I have a RMI client that calls a RMI server. What I keep getting as an error is a ClassCastException. This is the code: Object obj = Naming.lookup(url); search = (SearchRMI) obj; And the exception is: java.lang.ClassCastException at

load-on-startup, but in Struts?

2005-05-31 Thread Nikola Milutinovic
Hi all. Maybe this isn't a good list for this, but here goes. I know how to define load-on-startup for a Java Web Application, no problem there. My question is how do I do it for a Struts application? The trick is, I'd like to load some application parameters from the DB into the

Re: Which is best practice for stowing objects, request or session context?

2005-06-05 Thread Nikola Milutinovic
Adrian Beech wrote: Hi all, A work colleague mentioned on Friday it would be better to place objects (beans and the like) which had been created in a servlet into the request context when exposing them to the JSP. To date all the code I've written stores beans and the like in the session

RMI classloader issues in TC - second time

2005-06-05 Thread Nikola Milutinovic
Hi all. I have been mucking around this for some time and have some empirical data and a question for the list. BACKGROUND --- I'm building a web client for a RMI client/server application. RMI server and client are working from command line. Next I built JSP/Servlet which

Re: IE-Page not found problem

2005-06-06 Thread Nikola Milutinovic
sudip shrestha wrote: Dude: Read the email first... I am informing of the problem after we experienced with IE... As you have said, YOU did not expirience it, since you're using FireFox. It would be most advisable to do two things: 1. Use IE yourself (I know, I loathe it, too, and

Re: IE-Page not found problem

2005-06-06 Thread Nikola Milutinovic
Rafa Krupiski wrote: Joe Plautz wrote: Simple, test with IE as well. yet simpler, tell your users it's IE problem and to use firefox instead :) It is still worth investigating. Mozilla/Firefox is eager to correct badly formed HTML, just as IE is. I would advise you to install Tidy

Re: Problem with security?

2005-06-10 Thread Nikola Milutinovic
Gagnon, Joseph M (US SSA) wrote: Did I not say that I'm new to this? I made no mention to whether or not I was trying to make it secure. This is only meant to be used within my company's intranet and my intention was to take the user account and then compare it with a set of registered users

RMI in Tomcat - last try

2005-06-11 Thread Nikola Milutinovic
Hi all. Me and the team have given up on RMI and went to RPC, but I thought I'd make one last educational attempt. Is anyone using RMI in TC where TC is acting as a RMI client to a remote RMI, general-purpose, server? I have seen tons of (rather old) examples of Applet being a RMI client

Re: RMI in Tomcat - last try

2005-06-13 Thread Nikola Milutinovic
Woodchuck wrote: hihi Nikola, where are you placing your JAR files? are any in TC/commons/lib or TC/shared/lib? try placing everything together, just as a test. put *all* your classes and JAR files under TC/commons for example and give it a try... they should be able to see each other if

Re: [Q] when to share jars

2005-06-14 Thread Nikola Milutinovic
Tim Funk wrote: Never. I share jars. I wish I hadn't. When you upgrade JSTL, struts, etc - all get the upgrade for free - but that means ultra stable apps which haven't been touched in years may magically break. You're absolutely right Tim. If it works, don't fix it. And there is nothing

Re: Paths for JkMount

2005-06-14 Thread Nikola Milutinovic
Greg Scott wrote: -Message d'origine- De : Greg Scott [mailto:[EMAIL PROTECTED] Envoyé : 11 juin 2005 23:41 À : tomcat-user@jakarta.apache.org Cc : [EMAIL PROTECTED]; Joan Kinnischtzke; Michael R Ponicki Objet : Paths for JkMount Hello - I am working on a proof of concept

Re: Concurrent login detection - how?

2005-06-14 Thread Nikola Milutinovic
David Rickard wrote: Don't know if this is an optimum solution, but it should work: Keep a List or Vector of IDs for active users in a shared, application-level object (probably ServletContext); When someone logs in, search the List for the submitted ID: if not present, continue with login

Re: Concurrent login detection - how?

2005-06-15 Thread Nikola Milutinovic
Andre Van Klaveren wrote: I mentioned this issue (killing browser problem) in a previous posting. The only way to prevent this is to invalidate the original session also in the event that a duplicate login was detected. I can see a possible DOS attack problem with this solution though. Maybe

Re: email from tomcat

2005-06-15 Thread Nikola Milutinovic
Jef Sullivan wrote: Something that I found concerning this same issue is SendMail. Google for SendMail and you might find what you are looking for. Interesting, but I suspect the original poster would need to sink teeth into JavaMail API, anyway. Nix.

Re: Shell command to stop and start a webapp without using the manager?

2005-06-16 Thread Nikola Milutinovic
[EMAIL PROTECTED] wrote: Hi all, I'd like to know if there's a shell command to stop and start separate web applications. With our configuration, we are unable to use the manager. * We are running Tomcat 5.5 and Apache 2 with the JK Connector (mod_jk) on RedHat Linux. * We have several

Re: Uploading files to another server

2005-06-17 Thread Nikola Milutinovic
Anna Bikkina wrote: Hi, We have an application which uploads files to a machine where tomcat is running. Now we want to change it to upload files to a central server in the network. We were using multipart request to upload the files till now. How can we upload files to a different server than

Re: iterate on a value

2005-07-01 Thread Nikola Milutinovic
David Rickard wrote: If you don't mind mixing Struts and JSTL, use a c:forEach loop, with the end value being the number of children parameters; At 11:00 AM 6/30/2005, Dewitte Rémi wrote: Hello ! In my form , i ask the number of children. On the next page, i'd like to display as many

Re: symmetric crypt algorithm

2005-07-09 Thread Nikola Milutinovic
Carlos Bracho wrote: It's a java question more than a tomcat question Do you know where can I find a symmetric crypt algorithm implementation in java?? like blowfish, idea or des?? take a look at Java's Cryptography packages java.crypto.* Nix.

Re: Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed

2005-07-12 Thread Nikola Milutinovic
Wasik, Paul wrote: Hi all, Can anyone point me in the right direction on what might be causing this error in my catalina.out log file? I'm running Tomcat 5.0.28 on a RedHat EL3.0 server with Sun JDK 1_5_0_03 and am using the jsvc launcher. Aside from this entry in my log file, everything

Re: web.xml breaks EL

2005-07-12 Thread Nikola Milutinovic
Dewitte Rémi wrote: Hi ! I have a simple test jsp : %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % c:forEach begin=1 end=3 var=ind h${ind} ${ind}aBaa/h${ind} /c:forEach When I delete my web.xml, everything works well but when I reload the context with it, the EL

[Slightly OT] JDK 1.5 + enum + serialization

2005-07-15 Thread Nikola Milutinovic
Hi all. I have a question, which is slightly off topic, but can crop up in TC. SHORT VERSION: can a Java 1.5 enum be serilaized? LONG VERSION --- I have been working on project that uses it's own RPC via java.io.DataInput/DataOutput and I have run into a wall trying to send

Re: Connection pool exhausted

2005-07-19 Thread Nikola Milutinovic
Tony Smith wrote: I am runing tomcat 5.0 + postgresql. I set my connection pool in server.xml as: Resource name=jdbc/mysource type=javax.sql.DataSource password= driverClassName=org.postgresql.Driver maxIdle=100 maxWait=5000 validationQuery=select *

Re: RAM limity

2005-07-21 Thread Nikola Milutinovic
Paulo Alvim wrote: Hi, I'm using TC559 and JVM 1.5.x with Win2003 / 2GB RAM. I'd like upgrade to 4GB RAM...is there any JVM or Tomcat limit here? I think JVM cannot use more than 1.6 GB of RAM - dunno why. Nix. - To

Re: How to set auto-commit to false on a Tomcat Connection-Pool?

2005-08-02 Thread Nikola Milutinovic
Allistair Crossley wrote: I found this on the web for Struts using org.apache.commons.dbcp.BasicDataSource which I believe Tomcat also uses. Therefore perhaps you can try defaultAutoCommit instead. data-source key=homeDS type=org.apache.commons.dbcp.BasicDataSource set-property

Re: ssl/tls - INTEGRAL/CONFIDENTIAL - question

2005-08-12 Thread Nikola Milutinovic
[EMAIL PROTECTED] wrote: Hello, I'm having some trouble configuring secure connections. I have 2 webapps that I deployed myself. One in /dspace and another one in /odin. I have set the transport-guarantuee for both to INTEGRAL. I did this in their own web.xml-files. In both cases I used / as

Re: configuration files for war deployments

2005-08-26 Thread Nikola Milutinovic
Patrick Lacson wrote: hi All, If I were to deploy my application as a .war file, where do I place the .properties configuration files? I know there's the option of auto-expanding the war file at deployment, but is there a way to keep the war file unexpanded and provide an external .properties

Re: JNDI DBCP Resources: Pool Leak

2005-09-07 Thread Nikola Milutinovic
Justin Jaynes wrote: Concerning JNDI Database Connection Pooling Sources, I have read that if you fail to explicitely close Result Sets, Statements, or Connections to the DataSource from WITHIN the web application, a connection in the pool will be lost. (I read this at:

Re: JSP on RHEL4 with Apache httpd RPM?

2005-09-08 Thread Nikola Milutinovic
Peter Flynn wrote: I need to add JSP ability to a RHEL4 server running the current Apache httpd from the Red Hat RPM. Apparently the httpd RPM available from Red Hat doesn't have the hooks needed to allow JSP files to be passed to Tomcat (or if it does, I can't find them). Has anyone managed

Re: Generic Types support in Tomcat?

2005-09-26 Thread Nikola Milutinovic
Seak, Teng-Fong wrote: When I first saw the announcement that Tomcat 5.5 needs Java5 to run, I thought it would supports Java5 features. But it turns out that it needs Java5 but not supports Java5. Quite disappointed. Anyway, I have to go on with my webapp, so much for it. Tomcat 5

Re: Generic Types support in Tomcat?

2005-09-27 Thread Nikola Milutinovic
Seak, Teng-Fong wrote: Nikola Milutinovic wrote: Tomcat 5 supports all the features of the underlying JVM, the problem is in the JSPs. They are compiled by Jasper + Eclipse compiler module, which, in version 5.5.9, has no support for Java5. Later versions of Tomcat have a newer version

Re: Generic Types support in Tomcat?

2005-09-27 Thread Nikola Milutinovic
Christoph Kutzinski wrote: To be honest, I never tried it with 5.5.9 I just concluded it from the release notes and other posts on this mailing list. AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs. Maybe you have configured tomcat to use Suns javac? That is one way

Re: (WAS) Generic Types support in Tomcat?

2005-09-27 Thread Nikola Milutinovic
Santosh Asbe wrote: Hi all, Hi. First of all, it is very advisable to use a separate thread when opening a new topic. I am not reprimanding you, I'm merely advising. I do not consider it rude to jump into someone elses thread of discussion - I do not consider this thread mine, in the

Re: Apache and IIS

2005-09-30 Thread Nikola Milutinovic
[EMAIL PROTECTED] wrote: I want Apache to server .asp files, if possible rather than having IIS server to serve .asp files. Look for mod_asp, there are actually several implementations, ChillySoft was one of them, if memory serves. I think they are all based on mod_perl, so have that

Re: Database connections aren't being released...

2005-10-06 Thread Nikola Milutinovic
Richard Road Runner wrote: I am not sure that this is a Tomcat issue, but we are not sure what exactly is causing our problem. We are running Tomcat 5.0.27. We are using the most recent jconn2.jar driver to connect to a Sybase SQL Anywhere Studio 7 database via JDBC. Over a period of time,

Re: Apache Tomcat Virtual Host question

2005-10-06 Thread Nikola Milutinovic
Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY

<    1   2   3   4   5   6