RE: mod_jk2 2.0.4 for Win32

2004-03-27 Thread David Short
Thank you!!! I've been searching all over the place for the .dll. I loaded the .so and things seem to be ok so far. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 10:37 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: mod_jk2 2.0.4

RE: post data through form based authentication example?

2004-03-27 Thread Martin Alley
Hi Adam, I've put together a simple test for posting to a secured resource which seems to throw up a problem. Included files are the web app. Based on JBoss3.2.3 embedded tomcat4.1. Martin Index.html html body a href=form.htmlform/a /body /html form.html html body

RE: post data through form based authentication example?

2004-03-27 Thread Martin Alley
I forgot to mention it's behaviour!! Basically when the is no security constraint, it works. When there is a security constraint, the post data gets killed. Martin -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 09:43 To: 'Tomcat Users List'

Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Hi! I'm having difficulties setting up datasources! At the moment I have two contexts that I'm testing this on. The first is this one. It works fine. Context docBase=/home/stig/public_jsp path=/stig Resource name=nutshellTestSource type=javax.sql.DataSource/ ResourceParams

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
The differences I can see are in the Context element and the url param value. The question is what difference is significant. I would try making the second config more similar to the first, and see when it starts working. Eg. Is it because the url lookup is failing? Is it because it is no

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Martin Alley wrote: The differences I can see are in the Context element and the url param value. The question is what difference is significant. The URL have been switched back and forth, but with the same result. This goes for all the other parameters also - but in the end it's always the

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
So you can change any parameter and it still fails? Have you tried playing with the attributes in the context element? -Original Message- From: Stig Stavik [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 10:15 To: Tomcat Users List Subject: Re: Same data source config on two contexts,

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Martin Alley wrote: So you can change any parameter and it still fails? Have you tried playing with the attributes in the context element? No, I haven't. What sort of playful attributes do you recomend? :) -- StSt - To

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
Reloadable Docbase Path In that order. Martin -Original Message- From: Stig Stavik [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 10:32 To: Tomcat Users List Subject: Re: Same data source config on two contexts, different result Martin Alley wrote: So you can change any parameter and

Re: Tomcat5 and HttpServletRequest#getSession

2004-03-27 Thread Harry Mantheakis
JSPs are designed to create sessions automatically - unless you explicitly tell them NOT to. Hence, calling %= request.getSession(false)% Will always get you a session. There is a JSP directive you need to use which will prevent your JSP from creating a session. I'm sure you can find the

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
Furthermore, I'm thinking about the semantics of the driver class and doc base. Do you have the driver class in the right place so it can be found when docroot is ROOT? -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 10:37 To: 'Tomcat Users List'

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Martin Alley wrote: Do you have the driver class in the right place so it can be found when docroot is ROOT? As long as the connector is to be found in tomcats classpath, it should be ok, shouldn't it? Ok. New approach - total chaos. I removed the v-host and created a new one using the

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
What version of tomcat are you using? -Original Message- From: Stig Stavik [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 11:23 To: Tomcat Users List Subject: Re: Same data source config on two contexts, different result Martin Alley wrote: Do you have the driver class in the right

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Martin Alley wrote: What version of tomcat are you using? 5.0.16 -- StSt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Same data source config on two contexts, different result

2004-03-27 Thread Remy Maucherat
Stig Stavik wrote: Context docBase=ROOT path=/ reloadable=true The path should be an empty String. That's the likely cause of the problems. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
I believe the driver either needs to be in WEB-INF/lib or $CATALINA_HOME/common/lib Martin -Original Message- From: Stig Stavik [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 11:23 To: Tomcat Users List Subject: Re: Same data source config on two contexts, different result Martin Alley

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Remy Maucherat wrote: Context docBase=ROOT path=/ reloadable=true The path should be an empty String. That's the likely cause of the problems. Thanks. That cleaned up the errorlog, though it made no other difference ... -- StSt -

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Martin Alley wrote: I believe the driver either needs to be in WEB-INF/lib or $CATALINA_HOME/common/lib The driver is in $CATALINA_HOME/common/lib -- StSt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
Is that where your other context is finding it also? Where else is the driver? If you remove it from $CATALINA_HOME/common/lib does the other context fail in the same way as the /stig context? -Original Message- From: Stig Stavik [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 11:45 To:

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
Can you validate your config against a DTD? I find the wording of the error message suspicious - it sounds like it can't read the config file properly, rather than it can't find the driver file that is configured. Martin -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED]

Re: Same data source config on two contexts, different result

2004-03-27 Thread Parsons Technical Services
Stig, There only needs to be one copy of the driver in the common/lib directory. Change the name on your resource that is not working. You should not use the same name on both. If that doesn't fix it (remember to change the name in your web.xml and application) then repost your current context

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
Martin Alley wrote: Can you validate your config against a DTD? Well, when I made a new context on the v-host, tomcat makes a config for me. Context docBase=/home/stig/blablabla/ path= useNaming=false /Context I haven't touched it - and I recon tomcat should be able to read its own config

Net Integrator Virus Alert

2004-03-27 Thread Virus Scanner
WARNING: a virus (probably I-Worm.Mydoom.a) or suspicious attachment was detected and removed from the following message from [EMAIL PROTECTED] to [EMAIL PROTECTED] Some of the content may still be readable. ---BeginMessage--- test ---End Message---

RE: Same data source config on two contexts, different result

2004-03-27 Thread Martin Alley
I'm confused! An attribute that never should have been there??? I agree with Doug, please post full configs and the relevant code. -Original Message- From: Stig Stavik [mailto:[EMAIL PROTECTED] Sent: 27 March 2004 12:03 To: Tomcat Users List Subject: Re: Same data source config on two

Re: Same data source config on two contexts, different result

2004-03-27 Thread Stig Stavik
I agree with Doug, please post full configs and the relevant code. Ok, here goes: /usr/tomcat/conf/server.xml: ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener

Re: mod_jk 1.2

2004-03-27 Thread Graham Bleach
On Fri, Mar 26, 2004 at 01:37:35PM +0100, Petr Nepoitek wrote: Hi, I downloaded the latest version of the jk_12 connector for Solaris 8, but when expanding the tar file there's a checksum error. Does anybody have a correct version of the connector for Sun? Try using GNU tar to extract the

Re: Problem with Apache 2.* + tomcat 4.1.* using mod_jk2

2004-03-27 Thread Graham Bleach
On Fri, Mar 26, 2004 at 08:51:54AM -0500, [EMAIL PROTECTED] wrote: hi guys, I am trying to hook up my tomcat 4.1.29 with the Apache 2.0.49 server (running mod_ssl if that makes any difference) with the mod_jk2 2.0.2 version. I downloaded the mod_jk2 source and built it on my own for linux.

RE: Why won't Tomcat 5 shutdown properly?

2004-03-27 Thread Alex
java version 1.4.2_03 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02) Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode) This is what I'm running on four different servers and all provide the exact same issue. There's no date set for 5.0.20 is there? On Fri, 26

Re: JNDI Realm Problem - Cause determined

2004-03-27 Thread Chong Yu Meng
I'm using Tomcat 5.0.18 (going to upgrade soon, but I'm using this version to do documentation at the moment), and OpenLDAP 2.1.22. I configured OpenLDAP to log everything, and here's the error (as you suspected): 1. Tomcat authenticates the user, but cannot find the role he belongs to. Below

Re: How to Secure my Passwd Info from server.xml file?

2004-03-27 Thread Tim Funk
No there is no way currently. The problem the password needs decoded and no method to do this securely has been proposed. Other vendors might do this but they probably just use a proprietary encoding algorthm which is just security through obscurity. The recommended workaorund now is: 1)

Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-27 Thread Tim Funk
Sounds like background threads doing bad things or things that the GC can't resolve as candidate for freeing. -Tim tom ly wrote: The Free Memory(not the java heap) continues to drop even when there is nothing going on with tomcat. It gets to the point where there is hardly any left and we

Re: Your bill

2004-03-27 Thread tomcat-user
This message was verified by the filtering system of our mail server. Original message was replaced by this one by the following reason : *** A suspicious file (executable code) was found in the message ! Original message had the following attached files : (X-FILE ??? ) : your_bill.pif

JK2 and SHM

2004-03-27 Thread SH Solutions
Hi I get the following errors in apache2s log: [error] shm.create(): error creating shm 70014 End of file found [error] shm.create(): error creating shm /isp/apache2.shm Can someone tell me what to do ? The shm file mentioned in workers2.properties exists (created using touch) and has 777

Mail Delivery (failure tomcat-user@jakarta.apache.org)

2004-03-27 Thread tomcat-user
If the message will not displayed automatically, follow the link to read the delivered message. Received message is available at: www.jakarta.apache.org/inbox/tomcat-user/read.php?sessionid-6052 Norton AntiVirus Deleted1.txt Description: plain/text

manager and admin applications

2004-03-27 Thread Asim Alp
I had to make some modifications to my server.xml file, so that my default host (localhost) is no longer the Tomcat's default start page in webapps/ROOT. After this change, I can no longer reach my manager and admin applications. In my previous server.xml, I haven't noticed any settings

jsp compile - default constructor

2004-03-27 Thread Rupert Jones
Hi there [Running Tomcat 5.0.19] I have a servlet which forwards a Boolean object resource (request.setAttribute(someBoolean, someBoolean);) on to a jsp page. As you know there is no default constructor for this object (new Boolean()). In previous versions of Tomcat, well 5.0.16 and less,

help with embedding tomcat

2004-03-27 Thread tomcatuser
I am trying to figure out how to embed tomcat into my application. If someone could help, I would appreciate it. My biggest question is, do I need to use the commons-modeler in order to get this all working? Or can I just use the JMX libraries ? thank you.

Re: Re: How to Secure my Passwd Info from server.xml file?

2004-03-27 Thread tomcatuser
I am working on something similar to this. I need the password that will unlock a PKCS12 file, and what I have done is embed tomcat in a C application. I have the C code prompt for the password, and then pass the password to the JVM via the Invocation API. Since Java has no good way of

Re: which memory profiling tool is better for tomcat?

2004-03-27 Thread Peter Lin
if you're talking about profiling, I prefer Borland OptimizeIt. Having done quite a bit of profiling in the past, I find OptimizeIt easier to use than JProbe. if you're talking about monitoring tomcat, there's a new tomcat monitor for JMeter. Just get the nightly and you should be able to

Re: manager and admin applications

2004-03-27 Thread Parsons Technical Services
Asim, I just did this very thing. The way I fixed things was this: I moved the index.jsp page to the root of the manager application. Now when I go to http://localhost/manager I get the old index page. I also moved the images so that they show up as well. I then edited the path information in

coyote connector and unix sockets

2004-03-27 Thread SH Solutions
Hi Right now, I have the folloing more or less working: Connector port=8889 enableLookups=false protocol=AJP/1.3 / My problem is, how to tell the connector to use unix sockets instead of tcp sockets? I've read to set port to 0, but where to specify wich socket to use? cu, Steffen

Re: Tomcat/Apache: error creating shm

2004-03-27 Thread Robert Mazur
On Friday 26 March 2004 23:18, Robert Mazur wrote: I am running into an error when launching tomcat: shm.create(): error creating shm 70014 End of file found I have set up the coyote connector on the following system: -SUSE9 -Apache 2.0.49 -Tomcat 5.0.19

Re: How to Secure my Passwd Info from server.xml file?

2004-03-27 Thread Parsons Technical Services
Cathy and list, I have been running this one through my head and have a couple of hang-ups. Since in this case tomcat is acting as the client then the use of encrypted would only work if you unencrypt it to send it. If the hacker can read the server.xml then he has the access to the code that

Unsubscribe...

2004-03-27 Thread Tony
Does anybody know how can I unsubscribe this list, please ? Thank u !! :))

Re: Connection Pool setup.

2004-03-27 Thread Antonio Fiol Bonnín
Hi Gordon, IMHO, all of them should be off for production. Your app is supposed to not leak any connections when it goes into production. And if you are not 100% sure of that, you'd better also have the log so that you can find and correct it. So, again IMHO, these parameters mostly make

JSP works, Servlet does not work

2004-03-27 Thread Robert Mazur
SUMAMRY: JSP's work, but servlets give: HTTP Status 404 - /sampleapp/servlet/samplepackage.SampleServlet DETAIL: I am a long time tomcat 3.X user. I'm trying to switch to version 5.0.19. I am at the end of full day #2 trying to get a simple webapp to work with: -SUSE9, -Apache 2.0.49, -Tomcat

Can Tomcat share it's connection pool?

2004-03-27 Thread Elam Daly
Hi all, If I set up a connection pool for my web apps using Tomcat, can that pool be used by external java applications? If not, can anyone recommend some solutions? Thanks, Elam Daly - To unsubscribe, e-mail: [EMAIL

Re: No suitable driver

2004-03-27 Thread Todd H. Siegel
Doug, I made those changes and I still have the same problem. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.microsoft.jdbcx.sqlserver.SQLServerDataSource' for connect URL 'jdbc:microsoft:sqlserver://localhost\dbname;user=username;password=password', cause:

jsp:include page question.

2004-03-27 Thread Tom K
I ran across this post comparing Tomcat 4 to Tomcat 5 pertaining to a jsp:include statement, and was wondering if anyone else has the same problem? HYPERLINK http://www.mail-archive.com/[EMAIL PROTECTED]/msg120161.ht mlhttp://www.mail-archive.com/[EMAIL PROTECTED]/msg120161. html I have a

Fake 'alias' for sales rep pages

2004-03-27 Thread Bryan K. Cantwell
I have created a templated 'Personal' web page (jsp) that dynamically becomes the personal page of each of our sales reps in the copmpany. What I need to know is how I can make the URL unique for each rep's page without actually creating a directory or alias for each and every one of them. For

RE: jsp:include page question.

2004-03-27 Thread Schalk
Not 100% on this but, as far as I know the include has to start with a '/'. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED]

Re: JSP works, Servlet does not work

2004-03-27 Thread Phillip Rhodes
Robert Mazur wrote: SUMAMRY: JSP's work, but servlets give: HTTP Status 404 - /sampleapp/servlet/samplepackage.SampleServlet Offhand, this sounds like the problem people experience because newer versions of Tomcat ship with the Invoker servlet disabled by default. Take a look at this page, and

RE: Fake 'alias' for sales rep pages

2004-03-27 Thread Tom K
Well...you might try using something like a response.redirect() to another url. You might need to set some type of flag in a database corresponding with there login id which would redirect them to a unique URL. Just some ideas. Sincerely, Tom K. -Original Message- From: Bryan K.

I know this is a stupid question

2004-03-27 Thread Donald Lee
Ok, I know this has got to be a stupid newbie question but I have searched the archives without success. What is special about the default tomcat webapps/ROOT/index.jsp? I cannot make changes to it. I tried making minor changes to it and expecting the changes to happen on a refresh; no joy.

Re: JSP works, Servlet does not work

2004-03-27 Thread Parsons Technical Services
Robert, As Phillip said you have just met the Ghost of Invoker Past. Short story is that it can be used for evil thus commented out. Short fix is to uncomment it. But as you did try the correct way you tried to add mappings, I say good for you and don't give up yet. No to fix your problem. You

Re: I know this is a stupid question

2004-03-27 Thread Bryan K. Cantwell
Is your browser chacheing? turn it off. clear the work directory of already compiled versions too... - Original Message - From: Donald Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 27, 2004 7:31 PM Subject: I know this is a stupid question Ok, I know this has got

Re: Fake 'alias' for sales rep pages

2004-03-27 Thread Bryan K. Cantwell
I can send to the real location , no problem, but, that I need to know is how to go to http://www.domain.com/johndoe which is the unique url for John Doe, even though there really is no such directory or alias as /johndoe/ . There could be hundreds or even thousands of these 'personal' sales rep

Re: Fake 'alias' for sales rep pages

2004-03-27 Thread Parsons Technical Services
Bryan, As I haven't done this myself yet, here's my thoughts. You will need a servlet/jsp that will serve as your index page. If the request comes in as: http://www.domain.com Then it will serve up the index page. If the request comes in as: http://www.domain.com/johndoe It will call your

Re: Fake 'alias' for sales rep pages

2004-03-27 Thread Parsons Technical Services
Bryan, Combine this with Tom's idea and a database. Request received at http://www.domain.com/something If it matches a predefined list it is passed to the corresponding page if no match it checks the database for the occurrence of the salesperson if a match is found the redirect it to another

Re: I know this is a stupid question

2004-03-27 Thread Donald Lee
Yes I turned off caching I even deleted the index.jsp and stopped and started tomcat. I still get the Congratulations! I can do this without specifying the index.jsp and if I specify it. I know I am looking in the right folder because like I said, I can run a test.jsp just fine and even

Re: manager and admin applications

2004-03-27 Thread Asim Alp
That fixed the problem. Thank you very much! Asim On Mar 27, 2004, at 1:19 PM, Parsons Technical Services wrote: Asim, I just did this very thing. The way I fixed things was this: I moved the index.jsp page to the root of the manager application. Now when I go to http://localhost/manager I

apache + 2 tomcat cluster memory problem

2004-03-27 Thread Asim Alp
Hello everyone, I have 2 Tomcats (both 5.0.19) running on two separate machines. One machine also has Apache 2.0.49 installed on it for load balancing. Apache communicates with tomcat1 thru port 11005 and tomcat2 thru 12005. tomcat1 and Apache are on the same machine. Apache is set to

Re: I know this is a stupid question

2004-03-27 Thread Donald Lee
I have since downloaded version 4.1.30 and am not experiencing this problem. I have noticed that there are fewer sub-directories under the WEB-INF. This leads me to believe that the jsp's were pre-compiled in version 5 and running more like servlets than a standard jsp. With no way for me to

jsp compile - default constructor

2004-03-27 Thread Rupert Jones
Hi there [Running Tomcat 5.0.19] I have a servlet which forwards a Boolean object resource (request.setAttribute(someBoolean, someBoolean);) on to a jsp page. As you know there is no default constructor for this object (new Boolean()). In previous versions of Tomcat, well 5.0.16 and less,

Connection reset by peer: socket write error(CODE=-1)

2004-03-27 Thread Alex Korneyev
Hello, For some reason when i use tomcat 's (4.1.30 ) jndi pooling with MSSQL, i get this error. Connection reset by peer: socket write error(CODE=-1) I suspect that the problem is with the fact that connections go stale. is there a way for me to force connection to be renewed, or for

Re: I know this is a stupid question

2004-03-27 Thread Parsons Technical Services
Donald, Sorry that you had to give up. I am not sure what was causing you so much trouble but I know that it can be replaced. I actually moved my index.jsp and replaced it with a .htm . I then had to edit the index.jsp for it's new home. If you end up back on TC5 at some point you could copy

RE: apache + 2 tomcat cluster memory problem

2004-03-27 Thread Filip Hanik \(lists\)
there was an earlier email about a mem leak in the connector for mod_jk, please go through the last weeks emails and let us know what you find out. Filip -Original Message- From: Asim Alp [mailto:[EMAIL PROTECTED] Sent: Saturday, March 27, 2004 7:55 PM To: Tomcat Users List Subject:

Re: No suitable driver

2004-03-27 Thread Parsons Technical Services
Todd, Should have known that MS would do something screwy with their setup. Check out this page from the archives. http://archives.real-time.com/pipermail/tomcat-users/2002-December/088536.html Notice also that the type is set to a different name and yes they do have the factory in there. Give

Re: Can Tomcat share it's connection pool?

2004-03-27 Thread Parsons Technical Services
To answer your first question. No. External applications will be running in their own jvm and thus will be unable to see it. As for a solution, Tomcat is open source and their is nothing to stop you from using the code they use to create their pool. Otherwise there are several hits on google and

Directory question for the masters...

2004-03-27 Thread Richard S. Huntrods
I need to access a specific directory from within tomcat, but I'm having a specific problem and require some advice. I have a link to a file in the servlet, something like https://myserver.com/special-directory/file.zip; If I create the directory as follows:

[ANN] : Doc Mirror

2004-03-27 Thread Chong Yu Meng
Hi All! I will be dismantling my site over the next few days, so, very soon, you will not be able to find my Tomcat 4 and Tomcat 5 tutorials at http://cymulacrum.net Werner van Mook, of connecties.com, has generously offered to host the documents for free. The new links are shown below: