Re: Apache Tomcat jk2... is it possible?

2003-12-11 Thread Nikola Milutinovic
Federico Fernandez Cruz wrote: Hi all! I am using tomcat 5 and I want to do some integration work with Apache and mod_jk2. Is there a direct way to map a whole web application in apache? It works but I have to write a lot of [uri:*] commands in mi workers2.properties file. What do you

Re: google yourself

2003-12-11 Thread Nikola Milutinovic
Ostad, James wrote: have you googled yourself at goole.com? I don't know how they get all of our listserv communications. Any one knows how they do that? There is a web archive of this list. Nix. - To unsubscribe, e-mail:

Re: Apache Tomcat jk2... is it possible?

2003-12-11 Thread Nikola Milutinovic
Federico Fernandez Cruz wrote: By whole web application I mean the entire application... well... I have a context inside Tomcat called UserMan. I want to map an Apache URL to this application... In my workers2.properties I put these lines... [uri:/UserMan] info=Example webapp in the default

Re: Tomcat5 close to production?

2003-12-08 Thread Nikola Milutinovic
Philip Busby wrote: Is there any word, or any place where I could check the status of Tomcat5 to move to production? My host would rather not go through with a Tomcat5 install until it comes out of beta, but I like all of the new things in JSP2. Will Tomcat5 be going production within a month or

Re: Servlets with JDBC connectivity

2003-12-03 Thread Nikola Milutinovic
Peter Harrison wrote: On Wed, 03 Dec 2003 16:18, Todd O'Bryan wrote: How do people handle this elegantly? The requirements are: a single, globally visible (within a webapp) database interface and the ability to access multiple databases easily. The first point is to use a singleton to set up

Re: Auto start scripts

2003-12-03 Thread Nikola Milutinovic
Robin Rigby wrote: Have very limited experience of Linux or Tomcat. Not even really sure if this is a Tomcat issue or a Linux issue. Main question: How do I run a Tomcat4 script from /etc/rc.d/init.d so that Tomcat starts automatically? Tomcat works fine when I run startup.sh as root. However,

Re: Tomcat FAQs on Wiki

2003-12-02 Thread Nikola Milutinovic
Tim Funk wrote: Google for Wiki. Most of the links are great and you'll learn more about Wiki than you wish to know. The best page about Wikis is this one: http://c2.com/cgi/wiki I still haven't figured out how to publish to Wiki and frankly, I don't have the time. I'm up to my ass in

Re: Tomcat FAQs on Wiki - mod_jk2 howto

2003-12-02 Thread Nikola Milutinovic
Tim Funk wrote: Writing anything like that for the list is a good thing since we can always link to it in the archives ;) Here goes. STEP 1 -- Build mod_jk2.so and jkjni.so - do whatever needs to be done :-) STEP 2 -- Place mod_jk2.so and jkjni.so with other Apache modules. In case of

Re: Tomcat FAQs on Wiki

2003-12-01 Thread Nikola Milutinovic
Mark Eggers wrote: Folks, I have put some of my documentation on the Tomcat Wiki at: http://nagoya.apache.org/wiki/apachewiki.cgi?TomcatWeb These are sort of bare-bones documents about some ways to connect Tomcat/Apache on Linux, Tomcat/Apache on Windows/2000, and Tomcat/IIS 5 on Windows/2000.

Re: shm.file

2003-11-28 Thread Nikola Milutinovic
Asif Chowdhary wrote: Hi, Apache running on linux with mod_jk2 Tomcat on windows. Running Do I need to create a map to the shm file defined on the Linux server. No. What is the purpose of this file and what is the recommended size? That file makes sense in a situation where Apache and Tomcat

Re: Problem Compiling JSP under tomcat 5

2003-11-27 Thread Nikola Milutinovic
Simone Chiaretta wrote: While trying to run for the first time a JSP I get this error org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Compiling 1 source file [javac]

Re: Problem Compiling JSP under tomcat 5 - addon

2003-11-27 Thread Nikola Milutinovic
Simone Chiaretta wrote: i forgot to mention that the same configuration runs in tomcat 4.0.4 Strange. It shouldn't, unless you placed your package in some JAR under .\WEB-INF\lib\ dir. Nixie. - To unsubscribe, e-mail: [EMAIL

Question on mod_jk2 (working)

2003-11-27 Thread Nikola Milutinovic
Hi all. I tried and managed to setup mod_jk2 with UNIX socket channel and I have some questions. First I tried to do it without apr handler. It would open a socket, but would refuse connection from Apache. Then I tried with apr, reasoning that AF_UNIX socket is not native to JVM and JNI

Re: R: Problem Compiling JSP under tomcat 5

2003-11-27 Thread Nikola Milutinovic
Simone Chiaretta wrote: D:\Documenti\Progetti\piyosailing.com\admin\WEB-INF\class\com\piyosail in g\PiyoWebEngine.class This is wrong. The path should be ...\WEB-INF\classes\... Nixie. That was really the problem I think I'm going to jump from the third floor and land over a bed of

Re: Difference between JK 2.0.2 JK 4.1.29

2003-11-26 Thread Nikola Milutinovic
Jose wrote: Hello. What is the difference between both ? I use tomcat-4.1.29 then which i must use to works with apache 2.0.48 ? Connectors accompanying TC distribution are for that version. WARP, JK and JK2 consist of two parts: Tomcat part (Java classes) and Apache/(otehr web servers) part (C

Re: Slow on Linux

2003-11-25 Thread Nikola Milutinovic
Yonatan Goraly wrote: I have read that Suse linux team has been working closely with AMD to support AMD64, and I am going to try their commercial product (professional edition, $130). I know that SUN plan to have an AMD64 version for the JDK 1.5, which should be next year. The reason for

Re: Slow on Linux

2003-11-25 Thread Nikola Milutinovic
Wade Chandler wrote: Just wondering. Did you know that every Postgres connection creates a system process, and not a thread? PostgreSQL uses Fork. I don't use it because of this. DB Connection = Separate Process. I use Firebird. You can use Firebird 1.5 even. That's just a consideration

Re: Slow on Linux

2003-11-24 Thread Nikola Milutinovic
Yonatan Goraly wrote: The exact execution time of that line of code is not very relevant, since the difference is between an interval I can't notice to an interval I can notice very well - should be at least a factor of x100. I just finished installing RedHat 9 (32 bit), the performance is much

OT: Linux specific JVM problem

2003-11-20 Thread Nikola Milutinovic
Hi all. I have a problem which, I suppose, I can solve - this way or another. I'd like to hear a recomendation from the list, since I'm supposed to go live ASAP. I have installed: - Mandrake Linux 9.1 - paranoid security setting - Sun JDK 1.4.2 rel_02 - Tomcat 4.1.24 from RPM If I try to

Re: TC 5.0.14 Breaks UTF-8 Content via HTTP Header

2003-11-11 Thread Nikola Milutinovic
Tony LaPaso wrote: Here's What I Did - In both versions of TC, I added an em dash character to the /tomcat-docs/cgi-howto.html documents that come with the TC documentation. The UTF-8 representation for the em dash character is the three bytes 0xE28094. I also made sure both

Re: Missing DataSourceRealm MBean definition

2003-11-06 Thread Nikola Milutinovic
Christopher Schultz wrote: Jacob, Tomcat5 no longer provides a separate LE version. You can take that as a hint not to use the LE version in Tomcat4.1.x. It causes nothing but confusion. I disagree. The 'LE' version actually has less confusion because there aren't fighting XML parsers

Re: Use of return statement in servlet.

2003-10-30 Thread Nikola Milutinovic
Antony Paul wrote: Hi, If any one feel it off topic mark it as off topic. I want to exit from a servlet if no database connection is available. For this can I use a return statement in the beginning of a servlet. Will it cause any state problems. I dont like putting the code in an if block.

Re: Tomcat and Active Directory / 2003

2003-10-22 Thread Nikola Milutinovic
I'm also trying to authenticate to AD from Tomcat. I'm having some struggles. --- Search the archives of the list, there are some good success stories. BTW, all examples are using LDAP as a method of interaction with AD. Is anybody considering Kerberos5 (GSS-API)? I do realize Tomcat doesn't

Re: mod_webapp connector ?

2003-10-19 Thread Nikola Milutinovic
i am searching the mod_webapp web connector in order to connect tomcat 4.1.27 LE and Apache 1.3.27. I am using solaris. This connector does not appear anymore under the jakarta-tomcat server. Anyone that already downloaded it?, please send me it to this email. mod_webapp is not maintained

Re: Dynamic Authenticator

2003-10-16 Thread Nikola Milutinovic
Does anyone know of a good authentictor plugin for Tomcat. I reviewed the sample(XML based) authentcator from Tomcat, but this authenicator is only used at startup. I need onw that will able to add and delete users on the fly - not just at start up. I think LDAP realm does that. Nix.

Re: Instantiate a bean on startup

2003-10-06 Thread Nikola Milutinovic
Hello all. Is there an easy way to instantiate a bean as soon as tomcat starts? Basically, I want a bean to be instantiated and available to all sessions as soon tomcat starts. Any ideas? There is no such thing as Tomcat scope for variables, so you're hosed. Not just with Tomcat... Why

Re: Blowing away objects that have been stored in the session context

2003-10-05 Thread Nikola Milutinovic
Does Tomcat release all the resources used by an object if the object has been stored in the session context and a call to session.removeAttribute(objName) is made? I'd like to blow away several beans that are used throughout the processing of a transaction once the confirmation page is

Re: [OFF-TOPIC] RE: can resultset object be re-used

2003-10-01 Thread Nikola Milutinovic
Well I just gotta say that's not true. You *can* re-use a resultset object. ResultSet rs = st.executeQuery(SELECT * FROM FOO); //code that loops over rs and outputs results... rs = st.executeQuery(SELECT * FROM BAR); //a re-used ResultSet object. You're not re-using anything here, pal!

Re: Apache Authentication with Tomcat

2003-09-30 Thread Nikola Milutinovic
When I remove [uri:/*] from workers2.properties and create a dummy htdocs\downloads directory under apache, the apache authentication works fine. But when I put [uri:/*] back, I do not get prompted for ID/Password. Here is what I have in httpd.conf. Any ideas? Directory

Re: Apache Authentication with Tomcat

2003-09-30 Thread Nikola Milutinovic
http://marc.theaimsgroup.com/?l=tomcat-userm=106070071117870w=2 Excellent! Now, when are we going to see an update on the JK2 docs? I'm not expecting a tutorial, just a (complete) list of all the options. I hate digging through the code myself. I know, I can dig through the code, but it is

Re: Error Finding config file: workers2.properties

2003-09-27 Thread Nikola Milutinovic
Duncan Smith wrote: I had same problem. I found that if the workers2.properties file was supposed to be in {apache-home}/conf/ Yea, I symbolically linked it there as well, but still nada. Will it not follow symbolic links? I said before, as I learned from another guy on this list, jk2

Re: Error Finding config file: workers2.properties

2003-09-26 Thread Nikola Milutinovic
INFO: Starting Coyote HTTP/1.1 on port 8443 [Fri Sep 26 07:54:52 2003] (error ) [jk_config_file.c (279)] config.update(): Can't find config file ${serverRoot}/conf/workers2.pr operties [Fri Sep 26 07:54:52 2003] ( info ) [jk_config.c (251)] config.setAttribute() Error setting config: file

Re: Tomcat Admin Password

2003-09-25 Thread Nikola Milutinovic
Hi All, I can't log as administrator in to Tomcat 4.1.24 using username : admin password : setup is this the default password? There is no default password, you have to enter your own in tomcat-users.xml Nix.

IGNORE: test

2003-09-23 Thread Nikola Milutinovic
Just testing to see if I've cut out some of the lists with my anti-Gibe-F blocking :-) Nix.

Re: OT: sloppy English

2003-09-22 Thread Nikola Milutinovic
i disaggree, unforuntealy i don't have time to perfom complete spel checks or fix grammar on all words. i try to be as coherent as possible but since i do this for free, you get what your pay for. please killfile me if it is that bothersome. I don't mind bad grammar and spelling. I detest

OT: HEADS-UP: viral storm out there

2003-09-19 Thread Nikola Milutinovic
Hi all. This is off topic and is a cross-post, so I'll be brief. There is a very nasty virus out there and I urge everybody to get their AV in order. The virus is known as: W32.Gibe-F or W32.Swen-A. Yesterday, I got cca. 200 viral messages. Today, it's about 800 viral messages! I suspect

Re: Building/using JK2 - linking problem

2003-09-11 Thread Nikola Milutinovic
I had similar problems with loading shared libraries until I recompiled jk2 after configuring it with the ./configure --with-apxs=/some/path/to/apache2/bin/apxs configure objects on this. However, I'km wading through my problem. The problem is in unsatisfied references. libapr requires

Re: Building/using JK2 - linking problem - SOLVED, mostly

2003-09-11 Thread Nikola Milutinovic
I had similar problems with loading shared libraries until I recompiled jk2 after configuring it with the ./configure --with-apxs=/some/path/to/apache2/bin/apxs Got it to compile and load, had to add this into the ./src/jk/native2/server/apache2/Makefile: JK_LDFLAGS=-L${APACHE2_LIBDIR}

Unusual network bind on TC 4.1.24 and a JK2 Q

2003-09-10 Thread Nikola Milutinovic
Hi all. Network question -- TC: 4.1.24 OS: Mandrake Linux 9.1 JVM: Sun 1.4.2b java 3600 tomcat4 10u IPv4 4319 TCP *:8009 (LISTEN) java 3600 tomcat4 11u sock0,04317 can't identify protocol java 3600 tomcat4

Building/using JK2 - linking problem

2003-09-10 Thread Nikola Milutinovic
Hi all. I have built mod_jk2.so and jkjni.so from the latest tomcat-connectors-jk2-2.0.2. This is my jk2.properties: handler.list=apr,channelUnix,request channelUnix.file = /var/tomcat4/work/jk2.socket shm.file = /var/tomcat4/work/jk2.shm apr.NativeSo =

Re: Active Directory Single Sign-On

2003-09-10 Thread Nikola Milutinovic
It sounds like we should come up with a de facto way of achieving SSO with Tomcat and NTLM (since there is plenty of M$ workstations out there).Which leads me to believe that a lot of people could very well benefit from this.. I'm required to implement this for our intranet application

Re: Building/using JK2 - linking problem

2003-09-10 Thread Nikola Milutinovic
I had similar problems with loading shared libraries until I recompiled jk2 after configuring it with the ./configure --with-apxs=/some/path/to/apache2/bin/apxs command suggested in John Turner's Solaris 8 + Tomcat HOWTO, which is, BTW, and excellent resource. I have been able to get

Re: Memory leaks?

2003-09-05 Thread Nikola Milutinovic
But depending on the DB, it can cause problems from the DB with too many open ResultSets... I had an issue with performance testing where everything but ResultSets were being closed and the Oracle DB started throwing errors after about 500 queries. Better safe than sorry. Well, from what I

Re: dbtags and tomcat 4.1

2003-09-04 Thread Nikola Milutinovic
You could use jstl instead, but from my experience SQL in the jsp is more trouble then it is worth and causes imense headaches when you want to do something complicated. Just a suggestion but it could be a good time for you to have a look at migrating to Struts or some other framework

Re: [OT] but IMPORTANT

2003-08-28 Thread Nikola Milutinovic
Time to get the board out and move to Vanuatu ... You'd be followed by half of Europe. Hasn't Germany opted for SuSE Linux as their OS for the government institutions? Nix.

Re: Tomcat 4 on Compaq Tru64?

2003-08-23 Thread Nikola Milutinovic
I'm not sure why it works that way. I've got Tomcat working on Tru64 by calling bin/startup.sh start and bin/shutdown.sh stop in the $CATALINA_HOME directory. That's another way of handling it, I guess. Tru64 shows problems not in those two scripts, but in catalina.sh, when

Re: Tomcat 4 on Compaq Tru64?

2003-08-22 Thread Nikola Milutinovic
Does anybody have any succes with Tomcat on Tru64? I think I need to alter some shell scripts, but I have no clue what and where to make what changes? I have set the JAVA_HOME to the Compaq Fast JVM, but the startup.sh gives me thins in the catalina.out: usage: java

Re: [OT] JDBC confusion

2003-08-14 Thread Nikola Milutinovic
Hello List... newbie question coming up: Phaser charged... Shields at 80%... Photon torpedos loaded... If I set up a jdbc connection object in one servlet, do I have to close it each time or can the same connection be re-utilized by other servlets each using a different sql statement

Re: Help! heavy traffic is crapping out our site every 5 min! DBCP exceptions

2003-08-14 Thread Nikola Milutinovic
now, given that i can confirm that i am closing connections (calling close() on them, which returns them to the pool), can you suggest how i might locate where those connections are not getting released? i have read some stuff about dbcp not being entirely reliable in releasing connections. is

Re: Digest

2003-08-14 Thread Nikola Milutinovic
In a jsp application i want to calculate digested passowrds dynamically According to the Realm How To ... i write this code in a jsp : % String digest = org.apache.catalina.realm.RealmBase.Digest(request.getParameter(password), MD5); % Isn't there a Digest method in some, more public

Re: [OT] how to pronounce Apache ?

2003-08-14 Thread Nikola Milutinovic
Apache has NOTHING to do with indigenous American people. It stands for a patchy software. If that's a pun, it's a bit out of place. If it's a joke, so be it. If it is an oppinion, then you got something mixed up - what's the feather on the web site for? Nix.

Re: Tomcat UML Diagram

2003-07-30 Thread Nikola Milutinovic
Am I asking a dumb Q or there is just no such thing around? There is no such thing. UML is a information system modelling language. Tomcat is a JSP/Servlet container - a part of J2EE server specification implementation (web application interface). So, Tomcat implements only a segment of an IS.

Re: Tomcat and Windows ADS

2003-07-24 Thread Nikola Milutinovic
I would like to use the built in JAAS with my JBoss/Tomcat configuration to use either form or digest authentication. ADS will give you two major things: - Kerberos 5 authentication (use JAAS to access) - LDAP interface (use JNDI to access) What will your Tomcat use of those services, is up

Re: [way - OT] oracle and utf8

2003-07-08 Thread Nikola Milutinovic
My dba says that oracle's implementation of UTF-8 is a clusterf**k. I'm wondering if he is going crazy. What exactly would that mean? My knowledgeof clusters is moderate, but I don't see what would ANY implementation of UTF-8 have to do with clusters or f**king :-). OTOH, Oracle IS a

Re: Problems with mod_jk2

2003-06-25 Thread Nikola Milutinovic
- Original Message - From: Mark Eggers [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 7:58 AM Subject: Re: Problems with mod_jk2 What are the ownership and permissions on the following directory? /usr/opt/Apache-2.0.46W/logs

Re: OT Passing parameters to a link with an anchor

2003-06-24 Thread Nikola Milutinovic
I have the following link in a page that works fine: a name=notcurrent href=/itinerary/updatenode.do?id=expanded=trueTrip/a What I would like to do though is add an anchor so that I go to a particular point in the page so I tried including an anchor like this: a name=notcurrent

Problems with mod_jk2

2003-06-24 Thread Nikola Milutinovic
Hi all. mod_jk2 is bugging me properly. It is not working right now and it never did. I could have made a number of mistakes, so if someone could point at them, I'd be grateful. This are the relevant files: jk2.properties -- handler.list=request,container,channelSocket

Re: Problems with mod_jk2

2003-06-24 Thread Nikola Milutinovic
Good morning Nikola. What do you have in your http.conf file(s)? I assume Test.ev.co.yu is the machine you are running Tomcat on and is DNS resolvable? Here it is. # # Global JK2 settings IfModule mod_jk2.c JkSet config.file /usr/opt/Apache-2.0.46W/config/add-on/workers2.properties

Re: JK2 config

2003-06-23 Thread Nikola Milutinovic
Try Googling. There is a link to quite good piece of docs for JK2 that sits on Jakarta/Tomcat original site. Why isn't it present in the Tomcat's distribution? Nix. - Original Message - From: NormW [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 22, 2003

Re: Virtual domains with Tomcat

2003-06-23 Thread Nikola Milutinovic
How can I get Tomcat to recognize virtual domains? This is trivial with Apache and I can get Apache to fetch the correct jsp but I cannot get timcat to process it. If I turn off tomcat, apache sends the jsp source. If I turn tomcat on, I get the error 404 page Anything in the logs? I'm

Re: JK2 config

2003-06-23 Thread Nikola Milutinovic
There are plenty of examples of both JK and JK2 configurations in the list archives. The topic comes up DAILY, and frankly, I don't think you can blame people when they tire of posting the same thing day in and day out to essentially the same questions. Hi John. I have found a link to

Re: JK2 config

2003-06-23 Thread Nikola Milutinovic
The document that you are referring to, I think, is incomplete or wrong. When I tried it I found that some sections were in correct or misleading, or just didn't work. So I found it best to just ignore that document. Sorry to hear that. I haven't gotten around to testing it, yet. However,

Re: ok, am I offically lost here

2003-06-22 Thread Nikola Milutinovic
ok, there is a webapps directory, inside is a very dirs, examples, ROOT etc. the normal root page loads up and I can get to the examples, the confusion starts here, the ROOT houses the index.jsp, but the examples are not UNDER ROOT they are a different dir back one in webapps. WHEN I

JK2 config

2003-06-21 Thread Nikola Milutinovic
Hi all. Is there a comprehensive mod_jk2 guide? I'm mostly interested in comprehensive explanation of the syntax and semantcis of worker2.properties and jk2.properties files. The docs coming with TC are confusing and full of holes, to say the least. Right now, my immediate question would be:

Re: Problems with XML parsers and webapps

2003-06-18 Thread Nikola Milutinovic
All, Our webapp was built to use the Xerces xml parser. I'm trying to update our JDK and tomcat version to do testing for a production level upgrade. I'm running into problems with the JVM using the Crimson parse. The crimson parser does not agree with our XML files. Does anyone know how

Re: PHP and JSP on Tomcat

2003-06-11 Thread Nikola Milutinovic
On Wed, 11 Jun 2003 01:03, Isai Arasu wrote: Is it possible to run both JSP and PHP on Apache Tomcat 5.0? No, to do that you would have to install the Apache webserver and connect it to Tomcat with mod_jk2: Or to employ PHP servlet. Search Google. Nix.

Re: Apache, Tomcat/JBoss, SSL, redirection

2003-06-11 Thread Nikola Milutinovic
As I have not received any hints, is there a better list I should be posting this type of question to? Like I said, I think the question is reasonable but I might be overlooking something completely obvious. Don't give up on us :-) The error you describe is strange, I've read it just now

Re: How to UTF-8 your site.

2003-06-10 Thread Nikola Milutinovic
1. JSP pages must inlcude the header: %@ page contentType=text/html; charset=UTF-8 % This is if you use JSP. If you work with servlets, then you should output the appropriate headers. Actually, it also sets encoding of the output stream. Or at least it used to in some versions

Re: JSTL and EL question - SOLVED

2003-06-05 Thread Nikola Milutinovic
- Original Message - From: Schwartz, David (CHR) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 1:55 PM Subject: RE: JSTL and EL question - SOLVED I'm still having problems. Can you please post a complete sample along with web.xml sample?

Re: JSTL and EL question - SOLVED

2003-06-05 Thread Nikola Milutinovic
- Original Message - From: Schwartz, David (CHR) [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:35 PM Subject: RE: JSTL and EL question - SOLVED can you also send the taglib line from the top of jsp? Sure, look below. In web.xml you

Re: JSTL and EL question - SOLVED

2003-06-05 Thread Nikola Milutinovic
I thought I liked the idea of having the taglib in the web.xml file. When I try it I'm getting This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application. Do I have to download it somewhere in order to use it in

Re: Database connection No suitable driver?

2003-06-04 Thread Nikola Milutinovic
Yes. Then there is something wrong with JDBC URL you're using to connect. That message is actually from DriverManager/DataSource code. Nix.

Re: JSTL and EL question - SOLVED

2003-06-04 Thread Nikola Milutinovic
Oh boy, I get to contribute after asking a lot of questions! ; ) Here's a query I am using in a current project: sql:query var='picks' maxRows='1' select * from contestant_picks where contestant='q' and week = ? order by entered desc sql:param value='${thisWeek}'/ /sql:query

Re: Database connection No suitable driver?

2003-06-03 Thread Nikola Milutinovic
Your config looks fine. Have you placed Sybase's JDBC driver into ${CATALINA_HOME}/common/lib/? Nix.

JSTL and EL question

2003-06-03 Thread Nikola Milutinovic
Hi all. I'm using JSTL (Java Standard Tag Library), the EL (Expression Language) version. I have a DB where one particual query can return exactly one row (primary key). So, I use this: sql:setDataSource dataSource=jdbc/EVracunDS/ sql:query var=userData SELECT * FROM user_tab WHERE user_id =

Expression Language question

2003-06-02 Thread Nikola Milutinovic
Simple question. I have a JSP/Servlet combination in which Servlet is used to authenticate user and create a session. A JSP page then checks for the existence of the session and reads neccessary ID from it. I'm switching to JSTL and I'd like to switch to EL, now. Here is the old code, how can

Re: Expression Language question

2003-06-02 Thread Nikola Milutinovic
I think that's the ticket. Yes, Tim, but I'd like to be able to differentiate between user not logged in - session.isNew() and user logged in, but error in web-app - !session.isNew() and session.getAttribute( userID ) == null. Is there a way to call a method from EL? Like: c:set var=login

Re: Netscape navigator

2003-03-19 Thread Nikola Milutinovic
Susan Hoddinott wrote: Does anyone know if there is a problem using Netscape Navigator with servlet pages generating their own html using the println function. Whenever I attempt to access servlets of this kind (which work fine under Explorer) I just get the HTML text (e.g. HTML etc.)

Re: Getting Notified in Tomcat 4.1.18

2003-03-19 Thread Nikola Milutinovic
B A L A J I wrote: Hi, I'm trying to extend Tomcat to get notified whenever a session is created or cleared. How is this possible in 4.1.18 version.? Any help will be appreciated as I'm new to Tomcat. Take a look at Listeners in Servlet 2.3 specification and in Tomcat, more specifically,

Re: GNUPG TC , could be OT!

2003-03-10 Thread Nikola Milutinovic
Power-Netz (Schwarz) wrote: Hi, we have the following constellation: A webapp uses a java class to send emails , this class uses another class to SIGN this email via GNUPG. Is there a way to accomplish this via more common Java APIs, like JavaMail? S-MIME? I'm no exeprt in that field... The

Re: Datasource

2003-02-26 Thread Nikola Milutinovic
Sebastião Carlos Santos wrote: Georges, For the documentation of JNDI Datasource HOW-TO, their files jar should be located in $CATALINA_HOME/common/lib. This road should be put in CLASSPATH of the system also. *** REPLY SEPARATOR *** On 26/2/2003 at 13:31 Georges Roux wrote:

Catalina Home/Base

2003-02-26 Thread Nikola Milutinovic
Hi all. I have a small dilemma regarding CATALINA_HOME and CATALINA_BASE environment. Why are all loggers set to have a default dir ${CATALINA_HOME}/logs? Shouldn't it be ${CATALINA_BASE}/logs? At the moment, I am building a Tru64 UNIX package of Tomcat 4.1.18. Tru64 has a recomendation to

Re: Can the JNDI Connection Pool re-connect after failure?

2003-01-30 Thread Nikola Milutinovic
Raible, Matt wrote: I've discovered that this problem is related to a 90-minute timeout on our firewall. Tomcat sits outside of the firewall, and Oracle resides inside. Since there's no activity for 90 minutes, it closes the connection. Anyone know of a workaround (+ sample code) for this? I'm

Re: Can the JNDI Connection Pool re-connect after failure?

2003-01-29 Thread Nikola Milutinovic
Boris Folgmann wrote: Ryan Cornia wrote: Anyone using JNDI datasources that reconnect in case of a lost link to the DB server? Any examples? I'm using the I-net driver for Oracle Interesting question. In fact I have the same problem, using DBCP and PostgreSQL. I looked trough the Javadocs

Re: unix security realm

2003-01-29 Thread Nikola Milutinovic
[EMAIL PROTECTED] wrote: has anyone come across an implementation of a realm for Tomcat which authenticates users against the operating system's logins/passwords? thanks in anticipation Cyrus SASL 2.1.x has a JAR file with some classes that have SASL functionality. Maybe it is not too hard to

Re: Failed ErrNO=61

2003-01-22 Thread Nikola Milutinovic
Ravindra K. Bhat wrote: Hi, Any ideas on how to solve the following error in Mod_jk.log: [Wed Jan 22 08:57:20 2003] [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 61 [Wed Jan 22 08:57:20 2003] [jk_ajp_common.c (626)]: In jk_endpoint_t::ajp_connect_to_endpoint, failed errno =

Re: Memory Usage and Garbage Collection

2003-01-05 Thread Nikola Milutinovic
So the instance, and it's string, can still be GC'd, right? Nope. There is still a live reference to each OtherObject instance sitting in the static HashMap cache. Therefore, this instance cannot be GC'd, even though *you* have released your own reference to it. And, if the OtherObject class

Re: Weird messages

2002-12-12 Thread Nikola Milutinovic
Zsolt Antal wrote: Hi, Is the following normal, accepted or simply `we must live with it'? - html post This is debatable. There is no fixed standard on what a HTML message is. A HTML document embedded into the body of the real message as a MIME chunk is so far the closest description I've

Re: Why run tomcat as root

2002-12-08 Thread Nikola Milutinovic
Craig R. McClanahan wrote: Unix (and Linux) provide mechanisms to deal with this already, without changing the root-only restriction for ports 1024. * There's a system call to change your user id (this is what Apache itself does to grab port 80 as root and then switch itself to a

Re: The page cannot be displayed, HTTP 500 - Internal server error

2002-12-03 Thread Nikola Milutinovic
Tomislav Miladinovic wrote: Hi, After so many tries to get Tomcat 4.1.12 works (get home page) I am still experiencing error (after browsing http://localhost:8080). I try change Catalina port to 80 (server.xml) but no difference. The page cannot be displayed, HTTP 500 - Internal server error

Re: Netscape 6.2.x problem

2002-11-26 Thread Nikola Milutinovic
Richard Heath wrote: I am developing a servlet on Apache Tomcat 4.0. On Netscape 6.2.x occasionally it displays the raw http, rather than the html. See this image for an example. http://www.c-o-g-s.org.uk/work/netscape623.jpg Any idea why this is? It doesn't do it on any other browsers that I

Re: Netscape 6.2.x problem

2002-11-26 Thread Nikola Milutinovic
Richard Heath wrote: I wondered about that chunked header myself, but don't really know what that means. It means that the object being transfered isn't... ?raw, but compressed? I'm not sure... I've been doing some more investigation. It appears to only happen when Tomcat is running on our

Re: Starting tomcat as user apache instead of root

2002-11-17 Thread Nikola Milutinovic
Randy Paries wrote: Thanks The problem is that they have to both read and write files The weird thing is if I do a su - apache -c $TOMCAT_HOME/bin/startup.sh It does not start But if I do a su - tomcat -c $TOMCAT_HOME/bin/startup.sh Is does. The one diff is that in the etc/passwd file

Re: Can't solve SAXParseException: The string -- is not permittedwithin comments

2002-11-04 Thread Nikola Milutinovic
Jacob Kjome wrote: Yep, known issue. Try using the previous version of Xerces-2.x.x. The newest one doesn't seem to play well with Digester. I've read in the mail archives that this bug can be solved using a different version of Xerces. I've replaced

Re: packages

2002-10-31 Thread Nikola Milutinovic
Andy Wickson wrote: Hi all, If I put a servlet called Hello.class into a package called com.myco.test and have a suitable dir structure under WEB-INF\classes to reflect this, do I still need to give the full URL of the class in the web.xml file e.g., servlet-nameHello/servlet-name

Re: Tomcat on Thru64 Unix (OSF1)

2002-10-30 Thread Nikola Milutinovic
Denys Sene dos Santos wrote: Hi, I'm having some troubles while running Tomcat 4.1.12-LE under Digital Unix (OSF1). The server are running ok, but the /examples dir with the servlets are returning the error : HTTP Status 404 - /examples/servlets/ type Status report message

Re: Security RISK !

2002-10-29 Thread Nikola Milutinovic
Rodrigo Ruiz wrote: I think the idea of letting Apache directly access to the files into the webapp is interesting. This way there is no need to replicate the static content for Apache, and Apache will be faster serving all static content than Tomcat. True, but bothersome to maintain. But, at

Re: Security RISK !

2002-10-23 Thread Nikola Milutinovic
Robert L Sowders wrote: This doesn't really pose a problem with a correctly configured connector that is setup to handle all *.jsp and servlet requests. Perhaps, but that idea somehow defeats my idea of a web application as a path deployed from some other server. Maybe I'm wrong... Nix. --

Re: Security RISK !

2002-10-22 Thread Nikola Milutinovic
Sigurður Bjarnason wrote: Hi all The question is.. is there any security risk if I Have the Apache DocumentRoot pointing straight to the webapps folder ?! First of all, Apache cannot handle JSPs and has no knowledge of Servlets. Second, if both Apache and Tomcat-via-connector access the same

Re: F.Y.I HTTP spoken on HTTPS port; PROBLEM and SOLUTION

2002-10-21 Thread Nikola Milutinovic
Filip Sergeys tc wrote: On Mon, 2002-10-21 at 11:57, Nikola Milutinovic wrote: Filip Sergeys tc wrote: What does sendRedirect do? sendRedirect launches a new HTTP request, and this request goes via apache again(you can see it in the apache access_log). However

<    1   2   3   4   5   6   >