Starting Tomcat 5.0.25.

2004-08-19 Thread anunay.ashish
Hi, I am trying to start Tomcat 5.0.25 by running startup.bat through the command prompt. It opens for a flash of a second and then ends. Why is it so? Regards, Ashish A. Confidentiality Notice The information contained in this electronic message and any attachments to this message are

Re: Starting Tomcat 5.0.25.

2004-08-19 Thread Dennis Dai
On 8/18/2004 11:03 PM, [EMAIL PROTECTED] wrote: Hi, I am trying to start Tomcat 5.0.25 by running startup.bat through the command prompt. It opens for a flash of a second and then ends. Why is it so? Regards, Ashish A. Oh come on! QM just answered exactly the same question 2 hours ago: On

RE: Starting Tomcat 5.0.25.

2004-08-19 Thread anunay.ashish
But I am not using mod_proxy on win2k server to talk to apache. -Original Message- From: Dennis Dai [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 11:41 AM To: Tomcat Users List Subject: Re: Starting Tomcat 5.0.25. On 8/18/2004 11:03 PM, [EMAIL PROTECTED] wrote: Hi, I am

RE: Starting Tomcat 5.0.25.

2004-08-19 Thread Pradeep Chauhan
Did u checked Catilina.log if exist or Stderr.log file to get the cause -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19.08.2004 11:56 To: [EMAIL PROTECTED] Subject: RE: Starting Tomcat 5.0.25. But I am not using mod_proxy on win2k server to talk to

RE: Starting Tomcat 5.0.25.

2004-08-19 Thread anunay.ashish
I got the solution to my problem: 1. The value for the variable CATALINA_HOME should not have ; in the end. It should be only C:\jakarta-tomcat-5.0.25 2. The value for the variable JAVA_HOME should not have ; in the end. It should be only C:\j2sdk1.4.2_05 Thanks. -Original

Re: Starting Tomcat 5.0.25.

2004-08-19 Thread Dennis Dai
But the same principal applies. Specifically (From QM): 1/ check the logs 2/ change startup.bat to pause at the very end, so you can see what's going on On 8/18/2004 11:26 PM, [EMAIL PROTECTED] wrote: But I am not using mod_proxy on win2k server to talk to apache. -Original Message-

Hi...

2004-08-19 Thread Meena Alagappan
Hi All, I am new to this group. I have 1 problem related to tomcat 5 version. When ever I compile a servlet class and replace with old class I need to restart the Tomcat server to see the latest changes I made in the servlet java file. My question is how to reload the servlet class

RE: Hi...

2004-08-19 Thread Pradeep Chauhan
In Tomcat manager you have facility to reload the Complete Application. -Original Message- From: Meena Alagappan [mailto:[EMAIL PROTECTED] Sent: 19.08.2004 12:20 To: [EMAIL PROTECTED] Subject: Hi... Hi All, I am new to this group. I have 1 problem related to tomcat 5 version. When

How to redirect URL in Tomcat 4 server,xml?

2004-08-19 Thread Jürgen Schwarz
Hi, I want to redirect requests to another URL (different server) using the server.xml configuration file. Something like the Redirect directive in Apache Server except that I have only Apache Tomcat and not Apache Server. Is this possible to do in the server.xml file? Bye, Juergen GEFASOFT

RE: Odd characters inserted in response after JSPC

2004-08-19 Thread Allistair Crossley
Thanks. I copied the code in the JSP over to the homepage JSP and resaved and it works. Must have been the JSP file encoding like you say. Allistair Crossley New Media Group, QAS Ltd Telephone: 020 7819 5343 -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 18 August

RE: How to submit new Tomcat documentation updates.

2004-08-19 Thread Allistair Crossley
Got em. Thanks Tim! Allistair Crossley -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: 18 August 2004 11:47 To: Tomcat Users List Subject: Re: How to submit new Tomcat documentation updates. Look at the xdocs directories. All the docs are xml files. Then

[OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Allistair Crossley
Hey, I am putting a page caching stategy into place per user session. However, there are times when I need to refresh all the caches for all users. For example, let's say 5 users have a cached version of page 5. An external event causes page 5 to invalidate. I need an effective strategy to

Re: [OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Michiel Toneman
Bad caching strategy. Try using a singleton cache backed by a HashMap. Have an invalidation method that takes a pagekey as argument. Create a simple get(pagekey) that checks for invalidation and refills the cache entry when necessary. No need to go iterating over sessions... Just my $0.02 :-)

RE: [OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Allistair Crossley
I should have explained some more I guess. I am currently using OSCACHE at the UI layer to cached search results strings per page ID in application scope. It is very effective indeed. The search results come from a content management system. When users interact with the CMS, events are fired to

How can I make cluster nodes communicate info other than session

2004-08-19 Thread Srinivas Rao Ch
1. I have to design an application in which the cluster nodes and LB will be communicating application specific information other than session info. How can I do this? Do I need to subclass/implement ReplicationTransmitter and ReplicationListener like classes? Or is there any other way? 2. I am

Tomcat As A Service Printing Problem

2004-08-19 Thread Shakeel
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 ? Please assist if someone can. Thanks S H A K E E L A H M A D -

RE: Tomcat As A Service Printing Problem

2004-08-19 Thread Dale, Matt
Perhaps its to do with the user that tomcat runs as Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 19 August 2004 10:16 To: Tomcat Users List Subject: Tomcat As A Service Printing Problem My webapp on Tomcat was printing successfully when I used to run it

Changing file permissions from within tomcat does not work

2004-08-19 Thread Christian Riedel
Hi, I have a problem with file permissions of a file that I create from within a web-app running in tomcat: I get certain data from the user via the webapp and want to save this into a new file on the computer where tomcat runs on. Creating the file via FileOutputStream works fine. But the

RE: Tomcat As A Service Printing Problem

2004-08-19 Thread Shakeel
Thanks, also is there any posiibility that back-slashes are converted to foeward slashes. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 2:12 PM To: Tomcat Users List Subject: RE: Tomcat As A Service Printing

Re: How to redirect URL in Tomcat 4 server,xml?

2004-08-19 Thread Tim Funk
Nope. Not in server.xml -Tim Jürgen Schwarz wrote: Hi, I want to redirect requests to another URL (different server) using the server.xml configuration file. Something like the Redirect directive in Apache Server except that I have only Apache Tomcat and not Apache Server. Is this possible to

Re: [OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Tim Funk
Look at the SessionListeners to register all the sessions that match your criteria into a map. Then whatever is listening on your invalidation strategy can update the map. (Actually - the sessions in the map) -Tim Allistair Crossley wrote: Hey, I am putting a page caching stategy into place per

server port and shutdown

2004-08-19 Thread Mats Henrikson
Hi, I have searched through the archives and the docs for this, but can't find anything relevant. I am running Tomcat 4.1.30 on a multiuser system. Because there are quite a few users on the system I would like to disable the server shutdown port, as it is trivial for any of the other users to

Re: Fwd: Tomcat + ssl problems

2004-08-19 Thread Lloyd Hopper
Hi, Thanks for your reply. We are using jdk1.4.2. I am busy recompiling it as we speak to be 100% sure that it's ok. At 10:20 AM 8/18/2004 -0700, Hassan Schroeder wrote: Lloyd Hopper wrote: I am re-submitting this mail as I have had absolutely no response as of yet - is there really no one that

RE: [OFFTOPIC] Removing attribute from all HttpSessions

2004-08-19 Thread Allistair Crossley
Thanks Tim. Done that ... any reason why sessionCreated is always called twice? 2004-08-19 12:31:02,920 - DEBUG (com.qas.newmedia.intranet.iq.IQSessionListener:31) - new session: 0E3C9F21B145FF21903D8D35E540217F 2004-08-19 12:31:02,920 - DEBUG (com.qas.newmedia.intranet.iq.IQSessionListener:31)

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

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

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?

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 =

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

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

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

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]

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,

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

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

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... Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ ...just

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

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

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 :

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

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

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:

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

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 to

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.

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

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/;

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

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, if

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 =

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 getting a

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 you

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

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

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

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 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

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

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

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

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

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 here

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 ? Emil

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 :

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 reposting

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: 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

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

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?

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

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

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

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: 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

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: 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

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)

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:

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 DefaultContext 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

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 DefaultContext 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

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

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

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-userm=105232343109162w=2. Yoav Shapira Millennium Research Informatics -Original Message- From: Chang, Betty [mailto:[EMAIL PROTECTED] Sent: Thursday, August

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

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

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

2004-08-19 Thread stefan
Hello again, I found one error myself :-) jsp:include page=/viewResource jsp:param name=filename value=incl.txt/ /jsp:include 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

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 context

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: 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-userm=104914298630480w=2. Yoav Shapira Millennium Research Informatics -Original Message- From: Chang, Betty [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004

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

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

adding distributable/ 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 distributable/: session id:

RE: adding distributable/ 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:

Re: adding distributable/ garbles sesion id string

2004-08-19 Thread Nikita
i don't think this behavior is correct. for example, i deploy an app without dist. 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,

RE: adding distributable/ 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?

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

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:

RE: adding distributable/ 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 distributable/ garbles sesion

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

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

  1   2   >