RE: JSP that doesn't work with IBM JVM 1.4

2003-09-17 Thread Ralph Einfeldt
- What is the compiler complaining about ? BTW: It's not legal to cast a String[] to an ArrayList. This should at least produce a runtime error. You have to explicitly convert the String[] to an ArrayList. ArrayList importList = new ArrayList(Arrays.asList(request.getAttribute(importList));

RE: ManagerServlet (autherization on a percontext basis)

2003-09-17 Thread Jaco Kroon
K, seems I can't. Anyway, here is a link, hope it is available from outside the firewall ... http://kanagawa.up.ac.za/~s21191493/tuksmanager.tgz On Wed, 17 Sep 2003, Jaco Kroon wrote: I hope I can use attachments. Ok, first off, there are a few issues with this, as I've said, it's quick

jk2_init() Can't find child

2003-09-17 Thread Johan Louwers
Build JK2 now on solaris 9. Placed mod_jk2.so in the Apache module dir. Also added: LoadModule jk2_module modules/mod_jk2.so at the end of my httpd.conf file. Stop and start apache and try to open http://10.99.1.115/examples Nothing!! http://10.99.1.115 is giving me the basic apache site

Re: jk2_init() Can't find child

2003-09-17 Thread Vikram Goyal
In your workers.properties under Apache conf put the following line: [shm] file=path-to-a-writeable-log-file-usually-under-apache-logs size=1048576 Restart Tomcat, wait 10 seconds and then restart Apache. If this does not work, then create the file as specified under the path and touch it. Try

Re: article on tomcat performance

2003-09-17 Thread Jan Agermose
YES - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 5:17 AM Subject: article on tomcat performance It looks like the tomcat performance book probably won't happen, so I am writing a short article

RE: Character Set Issues (windows vs. Unix)

2003-09-17 Thread Hans Liebenberg
Hi Anton, Thats exactly what I am doing. I have even tried Reader reader = r.getCharacterStream(field_name); and then printing out the the char values of the stream same result Its the most bizarre thing i have seen. ...and driving me insane! :( Thanks for you help Hans -Original

AW: Apache 2, Tomcat 5, mod_jk?

2003-09-17 Thread Nitschke Michael
mod_jk2 is a rework/reimplementation of mod_jk and is expected to work with Apache 2 and tomcat 4. there are some good tutorials and howtos, for linking apache and tomcat together, around. We used this : http://cnr.berkeley.edu/~salazar/apache_tomcat.html Mike -Ursprüngliche Nachricht-

Tomcat crashing...

2003-09-17 Thread Paridhi Bansal
Hi I am using tomcat4.0.6 as a standalone server for my servlet -applet based application.The server initially listens at port 8443(SSL) and after the request, the servlet throws a jar file and opens up port 4004 for applet-servlet communication. However, when this port is openend,

Re: Tomcat crashing...

2003-09-17 Thread Jaco Kroon
Try finding a rogue System.exit call :). On Tue, 16 Sep 2003, Paridhi Bansal wrote: Hi I am using tomcat4.0.6 as a standalone server for my servlet -applet based application.The server initially listens at port 8443(SSL) and after the request, the servlet throws a jar file and opens

Re: A Hebrew Problem

2003-09-17 Thread Yair Zohar
After some investigation I'll try to refrase and improve my problem description: My Goal: including a hebrew html inside a jsp page. The Problem: hebrew is viewed by browser as question marks (no matter charset). Some details from my investigation: When I request the hebrew html directly

Redirecting the output to a log file

2003-09-17 Thread Sarika N Inamdar
Hi All, When my servlets are sending some stack trace or System.out messages , all such output is dumped in the catalina.out log. We want the System.out messages to go into our application's log file. I am using standalone catalina on Solaris and tomcat 4.1.24. Please suggest on how to proceed to

Using drop down boxes in JSP

2003-09-17 Thread Anson Zeall
Hi people, I want to know, what is the best way to scan the option chosen each time the user selects an option from the drop down menu. Like..most of the pages I surfed to, they only showed how to make a drop down box..and then see what the option was chosen ONLY when the button is pressed.

Re: Redirecting the output to a log file

2003-09-17 Thread Johan Louwers
do not use System.out simply make a write to a file routine and write to a file :-) Johan. - Original Message - From: Sarika N Inamdar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:17 PM Subject: Redirecting the output to a log file Hi All, When my

RE: Redirecting the output to a log file

2003-09-17 Thread Sarika N Inamdar
Hi, But the servlet System.out code used to log messages to our application log when using tomcat 3. With migration to 4.1.24, we are facing this issue. Thanks, Sarika -Original Message- From: Johan Louwers [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 3:59 PM To:

Vedr.: Using drop down boxes in JSP

2003-09-17 Thread Thomas Nybro Bolding
Use javascipt. There are several examples of this on the net. You cannot use Tomcat/JSP as the users selection is not known by Tomcat before the request is submitted. /Thomas Anson Zeall [EMAIL PROTECTED] 17-09-03 12:30 Besvar venligst til Tomcat Users List Til:Tomcat Users

RE: Using drop down boxes in JSP

2003-09-17 Thread Walker Chris
Anson, You will have to write client JavaScript to do this. OTTOMH, attach a function to the onChange event of your SELECT tag. The object representing the tag will probably be accessible as document.all.yourTagId, or possibly something else, depending on the browser object model. This

RE: A Hebrew Problem

2003-09-17 Thread Bodycombe, Andrew
I suggest setting the file.encoding system property. export CATALINA_OPTS=-Dfile.encoding=utf-8 Then restart tomcat. I once had a similar problem with German umlaute characters and this seemed to fix it. Andy -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: 17

RE : Redirecting the output to a log file

2003-09-17 Thread Laurent Michenaud
Add a logger to your context and the following attribute : swallowOutput=true Your system.out will be redirected to the logger you defined for your context. Example : Context path= docBase=/home/adeuza debug=0 reloadable=true crossContext=true swallowOutput=true

Re: Redirecting the output to a log file

2003-09-17 Thread Tim Funk
Short term: try using swallowOutput=true. [Never used it myself] Long term: Switch to commons-logging or log4j. -Tim Sarika N Inamdar wrote: Hi, But the servlet System.out code used to log messages to our application log when using tomcat 3. With migration to 4.1.24, we are facing this

RE: Using drop down boxes in JSP

2003-09-17 Thread Ralph Einfeldt
Not with JSP. Only with javascript. (Which isn't covered in this list :} ) -Original Message- From: Anson Zeall [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:31 PM To: Tomcat Users List Subject: Using drop down boxes in JSP I want to know, what is the best way

Re: Redirecting the output to a log file

2003-09-17 Thread Jaco Kroon
There is a log function which gets inherited from somewhere, but anyway, it should be there if you subclasses HttpServlet. The javadocs might just be usefull for the servlet specs :). On Wed, 17 Sep 2003, Sarika N Inamdar wrote: Hi All, When my servlets are sending some stack trace or

RE: Using drop down boxes in JSP

2003-09-17 Thread Anson Zeall
Hi, Thanks for the reply. But, hmm.i was thinking of using onChange...and thenprocess the parameter via servlet? Anson -Original Message- From: Walker Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 8:45 PM To: 'Tomcat Users List' Subject: RE: Using drop

RE: Using drop down boxes in JSP

2003-09-17 Thread Anson Zeall
OR maybecan I use it to call a javascript method to call up a servlet? Does that work? Anson -Original Message- From: Anson Zeall [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 8:54 PM To: 'Tomcat Users List' Subject: RE: Using drop down boxes in JSP Hi, Thanks

Re: Apache 2, Tomcat 5, mod_jk?

2003-09-17 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/connectors.html#vs -Tim Vaga Bond wrote: Hey Guys, I've recently setup Apache2 and Tomcat 5 separately and was wondering if mod_jk or mod_jk2 can be used to link the two of them. Secondly, what's the difference between mod_jk and mod_jk2?

tomcat==root

2003-09-17 Thread P . van Kemenade
Hi I found out that we run our tomcat as user root, and in plain jsp I'm able to trash /etc/passwd :-) what is the advised setup for a tomcat server that is shared by several users (contexts) and runs some virtual domains ? thanks, *pike == Aoccdrnig to rscheearch at Cmabrigde Uinervtisy,

Vedr.: RE: Using drop down boxes in JSP

2003-09-17 Thread Thomas Nybro Bolding
I think this could be done, but without knowing your application I think this design has its drawbacks. Say a user wants to select foo placed as no. 42 in your drop down box. Would you then call the servlet 41 times before making the correct request? /Thomas Anson Zeall [EMAIL PROTECTED]

Re: tomcat==root

2003-09-17 Thread Jaco Kroon
Run it as a normal user, problem being, I haven't managed to figure out how to bind to port 80 then. I suspect it is possible, but for now I just use iptables to redirect port 80 to port 8080 my 2 cents worth On Wed, 17 Sep 2003, P.van Kemenade wrote: Hi I found out that we run our

RE: tomcat==root

2003-09-17 Thread robert.tomlin
You may find this useful: http://www.klawitter.de/tomcat80.html Cheers Rob Tomlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

vertial host apache/tomcat

2003-09-17 Thread Johan Louwers
Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test I have placed a document named info_www.txt

Tomcat on Dual CPU Server

2003-09-17 Thread Stuart Stephen
Hi, I've installed tomcat on a dual CPU redhat linux 9.0 machine and have noticed that it only uses 1 cpu. How can I make it use both? Is this a linux thing or a tomcat thing? Regards, Stuart Stephen - To unsubscribe, e-mail:

Re: Tomcat on Dual CPU Server

2003-09-17 Thread Jaco Kroon
It would either be the JVM, but apps are usually rather ignorant of the fact that it is running on one or more CPU's, so it's probably linux. I would try and determine whether other, multi-threaded, apps only use one cpu as well, if so, then it is deffinately the OS, if other multi-threaded

RE: Using drop down boxes in JSP

2003-09-17 Thread Walker Chris
You have to remember where things are happening: the change to the dropdown is only known to server-side components when the form is submitted. It is possible to submit the form in the onchange event of a select box, but I wouldn't advise it unless you can guarantee a fast response (e.g. on an

Re: Tomcat on Dual CPU Server

2003-09-17 Thread Tim Funk
The JVM is spec'd to be able to run on multiple processors transparently and an Java application. (Ignoring natvie code issues) Whether the *implementation* of a JVM takes advantage of a multi-cpu system is a job of the JVM vendor. -Tim Stuart Stephen wrote: Hi, I've installed tomcat on a

RE: Tomcat on Dual CPU Server

2003-09-17 Thread Stuart Stephen
Well, I'm using Sun 1.4.2 with Tomcat 4.1.28. I assumed that multi-threaded CPU's would be supported in Sun's Java VM. However, if i put tomcat into an infinite loop it seems to go only to just above 50% CPU for the whole system. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]

RE: Tomcat on Dual CPU Server

2003-09-17 Thread Jaco Kroon
That would be correct, as I mentioned in my other mail, a single thread can only run on one CPU, thus to get to 100% cpu usage, you need at least two threads performing two concurrent infinite loops. A single loop cannot push 2 cpu's to over 50% as the one cpu will run the loop and the other

Re: Tomcat on Dual CPU Server

2003-09-17 Thread Tim Funk
You need 2 infinite loops to peg a dual CPU system. -Tim Stuart Stephen wrote: Well, I'm using Sun 1.4.2 with Tomcat 4.1.28. I assumed that multi-threaded CPU's would be supported in Sun's Java VM. However, if i put tomcat into an infinite loop it seems to go only to just above 50% CPU for the

RE: Tomcat on Dual CPU Server

2003-09-17 Thread Stuart Stephen
Ahh, I wondered if that was what you meant. I'll have to experiment further. Thanks. -Original Message- From: Jaco Kroon [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 12:59 To: Tomcat Users List Subject: RE: Tomcat on Dual CPU Server That would be correct, as I mentioned in my

Re: A Hebrew Problem

2003-09-17 Thread Yair Zohar
I have got to a solution: It might be a private case but it may help others. I'm reading the html with A BufferedReader that is running over a AsciiFileReader which is using FileInputStream. The idea is to read the file byte by byte casting it to char in a char array not before moving from

Tomcat and Naming

2003-09-17 Thread Pitre, Russell
I'm trying to understand naming contexts and their implementations in tomcat.looking at the code below, we lookup the jndi resource jdbc/test When tomcat starts up, it parses the server.xml file.It finds: Resource name=jdbc/test auth=Container

RE: newbie

2003-09-17 Thread Shapira, Yoav
Howdy, Very strange indeed ;) What hardware issues did you run into? What JDK are you using? I suggest you start with a clean standalone tomcat install: keep apache and mod_jk out of the picture for now, just get tomcat working fine by itself. Yoav Shapira Millennium ChemInformatics

RE: Starting EmbeddedTomcat

2003-09-17 Thread Shapira, Yoav
Howdy, I think the classpath is seriously off ;) It should include a whole bunch of jars needs for tomcat... Yoav Shapira Millennium ChemInformatics -Original Message- From: Dave Stoker [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 1:34 AM To: Tomcat Users List

RE: Tomcat and Initial Naming

2003-09-17 Thread Shapira, Yoav
Howdy, The java:/comp/env context is special in that it's defined by the servlet specification is the location for environment properties defined in the server. So whatever you define in server.xml/web.xml will go in that context. A servlet container is not required by the spec to give you

RE: Tomcat on Dual CPU Server

2003-09-17 Thread Shapira, Yoav
Howdy, FYI, Sun JDK 1.4.2 on Solaris 8 and 9 can use many CPUs effectively: I don't know the upper limit but I've maxed it out on 12 and 16 CPU machines that we have around here. We don't have such big linux machines so I can't explore that OS as much... How are you liking tomcat 4.1.28? ;) ;)

RE: tomcat==root

2003-09-17 Thread Shapira, Yoav
Howdy, Tomcat 5 will use commons-daemon (http://jakarta.apache.org/commons/daemon) to let you bind to port 80 without running as root. I'll try to get out a commons-daemon 1.0 stable release in the coming weeks for other people who want to play with it... Yoav Shapira Millennium ChemInformatics

RE: Tomcat on Dual CPU Server

2003-09-17 Thread Stuart Stephen
Whoops. 4.1.27 :oP -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 17 September 2003 13:53 To: Tomcat Users List Subject: RE: Tomcat on Dual CPU Server Howdy, FYI, Sun JDK 1.4.2 on Solaris 8 and 9 can use many CPUs effectively: I don't know the upper limit but

Basic doubt

2003-09-17 Thread Navanee
I want to work with JSP. I have installed Tomcat in my PC (win 2k). What are the various parameters (or configurations) that i need to make before executing a JSP program? Where should i place all the JSP programs (in which folder?)? Thanks Navanee

Re: AW: Apache 2, Tomcat 5, mod_jk?

2003-09-17 Thread Vladyslav Kosulin
Nitschke Michael wrote: mod_jk2 is a rework/reimplementation of mod_jk and is expected to work with Apache 2 and tomcat 4. there are some good tutorials and howtos, for Tomcat = 4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Basic doubt

2003-09-17 Thread Shapira, Yoav
Howdy, Read http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Navanee [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 8:57 AM To: [EMAIL PROTECTED] Subject: Basic doubt I want to work with

RE: Apache + Tomcat, a default servlet, and static content

2003-09-17 Thread Mike Curwen
All 3 of those are great solutions. Thanks to both of you. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Tuesday, September 16, 2003 10:16 PM To: [EMAIL PROTECTED] Subject: Re: Apache + Tomcat, a default servlet, and static content If you

RE: newbie

2003-09-17 Thread Dan McCullough
I will do that. Not really sure if they were hardware issues, but that is where the fingers stopped pointing when I looked at everything involved. The early issues with this install was that downloads would seem to get corrupted when being installed on the box. j2sdk I installed 23 times

RE: article on tomcat performance

2003-09-17 Thread Mike Curwen
As long as you send us all the link to the finished article, I'm sure I won't mind missing the 'beta'. ;) -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 10:17 PM To: Tomcat Users List Subject: article on tomcat performance

Session level beans.

2003-09-17 Thread Andoni
Hello, I have a lot of JavaBeans that are initialised in my login page using java:useBean tags. The scope of these beans is set to session thus: jsp:useBean id=myBigBean scope=session class=net.mysite.client.BigBean % myBigBean.init(application, session); % /jsp:useBean now if I use the

Context and naming

2003-09-17 Thread Pitre, Russell
I'm trying to understand naming contexts and their implementations in tomcat.looking at the code below, we lookup the jndi resource jdbc/test When tomcat starts up, it parses the server.xml file.It finds: Resource name=jdbc/test auth=Container

RE: tomcat==root

2003-09-17 Thread Pitre, Russell
Sorry, just a test to see if my emails are getting through! -Original Message- From: P.van Kemenade [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 7:09 AM To: Tomcat Users List Subject: tomcat==root Hi I found out that we run our tomcat as user root, and in plain jsp I'm

RE: Session level beans.

2003-09-17 Thread Shapira, Yoav
Howdy, You need the useBean tag in every JSP page where you want to use the Bean. You only need one myBigBean.init tag used the first time you access the bean. Yoav Shapira Millennium ChemInformatics -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, September

RE: Session level beans.

2003-09-17 Thread Mike Curwen
The first time you use the useBean tag, it creates a variable called (whatever is in the id attribute) and checks in (whatever is in scope) for an attribute named (whatever is in name). If it can't find one, it instantiates an instance of (whatever is in class), and places it into the (scope)

Redirecting System.out message to my application log

2003-09-17 Thread Shan Paul
Hi All, We are running tomcat 4.1.4 for our application. We have some Servlet classes which include System.out.println to log message and any exceptions encountered. These System.out messages are being logged into catalina.out. We are interesting in re-directing these log messages to the

RE: Tomcat and Initial Naming

2003-09-17 Thread Pitre, Russell
Thanx Yoav, Great! The latter is exactly what I want to do.So when I want to use the properties after they have been bound, I would do something like: InitialContext ctx = new InitialContext(); Object obj = (Object)ctx.lookup(java:/comp/env/myJndiRef); Or something to

RE: Tomcat and Initial Naming

2003-09-17 Thread Shapira, Yoav
Howdy, Is there a best practice for this? I would like to see all of my app config stuff in one XML file..so when I deploy the app between (dev -- staging -- production) it goes smoothly without having to rewrite any classes. This is a common need. There are many approaches, some more

Re: Redirecting System.out message to my application log

2003-09-17 Thread Tim Funk
Already answered today! http://marc.theaimsgroup.com/?t=10637940003r=1w=2 -Tim Shan Paul wrote: Hi All, We are running tomcat 4.1.4 for our application. We have some Servlet classes which include System.out.println to log message and any exceptions encountered. These System.out messages

RE: Redirecting System.out message to my application log

2003-09-17 Thread Shapira, Yoav
Howdy, It's my fault, I double-approved it so it got posted twice ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:16 AM To: Tomcat Users List Subject: Re: Redirecting System.out message to my

RE: SSL Cipher Suite Config in Tomcat JSSE

2003-09-17 Thread McClure, Timothy J(IndSys, GE Interlogix)
Bill, That is no problem. I will put the one line code change we need into Tomcat until we migrate to 5. Could you please forward me the JJSE connectoe of the coyote_10 branch. Tim -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 11:03

Re: article on tomcat performance

2003-09-17 Thread Micael
Also, YES At 08:59 AM 9/17/2003 +0200, you wrote: YES - Original Message - From: Peter Lin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 5:17 AM Subject: article on tomcat performance It looks like the tomcat performance book probably

localhost:8080 HTTP 500 Internal error

2003-09-17 Thread Lucas, Maurice
Can anyone help with this issue. I am running Tomcat 4.1.27 on Windows 2000. Installation/setup came out fine. A few days ago I load SAP DB on the same pc. Outside of that nothing has changed. Tomcat starts fine, no errors. But when I open IE to view localhost:8080 I get an HTTP

Admin app

2003-09-17 Thread Jeff Cummings
Hi all, I have a JDBCRealm configured the server.xml to authenticate users. It all works fine. The following lines are in my server.xml and the parameters show up in when I click on the “User Database” followed by the “UserDatebase” nodes in the tree in the admin application.

Memory Usage, Leakage and java.lang.OutofMemory

2003-09-17 Thread Mike Curwen
So let's say that I have a web app that is slowly but surely leaking. Eventually, I will get a java.lang.OutOfMemory error. With how Tomcat is internally architected, or with how the JVM operates, does this cause a problem for all other applications running under Tomcat? Is there now no more

RE: Memory Usage, Leakage and java.lang.OutofMemory

2003-09-17 Thread Shapira, Yoav
Howdy, Once you get an OutOfMemoryError, your JVM is in an unpredictable state and must be restarted. This is not specific to tomcat. Reloading the webapp will not do any good. Find the leak with a profiler and fix it ;) Yoav Shapira Millennium ChemInformatics -Original Message-

FW: SSL Cipher Suite Config in Tomcat JSSE

2003-09-17 Thread McClure, Timothy J(IndSys, GE Interlogix)
Sorry for repost, I need to copy myself in order to receive response. Tim -Original Message- From: McClure, Timothy J(IndSys, GE Interlogix) Sent: Wednesday, September 17, 2003 10:37 AM To: 'Tomcat Users List' Subject: RE: SSL Cipher Suite Config in Tomcat JSSE Bill, That is no

RE: Memory Usage, Leakage and java.lang.OutofMemory

2003-09-17 Thread Ralph Einfeldt
Reloading the webapp may help. AFAIK it reloads all classes that are bound to the webapp classsloader and thus may free some memory that is hold by those classes. (Not that I think that it's a good idea to rely on that) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]

MySQL DBCP pool exausted error message

2003-09-17 Thread Nathan Christiansen
When I stress test my web app using JMeter, I am suddenly getting a DBCP could not obtain an idle db connection, pool exhausted SQLException thrown. When I test with 25 simulated users every one of my 25 threads gets the exception after the first 25 requests. What am I doing wrong? My setup:

RE: article on tomcat performance

2003-09-17 Thread srinath narasimhan
Please post it to the list with a link or how to get it. Thanks. -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 10:57 To: Tomcat Users List Subject: Re: article on tomcat performance Also, YES At 08:59 AM 9/17/2003 +0200, you wrote: YES

Tomcat web.xml url-pattern Apache httpd.conf VirtualHost xxx.com DocumentRoot

2003-09-17 Thread Bart Lenoir
Hi, Currently i'm having virtual hosts (subdomains) on Apache-2: abc.xxx.com def.xxx.com ghi.xxx.com ... with different DocumentRoots! On Tomcat-5 i have a servlet 'file' with url-pattern/file/url-pattern On workers2.properties i have [uri:/docs/*] This makes that i got the following:

URGENT!!!mod_jk2 and apache 1.3.27

2003-09-17 Thread mohan
Hi All I would like to know if the mod_jk2 works for apache1.3.27 and tomcat 4.1.27. I know it sure works for apache 2.x and tomcat4.1.27 and i have configured it successfully for this combination. Please also let me know if the same configuration for mod_jk2 works for apache 1.3.x as apache 2.x

Translating problem - a TC 5 issue

2003-09-17 Thread Vernon Smith
After upgrading my development box to TC 5.09 beta, I run into a few problems. One of them is a JSP file can't be translated into a Java file properly (?). The section of the Java file is the following: if (_jspx_meth_fmt_message_218(pageContext)) return;

cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
I have got a ServletContextListener that does initialization and cleanup for my webapp. I was wondering if there was a way to invalidate all sessions to my webapp in this Listener ? If not, in what way can I invalidate all sessions when i start / reload my webapp ? Thanks

RE: cleaning up sessions ...

2003-09-17 Thread Shapira, Yoav
Howdy, You can simply tell tomcat not to persist your sessions. You don't have to write any code. Read the PersistentManager documentation and comments in server.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] Sent:

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
When i specify saveOnRestart:false and reload or start my webapp, the users navigating the website now have an invalid session .. on top of all pages i do a checkAuthetication .. how do i check if the session is active or not ? .. so that i can detect that and redirect them to the login page ,

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
Hi, Does the PersistentManager help not to persist sessions across container start or restart ? or does it do across webapplication reload / restart ? (by container i mean Tomcat and by webapplication i mean a webapp that you run within Tomcat) From the documentation it seems that it helps

RE: cleaning up sessions ...

2003-09-17 Thread Shapira, Yoav
Howdy, all pages i do a checkAuthetication .. how do i check if the session is active or not ? .. so that i can detect that and redirect them to the Hmm... I would do this using attributes. All attributes are unbound when the session is invalidated. So add an attribute to the session when you

Re: cleaning up sessions ...

2003-09-17 Thread Filip Hanik
Does the PersistentManager help not to persist sessions across container start or restart ? the default standard manager does this Filip - Original Message - From: Mufaddal Khumri [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:22 AM

Fw: cleaning up sessions ...

2003-09-17 Thread Filip Hanik
Does the PersistentManager help not to persist sessions across container start or restart ? the default standard manager does this Filip - Original Message - From: Mufaddal Khumri [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 12:22 AM

peer not authenticated

2003-09-17 Thread Kleber
Hi, My name is Kleber, I am brazilian and I have a problem with Tomcat certificates(if someone could help me, I would be grateful). I was trying to place Tomcat certificate 4.1.27, however I've just had a certificate, because nowadays I'm using Orion server. I have one file called keystore

RE: cleaning up sessions ...

2003-09-17 Thread Vernon Smith
I don't know your application scenario, but in general, authetication is not the same as a session state. Authetication can be implemented in a filter. Hope this helps. Vernon -- - Original Message - DATE: Wed, 17 Sep 2003 15:49:41 From: Shapira, Yoav [EMAIL PROTECTED] To:

powerpoint display

2003-09-17 Thread Luo, Zhongjun
I am trying to let my web site show a powerpoint file. I added the following into Tomcat conf/web.xml, but it does not work (the brower shows strange characters). What should I do? Thanks very much. mime-mapping extensionppt/extension mime-typeapplication/ppt/mime-type /mime-mapping

Re: tomcat==root

2003-09-17 Thread Jaco Kroon
Which says excactly what I was intending, I need proper logging so I need kernel level forwarding using iptables. [EMAIL PROTECTED] wrote: You may find this useful: http://www.klawitter.de/tomcat80.html Cheers Rob Tomlin -

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
Exactly. I have a session attribute in my session that i set to true . and if that session attribute is not present or is false i redirect them to the authentication page. I did the following to my server.xml : Manager className=org.apache.catalina.session.PersistentManager

RE: MySQL DBCP pool exausted error message [SOLVED]

2003-09-17 Thread Nathan Christiansen
Sorry. I had a bug in my code. I had one database call where I was checking parameters and returning without calling Connection.close(); -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com -Original Message- From: Nathan Christiansen Sent: Wednesday,

RE: jk2_init() Can't find child

2003-09-17 Thread Dean Searle
Wouldn't that change be put in the workers2.properties file, since their using mod_jk2? -Original Message- From: Vikram Goyal [mailto:[EMAIL PROTECTED] Sent: Wed 9/17/2003 3:00 AM To: Tomcat Users List; Johan Louwers Cc: Subject: Re:

Re: classes

2003-09-17 Thread Christopher St. John
[EMAIL PROTECTED] wrote: I would like to know if I could just add the classpath of these jars (to not have them duplicated), and, in that case, where and how could I do it. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html -cks

RE: cleaning up sessions ...

2003-09-17 Thread Mike Curwen
You are doing nothing wrong... Tomcat will persist sessions between restarts. To check your code works correctly, don't restart Tomcat... close your browser window and start a new instance of the browser (or let the session time out in a single browser). -Original Message- From:

Re: powerpoint display

2003-09-17 Thread Jon Wingfield
try mime-mapping extensionppt/extension mime-typeapplication/vnd.ms-powerpoint/mime-type /mime-mapping Luo, Zhongjun wrote: I am trying to let my web site show a powerpoint file. I added the following into Tomcat conf/web.xml, but it does not work (the brower shows strange characters). What

Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
To test I did the following: 1. started tomcat. 2. started a browser, logged into MyApp and used it. 3. stopped tomcat and restarted tomcat . (kept the browser window open). 4. went back to my browser window and tried to continue using my MyApp by clicking on one of the links to a jsp page. The

Re: vertial host apache/tomcat

2003-09-17 Thread Luke Vanderfluit
Hi Johan, I don't know what your httpd.conf looks like, When using VirtualHost the first block must be the main domain, then your virtual domains. post your full httpd.conf kind regards, Luke On Wed, 2003-09-17 at 20:54, Johan Louwers wrote: Ok, finaly have apache and tomcat running both

RE: powerpoint display

2003-09-17 Thread Luo, Zhongjun
Thanks. I have just tried. It didn't work in IE (in Nescape it works using both PPT and vnd.ms-powerpoint). I appreciate your suggestion very much. Zhongjun Luo, Ph.D. Research Assistant Professor Genetic Medicine Department Vanderbilt University Medical

mod_jk.so Solaris 8

2003-09-17 Thread Fernando Espinosa
I have Solaris 8 (Sparc) Apache 3.1.27 Tomcat 4.1.24, and I downloaded severals mod_jk, some from the jakarta site: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v 1.2.0/bin/solaris8/ http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1

mod_jk2 [uri:host_alias/*.jsp]

2003-09-17 Thread Ivan Montoro
Hi everybody, I'm creating a website based on Apache 2.0, Tomcat 4.1 and mod_jk2. My workers2.properties says: [uri:mysite.org/*.jsp] worker=ajp13:localhost:8009 So I guess only url's ending in jsp shall be passed to Tomcat. I've disabled directory listings in Tomcat but enabled them on Apache

Asunto: Re: classes

2003-09-17 Thread tizo
I had just read that link (class loader how to), and I understand it, but I would like to know, if I could set the classpath to point classes in other directory (neither in tomcat, nor in soap), and where and how could I do that. Thanks very much, Tizo P.D: putting jars files in WEB-INF/lib

Trying another approach - HttpSessionListener Re: cleaning up sessions ...

2003-09-17 Thread Mufaddal Khumri
I am trying to implement the HttpSessionListener (the same class implements ServletContextListener. The code for which is below. 1. I open a browser window , use MyApp after logging in. 2. I open the tomcat manager and reload my webapp. I go to the console at this point and see the message -

Re: Cannot load JDBC driver class 'null'

2003-09-17 Thread Peter Harrison
On Fri, 12 Sep 2003 00:16, Ben Anderson wrote: Ok, I know this topic has been posted many times, but I can't find anything to help. There is no help - its a bug. I tried posting a bug on Bugzilla, but I can't find the bug any longer. I'm still running 4.0.4 because I can't easily move to

Re: Cannot load JDBC driver class 'null'

2003-09-17 Thread Peter Harrison
On Fri, 12 Sep 2003 04:41, Ben Anderson wrote: I moved the Resource and ResaourceParams tags to myApp.xml and put it in the webapps folder(with the war). I'm still getting the exact same errors. More specifically, in 4.1.27 you can't define your JDBC resources in either the DefaultContext or

  1   2   >