RE: JNDI comp namespace - Tomcat Developers Please Read

2003-12-12 Thread Tony Colson
As per my suspicion, multiple seemed to cause the problem as I had the JNDI resources defined in the second . Removing the first service temporarily seemed to "fix" it. Is this a bug in Tomcat? Or is there something else I need to specify? I will do some more testing to see if I can't narrow i

Re: How to set the debug level and where does the output go?

2003-12-12 Thread Bill Barker
You can set the 'debug' attribute on the tag, but that will produce debug info for other sub-components of as well. Alternatively, you can configure the Authenticator explicitly (dangerous, since Tomcat assumes that you know what you are doing in this case :): . In any

Re: Vedr.: service installer for TC5

2003-12-12 Thread Bill Barker
I'm not sure if it is in the docs, or if the installer sets up a link to it (never used the installer :), but you can change most setting from the GUI by running: tomcatw //ES//Tomcat5 "Remy Maucherat" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jacob Lund wrote: > > OK thanks

Re: Apache SSL variables -> Imposible!

2003-12-12 Thread Bill Barker
TC 5 does a lazy evaluation of the SSL Request attributes (for performance reasons). This means that the attributes are made available when they are first asked for. The following should work: String cipher = (String)request.getAttribute("javax.servlet.request.cipher_suite"); Integer keysize

How to set the debug level and where does the output go?

2003-12-12 Thread Daniel Germain
I would like to see messages like if (debug >= 1) log("xxx") from this file org.apache.catalina.authenticator.FormAuthenticator. How do I set the debug level, and in which file will the output goes? I want to investigate on the following message: Invalid direct referenc

mod_jk2 failing inconsistently.

2003-12-12 Thread Charles Crain
Hi. I'm a jk2 newbie. I just build and installed Apache 2.0.48 and jk2 2.0.2. What I am seeing is very strange. If I type in a URI I have forwarded from Apache to Tomcat, most of the time I get an Internal Server Error, and this appears in the Apache error log: [Fri Dec 12 18:43:21 2003] [e

Re: JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread [EMAIL PROTECTED]
I found the cause: around the end of my servlet, I had put out.close(); (where out is PrintWriter object obtained from response) I deleted out.close(), and now my servlet works with -security even if I load the servlet first. I did not have this problem with Tomcat 4.x. It was strange, but somet

Need help to study thread dump

2003-12-12 Thread Vikas
Hi, My app is running on bes 5.1 App sometime stops responsding and i have to restart my server. Below is some portion of thread dump which i got for the app "VBJ ThreadPool Worker" daemon prio=5 tid=0x14f1148 nid=0xad70 waiting for monitor entry [e767d000..e767fc24] at com.vks.group.pkg.uti

broken pipe

2003-12-12 Thread Nicolas
hi this is about the common broken pipe problem (when you press the stop button). i get this mainly in my catalina.out but i was able to redirect a lot of it to context based logger(for each aborded request there are often duzends of lines). if i use jk2 there are also errors in error_log of a

Re: JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread [EMAIL PROTECTED]
Thank you for reply. I found that Tomcat servlet examples work with -security option on Fedora. So my web application should work with -security option. After I load Tomcat servlet examples first, I can immediately see my web application from my browser. But when I try to load my web application f

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Robert Hall
Ashwin, Bravo! I missed the resolution details. What was the solution? Robert Ashwin Kutty wrote: This was NOT a sendmail issue if you followed the positive discussions I had with some other members on this list. If it were I would have taken it to the sendmail list/forum. I thank the member

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread David Rees
On Fri, December 12, 2003 at 3:20 pm, Ashwin Kutty wrote: > > This was NOT a sendmail issue if you followed the positive discussions I had with some other members on this list. If it were I would have taken it to the sendmail list/forum. I thank the members here for their assistance and would lik

RE: JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread Yansheng Lin
Hi, You got it working yet? It seems you are having trouble using apache as the server. You said when you use domainname:8080/something, you can see the pages, but not domainname/something. That's because Tomcat is serving the pages instead of Apache. I need to go home to test this on Fedora

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Ashwin Kutty
This was NOT a sendmail issue if you followed the positive discussions I had with some other members on this list. If it were I would have taken it to the sendmail list/forum. I thank the members here for their assistance and would like to happily announce that the problem has been solved. On F

RE: Need help with connectors

2003-12-12 Thread Asif Chowdhary
YES the default port is 8009. It should be 8009 in server.xml file as well -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 6:02 PM To: 'Tomcat Users List' Subject: RE: Need help with connectors Just one quick question(I am just playing with

Re: Tomcat Exception Handling =?= Web Tier Exception Handling

2003-12-12 Thread QM
: My question is, should I use tomcat exception handling mechanism, or should I : come up with my own exception handling framework? A lot of this depends on your app's setup and how thorough/robust you expect your handling to be as it grows. 1/ Quick-And-Dirty: map a "something went wrong" page t

Re: Image Viewing

2003-12-12 Thread Jon Yeargers
Another method Ive seen is to use an applet to display the images. One advantage to this is you can display any sort of graphic that you have the code to work with. You also get around the issue of having a displayed graphic end up in the cache for the user. Disadvantage.. well... its an applet..

RE: Need help with connectors

2003-12-12 Thread Yansheng Lin
Just one quick question(I am just playing with this right now). Don't pay me too much attention if the answer is RTFM. Shouldn't the port for jk2 connector be 8009 instead of 8010? -Original Message- From: Asif Chowdhary [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 3:56

Re: Image Viewing

2003-12-12 Thread Jon Yeargers
Errr.. right.. to a point - you can store something in the HttpSession that would indicate that a valid session was underway and to permit the tag to work. (per YS) In the end _it is_ still just a URL but there are 'other forces at work.' > How does an image get displayed in a page? > > 1. The br

Re: Tomcat 4.1.29 war unpacking problems

2003-12-12 Thread Philipp Taprogge
Hi! In tomcat 4 you have to either restart tomcat after you drop the war in it's webapps directory or manually install the webapp using the tomcat manager (the path to war file should be relative to the webapps dir, so if you drop the war there, you can just enter it's name and press install b

RE: Need help with connectors

2003-12-12 Thread Asif Chowdhary
This should solve your problem httpd.conf: just one single row like this: LoadModule jk2_module modules/mod_jk2-2.0.43.dll Then I added a worker2.properties in Apache/conf/ like this: [logger] level=DEBUG file=c:/programme/apache group/apache2/logs/jk2.log [config] file=c:/programme/apache grou

Re: cgi script not launching in Tomcat 5.0

2003-12-12 Thread Jonathan Eric Miller
I'm having the same exact problem. I think it might be a bug in Tomcat 5 as I have it working no problem in Tomcat 4. For some reason the file name has two sets of "'s. Not sure if that might have something to do with it... Jon - Original Message - From: "Li, William" <[EMAIL PROTECTED]>

Tomcat 4.1.29 war unpacking problems

2003-12-12 Thread Joe Francis
Possible newbie question, but I have not found any faqs addressing this: I just did a vanilla install of 4.1.29 on a linux box. Connecting to localhost:8080 seems to work fine and I can run the example servlets, etc. In netbeans I made a trivial servlet that just spits back some helloworld ht

RE: Need help with connectors

2003-12-12 Thread Yansheng Lin
I am assuming you downloaded apache, tomcat, and mod_jk_2.X.X.dll Try: 1) rename mod_jk_2.X.X.dll to mod_jk2.dll, and place it under $APACHE_HOME/modules/ 2) In apache httpd.conf # Using mod_jk2.dll to redirect dynamic calls to Tomcat

RE: ServletException

2003-12-12 Thread Yansheng Lin
It seems that you don't have the tomcat path configured right. From JavaDoc: HttpJspBase.java is the super class of all JSP-generated servlets. Your jsp page cannot find the right path right now. -Original Message- From: Julien Martin [mailto:[EMAIL PROTECTED] Sent: Friday, Dec

Tomcat Exception Handling =?= Web Tier Exception Handling

2003-12-12 Thread Yansheng Lin
Hi, I am having a bit of problem setting up my exception handling hierarchy. I know you can use the error-page attribute in web.xml to handle system error. But I read somewhere that one should always distance himself from system-level exception handling when it comes to web applications.

RE: JNDI comp namespace

2003-12-12 Thread Tony Colson
Hi, Thanks for the tip. Actually, this is how my server.xml was set up originally. I changed the resource name to java:comp/env/jdbc/NNT under the notion that it might create the comp namespace if it saw it in the xml file. I am beginning to wonder if the problem is related to the fact that I h

Re: Default servlet mapping not working in Tomcat 5.0.16?

2003-12-12 Thread Ben Souther
I haven't seen any documentation for this yet (but I haven't read much lately). Someone mentioned on this list a while back. Good-Luck -Ben On Friday 12 December 2003 04:02 pm, Jonathan Eric Miller wrote: > OK, yeah, I just noticed that when I removed the leading "/", it worked. Is > this docu

Re: Default servlet mapping not working in Tomcat 5.0.16?

2003-12-12 Thread Jonathan Eric Miller
OK, yeah, I just noticed that when I removed the leading "/", it worked. Is this documented somewhere? I was going by what it says in the Servlet 2.4 spec, and I didn't see that mentioned in there. Since I need to protect the resource using a security-constraint, so, I think I'm better off just us

can't get (Sybase ASE 12.5) database connection, maybe prob with tomcat config?

2003-12-12 Thread Alan Czajkowski
i'm having some trouble setting up a datasource on apache/tomcat that comes bundled with sun's solaris 9 i copied the jConnect5.5 jconn2.jar file to /usr/apache/tomcat/common/lib i pasted the new context (for connecting to the database) into the server.xml file in /var/apache/tomcat/conf the d

Re: Default servlet mapping not working in Tomcat 5.0.16?

2003-12-12 Thread Ben Souther
The welcome file list actually has to point to a servlet mapping. Here is mine. It works. 2296 2297 2298 HrpServlet 2299 /HRP 2300 2301 2302 2303 2304 HRP 2305 2306 On Friday 12 December 2003 03:35 pm, Jonathan Eric Miller

Re: Default servlet mapping not working in Tomcat 5.0.16?

2003-12-12 Thread Jonathan Eric Miller
Hmmm, I just tried it by adding the following to my web.xml file but it's still just printing out the directory listing. /servlet/myservlet I have it working with a index.jsp with a redirect, so, I guess I'll just stick with that... Thanks, Jon - Original Message - From: "Ben Souther

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread George Sexton
Since this is clearly a Sendmail issue, I recommend you redirect your question to a more appropriate forum. Quoting Ashwin Kutty <[EMAIL PROTECTED]>: > Was wondering if someone could help me out here. I am trying a product > out called DSPACE which gives the following error in catalina.out > >

Re: CSS in War file

2003-12-12 Thread Rhino
You haven't said much about your environment and you haven't included any code so it's hard to be sure what the problem is. However, I have no problems accessing a CSS in my War file in Tomcat. Here is a fragment from my servlet, which runs fine in Tomcat 4.1.24 on a Linux box: public void doGet(

AW: new JVM feature, just an idea

2003-12-12 Thread SH Solutions
Hi If this is about Environment, you actually CAN extend it to 128K. Classpaths greater than 128K are no good idea. Classpaths containing the same jars twice aren't either. If this is about Command line, you actually CAN get around this: SET CLASSPATH=. SET CLASSPATH=%CLASSPATH%;. SET CL

Re: Default servlet mapping not working in Tomcat 5.0.16?

2003-12-12 Thread Ben Souther
In version 5x you could also set a servlet to be your welcome file. On Friday 12 December 2003 01:45 pm, Shapira, Yoav wrote: > Howdy, > The / mapping is taken by default servlet in the default tomcat > configuration. If you map a servlet to /, you have to: > 1. Remove the default servlet mapp

Re: Default context for web app

2003-12-12 Thread Adam Hardy
On 12/12/2003 12:15 AM Kent Boogaart wrote: I am currently running against version 4.1.27 of Tomcat. I did not alter the name of my deploy directory. Here is my element (with env entries removed): charsetMapperClass="org.apache.catalina.util.CharsetMapper" cookies="true" crossContext="fals

Re: Tomcat 4.1.29 Clustering

2003-12-12 Thread Filip Hanik
http://cvs.apache.org/~fhanik/ - Original Message - From: "Pitre, Russell" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Thursday, December 11, 2003 1:18 PM Subject: Tomcat 4.1.29 Clustering Hello All, I think this may be a question for Filip.I am test

RE: Default servlet mapping not working in Tomcat 5.0.16?

2003-12-12 Thread Shapira, Yoav
Howdy, The / mapping is taken by default servlet in the default tomcat configuration. If you map a servlet to /, you have to: 1. Remove the default servlet mapping from conf/web.xml. 2. Make sure you handle static content (this is what the default servlet handles, among other duties). As for dir

JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread [EMAIL PROTECTED]
Hi, (B (BI am trying Tomcat 5.0.16 with mod_jk2v2.0.2, Apache 2.0.47 on Fodora (BLinux Core1. (B (BWhen I start Tomcat without -security, I have no problem. (BWhen I start Tomcat with -security and I use (Bdomain_name:8080/servlet/ListRoomsServlet, again I have no problem (B(ListRoomsServle

RE: MOD_JK2 workers2.properties socket_keepalive

2003-12-12 Thread Kip Iles
This seems to work ... [channel.socket:app01] port=8009 host=xx.xx.xx.xx socket_keepalive=1 socket_timeout=300 At least jkstatus shows that the config now Kip -Original Message- From: Kip Iles [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:14 PM To: [EMAIL PROTECTED] Subj

Need help with connectors

2003-12-12 Thread Dola Woolfe
Hi, I'm beginning to think that I need to be a system administrator to connect Apache 2.0 with Tomcat 5.0! I've already spent 2 full days trying to get it to work. I remember that for Tomcat 3.4 it took me about 5 minutes. (I can't even tell whether there is too much documentation or not enough.

RE: new JVM feature, just an idea

2003-12-12 Thread Edson Alves Pereira
That´s right, but even using a GUI IDE like JBuilder or Netbeans this problem can occours, because in a low level these tools make a command like to compile, to build a webbapp or to create a jar file. > -- > De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] > Responder:Tomcat Users L

ServletException

2003-12-12 Thread Julien Martin
Hello, I am trying to run a plain jsp application under Jonas/Tomcat. Here is the exception I get: * javax.servlet.ServletException: org/apache/jasper/runtime/HttpJspBase at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet

Re: CSS in War file

2003-12-12 Thread Duncan Smith
When I request a page which should have the styles applied, they are not. If I try to request the css file on it's own from a browser, I get the NPE (ie. www.pennymail.com/pennymail.css) -Duncan www.pennymail.com Wendy Smoak wrote: > > From: Duncan Smith [mailto:[EMAIL PROTECTED] > > > The sty

Re: /devices/pseudo/mm@0:null

2003-12-12 Thread Hollerman Geralyn M
Ralph Einfeldt wrote: Although my solaris days are long gone I would guess that this aren't 'real files' but memory mapped files. Are you shure that there are several handles on the same file, or is the same handle just reuses several times ? I agree, I think they're memory mapped files, but I

Default servlet mapping not working in Tomcat 5.0.16?

2003-12-12 Thread Jonathan Eric Miller
I'm using Tomcat 5.0.16 and I'm trying to make it so that if a user enters a path like, http://myserver/myapp it runs a default servlet for that path. According the the Servlet 2.4 spec, you can do this by mapping "/" to a servlet. However, for me, it's just printing out a directory listing of the

RE: new JVM feature, just an idea

2003-12-12 Thread Shapira, Yoav
Howdy, > And Yoav, you did say that in almost 10 years no one complains about >it, but as i know there are many people facing this issue all over internet >also. My neibour here has a windows 2000, he will make some tests with its >command line. I misunderstood your problem when I said no

RE: CSS in War file

2003-12-12 Thread Wendy Smoak
> From: Duncan Smith [mailto:[EMAIL PROTECTED] > The stylesheet is added to the war file in the same location > as before, Where in the .war file is the stylesheet? > but if I try to request the css file on it's own I get a > java.lang.NullPointerException error. How are you requesting the CS

Re: jsvc and security - solved

2003-12-12 Thread Maxime Colas des Francs
think i've solved the problem I add a '=' sign after the property -Djava.security.manager= \ for "bypass" jsvc command line verification After for Tomcat 4.1.29, i had to add permissions for commons-daemon in my catalina.policy (take in tomcat 5 policy file) // These permissions apply to the

MOD_JK2 workers2.properties socket_keepalive

2003-12-12 Thread Kip Iles
How do I add socket_keepalive and connect_timeout to the workers2.properties file on the web server. All the examples discuss doing this in the workers.properties file which, to my understanding, does not apply to mod_jk2. The JK2 docs only discuss the format for adding properties to the workers2.

RE: new JVM feature, just an idea

2003-12-12 Thread Edson Alves Pereira
Because my projects really use XML-APIs and JDBC2 as well as many others, i need put them in my real class path. Ant, as a good example repeat some of course, what we have here is different applications or projects that each one use there libraries and everybody shares the same environment

CSS in War file

2003-12-12 Thread Duncan Smith
I've just started deploying a web app as a war file instead of uploading individual files. Everything works except my styles don't load. The stylesheet is added to the war file in the same location as before, but if I try to request the css file on it's own I get a java.lang.NullPointerException e

RE: How to bind to multiple IP addresses?

2003-12-12 Thread Ralph Einfeldt
IIS bind per default to all interfaces. http://support.microsoft.com:/support/kb/articles/Q238/1/31.ASP > -Original Message- > From: Ryan Golhar [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 4:02 AM > To: 'Tomcat Users List' > Subject: RE: How to bind to multiple IP addre

RE: new JVM feature, just an idea

2003-12-12 Thread Shapira, Yoav
Howdy, I see -- thanks for the example. You do realize Ant adds a lot of these jars for you automatically to the classpath, right? You don't need to add anything in ANT_HOME/lib, as that's automatically included. Furthermore, if you're using JDK 1.4 or later, you can remove a bunch of other

RE: :Re: /devices/pseudo/mm@0:null

2003-12-12 Thread Ralph Einfeldt
Although my solaris days are long gone I would guess that this aren't 'real files' but memory mapped files. Are you shure that there are several handles on the same file, or is the same handle just reuses several times ? > -Original Message- > From: Hollerman Geralyn M [mailto:[EMAIL PR

RE: new JVM feature, just an idea

2003-12-12 Thread Edson Alves Pereira
This mainly it happen with ant, here a snapshot of it: D:\home\edson>set LOCALCLASSPATH=d:\usr\local\jakarta\apache-ant-1.5.4\lib\xmlta sk.jar;d:\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar;d:\usr\local\j akar ta\apache-ant-1.5.4\lib\xercesImpl.jar;d:\usr\local\jakarta\apache-ant-1

Re: Do I need a "Custom Resource Factory" for this?

2003-12-12 Thread Mark R. Diggory
I wonder if this would work? Are ResourceParams actually the envronment configured in the JNDI ObjectFactory? java.naming.factory.initial com.sun.jndi.ldap.LdapCtxFactory ... ... -M. Mark R. Diggory wrote: I have a JNDI DirContext I use for access

: Re: /devices/pseudo/mm@0:null

2003-12-12 Thread Hollerman Geralyn M
Antonio Fiol Bonnín wrote: Not that I have used Tomcat on Solaris a lot, but I have never seen that file. A general advice is to check that you close everything you open. That's just it - I never open /devices/pseudo/[EMAIL PROTECTED]:null! Something obviously IS opening it - but how do I find

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
If I understand correctly chain.doFilter(request, wrapper); is basically managing the forwarding behavior your looking to accomplish during the decision making process (IE to execute the servlet, jsp, or return static content via the default servlet. In otherwords, if the request matches a specific

Do I need a "Custom Resource Factory" for this?

2003-12-12 Thread Mark R. Diggory
I have a JNDI DirContext I use for accessing and LDAP server within my webapplication. I'd like to configure/instatiate it from my server.xml and store it in the provided InitialContext provided to the webapp (as opposed to allowing the webapp to configure it). My question is: Do I need to writ

Re: Image Viewing

2003-12-12 Thread Ben Souther
> > If you really want to only provide content to specific users, you must > provide some sort of access control mechanism. The same mechanism should > apply to images you wish to protect. > Which was the point of this thread. ;-) On Friday 12 December 2003 11:52 am, Erik Wright wrote: > How do

RE: new JVM feature, just an idea

2003-12-12 Thread Shapira, Yoav
Howdy, It's fascinating other people in the almost decade-long history of the language haven't had this problem. Don't you find that curious? ;) Can you post one such classpath example that's giving you problems? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Eds

Re: new JVM feature, just an idea

2003-12-12 Thread Ben Souther
I used to get around this by having seperate batch scripts that set my classpath for each project I was working on. On Friday 12 December 2003 01:03 pm, Edson Alves Pereira wrote: > Exactly, that´s it! Even using environment variable in a MSDOS shell > you can reach the line limit. > > >

jsvc and security

2003-12-12 Thread Maxime Colas des Francs
Hello, I attempt to use jsvc from commons-daemon project to launch my tomcat instance. How can I specify the '-security' option (used with catalina.sh)? If I write some system properties (like in catalina.sh): $CATALINA_HOME/bin/jsvc [...] -Djava.security.manager \ -Djava.security.pol

RE: new JVM feature, just an idea

2003-12-12 Thread Edson Alves Pereira
Exactly, that´s it! Even using environment variable in a MSDOS shell you can reach the line limit. > -- > De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] > Responder:Tomcat Users List > Enviada: sexta-feira, 12 de dezembro de 2003 13:57 > Para: Tomcat Users List > Assun

RE: new JVM feature, just an idea

2003-12-12 Thread Shapira, Yoav
Howdy, So you really have a classpath environment variable that's bigger than 128KB? (If that's really the limit, as you say in your original message). Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] >Sent: Friday, Decem

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
If I understand correctly chain.doFilter(request, wrapper); is basically managing the forwarding behavior your looking to accomplish during the decision making process (IE to execute the servlet, jsp, or return static content via the default servlet. In otherwords, if the request matches a spec

RE: new JVM feature, just an idea

2003-12-12 Thread Edson Alves Pereira
The point here is that my classpath is very big and even using environment variables winnt complain about it. > -- > De: Shapira, Yoav[SMTP:[EMAIL PROTECTED] > Responder:Tomcat Users List > Enviada: sexta-feira, 12 de dezembro de 2003 10:47 > Para: Tomcat Users L

Re: /devices/pseudo/mm@0:null

2003-12-12 Thread Antonio Fiol Bonnín
Hello, Not that I have used Tomcat on Solaris a lot, but I have never seen that file. A general advice is to check that you close everything you open. Antonio Fiol Hollerman Geralyn M wrote: While using Tomcat, I have often encountered a problem (a java.net.SocketException) with "Too many op

Re: Image Viewing

2003-12-12 Thread Erik Wright
How does an image get displayed in a page? 1. The browser receives an HTML page with an IMG tag in it. The IMG tag contains a src attr (an HTTP URL). 2. The browser makes another request, for the URL of the image. 3. The server returns the image, which is displayed. Clearly, if you want an image

Re: Image Viewing

2003-12-12 Thread Ben Souther
If you're using a servlet to serve up images by name, you have plenty of ways to filter non-allowed users. You can reference thier sessionID to determine who they are, you can (as you said) check the referer to make sure that the request comes from the correct page, you can map the real filenam

Re: Image Viewing

2003-12-12 Thread Christopher Schultz
All, It would be http://yourserver/yourservlet?param=paramValue"; alt="something"> This still doesn't answer the "original" interpreted question. I don't think it's possible to display an image on a page and prevent users from browsing to it directly from their browser. The only thing I can thi

RE: Image Viewing

2003-12-12 Thread Shapira, Yoav
Howdy, It would be http://yourserver/yourservlet?param=paramValue"; alt="something"> Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Jon Yeargers [mailto:[EMAIL PROTECTED] >Sent: Friday, December 12, 2003 11:30 AM >To: [EMAIL PROTECTED] >Subject: Re: Image Viewing > >

Re: response.reset() and forward() ... problematic? DBCP related?

2003-12-12 Thread Anthony Presley
Thanks for your help everyone . after some number of hours of work yesterday, I managed to get everything changed over, and I'm NOT using the SingleThreadModel. I inherited part of the code, and wrote most of the rest a couple of perl scripts was able to help significantly. Long and the

Re: Image Viewing

2003-12-12 Thread Jon Yeargers
So your tag would be ? If you do this do the images get cached by the browser? > It sounds like what you're asking is: > How can you allow users to view images via the app without allowing them > to > look at them directly with a browser? > > If that's what you want to do, it can be accomplishe

Question about mcastAddr for clustering

2003-12-12 Thread daniel
Does the ip address need to be a internal ip address on my network or should i just use the defaul ip address? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.550 / Virus Database: 342 - Release Date: 12/10/2003

Re: deploy-task with directory-structure

2003-12-12 Thread Remy Maucherat
Franz-Josef Herpers wrote: Hi, i used to work with the ant install task during development. Now i migrated to Tomcat 5.0.16 and from the docs and this mailing list I know, that the install task is deprecated in favour of the deploy task. So i changed my install target: But k

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Ben Souther
Hmm... Should have tested the theory before suggesting it. I knew you could use wildcards in the mappings. I assumed it was more robust Sorry. On Friday 12 December 2003 10:24 am, Mark R. Diggory wrote: > Yes, Unfortunately, I bounced off this as well, it would have behooved > the Servlet A

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
Touché. I don't know why I had not thought of filters for this... Oh, yes, now I know: My initial intention was to return the JSP file contents as if it were a .txt file, and though ServletContext.getResourceAsStream could be used, it involved having to implement the same behaviour as the default

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Tim Funk
Yup - the spec sucks with respect to combining path prefix and extension mapping. :( The ideal solution is still to put the jsps inside WEB-INF or to use apache and disallow via a deny directive. As for the default servlet, you can add a init parameter to it for debugging, if you set it to 99,

deploy-task with directory-structure

2003-12-12 Thread Franz-Josef Herpers
Hi, i used to work with the ant install task during development. Now i migrated to Tomcat 5.0.16 and from the docs and this mailing list I know, that the install task is deprecated in favour of the deploy task. So i changed my install target: But know I get the error message

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Mark R. Diggory
Yes, Unfortunately, I bounced off this as well, it would have behooved the Servlet API developers to allow URL Rewrites to be a little more powerful from a REGEXP standpoint. Look at the j2sdk1.4 api, we now have regexp's available there default. One would suspect that the Servlet API could eas

/devices/pseudo/mm@0:null

2003-12-12 Thread Hollerman Geralyn M
While using Tomcat, I have often encountered a problem (a java.net.SocketException) with "Too many open files". I understand that to combat this, I need to up the limit on file descriptors in my Solaris 8 system (ulimit command). The system went from 256 -> 1024 descriptors, but I still get the

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner
Finally I'll add the restriction on publication, but anyway it would nice to know whether there's a solution to prevent the JSP from being served (yes, retrieving an error message or just returning the JSP contents without executing the class would be alright), at least for the sake of knowing. T

Vedr.: RE: Vedr.: RE: Vedr.: service installer for TC5

2003-12-12 Thread Thomas Nybro Bolding
I have found the location but what ever I put in the Java string value Tomcat refuses to start :-( I will look at your batch script and see whether that might work out. /Thomas "Jacob Lund" <[EMAIL PROTECTED]> 12-12-03 15:40 Besvar venligst til "Tomcat Users List" Til:"'Tomca

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Ben Souther
> One thing you could try is a servlet mapping that sends all requests ending > in that directory that end with .jsp ...all requests FROM that directory that end with ".jsp". Haven't had my coffee yet.. ;-) On Friday 12 December 2003 09:36 am, Ben Souther wrote: > It sounds like Albert wan

Re: [WORKAROUND] Re: VERY weird problem with commons-logging and Tomcat5

2003-12-12 Thread Jacob Kjome
At 02:22 PM 12/12/2003 +0100, you wrote: Hi! Jacob Kjome wrote: You can also use a repository selector. BTW, do you have log4j.jar *and* commons-logging.jar (not commons-logging-api.jar) in WEB-INF/lib? Yes, I do, but I have tried several scenarios with and without either of them in my WEB-INF/

RE: Vedr.: RE: Vedr.: service installer for TC5

2003-12-12 Thread Jacob Lund
Have a look in registry at location: HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service Manager I am pretty sure that you will have to do the service installation yourself or change the one installed by tomcat! Try to put the batch program I made into a .bat file at execute it

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Ben Souther
It sounds like Albert wants certain (static) files to be viewable. He just doesn't want anyone to be able to execute JSPs from this directory. One thing you could try is a servlet mapping that sends all requests ending in that directory that end with .jsp to a servlet that sends back a message (

Vedr.: RE: Vedr.: service installer for TC5

2003-12-12 Thread Thomas Nybro Bolding
Hi Jacob, I guess not really as I simply installed Tomcat out-of-the box thus letting the Tomcat installation take care of the windows service. Afterwards I tried without succes to change to server jvm whereby I learned it used my public JRE. So far I havent been able to find any documentation o

Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Tim Funk
Ideally, files you don't want to be seen should be placed in WEB-INF. An alternative is to use a security constraint on the directory that has all of the content. This can be done in apache too via the directive. Another way is to place all those JSP's with a different extension and then add t

Re: Tomcat 5 Newbie

2003-12-12 Thread Tim Funk
Buffering is essential for speedy response time and overall system performace in a concurrent environment. Sending every byte to the client by itself is horrible for performance. A buffer minimum should be the TCP packet size. But even that is *real* small. For some pages, a smaller buffer than

RE: admin interface: jdbcrealm usage

2003-12-12 Thread Ostad, James
thank you. James -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 8:59 AM To: Tomcat Users List Subject: Re: admin interface: jdbcrealm usage Not a bug, a feature gap ;) -Tim Ostad, James wrote: > Are you saying that there is a patch for thi

Re: javax.mail.SendFailedException: Sending failed

2003-12-12 Thread Ashwin Kutty
I am testing DSPACE available at http://www.dspace.org.. Their mailing list indicates that in the same environment people have this running with no problems. Thats the reason I thought it could be something I am doing wrong in the configs. On Fri, 12 Dec 2003, Duncan Smith wrote: > OK. Are you

Re: admin interface: jdbcrealm usage

2003-12-12 Thread Tim Funk
Not a bug, a feature gap ;) -Tim Ostad, James wrote: Are you saying that there is a patch for this issue, or did I just come across a bug? James -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 2:48 AM To: [EMAIL PROTECTED] Subject: Re: admi

Re: Detecting HTTP connection state in Tomcat 4.x

2003-12-12 Thread Tim Funk
DO NOT rely on connection state. This might actually cause a DOS attack on you. Use some ID to identify the transaction - then use a cookie (or session) with a META refresh to a page which can use that ID to see how the transacation is progressing. Upon finishing, the status page can send you to

RE: admin interface: jdbcrealm usage

2003-12-12 Thread Ostad, James
Are you saying that there is a patch for this issue, or did I just come across a bug? James -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 2:48 AM To: [EMAIL PROTECTED] Subject: Re: admin interface: jdbcrealm usage Patches are always welco

Re: SQL Injection and Tomcat

2003-12-12 Thread Tim Funk
Filter bad characters only get your so far in the request is only a stop gap solution. Only using bind variables for JDBC and not using string concatenation (from input parameters) to create SQL statements is the safest path. If you need string concatentation, either use a servlet or filter (or

RE: new JVM feature, just an idea

2003-12-12 Thread Shapira, Yoav
Howdy, You can use the environment variables on windows as well. And FYI, though I'm not a big M$ fan, Windows XP and 2003 are not bad, I've been working with them a bit without stability problems. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Edson Alves Pereira

  1   2   >