[OT]CVS Tag in source code

2004-08-19 Thread Antony Paul
Hi developers, How to add @version $Revision: 1.3 $ $Date: 2004/07/23 22:57:35 $ when checking out files from A CVS repository. I am using file based CVS. We use Eclipse to checkout. This is very useful to us because we locally use another versioning system and the main site is using CVS. If th

Re: Hi...

2004-08-19 Thread Meena Alagappan
I did so.but even though my new servlet class is not loaded...when I access throu' browser... Any other idea or do I need to do something alone with this... Best Regards, Meena. ~ -- Life is a festival ... Celebrate it ... -- --

Re: RE: Windows 2000 Tomcat 5.0 as Service -- which JDK from what

2004-08-19 Thread mlist
ATTENTION: THIS IS AN AUTOMATED RESPONSE. DO NOT REPLY TO THIS MESSAGE. If you want to end your subscription, please use this link: http://www.nethugs.com/unsubscribe.shtml If you want to subscribe, please use this link: http://www.nethugs.com/whysubscribe.shtml If you need to contact a live pe

RE: Windows 2000 Tomcat 5.0 as Service -- which JDK from what path is it using?

2004-08-19 Thread Jacob Kjome
How about looking at the service.bat and seeing what it does. Set JAVA_HOME system variable. Make sure to re-install the service any time you change the value of JAVA_HOME (and you will have to open a new command prompt to get the new value or, in some cases, reboot). service.bat remove servi

Servlet Basics [WAS: Re: New idea - Enable Tomcat for SSL?]

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 07:55:32PM -0400, [EMAIL PROTECTED] wrote: : i am actually new to servlets and tomcat ofcourse. Basically the problem is : that i have a servlet that i want to run in Tomcat. If you could just please : tell me simple steps on how to run a simple hello world servlet in to

availability expectations with apache/mod_jk/tomcat? [Was Re: adding garbles sesion id string]

2004-08-19 Thread Nikita
Yoav, yes, you were correct. I looked over the servlet spec and it indeed says nothing about the format of session id's. I did initially have this question because clustering - or specifically session replication - weren't working properly for me. I think I resolved part of that problem, when i

Re: Servlet in tomcat 5.0.27

2004-08-19 Thread Bhaarat19
yes i did and then clicked on first webapp but they dont tell you where to put the servlet. I am assuming you have to make a folder (any name) and under that folder WEB-INF -> classes(folder) -> web.xml file and then under classes i can put my servlet. Moreover, they arent telling you what url

Re: Servlet in tomcat 5.0.27

2004-08-19 Thread Nikita
the documentation seemed pretty good to me. have you looked at: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html ? -nikita [EMAIL PROTECTED] wrote: Hi can some one PLEASE tell me how to run a simple servlet in tomcat 5.0.27. Please tell me the steps for where (which folder) to save the f

Servlet in tomcat 5.0.27

2004-08-19 Thread Bhaarat19
Hi can some one PLEASE tell me how to run a simple servlet in tomcat 5.0.27. Please tell me the steps for where (which folder) to save the file to and what url to use to run the servlet. I really wished there was a proper documentation for this on tomcat site. They should work on it (or maybe

Re: How to keep a single user session from having multiple threads?

2004-08-19 Thread Justin Ruthenbeck
I'll answer your specific question, but first let me say: In the situation you are describing here, the root problem is not that the same JSP is being run concurrently for a particular session -- it's that your application has been designed such that you care. Mainstream jsp/servlet applicatio

RE: [tomcat] Re: mod_jk2 and subdirectories

2004-08-19 Thread Ernesto Echeverría
I don't know exactly about the syntax of these files but the following entry worked for me in the workers2.properties file: [uri:$/jsp-examples/*] Not sure about it, but apparently the $ before the / makes the difference. Try it with jsp-examples which also has subdirectories in it. José Ernest

Re: Customizing BASIC authentication

2004-08-19 Thread Fred Toth
Hi, Thanks to you both, but my question is not so much about how to get the user name in the request. Instead, it's this: I need to use basic authentication (i.e. the browser pops up the login), but then I need to run custom code to actually check the login and password with an internal system, ins

How to keep a single user session from having multiple threads?

2004-08-19 Thread Bill Bruns
Hello folks, I have a situation in which 2 threads are being started in the same user session. Now, that in itelf is not necessarily a problem - the problem it that both threads are executing the same JSP pages. This still does not hurt anything as yet,(The JSPs use session variables so that differ

RE: problem inserting Blob into database

2004-08-19 Thread Brad McEvoy
I'm using Clob's with oracle at the mo, and i've found that the standard ResultSet interface has everything we need, but the Clob (or Blob) is the thing which needs to be cast to an oracle specific class public ResultSet rs; public Clob clob; ... rs = cmd.executeQuery(); clob = rs.getClob(1); ora

Important

2004-08-19 Thread tomcat-user
-- Virus Warning Message (on uusnwa0p) -- Found virus WORM_NETSKY.Z in file Informations.txt .exe (in Informations.zip) The unclea

[OFF-TOPIC] RE: Is there a way to set the size of ResultSet from MS SQL Serve r

2004-08-19 Thread Brad McEvoy
thats true, but now i think about it, why would anyone use the JDBC driver to connect to SQL Server? The JDBC driver is the worst one i've used and the MS native driver is probably the best. Out of curiosity I profiled the difference setFetchSize makes. Set to 100 on Oracle it improves the time t

tomcat deployment (servlet)

2004-08-19 Thread Bhaarat19
hi out there i am actually new to servlets and tomcat ofcourse.  Basically the problem is that i have a servlet that i want to run in Tomcat.  If you could just please tell me simple steps on how to run a simple hello world servlet in tomcat ..i would really appreciate it.  and also tell me w

Re: New idea - Enable Tomcat for SSL?

2004-08-19 Thread Bhaarat19
hi out there i am actually new to servlets and tomcat ofcourse. Basically the problem is that i have a servlet that i want to run in Tomcat. If you could just please tell me simple steps on how to run a simple hello world servlet in tomcat ..i would really appreciate it. and also tell me wha

Re: Tomcat and Apache with TCP TIME_WAIT state

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 06:56:08PM -0400, Kilic, Hakan wrote: : I'm seeing Tomcat and Apache show many tcp TIME_WAIT connections when : running netstat under a load test. I was wondering, is this because the web : browser client is not closing the connection properly, or is this the normal : behavi

Re: New idea - Enable Tomcat for SSL?

2004-08-19 Thread ohaya
"Shapira, Yoav" wrote: > > Hi, > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html > > And, of course, > http://jakarta.apache.org/tomcat/faq/connectors.html#integrate which > should have saved you considerable time and effort. > Yoav, I had posted a number of messages about pr

Tomcat and Apache with TCP TIME_WAIT state

2004-08-19 Thread Kilic, Hakan
Hi everyone, I'm seeing Tomcat and Apache show many tcp TIME_WAIT connections when running netstat under a load test. I was wondering, is this because the web browser client is not closing the connection properly, or is this the normal behavior of apache/tomcat under load, and the connections simp

Re: Custom Tag error

2004-08-19 Thread John Villar
k. thx for the reply. .jsp is in the app. root folder. .tld is in same folder. the tld must be on your WEB-INF folder as far as i can remember (however, i could be totally wrong and misleading you to your ultimate and excruciatingly painfull doom LOL, so, in any case RTFM) .class is also

RE: Windows 2000 Tomcat 5.0 as Service -- which JDK from what path is it using?

2004-08-19 Thread Chang, Betty
I've searched through the registry using regedit far and wide, and I have seen some of the tomcat parameters, both under SOFTWARE and under SERVICES, but none of them refer to a path to the JDK, and there is no entry that says JVM... There is a 'Java' key with Data of 'java'. Could be system PA

Re: Custom Tag error

2004-08-19 Thread Java Techie
k. thx for the reply. .jsp is in the app. root folder. .tld is in same folder. .class is also in same folder/tried in classes folder. ..not aware of .tld mappings...in web.xml ref: http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html Thanks. tld file. http://java.sun.com/j2ee/dtds/

Re: Custom Tag error

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 03:17:50PM -0700, Java Techie wrote: : Deploying my first Custom Tag Example; : .tld, .jsp, .class are in place..any other : configuration reqd? Details work wonders. Instead of saying "in place," why not show: - where's the class file(s) - where's the tld(s) - the TLD map

Custom Tag error

2004-08-19 Thread Java Techie
Hi, Deploying my first Custom Tag Example; .tld, .jsp, .class are in place..any other configuration reqd? Thanks. org.apache.jasper.JasperException: /hello.jsp(9,16) Unable to load tag handler class "Hello" for tag "sample:hello" org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErr

RE: adding garbles sesion id string

2004-08-19 Thread Filip Hanik \(lists\)
JBoss doesn't use Tomcat clustering code, they have their own, hence you will see a different session id Filip -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 2:45 PM To: Tomcat Users List Subject: RE: adding garbles sesion id string H

Returned Mail: Error During Delivery

2004-08-19 Thread Webshield . SMTP . V4 . 5 . MR1a . Mail . Service
-- Here is your List of Failed Recipients -- <[EMAIL PROTECTED]> Requested action not taken: mailbox unavailable. [SMTP Error Code 550] Here Is Your Returned Mail Received: FROM uruguay.cl BY jupiter.yaesta.cl ; Thu Aug 19 16:03:15 2004 -0400 From: [EMAIL PROTECTED] To:

Tomcat 4 rewrites server.xml when a new application are deployed throgh manager app

2004-08-19 Thread Johan Bång
Hi! Im using ant to deploy my applications on a tomcat 4 server, and my server.xml are being rewritten each time I deploy an application. Is there any way to tell the manager application to _not_ modify my server.xml? Regards Johan ---

RE: adding garbles sesion id string

2004-08-19 Thread Shapira, Yoav
Hi What you think is one matter, and servlet specification compliance is another ;) Is there something in the Servlet Spec that's being violated, or is the clustering behavior not working for you? In other words, are you seeing a bug or just unhappy that the session ID is not human-readable? Wh

Re: adding garbles sesion id string

2004-08-19 Thread Nikita
i don't think this behavior is correct. for example, i deploy an app without and get a session id. then, on the fly, i add this tag to web.xml (i originally deployed an exploded war), and if the web page is then refreshed, i get this new, garbled string. but, if i use stand-alone tomcat, i *ne

RE: adding garbles sesion id string

2004-08-19 Thread Shapira, Yoav
Hi, As long as the session ID is a valid string, it's not a bug. There's no requirement that the session ID be human-readable right? ;) Yoav Shapira Millennium Research Informatics >-Original Message- >From: Nikita [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 19, 2004 3:25 PM >To:

adding garbles sesion id string

2004-08-19 Thread Nikita
Hello, I have a very simple war app. it consists of only test.jsp, a page that prints out session id string. The problem is that if i add "distributable" to web.xml, this string becomes garbled (both in the browser and in console output): without : "session id: 5129D795478E6529E233E1909

Re: Hi...

2004-08-19 Thread Janko Harej
Delete the .class file in TOMCAT_HOME/work/Standalone/localhost/app_name/org... directory. Tomcat will behave as at run of servlet. Also you should check context definition in server.xml and set "reloadable" parameter to "true". See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context

RE: htaccess with tomcat

2004-08-19 Thread Shapira, Yoav
Hi, It's called a security-constraint in the servlet world. It's specified in the Servlet Specification, so read the background there first. Then you can easily Google for tutorials and examples like http://java.sun.com/webservices/docs/1.3/tutorial/doc/Security4.html#wp4 68340. Yoav Shapira Mi

RE: Windows 2000 Tomcat 5.0 as Service -- which JDK from what path is it using?

2004-08-19 Thread Shapira, Yoav
Hi, I guess my original STFA wasn't explicit enough. Figures. Anyways, try http://marc.theaimsgroup.com/?l=tomcat-user&m=104914298630480&w=2. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Chang, Betty [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 19, 2004

htaccess with tomcat

2004-08-19 Thread Sergio Tr.
Poco Ingles. I want to use htaccess or something similar but with tomcat 5. Somebody knows as it is with tomcat? It is to say like restringo the access to a directory with user and password in tomcat 5. Thanks list.

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
Hi, >passwords), I THOUGHT I was sharing a single copy of the resources. I >understand now that a separate copy is created for every application. >But what I don't understand is how putting every resource in every >"actual" context is better. If I have 5 applications, each of whose >"actual" co

Re: jsp:include page and Dynamic Resource does not work

2004-08-19 Thread stefan
Hello again, I found one error myself :-) The request will processed within the correct context, so I don't need an explicit call for the context. At some point of my trials and errors :-) worked my servlet mapping. Why? I don't know... But then I became a IllegalStateException when the se

Re: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
I'm sure your explanation as well as a (re) reading of the How To will allow me to correct the problem. Thanks very much! I'd like a little more explanation however about your advice on using DefaultContext. In addition to the advantage of having a single place to add, remove, and change resour

RE: Windows 2000 Tomcat 5.0 as Service -- which JDK from what path is it using?

2004-08-19 Thread Chang, Betty
Hi -- That archive discusses JVM options, but what I want to know is, how do I specify the Directory PATH of which java.exe is being used? Thanks Betty -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 11:36 AM To: Tomcat Users List Subj

RE: Windows 2000 Tomcat 5.0 as Service -- which JDK from what path is it using?

2004-08-19 Thread Shapira, Yoav
Hi, The archives have pointers to registry locations of Tomcat JVM options. For example, http://marc.theaimsgroup.com/?l=tomcat-user&m=105232343109162&w=2. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Chang, Betty [mailto:[EMAIL PROTECTED] >Sent: Thursday, Aug

JK2 and retrieving NT groups

2004-08-19 Thread Mark Castoe
Hello, we are using IIS 5.0 -> JK2 -> Tomcat 4.1.29 and our application requires that we receive the NT groups from IIS/JK2. With previous versions of JK2 this works fine. We are now using JK2 2.0.4 and it no longer sends the groups. I have found reference to changes made to improve perform

Windows 2000 Tomcat 5.0 as Service -- which JDK from what path is it using?

2004-08-19 Thread Chang, Betty
Hi -- This is driving me nuts. After I have installed Tomcat 5.0 as a Service, how do I find out what JDK it is using? And, how can I change it? I have NO JAVA_HOME set on the machine. The install-docs say that it uses the registry or JAVA_HOME. I don't see any Path to anything in the regis

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
Hi, >In both servers the Resource declarations are in the >block. All DataSources are shared by all webapps. You realize that by placing a Resource in DefaultContext you ensure that a separate copy is created for each Context, right? That means if you configure for 10 max connections and have

Re: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
In both servers the Resource declarations are in the block. All DataSources are shared by all webapps. I do not have a resource-ref declaration in either web.xml ... I'll go look that up and remedy. What is the purpose of the factory parameter, and what is an appropriate value? thx Shapira

RE: Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Shapira, Yoav
Hi, Where in server.xml is your Resource declaration? Is there a matching resource-ref in your web.xml? (It's required). You also probably want a factory parameter, as mentioned in the JNDI DataSources how-to. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Je

Binding DataSources to Contexts in Tomcat 4.06/4.1

2004-08-19 Thread Jeffrey Barnett
I have a servlet that contains the following code in its init() method: public void init(ServletConfig config) throws ServletException { super.init(config); try { Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:com

Re: mod_jk2 and subdirectories

2004-08-19 Thread Joseph Shraibman
YOu have to use LocationMatch instead because * won't match a /. I had this problem myself. Webmaster wrote: Hi all, I'm trying to upgrade a setup I was using with mod_jk to mod_jk2. This setup has 2 workers. Here it is: With mod_jk: JkMount /webapp1/*.jsp worker1 JkMount /webapp2/*.jsp worker2

RE: Tomcat As A Service Printing Problem

2004-08-19 Thread DJohnson
Just a guess, but your printer seems to be a network shared printer, not local, and the userid under which your service is running probably does not have access to that printer. If you administer services, you can see what userid the Tomcat service runs under and either 1) give that user access

Re: SSL in tomcat standalone with virtual hosts

2004-08-19 Thread RJ
At 12:01 PM 8/19/2004, Hassan Schroeder wrote: RJ wrote: OK, I've done some more searching I think you're making this harder than it needs to be... That's definitely the story of my life. For those as clueless as me, here's what I did to get it to work: edit up server.xml to define a Connector

RE: Is there a way to set the size of ResultSet from MS SQL Server

2004-08-19 Thread Daxin Zuo
Brad , thank you. It seems the trick I am looking for. -Original Message- From: Brad McEvoy [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 9:24 PM To: 'Tomcat Users List' Subject: RE: Is there a way to set the size of ResultSet from MS SQL Server something like this should

Re: Changing file permissions from within tomcat does not work

2004-08-19 Thread Christian Riedel
On 19.08.2004 17:47, John Villar wrote: And the directory's permissions are the same? (should be, but just in case) remember that new files don't necesarilly have rw-r--r-- permissions The directories permissions are drwxrwxr-x and the system wide umask is 0002 As I said: when I create a file

Re: SSL in tomcat standalone with virtual hosts

2004-08-19 Thread Hassan Schroeder
RJ wrote: OK, I've done some more searching I think you're making this harder than it needs to be... I read one post in the archives that said to create a new connector for each IP, but that doesn't work (at least using the Administration tool -- it only allows one connector on 443). So don't use t

Re: Changing file permissions from within tomcat does not work

2004-08-19 Thread Christian Riedel
On 19.08.2004 16:31, Shapira, Yoav wrote: Hola, This is typical of when apps step outside the Servlet Spec, which does not include support for apps writing files except to a temporary directory where permissions are guaranteed to be readable back by the app and no more. Tomcat supports running with

Re: Changing file permissions from within tomcat does not work

2004-08-19 Thread John Villar
And the directory's permissions are the same? (should be, but just in case) remember that new files don't necesarilly have rw-r--r-- permissions Christian Riedel escribió: On 19.08.2004 16:36, John Villar wrote: just as a gues have you sat the Sticky or the UID bit of your directory? N

RE: problem inserting Blob into database

2004-08-19 Thread Shapira, Yoav
Hi, The getDelegate call would return a ResultSet that you can cast for oracle's ResultSet impl as you have been doing in the past. You're right that QM's suggestion requires DBCP-specific code and is thus undesirable in your scenario. I saw your original message, and I wonder if it's possible f

Re: Changing file permissions from within tomcat does not work

2004-08-19 Thread Christian Riedel
On 19.08.2004 16:36, John Villar wrote: just as a gues have you sat the Sticky or the UID bit of your directory? No, I have not ... when I cd to the directory and do a "touch testfile" on the cosole the file's permissions are as expected rw-r--r-- So why should it not work from within Tomca

RE: problem inserting Blob into database

2004-08-19 Thread Carey Boldenow
I'm somewhat confused. The api doc info for this is pretty vague. I'm not really sure what this method does for me other than return me a ResultSet instance. Also, it seems as though you're suggesting I implement apache specific code here, this code is also deployed in weblogic and/or jrun. I just

RE: Log4J Twin Logging

2004-08-19 Thread Shapira, Yoav
Hi, You probably have log4j misconfigured (set additivity to false). Yoav Shapira Millennium Research Informatics >-Original Message- >From: John Villar [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 19, 2004 11:01 AM >To: Tomcat Users List >Subject: Log4J Twin Logging > >I'm reposti

Re: problem inserting Blob into database

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 09:10:58AM -0500, Carey Boldenow wrote: : I have some code that works fine in weblogic, but throws a : ClassCastException in Tomcat (v5.0.19). The code snippet below is where : it is failing : [snip] : The ResultSet instance apparently is of type : org.apache.commons.dbcp.De

RE: Webapp Directory Root and JSP Include problem.

2004-08-19 Thread Diego, Emil
>Now that i think of it there should be a way to specify that references to the >root in pages inside a Context >are referencing the root context however, i >don't know a way to do that and mi tomcat 5 does the same >?> >thing Anyone have any ideas how this may be done ? Emi

Log4J Twin Logging

2004-08-19 Thread John Villar
I'm reposting your message with the "new" Subject. when opening new threads, *PLEASE* change your subject hi, does anyone have any idea why each request to my application goes through twice each time? I am basing this on my log4j logs which show each logging entry twice for requests e.g her

Re: SSL in tomcat standalone with virtual hosts

2004-08-19 Thread RJ
OK, I've done some more searching, and one suggested strategy for trying to have several SSL certificates is to configure each as a service, and have them all listen on different ports. But if you do that, don't they each have to be listening on different ports? What I'm looking for is a way to hav

RE: New idea - Enable Tomcat for SSL?

2004-08-19 Thread Shapira, Yoav
Hi, http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html And, of course, http://jakarta.apache.org/tomcat/faq/connectors.html#integrate which should have saved you considerable time and effort. Yoav Shapira Millennium Research Informatics >-Original Message- >From: ohaya [mai

RE: Tomcat As A Service Printing Problem

2004-08-19 Thread Allistair Crossley
hi, does anyone have any idea why each request to my application goes through twice each time? I am basing this on my log4j logs which show each logging entry twice for requests e.g here is 1 click to the web app 2004-08-19 15:46:06,066 - DEBUG (iq.actions.LoadPageAction:136) - cached cache_s

New idea - Enable Tomcat for SSL?

2004-08-19 Thread ohaya
Hi, With the problems that I've posted about, trying to run Apache+Tomcat+mod_jk/jk2/proxy and not being able to retrieve the PKI client certificate information in JSPs, I'm now wondering if the best way to do this might be to just forget about Apache, and just run Tomcat by itself. I've seen som

Re: Changing file permissions from within tomcat does not work

2004-08-19 Thread John Villar
just as a gues have you sat the Sticky or the UID bit of your directory? Shapira, Yoav escribió: Hola, This is typical of when apps step outside the Servlet Spec, which does not include support for apps writing files except to a temporary directory where permissions are guaranteed to be readabl

Re: Webapp Directory Root and JSP Include problem.

2004-08-19 Thread John Villar
Now that i think of it there should be a way to specify that references to the root in pages inside a Context are referencing the root context however, i don't know a way to do that and mi tomcat 5 does the same thing Diego, Emil escribió: I have many differnet include folders,

RE: Changing file permissions from within tomcat does not work

2004-08-19 Thread Shapira, Yoav
Hola, This is typical of when apps step outside the Servlet Spec, which does not include support for apps writing files except to a temporary directory where permissions are guaranteed to be readable back by the app and no more. Tomcat supports running with a security manager, but you have to tel

RE: Webapp Directory Root and JSP Include problem.

2004-08-19 Thread Diego, Emil
I have many differnet include folders, that would would be a real pain. Plus there are other sites beign hosted as well. I'd really hate to have to edit all the pages and tell other webadmins to edit their pages as well. I was really hoping there would be a configuration change instead of co

Re: Changing file permissions from within tomcat does not work

2004-08-19 Thread Christian Riedel
On 19.08.2004 15:35, QM wrote: On Thu, Aug 19, 2004 at 11:28:16AM +0200, Christian Riedel wrote: : Creating the file via FileOutputStream works fine. But : the problem is, that the created file has the file-permissions rw--- : although the system wide umask and the user-set umask say, that ne

Re: Tomcat As A Service Printing Problem

2004-08-19 Thread John Villar
Well, you'll have to right-click on "My PC" and click "Administration" (or something like that), then go to the services node on the tree on the left panel. All the services will appear on the right panel, double click on tomcat an then assign an account with privileges to print on the printer

Re: Webapp Directory Root and JSP Include problem.

2004-08-19 Thread John Villar
I think you will have to include at least a "." (dot) before "/includes" or you should remove the first backslash. That's a simple find & replace Diego, Emil escribió: I solved my previous problem. Thanx for all the assistance. Now I am hitting another snag. When my JSP pages execute I am gett

problem inserting Blob into database

2004-08-19 Thread Carey Boldenow
Hi, I have some code that works fine in weblogic, but throws a ClassCastException in Tomcat (v5.0.19). The code snippet below is where it is failing if (rs.next()) { BLOB blob = ((OracleResultSet)rs).getBLO

RE: How can I make cluster nodes communicate info other than session

2004-08-19 Thread Filip Hanik \(lists\)
2 hours and you already crying ;) In the clustering code there is something called a "org.apache.catalina.cluster.MessageListener". this is an interface that you implement, then you register your object with the cluster. When the cluster receives a message, it will call accept() on the listener, i

RE: Tomcat As A Service Printing Problem

2004-08-19 Thread Shakeel
I am using windows 2000 Professional, and can not know what type of users are there, how can I figure out these details on win2K pro. S H A K E E L A H M A D -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:31 PM To: Tomcat Users List Su

Q: Mismatch request-URI vs. servlet-path in TC 5.0.XX

2004-08-19 Thread Morten S. Mortensen
Hi all, Can it really be, that the newer TC 5.0.25 and 5.0.27 breaks the formula - requestURI = contextPath + servletPath + pathInfo (Servlet 2.4 specification, page 38) ? My TC sets some really weird request-info like .e.g on a request upon the URL "http://localhost:8080/Oginok_Prime/";

Webapp Directory Root and JSP Include problem.

2004-08-19 Thread Diego, Emil
I solved my previous problem. Thanx for all the assistance. Now I am hitting another snag. When my JSP pages execute I am getting a Exception. org.apache.jasper.JasperException: /index.jsp(24,0) File "/includes/inc_setup_edit.jsp" not found The jsp pages are stored in /var/www/html/dev_new A

Re: FW: server port and shutdown... off topic

2004-08-19 Thread John Villar
Sometimes a technical issue requires a policy solution. =) That's completely true almost every security issue nowadays involves someone doing (or not doing) *regularly* what (s)he isn't (or is) supossed to do, due to lack of policy on that matter.

Re: FW: Tomcat 4.1.27-13 Context Configuration problems on fedora core 2 install

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 09:31:01AM -0400, Diego, Emil wrote: : How do I tell which URIs/file extensions are mapped to Tomcat ?? Please review my last e-mail, and all shall be revealed: : You should also read up on "mod_jk" or "mod_jk2" which connect Apache to Tomcat. (Check your apache config

Re: Changing file permissions from within tomcat does not work

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 11:28:16AM +0200, Christian Riedel wrote: : Creating the file via FileOutputStream works fine. But : the problem is, that the created file has the file-permissions rw--- : although the system wide umask and the user-set umask say, that new : files should be rw-r--r--.

FW: Tomcat 4.1.27-13 Context Configuration problems on fedora core 2 install

2004-08-19 Thread Diego, Emil
How do I tell which URIs/file extensions are mapped to Tomcat ?? Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 9:29 AM To: Tomcat Users List Subject: Re: Tomcat

Re: FW: server port and shutdown

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 09:12:03AM -0400, Diego, Emil wrote: : You could just install a firewall, like firestarter and then block that port : so nobody can connect to it. That, and promise pain and suffering to any of your users you catch doing this. Sometimes a technical issue requires a policy

Re: Tomcat As A Service Printing Problem

2004-08-19 Thread John Villar
What's your OS? if you're running on WNT, W2K, W2003 or WXP your account for the service probably is "LocalSystem" and that's an account that, in general terms, doesn't have too much permission on the net. Try changing your account to an Active Directory account. Shakeel escribió: Here is the a

Re: Tomcat 4.1.27-13 Context Configuration problems on fedora core 2 install

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 09:00:52AM -0400, Diego, Emil wrote: : I started up apache and tomcat. I tested out the test examples = directory : and they all run ok. For some reason I can't get the admin or = manager site : to run. The admin.xml and manager.xml files are present in = the webapps : dir

RE: Tomcat As A Service Printing Problem

2004-08-19 Thread Shakeel
Here is the actual situation. Java Printing API(javax.printing), is being used for printing , works fine when Tomcat was running without a service, but as we run tomcat as a windows service then the printing failed, logs show that network printer can not be found. This is the log trace. ERROR 20

Re: How can I make cluster nodes communicate info other than sess ion

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 05:10:37PM +0530, Srinivas Rao Ch wrote: : Can someone please answer my queriees Show a little courtesy, please -- this is a list used and maintained by volunteers, a good deal of whom reside in a time zone other than yours. If you want instant responses in the middle of th

RE: Tomcat Clusterin Multicast Multiinstances

2004-08-19 Thread Bjoern . Andersen
Thanx. To end this original thread, yes, that's the answer. When you take the Reciever-Part in Clustering... ...just give the next instance on the same machine a higher portnumber: tcpListenPort="4002", et viola, running as smooth as tomcat normally does... -- Björn Andersen www.premiere.de --

mod_jk2 and subdirectories

2004-08-19 Thread Webmaster
Hi all, I'm trying to upgrade a setup I was using with mod_jk to mod_jk2. This setup has 2 workers. Here it is: With mod_jk: JkMount /webapp1/*.jsp worker1 JkMount /webapp2/*.jsp worker2 Everything works fine if call, for instance, http://localhost/webapp1/admin/login.jsp With mod_jk2 I'm try

Re: Tomcat As A Service Printing Problem

2004-08-19 Thread QM
On Thu, Aug 19, 2004 at 02:16:25PM +0500, Shakeel wrote: : My webapp on Tomcat was printing successfully when I used to run it without : a service. But when I started Tomcat as a service then printing failed, any : reasons ? Your post is severely lacking in information, which makes it difficult to

FW: server port and shutdown

2004-08-19 Thread Diego, Emil
You could just install a firewall, like firestarter and then block that port so nobody can connect to it. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 20

RE: server port and shutdown

2004-08-19 Thread Shapira, Yoav
Hi, There's no way to turn this off, it's a basic and essential Tomcat function. You can change the port and SHUTDOWN command itself to something your "users" wouldn't know. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Mats Henrikson [mailto:[EMAIL PROTECTED]

Tomcat unable to unpack WAR (sometimes)

2004-08-19 Thread Andrew Watters
Problem with tomcat 5 on Linux: Put WAR in webapps directory. Restart tomcat. Tomcat restarts ok but doesn't unpack WAR. No errors in catlania.out. Same WAR works ok on Windows machine. Although I'm not sure it is a Windows/Linux issue. Unpack WAR on Linux and re-jar. Then unpacks fine when tomcat

Tomcat 4.1.27-13 Context Configuration problems on fedora core 2 install

2004-08-19 Thread Diego, Emil
I just recently installed fedora core 2 on my linux server and I am = trying to get my JSP site setup. It looks like tomcat and apache were already configured to run together = out of the box, but I am having a problem=20 Creating a new context to run my jsp site in. =20 I started up apache and

Tomcat Not Responding

2004-08-19 Thread Shakeel
Hi all. I started tomcat as a service using following settings. set CATALINA_HOME=C:\Tomcat4.1 set JAVA_HOME=C:\j2sdk1.4.2_04 %CATALINA_HOME%\bin\tomcat.exe -install tc2 %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.awt.headless=true -Djava.endorsed. dirs=%CATALINA_HOME%\common\endorsed -Djava.class.

Re: Is there a way to set the size of ResultSet from MS SQL Serve r

2004-08-19 Thread John Villar
However, that would work only if the driver you're using uses the FetchSize as a hint for caching records. In JDBC caching is primarily the responsability of the Driver. Brad McEvoy escribió: something like this should do the trick ... PreparedStatement pstmt = con.prepareStatement(sql,ResultSet

Re: [OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Tim Funk
If its in web.xml twice - it would be called twice. sessionDestroyed is called when the container kills the session. Which is done during session timeout or session.invalidate() -Tim Allistair Crossley wrote: Thanks Tim. Done that ... any reason why sessionCreated is always called twice? 2004-08-

RE: How can I make cluster nodes communicate info other than sess ion

2004-08-19 Thread Srinivas Rao Ch
Can someone please answer my queriees Regards, Srinivas -Original Message- From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 2:28 PM To: Tomcat Users List Subject: How can I make cluster nodes communicate info other than session 1. I have to design an appli

Information

2004-08-19 Thread mmanders
-- Virus Warning Message (on uusnwa0p) -- Found virus WORM_NETSKY.Z in file Details.txt .exe (in Details.zip) The uncleanable file

  1   2   >