RE: XLT file won't open in associated application (Excel)

2004-09-30 Thread Václavík Radek
Hi, I am asking for it as a static resource, therefore I have no way to modify the response in servlet. But if I don't get this solved, I probably have to do it through servlet... Radek -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 29,

RE: [OT] Re: log4j.properties file co-opting container logging. - Found word(s) optin in the subject

2004-09-30 Thread Pawson, David
-Original Message- From: Jacob Kjome Do you know what logger is used by default by commons-logging in Tomcat if log4j isn't present? I'm not very privy to the internals of commons-logging, but I think they have some sort of simple logger which is

RE : Synchronization in cluster

2004-09-30 Thread LERBSCHER Jean-Pierre
Hi, What are your needs? Why distributed singleton or distributed locking are so important ? Perhaps you can use Database to implement locking functionality and Jgroups library to replicate state (or distributed singleton) across members of a group (see www.jgroups.org). -Message

RE : User authentication in multi repositories

2004-09-30 Thread LERBSCHER Jean-Pierre
Hi, Yes, it's typically the object of the JAAS API. You can configure the JAASRealm and develop your login modules to access multiple LDAP services. You have to think at the rules to use to authenticate sub-group of users in corporate domain and others in other repository. -Message

Re: How can I deploy 2 tomcat and work on both of them at the same ti me?

2004-09-30 Thread Alex
Ensure that in $CATALINA_HOME$/conf/server.xml that you have different ports declared for each instance. there are four in total i do believe. On Wed, 29 Sep 2004, Bachler, Elisabeth (Elisabeth) wrote: Date: Wed, 29 Sep 2004 09:49:31 +0200 From: Bachler, Elisabeth (Elisabeth) [EMAIL

RE: Tomcat 5/Apache 2/JK2- production quality?

2004-09-30 Thread Alex
Inititally I would have agreed. However, after lots of reading, monkeying around, and working out everything, I can now say that we have implemented successfully the jk2 adapter with both iis5 and apache2 withiout issue. for it to work properly, i found you needed to have virtual-hosts in tomcat

RE: WAR file deployment snag - any suggestions?

2004-09-30 Thread Chris Ward
Thanks very much for this. There are some very good points in here that have got me thinking. At present I have only one Tomcat running and a small number of users (it's an intranet) but the complexity and resource requirements of the application set is growing. I don't have any experience of

Re: Norton AntiVirus and False Positives In Tomcat

2004-09-30 Thread Joel
Sounds like NAV may have returned some false positives. The only virus-like content I would expect inside a plain HTML doc would be rogue JavaScript. Indeed. I looked at the HTML page myself - it's unaltered, and there's nothing rogue in there that I can see. Links with strange

Unable to compile class for JSP

2004-09-30 Thread A Leg
Hi I had some pb my my projects jsps. I am obliged to precompile them. I tried to get the same problem with a small appli. I write a very simple jsp : html body %java.util.Date d = new java.util.Date();% Todays date is %= d.getDate()% hello! /body /html When I start tomcat everythings seems ok,

MemoryRealm in a Context

2004-09-30 Thread Andy Hutchinson
Setup is Tomcat 5.0.28, J2SE 1.4.2, Redhat 9. I've been using a MemoryRealm in a Host container and everything works fine. It is ideal for a computer to computer link over HTTPS to authenticate access. I've now decided that I want a different setup on a per Context basis. The docs for the

Re: WAR file deployment snag - any suggestions?

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 09:22:42AM +0100, Chris Ward wrote: : I imagine spreading the apps over multiple Tomcats/machines would allow : me : to do more in-memory caching. Feels like this is a move toward Web : Services : - I don't know much about them. This seems to have grown into a general app

Re: Unable to compile class for JSP

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 11:36:40AM +0300, A Leg wrote: : org.apache.jasper.JasperException: Unable to compile class for JSP : java.lang.SecurityException: class org.apache.tools.ant.taskdefs.optional.IContract's signer information does not match signer information of other classes in the same

Re: Unable to compile class for JSP

2004-09-30 Thread A Leg
Hi Probably because JWSDP 1.4 force me to use ant of them distrib which is 1.5xx and some others elements I use need 1.6.1 or more. So I have both releases install 1.6.1is in my classpath and jwsdp ant is set in the setenv.sh script. This must generate a conflict. I probably have to swictch to

A new problem!

2004-09-30 Thread hoseinjany
Dear all Readers I have a new problem as follows: I started Tomcat with JSDK and it is working great on the localhost as: http://localhost:8080 http://localhost:8080/ But when I want to connect to it from other computers I cannot and receive this error: The page cannot be displayed The

RE: A new problem!

2004-09-30 Thread Bedrijven.nl
use http://machinename:8080 -Oorspronkelijk bericht- Van: hoseinjany [mailto:[EMAIL PROTECTED] Verzonden: Wednesday, September 29, 2004 5:16 PM Aan: [EMAIL PROTECTED] Onderwerp: A new problem! Dear all Readers I have a new problem as follows: I started Tomcat with JSDK and it is

RE: Recursive stack trace with Tiles and Filter - any ideas?

2004-09-30 Thread Shapira, Yoav
Hi, As you know signal 11 crashes are internal to the JVM usually at a native level. A corrupt or incomplete JVM installation, or missing OS patches for your JVM version, are the two most common causes for this. Can you post the Java code for your error JSP? That'll make helping you a bit

RE: A new problem!

2004-09-30 Thread John Najarian
Could you put an entry in the etc/hosts files. -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 5:39 AM To: 'Tomcat Users List' Subject: RE: A new problem! use http://machinename:8080 -Oorspronkelijk bericht- Van: hoseinjany

Re: RE : Synchronization in cluster

2004-09-30 Thread Peter Lin
distributed locking of session data implies you need something like a distributed cache. If that is the case, maybe you should look at Coherence. distributed locking is meant to solve a specific problem, so unless you really need to synchronize distributed objects like a distributed cache, I

RE: Tomcat 4.1 Connection Pooling...

2004-09-30 Thread Shilpa Nalgonda
Thanks a lot to all who helped me with this... I replaced all new updated jars: commons-dbcp-1.1.2.jar, commons-pooling.1.2.jar and Classes12.jar, and the scalability problem (ORA-00020: maximum number of processes (200) exceeded) is gone.. -Original Message- From: Michael J. Makunas

org.apache.commons.digester.Digester error--- at tomcat startup...

2004-09-30 Thread Shilpa Nalgonda
I added some elements in web.xml on linux machine and i get this error, but i cannot see any problem with web.xml, the same web.xml works fine on windows...below is my web.xml...can someone please suggest Sep 30, 2004 9:03:31 AM org.apache.commons.digester.Digester error SEVERE: Parse Error at

RE: org.apache.commons.digester.Digester error--- at tomcat start up...

2004-09-30 Thread Phillip Qin
Move resource-ref down to the end. You have to follow the order of each element. -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: September 30, 2004 9:39 AM To: Tomcat Users List Subject: org.apache.commons.digester.Digester error--- at tomcat startup... I added

RE: org.apache.commons.digester.Digester error--- at tomcat startup...

2004-09-30 Thread Shapira, Yoav
Hi, As the error says pretty clearly, you can't put resource-ref before servlet using your DTD. So the same web.xml doesn't work on Windows or any other platform. Go validate your web.xml (using a tool like XMLSpy or one of the free online validators) to see for yourself. You can simply fix

Re: Tomcat 5.5 JRE 1.5

2004-09-30 Thread Phillip Mangwiro
Caldarale, Charles R wrote: From: Phillip Mangwiro [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.5 JRE 1.5 Can anyone send me the install doc or a link to jre1.5? Sun renamed 1.5 to 5.0 some weeks back. There's a link to the download on the right hand side of the Java home page

method level synchronization doesn't work

2004-09-30 Thread Malia Noori
Hi, I am using Tomcat 4.1 and I am accessing MS SQL Server database via JDBC. I have a JSP that calls a web bean. This web bean has a section of code that I want to synchronize, but when I synchronize the method, Tomcat doesn't actually synchronize the threads. (I tried this by having 2

RE: Using shutdown script for different port

2004-09-30 Thread Dhruva B. Reddy
Back to my original issue--I was having trouble shutting down Tomcat when the shutdown service was listening to a non-default port, but have since sorted it out. After going through the source code, I found that when processing the shutdown command, the Bootstrap system just uses the

Question from a newbie! Please pardon me!

2004-09-30 Thread Venkat Radha Venkataramanan
Hello: When I tried to compile my first servlet, using the command line, javac -classpath $CATALINA_HOME/common/lib/servlet-api.jar HelloWorld.java I get the following errors, mainly due to the fact that it's unable to find the package javax.servlet. HelloWorld.java:6: package

RE: Question from a newbie! Please pardon me!

2004-09-30 Thread John Najarian
Check your environment variables. CATALINA_HOME c:\tomcat or wherever you installed tomcat Seem you have this set properly CLASSPATH c:\j2sdk1.4.2_03;c:\tomcat\common\lib\servlet-api.jar;c:\tomcat\common\lib\j sp-api.jar;c:\tomcat\common\lib\tools.jar;. There are different ways to do this but

Tomcat 5.0.27 - Single Sign On PROBLEM

2004-09-30 Thread Marco
Hi, I configurated my server web to use load balancing. I use IIS 6 and ajp13 for this pourpose and two istance of tomcat 5.0.27 on two different machine. Load Balancing works fine but when I configureted tomcat to use SingleSignOn I had some problem. Sometimes, when I pass from an application

Re: method level synchronization doesn't work

2004-09-30 Thread Peter Lin
am I missing something, but looks like you're trying to build some kind of web cache. why not use Hibernate or something that already does caching for you instead? the only time I can see a need to sync, is if the request contains data that requires a transaction. Which in that case, you're

RE: Tomcat 5.0.27 - Single Sign On PROBLEM

2004-09-30 Thread Shapira, Yoav
Hi, As the SSO docs say, it's designed to work over a set of web applications in a *particular virtual host*. Enhancing it to work across a cluster would be nice, but it would be exactly that: an enhancement. What you're reporting isn't a bug, it's a limitation, and you're free to submit

RE: Tomcat 4/Apache 2 Connector slow down

2004-09-30 Thread Steve Kirk
Try turning off ip to name resolution, this can sometimes be very slow and seemingly affect different PCs/servers differently. I'm no expert on what might cause the slowdown in your case, but I have experienced what sound like similar problems in the past. From the default server.xml file for

Re: Hello

2004-09-30 Thread Craigmcc
Dangerous Attachment has been Removed. The file Price.cpl has been removed because of a virus. It was infected with the W32/Bagle.AZ-net virus. File quarantined as: . http://www.fortinet.com/VirusEncyclopedia/search/encyclopediaSearch.do?method=quickSearchDirectlyvirusName=W32%2FBagle.AZ-net

RE: method level synchronization doesn't work

2004-09-30 Thread Malia Noori
Actually, the data that I am modifying requires a transaction and synchronization. It increments a counter stored in the database. So, I have to do a select to get the current value, increment the counter, and then insert the new value. So if two threads are accessing it at the same time, the

Re: Tomcat 5.5 JRE 1.5

2004-09-30 Thread f-gil
Return Receipt Your Re: Tomcat 5.5 JRE 1.5 document :

context sharing problems

2004-09-30 Thread Michael Cornell
Hi, I am trying to share the same class files (and libraries) between two different web-apps one running in ROOT/ and one is admin/ Basically, I want the first one to run from the default context ie http://www.x.com/ And the second web-app to run as http://www.x.com/admin However, all of the

Re: method level synchronization doesn't work

2004-09-30 Thread Jon Wingfield
I'd be surprised if synchronization was broken. Given one assumption I think I can explain what you are seeing. Assumption: The two concurrent requests are handled by two different instances of a jsp servlet. If there are two instances then each request will be able to sucsessfully obtain the

Re: method level synchronization doesn't work

2004-09-30 Thread Peter Lin
you might want to consider using a stored procedure to make it look like a single call from tomcat. is the goal here to make sure the counter is incremented correctly? I'm guessing there's situations where the counter shouldn't be incremented? you can also use a subquery to increment the counter.

RE: Clustering and session replication

2004-09-30 Thread Ivan Vasquez
Filip, To discard any problems in application settings, we copied an entire application from production (clustered tomcat 5.0.25) to the cluster that's having problems (5.0.28). We verified context settings and load balancing. The first time the application is used after a tomcat restart, it

RE: Recursive stack trace with Tiles and Filter - any ideas?

2004-09-30 Thread Richard Mixon (qwest)
Yoav, OK, the error.jsp java files is not too big - 242 lines. Its just below. Thank you - Richard package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class error_jsp extends org.apache.jasper.runtime.HttpJspBase

AW: Recursive stack trace with Tiles and Filter - any ideas?

2004-09-30 Thread Steffen Heil
Hi Please: http://learn.to/quote -Original Message- Regards, Steffen smime.p7s Description: S/MIME cryptographic signature

Re: Synchronization in cluster

2004-09-30 Thread Igor
Hello! Thank you for answers! I will try to use JGroups We have data, that is often need to be read. And it is rarely written. It is implemented using Singleton pattern. Synchronization is used in several parts of web application. It is used mostly to access database Thank you, Igor -

NewBee needs help with deployment descriptor

2004-09-30 Thread Christian Ruediger
Hello there, I am trying to deploy a servlet, that das reply to an HTTP XML RPC request. Unfortunately the only reply i get is standard html page that provides me the .war file for download. Further comments after the descriptor. Here is the deployment descriptor: !DOCTYPE web-app PUBLIC -//Sun

Re: Synchronization in cluster

2004-09-30 Thread Filip Hanik - Dev
sounds like your system needs a little rethinking, if you have singleton access to your DB. That is why the DBs are transactional, so that you can use connection pooling. you can use JGroups, but you might run into serious performance problems, not because of JGroups, but because of the fact

Re: Clustering and session replication

2004-09-30 Thread Filip Hanik - Dev
ok, so when the context is reloaded you are saying it doesn't work. sounds like that upon a context reload the new context does not get a ClusterManager, and instead gets the StandardManager assigned. File a bug in bugzilla, and we will take care of it We never reload our contexts in production

Re: Synchronization in cluster

2004-09-30 Thread Peter Lin
I would second Filip's comment. locking tomcat in this fashion is not advised, unless you have solid experience with it. It's not as easy as one would think. peter On Thu, 30 Sep 2004 10:36:34 -0500, Filip Hanik - Dev [EMAIL PROTECTED] wrote: sounds like your system needs a little rethinking,

RE: Clustering and session replication

2004-09-30 Thread Ivan Vasquez
Filip, We will file a bug. In the meantime we will try 5.0.25 as it appears it doesn't have the problem. Thanks a lot. Ivan. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 11:39 AM To: Tomcat Users List Subject: Re: Clustering

RE: Who has got include-prelude to work?

2004-09-30 Thread Steve Kirk
More information following my earlier post. I have configured my webapp so that all JSP files have the same prelude included, but this appears to be being ignored. I say this for two reasons: 1. The prelude file is never included in any JSP. 2. If I change the filename in the include-prelude

RE: Tomcat 5.5 JRE 1.5

2004-09-30 Thread Caldarale, Charles R
From: Phillip Mangwiro [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5 JRE 1.5 Tried link java.sun.com. Got as far as the list page where it lists the JDK JVM but kept on getting Document contains no data! error on clicking download. Can you send me the actual link to the JRE or JDK

RE: Tomcat 5.5 JRE 1.5

2004-09-30 Thread Shapira, Yoav
Hi, If you hit it when it didn't work over the past 24 hours, you may have simply had bad timing, as they were updating everything from 5.0 RC2 to 5.0 FCS. And now they're experiencing a huge load because the FCS is available. But it does work, I just did it a couple of hours ago ;) Yoav

[OFF-TOPIC] Tomcat swag

2004-09-30 Thread Shapira, Yoav
Hi, For those of us who really like Tomcat (or have friends who really like Tomcat): http://www.cafepress.com/meepzor/386851. I'm not sure if the proceeds go to anything good, but I think at least some go to the ASF, which is a good thing ;) Yoav Shapira Millennium Research Informatics

Re: Clustering and session replication

2004-09-30 Thread Filip Hanik - Dev
oh, really, not a problem in 5.0.25, very interesting, please add that to the comments as the actual cluster code didn't change between those versions if my memory serves me right Filip - Original Message - From: Ivan Vasquez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]

Re: [OFF-TOPIC] Tomcat swag

2004-09-30 Thread Peter Lin
Swag, makes me think Monster garage! maybe Jesse james can team up with apache :) peter On Thu, 30 Sep 2004 12:07:27 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, For those of us who really like Tomcat (or have friends who really like Tomcat): http://www.cafepress.com/meepzor/386851.

problems with apache/tomcat

2004-09-30 Thread Simon Zeng
Hello, This has gradually become a nightmare here. So I turned to here for help. We are 24 X 7 service provider and using apache/tomcat as our application server. We have one apache and 3 tomcat in a clutering/load balancing environment. Very frequently, we saw exceptions like

RE: Clustering and session replication

2004-09-30 Thread Ivan Vasquez
Indeed, looking at the changelogs we see that clustering was not changed in those versions. That and the error messages lead me to think that it has to do with the context manager not surviving reloads, not clustering in itself. IMHO anyway... Thanks Filip. Ivan. -Original Message-

versions 2.3 and 2.4 of web.xml

2004-09-30 Thread Steve Kirk
Only just noticed this, looks like a possible bug, but maybe there's a reason behind it? Basically, the default web.xml files included within the standard webapps of 5.0.27 and 5.0.28 seem to be a mix of webapp v2.3 and v2.4 - anyone know if there is a reason for this, or is this a bug?

Re: Question from a newbie! Please pardon me!

2004-09-30 Thread Gerardo Juarez
If other applications (using other packages) compile correctly, then your classpath is correct and the problem then is that you don't have installed the servlet jar, or it is in the wrong place, which is $JAVA_HOME/jre/lib/ext/ The file I have is: servlet-2_3-fcs-classfiles.jar. I guess

Prblm with deployment descriptor for XML RPC Servlet

2004-09-30 Thread Christian Ruediger
Hello there, I am trying to deploy a servlet, that das reply to an HTTP XML RPC request. Unfortunately the only reply i get is standard html page that provides me the .war file for download. Further comments after the descriptor. Here is the deployment descriptor: !DOCTYPE web-app PUBLIC -//Sun

JK/JK2 on HPUX

2004-09-30 Thread Gabriel Esteves Marques Pinto
Does anyone have mod_jk or mod_jk2 running on an Risc - HPUX server? Thanks, Gabriel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: versions 2.3 and 2.4 of web.xml

2004-09-30 Thread Steve Kirk
Further to my note below, plus my previous posts on Who has got include-prelude to work?, I think I might have stumbled across the answers to both myself. Basically my web.xml files were based on the v2.3 files that shipped with the standard installation, and using these seems to have silently

Re: context sharing problems

2004-09-30 Thread Dov Rosenberg
Why don't you put your shared classes into $CATALINA_HOME/shared/classes. Then all of your web apps can see and use them -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 9/30/04 10:58 AM, Michael Cornell [EMAIL PROTECTED] wrote: Hi, I am trying to share the same

RE: method level synchronization doesn't work

2004-09-30 Thread Malia Noori
I thought Tomcat instantiates only 1 instance of JSP servlet to handle all requests. Isn't that the reason why it's not suggested to have instance variables? If it is the case that 2 instance of JSP servlets gets created to handle each request, what's the best object to synchronize on?

Re: JK/JK2 on HPUX

2004-09-30 Thread Wendy Smoak
From: Gabriel Esteves Marques Pinto [EMAIL PROTECTED] Does anyone have mod_jk or mod_jk2 running on an Risc - HPUX server? Yes. It's whatever comes in their depot of Apache/Tomcat/connector. I then move to the latest Tomcat 4.1 since they're always behind, and that requires editing some config

RE: context sharing problems

2004-09-30 Thread Michael Cornell
Well, I could do (and this actually works) but the problem then is that the web-apps are actually started up separately (in separate memory spaces) and the 'admin' one cannot access the singleton in the 'ROOT' one that has been initialised with some values.. I need some sort of context settings

RE: versions 2.3 and 2.4 of web.xml

2004-09-30 Thread Shapira, Yoav
Hi, We're gradually transitioning to 2.4. It's certainly not a bug, as either DTD is valid and both are supported by Tomcat. If anything, it's kind of nice to have examples of both. Yoav Shapira Millennium Research Informatics -Original Message- From: Steve Kirk [mailto:[EMAIL

RE: Prblm with deployment descriptor for XML RPC Servlet

2004-09-30 Thread Shapira, Yoav
Hi, Your web.xml is syntactically fine, although I suggest you change to the 2.3 DTD. Take a look at the top of $CATALINA_HOME/conf/web.xml to see the DTD declaration and copy it instead of your current 2.2 delcaration. For this servlet to be available at http://localhost:8080/locasugeGSM,

RE: context sharing problems

2004-09-30 Thread Shapira, Yoav
Hi, Then put the singleton in the shared repository, not in ROOT. In general, what you're trying to do is inadvisable and against the spirit of the Servlet Specification: web applications are supposed to be self-contained. Features like a shared classloader repository are not mandated by the

Re: context sharing problems

2004-09-30 Thread Dov Rosenberg
I think you should evaluate how your app is designed. If you need to communicate cross context/processes you should consider using something like JMS to give you good isolation. Today you may want to have everything on a single box, tomorrow you might want other servers. Another option to

JK2 2.0.4

2004-09-30 Thread Paul D. Hester
Has anyone had success installing the JK2 v2.0.4 connector with multiple virtual hosts, with each host having there own port? We have two users, each with their own instance of Tomcat 4.1.31 running. Each user has a unique port. I'm running Apache 2.0.50. When I set up the workers2.properties

TOMCAT, run Servlet on UNIX

2004-09-30 Thread Daxin Zuo
My computer is UNIX, Sparc. I use Tomcat version 5.0.28, path= docBase=www, Apache 2.0.43. I can run the same JSP files from both TOMCAT and Apache with DB connection pool for Oracle. But I have difficult in Servlet. I cannot run servlet from Tomcat. In webapps/www/WEB-INF/web.xml, I registered

RE: TOMCAT, run Servlet on UNIX

2004-09-30 Thread Shapira, Yoav
Hi, I can run the same JSP files from both TOMCAT and Apache with DB connection pool for Oracle. But I have difficult in Servlet. I cannot run servlet from Tomcat. You realize the JSPs are servlets, right? ;) In webapps/www/WEB-INF/web.xml, I registered the Servlet: servlet

hiding the welcome file

2004-09-30 Thread khanaz
Hello: I am interested in hiding the welcome file from my webapp.. Assume I am connecting to http://www.mysite.com http://www.mysite.com/ . Tomcat 4.1.29 and 5.0 will show that as http://www.mysite.com/index.jsp http://www.mysite.com/index.jsp . How do I go about hiding the index.jsp without

Re: Recursive stack trace with Tiles and Filter - any ideas?

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 08:37:14AM -0400, Shapira, Yoav wrote: : As you know signal 11 crashes are internal to the JVM usually at a : native level. A corrupt or incomplete JVM installation, or missing OS : patches for your JVM version, are the two most common causes for this. For the archives,

Security of Servlets

2004-09-30 Thread Rhino
We are giving some thought to putting a CGI-based Wiki, specifically OddMuse, on a website that runs on a Linux server. In 'Using Linux (Fourth Edition)', the authors warn that "The biggest cause for concern about protecting your site from external threats is CGI scripts." They go on to

Re: Synchronization in cluster

2004-09-30 Thread Igor
Hello! Thank you for advice ! I will think about restructure my application. Users of my application can upload comma separeted files, that are imported in database. This process can take 10-30 minutes, if file is large, so new Thread is started with import process and user is redirected to

Re: method level synchronization doesn't work

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 01:14:26PM -0400, Malia Noori wrote: : I thought Tomcat instantiates only 1 instance of JSP servlet to handle all : requests. Isn't that the reason why it's not suggested to have instance : variables? Close, but not quite. ;) The servlet spec permits a container to

Re: context sharing problems

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 03:58:55PM +0100, Michael Cornell wrote: : I am trying to share the same class files (and libraries) between two : different web-apps one running in ROOT/ and one is admin/ I won't repeat what everyone else has said -- because that's all great advice -- but also consider

Re: NewBee needs help with deployment descriptor

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 05:22:55PM +0200, Christian Ruediger wrote: : I am trying to deploy a servlet, that das reply to an HTTP XML RPC request. : Unfortunately the only reply i get is standard html page that provides : me the .war file for download. Further comments after the descriptor. :

RE: JK2 2.0.4

2004-09-30 Thread Dale, Matt
Yes it works fine. You should post your workers2.properties so we can see what your mappings are. Ta Matt -Original Message- From: Paul D. Hester [mailto:[EMAIL PROTECTED] Sent: 30 September 2004 19:34 To: [EMAIL PROTECTED] Subject: JK2 2.0.4 Has anyone had success installing the JK2

Re: Security of Servlets

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 02:55:45PM -0400, Rhino wrote: : We are giving some thought to putting a CGI-based Wiki, specifically OddMuse, : on a website that runs on a Linux server. In 'Using Linux (Fourth Edition)', : the authors warn that The biggest cause for concern about protecting your : site

RE: TOMCAT, run Servlet on UNIX

2004-09-30 Thread Daxin Zuo
Thank you for your help. On the browser, I see not other error, but when I start the Tomcat, I find error in the logs/catalina.out, please check the last 4 lines: Sep 30, 2004 11:46:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Sep 30, 2004

RE: Security of Servlets

2004-09-30 Thread Shapira, Yoav
Hi, I'd say it's easier to expose security flaws with CGI scripts than it is with Servlets, and vice versa it's easier to configure a secure environment for Servlets than it is for CGI scripts. That's not the same as saying Servlets are more secure than CGI. I don't think such a categorical

Re: Synchronization in cluster

2004-09-30 Thread Filip Hanik - Dev
If it happens in one JVM, everething is ok. But what will be in the case of load balancing? and that is why they pay you the big bucks...to figure this stuff out :) remember, sometimes the solution is super simple, just not thought of. Filip - Original Message - From: Igor [EMAIL

Re: JK/JK2 on HPUX

2004-09-30 Thread Gabriel Esteves Marques Pinto
Wendy, I´m trying to compile mod_jk2 on HPUX11.11i, but it doenn´t work. Can you send me your compile mod_jk2? Thanks, Gabriel Wendy Smoak wrote: From: Gabriel Esteves Marques Pinto [EMAIL PROTECTED] Does anyone have mod_jk or mod_jk2 running on an Risc - HPUX server? Yes. It's whatever

RE: JK2 2.0.4

2004-09-30 Thread Paul D. Hester
I've attached my workers.properties files. Paul -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 3:11 PM To: Tomcat Users List Subject: RE: JK2 2.0.4 Yes it works fine. You should post your workers2.properties so we can see what your

RE: Recursive stack trace with Tiles and Filter - any ideas?

2004-09-30 Thread Richard Mixon (qwest)
Steffen - thank you for the reminder. Yes, I should have snipped a lot more the second time - Richard Steffen Heil wrote: Hi Please: http://learn.to/quote -Original Message- Regards, Steffen - To

Re: Security of Servlets

2004-09-30 Thread Hassan Schroeder
Rhino wrote: /* others having responded to the first issue(s), I'll just confine myself to this one :-) */ is anyone aware of a wiki that runs as a servlet, preferably open source? You might look at JSPWiki -- http://www.jspwiki.org/ FWIW! -- Hassan Schroeder -

RE: TOMCAT, run Servlet on UNIX

2004-09-30 Thread Daxin Zuo
Yoav, Thank you. Please forward more instruction. On the browser, I see no other errors, but when I start the Tomcat, I find error messages in 1) the logs/catalina.out: Sep 30, 2004 11:46:58 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Sep 30,

RE: method level synchronization doesn't work

2004-09-30 Thread Malia Noori
Thank you for replying, but I would appreciate it if you could expand on your explanation. Here is my original post: Actually, the data that I am modifying requires a transaction and synchronization. It increments a counter stored in the database. So, I have to do a select to get the current

Re: Using XInclude in tomcat's config files

2004-09-30 Thread Shankar Unni
Shankar Unni wrote: Is it possible to configure Tomcat to be able to use XInclude to include fragments of XML into Tomcat's own configuration files (server.xml, the various webapp web.xml's, etc.)? Bump? No one's tried this yet?

Re: Using XInclude in tomcat's config files

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 02:35:35PM -0700, Shankar Unni wrote: : Is it possible to configure Tomcat to be able to use XInclude to include : fragments of XML into Tomcat's own configuration files (server.xml, the : various webapp web.xml's, etc.)? : : Bump? No one's tried this yet? I'll give it

AW: method level synchronization doesn't work

2004-09-30 Thread Steffen Heil
Hi I have to synchronize on the method ... No you do not need to synchonize on the method, you need to synchronize. You can synchronize on anything. The easiest would be to do the following: public static synchronized void amethod() { //some code that access the database and needs to be

Re: method level synchronization doesn't work

2004-09-30 Thread QM
On Thu, Sep 30, 2004 at 05:31:25PM -0400, Malia Noori wrote: : Thank you for replying, but I would appreciate it if you could expand on : your explanation. Here is my original post: : : Actually, the data that I am modifying requires a transaction and : synchronization. It increments a counter

Re: method level synchronization doesn't work

2004-09-30 Thread Frank W. Zammetti
Why not just let SQL do the update? Do the following: update my_table set counter_field = counter_field + 1 (where clause here if needed) (off the top of my head, my syntax might be off) In other words, why not let the database handle the concurrency issue? That's kind of what they're there

Re: Using XInclude in tomcat's config files

2004-09-30 Thread Robert Koberg
Shankar Unni wrote: Shankar Unni wrote: Is it possible to configure Tomcat to be able to use XInclude to include fragments of XML into Tomcat's own configuration files (server.xml, the various webapp web.xml's, etc.)? Bump? No one's tried this yet? Haven't tried it, but have you set the:

RE: JK2 2.0.4

2004-09-30 Thread Paul D. Hester
I've attached my workers.properties file below. Paul #define the shared memory file [shm:] file=/usr/local/apache-2.0.50/logs/jk2.log size=100 debug=1 # Define the communication channel [channel.socket:localhost:8409] [channel.socket:localhost:8209] #define the worker

RE: TOMCAT, run Servlet on UNIX

2004-09-30 Thread Daxin Zuo
Hi, After check some configuration, I can run Servlet on Tomcat. But I still get the errors when I start the Tomcat. In addition, when I run the same servlet from Apache: http://myComputerIP:8008/ServletTest, I get the error message on the screen: The requested URL /ServletTest was not

RE: JK2 2.0.4

2004-09-30 Thread Dale, Matt
I've replied to your offlist email, basically you have mapped everything coming in to apache to both of the tomcats so it will always take the first matching route. You need to be more specific with your uri's and define the exact webapp names if the webapps are different across the 2 tomcats.

META-INF/context.xml for expanded directories

2004-09-30 Thread Branko Peteh
Hi, It seems that having META-INF/context.xml only works for war deployments. Would it be possible to add this capability for expanded directories as well? That would make those two deployment cases similar. Thanks, Branko - To

RE: method level synchronization doesn't work

2004-09-30 Thread Mike Curwen
Ok, since it's been brought forward... how do you update and retrieve all in one query? This is for: I need a new primary key, and I need it to be thread safe. something that would run on mysql? unless you can get this magic query, it's not quite as simple as let the databse handle it, is

Re: method level synchronization doesn't work

2004-09-30 Thread Frank W. Zammetti
Well, I'm not sure it was stated that a return value was needed. The way I read the original post was basically (to paraphrase): I need to update a counter field, and the way I intend to do it is to retrieve the current value, modify it, and then write it out again as two separate queries.

  1   2   >