RE: UTF-8 Problem with Tomcat 5.0.27 and POST

2005-05-12 Thread Arup Vidyerthy
Steve,

We have a similar requirement in that everything stored in the DB has to
UTF-8. Well, to address this we have written an UTF-8 Filter which
implements the Filter interface. All you need to do there is set the
character encoding to UTF8. The class looks like this...

public class UTF8Filter implements Filter {

/**
 * default constructor 
 */
public UTF8Filter() {
super();
}

/* (non-Javadoc)
 * @see javax.servlet.Filter#init(javax.servlet.FilterConfig)
 */
public void init(FilterConfig arg0) throws ServletException {
// this doesn't need to do anything
//
}

/* (non-Javadoc)
 * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, javax.servlet.FilterChain)
 */
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain)
throws IOException, ServletException {

// set the encoding to UTF-8 on the request
//
req.setCharacterEncoding(IProcessor.UTF_8_ENCODING);

// pass the filter along the chain
//
chain.doFilter(req, res);
}

/* (non-Javadoc)
 * @see javax.servlet.Filter#destroy()
 */
public void destroy() {
// this doesn't need to do anything
//
}
}

In your web.xml define this filter and make sure all your request go through
this filter. 

   filter
  filter-nameUTF8Filter/filter-name
 
filter-classuk.co.limehouse.publisher.struts.UTF8Filter/filter-class
   /filter

   filter-mapping
  filter-nameUTF8Filter/filter-name
  url-pattern*.do/url-pattern
   /filter-mapping
 

Hope this helps...

Arup

-Original Message-
From: Steve Bosman [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 08:31
To: Tomcat Users List
Subject: Re: UTF-8 Problem with Tomcat 5.0.27 and POST

On 5/10/05, Bernhard v. Fromberg [EMAIL PROTECTED] wrote:
 Hi all,
 
 I desperatly try to POST UTF-8 data to an application using struts.
 GET method works perfectly fine, but post does not.
 I am using CharacterEncodingFilter
 All pages have Content-Type header
 
 java1.5.0 update 2
 Tomcat 5.0.27
 various Un*x systems.
 
I think this might be a similar question to one I asked recently and the
following helped me

-- Forwarded message --
From: Mark Thomas [EMAIL PROTECTED]
Date: Apr 6, 2005 4:14 PM
Subject: Re: URL encoding/decoding of UTF-8 characters
- Hide quoted text -
To: Tomcat Users List tomcat-user@jakarta.apache.org

It is a lack of agreed standard problem. You can force Tomcat to use
UTF-8 encoding by setting the URIEncoding parameter on the connector.
There are some other parameters that you can set as well. See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
-- End Forwarded message --

Using link in this mail from the tomcat user maiIing list I have changed my
connector settings to:
   Connector port=8080
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false redirectPort=8443 acceptCount=100
  debug=0 connectionTimeout=2
  disableUploadTimeout=true URIEncoding=UTF-8 /
   Connector port=8443
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 debug=0 scheme=https secure=true
  clientAuth=false sslProtocol=TLS URIEncoding=UTF-8 /
That is I have added URIEncoding=UTF-8 and characters are now decoded
correctly.

Steve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: ClassLoading in webapps

2005-05-12 Thread Arup Vidyerthy
Yes, all you need to do is get the Tomcat System class loader to load it.

If you are on Windows put these extra jar files as class path entries inside
the setclasspath.bat file. On Linux either setclasspath.sh or catalina.sh

Hope this helps...

Arup 

-Original Message-
From: Narayan, Satya [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 12:33
To: tomcat-user@jakarta.apache.org
Subject: ClassLoading in webapps

Hi all,
   Is it possible to load few jars from an external directory
outside tomcat. The problem is I donot want this to be inside WEB-inf/lib of
the web application. 
Is it possible in any way ?
Kindly advise.

Thanks and Regards,
Satya



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: .asp and tomcat 5.5.9

2005-05-12 Thread Arup Vidyerthy
Why would anybody want that? You should be writing your application in Java
:-D

Sorry couldn't help. And no, I do not know if Tomcat can support .asp!

Arup



-Original Message-
From: Trung Nguyen [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 14:36
To: tomcat-user@jakarta.apache.org
Subject: .asp and tomcat 5.5.9

Hello,

Is there a way to configure tomcat 5.5.9 to support .asp extension?  

Thanks,
Trung


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Arup Vidyerthy
I am not sure if this can be done... I guess you could build framework where
the user's  session id and ip is logged (unless they logout) and then when
the user comes back you could use the old session. I have never tried this
but this personally but I don’t see why it should not work. 

Arup
-Original Message-
From: Millies, Sebastian [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 15:57
To: tomcat-user@jakarta.apache.org
Subject: Can a client recapture a session in Tomcat 4.1


Can a client recapture his Tomcat session after he has accidentally closed
the browser, provided that the session object still exists on the server?

Would this be a browser-specific thing? After all, I guess I'd need to tell
the browser to persist the session cookie or some such thing. Or would it
work browser-independently using URL-rewriting?

If there is such a mechanism, does it pose any security concerns (e. g.
through Tomcat reusing a session-id for a totally different session?)

We're on Tomcat 4.1. Would the answer be any different for Tomcat 5.0?

Thanks for any enlightenment or additional pointers-. -- Sebastian

--
Sebastian Millies, IDS Scheer AG
Postfach 10 15 34, 66015 Saarbrücken
Zi D1.16, [EMAIL PROTECTED] fon +49-681-210-3221, fax
+49-681-210-1311

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Can a client recapture a session in Tomcat 4.1

2005-05-12 Thread Arup Vidyerthy
I agree, actually once I posted it I thought the same thing. What I
suggested is not particularly useful but I have seen it done :-(

I guess, in the end this whole session persistence is just a bad idea.

Arup

-Original Message-
From: Tim Diggins [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 16:21
To: Tomcat Users List
Subject: Re: Can a client recapture a session in Tomcat 4.1

Using IP sounds a bit scary as a lookup - think of all the users with
equivalent IP addresses (because of NATing routers/firewalls, etc.). 
Plus it would be a strikes me it would be a nightmare to test...

But, if instead you wanted to have a session that wasn't linked to tomcat's
notion of a session, you could (maybe) build a separate Session management
that was stored in a regular (non-session) cookie -- it would
  then persist across sessions in the same browser...

Tim

Arup Vidyerthy wrote:
 I am not sure if this can be done... I guess you could build framework 
 where the user's  session id and ip is logged (unless they logout) and 
 then when the user comes back you could use the old session. I have 
 never tried this but this personally but I don’t see why it should not
work.
 
 Arup
 -Original Message-
 From: Millies, Sebastian [mailto:[EMAIL PROTECTED]
 Sent: 12 May 2005 15:57
 To: tomcat-user@jakarta.apache.org
 Subject: Can a client recapture a session in Tomcat 4.1
 
 
 Can a client recapture his Tomcat session after he has accidentally 
 closed the browser, provided that the session object still exists on the
server?
 
 Would this be a browser-specific thing? After all, I guess I'd need to 
 tell the browser to persist the session cookie or some such thing. Or 
 would it work browser-independently using URL-rewriting?
 
 If there is such a mechanism, does it pose any security concerns (e. g.
 through Tomcat reusing a session-id for a totally different session?)
 
 We're on Tomcat 4.1. Would the answer be any different for Tomcat 5.0?
 
 Thanks for any enlightenment or additional pointers-. -- Sebastian
 
 --
 Sebastian Millies, IDS Scheer AG
 Postfach 10 15 34, 66015 Saarbrücken
 Zi D1.16, [EMAIL PROTECTED] fon +49-681-210-3221, fax
 +49-681-210-1311
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-07-20 Thread Arup Vidyerthy
Guys,

I have been experiencing an interesting problem lately with our production
servers.

We are running Tomcat 5.5.9 with 1.4.2_08 on Gentoo box. We have around 15
contexts (identical web application for 15 separate clients) inside weapps.
Our application is very XML/XSLT oriented. Our main third party hibernate,
axis, batik, struts, velocity and bunch of apache commons stuff. I have
identified the ones that can go in the shared/lib and put the rest in
WEB-INF/lib. I have attached two text files that list these two directory
listings.

Problem is every now and then we will see an OutOfMemoryError on the box
that looks similar to this:

java.lang.OutOfMemoryError
java.util.zip.ZipFile.open(Native Method)
java.util.zip.ZipFile.init(ZipFile.java:112)
java.util.jar.JarFile.init(JarFile.java:127)
java.util.jar.JarFile.init(JarFile.java:92)

org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java
:1544)

org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClas
sLoader.java:1763)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1570)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1181)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

com.mchange.v2.c3p0.impl.NewPooledConnection.handleThrowable(NewPooledConnec
tion.java:256)

com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.ja
va:52)

com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection(Defau
ltConnectionTester.java:136)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.testPooledConnection(C3P
0PooledConnectionPool.java:156)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.refurbishResourceOnCheck
out(C3P0PooledConnectionPool.java:125)

com.mchange.v2.resourcepool.BasicResourcePool.attemptRefurbishResourceOnChec
kout(BasicResourcePool.java:1065)

com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResource
Pool.java:238)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C
3P0PooledConnectionPool.java:232)

com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.
java:94)

net.sf.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0Connect
ionProvider.java:33)

net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:292)
net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3373)
net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:)

net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:67)

net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:784)
net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)

net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader
.java:138)
net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
net.sf.hibernate.loader.Loader.list(Loader.java:1054)
net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1527)
...
...

This to me indicates Tomcat is running out of memory when it tries to load
classes from a Jar. Has anybody seen this before? If anybody has, can you
please elaborate on it. Does it mean I I one too many jars. Bear in mind
that the libs in WEB-INF/lib directory will be loaded 15 times for 15
contexts. Is that where the problem could be coming from? Also, at this
point I thought I will tell you guys about my JVM parameters:

export JAVA_OPTS=-server -Xms512m -Xmx1000m -Xss256k
export CATALINA_OPTS=-XX:MaxPermSize=300m -XX:+UseDefaultStackSize
-Djava.awt.headless=true

I would be ever so greatful if anybody could shed any light or share their
experiences with me.

Kind regards...
Arup Vidyerthy
total 4240
-rw-r--r--  1 root root  478024 Jun 13 20:49 c3p0-0.9.0-pre4.jar
-rw-r--r--  1 root root 1848328 Jun 13 20:49 castor-0.9.7.jar
-rw-r--r--  1 root root   31605 Jun 13 20:49 commons-logging-1.0.3.jar
-rw-r--r--  1 root root   53232 Jun 13 20:49 ehcache-0.9.jar
-rw-r--r--  1 root root  967576 Jun 13 20:49 hibernate2.jar
-rw-r--r--  1 root root8812 Jun 13 20:49 jta.jar
-rw-r--r--  1 root root  352668 Jun 13 20:49 log4j-1.2.8.jar
-rw-r--r--  1 root root   13091 Jun 13 20:49 odmg-3.0.jar
-rw-r--r--  1 root root  361173 Jun 13 20:49 velocity-1.4.jar
-rw-r--r--  1 root root   89043 Jun 13 20:49 velocity-tools-1.1.jar
-rw-r--r--  1 root root   14242 Jun 13 20:49

RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-07-20 Thread Arup Vidyerthy
Hi Chuck,

Thanks for your reply.

In other words, may be not have 15 contexts/web app on one server. May be
10.  I guess it is hard to say. Looking at the no. of jars, do you think it
is an excessive amount? Any pointers in terms of how I should approach this
problem...?

Thanks...
/Arup

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2005 17:14
To: Tomcat Users List
Subject: RE: OutOfMemoryError 
WebappClassLoader.openJARs(WebappClassLoader.java:1544)

 From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
 Subject: FW: OutOfMemoryError 
 WebappClassLoader.openJARs(WebappClassLoader.java:1544)
 
 Problem is every now and then we will see an OutOfMemoryError on the 
 box that looks similar to this:
 
 java.lang.OutOfMemoryError
   java.util.zip.ZipFile.open(Native Method)

Unfortunately, OOME is used as a catch-all for many OS-related resource
problems.  My guess is in this case that you've exceeded the limit on file
descriptors for the process.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Internet Explorer and Content-Type

2005-07-25 Thread Arup Vidyerthy
Strange... I have identical code and it works IE and FireFox.

This is how write it out into the response stream

// set up the response header with the content type, the file name and
// the file size
//
res.setContentType(application/zip);
res.setHeader(Content-disposition, attachment; filename= +
file.getName());
res.setHeader(Content-Length, String.valueOf(file.length()));

// create a URL object for the tmp file, create the input stream from
// the URL
//
URL url = getServletContext().getResource(filename);
input = new BufferedInputStream(url.openStream());

// read from the file, write to the servlet output stream
//
byte[] buff = new byte[1024];
int bytesRead;
while (-1 != (bytesRead = input.read(buff, 0, buff.length))) {
output.write(buff, 0, bytesRead);
} 


The only difference I can see is how I use lowercase but I don't see why
that should make any difference.



-Original Message-
From: Mark [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2005 14:55
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Internet Explorer and Content-Type

I have a servlet that generates data that I want to write to the client's
browser.  This data is just ASCII text.  The problem that I am running into
is that Internet Explorer's Save As window defaults the filename to the
name of my servlet.  Firefox/Netscape will save the file as the filename
that I specify in the Content-Type HTTP header.
Does anyone know how to fix this?

Here is the code that I am currently using:

response.setContentType(text/xyz );
response.setHeader(Content-Disposition, Attachment;
filename=\blah.xyz\);

Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: setting -Xss option and its impact on servlet threads

2005-07-27 Thread Arup Vidyerthy
On Windows I believe it is 256K. Don't reduce it to 128K unless you are
absolutely sure what you are doing.

Also, sometimes when the JVM does run it trouble allocating stack correctly,
it may throw an exception (actually it may be an OutOfMemoryError) 'can't
create new native thread' It happened to us in our application when we
used the -Xss parameter to override the default stack size to 128K.

Regards...
Arup Vidyerthy


-Original Message-
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 12:03
To: Tomcat Users List
Subject: Re: setting -Xss option and its impact on servlet threads


Peddireddy Srikanth wrote:

  1) what is the default stack size for Sun JVM on windows (Win 2003 to 
be more specefic)??
  

Dont know.

  2) Will this setting affect both normal threads and the servlet 
threads created by tomcat?? or only normal threads?
  

I believe there is a 1:1 corelation between all Java application threads, be
they Servlet or normal threads.  That is to say a Servlet thread uses
exactly 1 Java thread.

  3) If I set that to, say 128K , and if some of my thread (servlet or  
normal) needed more stack space than this in any case what happens 
(obvious answer for this would be that thread execution would fail but 
I want to know it from some one who experienced it)
  

Are you able to change the stack size on a per Java Thread basis?

If the underlying JVM uses kernel level threads and stack arrangement in a
1:1 fashion (unlikely from the observations I've seen), an unmapped
page/area is usualy left at the end of the stack space if this is touched
(read or write) the application will get a terminal signal and the entire
JVM forced to exit just like it would accessing any other bit of invalid
memory.

However as JVM is a sandbox and it can know the amount of stack space a
method needs before its invoked it is completely possible for it to be able
to check/test its virtual Java stack has enough space left in the CPU
instruction stack as there does not need to be 1:1 to the Java execution
stack.  Its possible for a JVM to implement its Java code execution stack
completely within the operating system heap area.

I dont believe Java in general needs a large java execution stack as all
arrays are implemented as object allocations that come from the heap.  
So its not like the C language where you can have a few Kb byte array on a
whim, in Java it just has to store the pointers to that array as a local
variable in the java execution stack.


I would be very interested to understand how Sun's JVM application stack
works and its interactions with OS level threads,  stacks and address space
applications.

With platform level threads there is a clear trade off with thread stack
size and number of available threads, amount of available heap and number of
library / file mappings (when working with 32bit CPUs at least).  They all
squeeze each other for their bit of address space but in Java this does not
seem to be the case so much.

--
Darryl L. Miles



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Instantiating an Application Scoped Bean

2005-07-27 Thread Arup Vidyerthy
You need to do something like this:

  servlet
  servlet-nameApplicationStartup/servlet-name
  display-nameStartUp Servlet/display-name
  servlet-classa.startup.ApplicationStartup/servlet-class
  load-on-startup1/load-on-startup
   /servlet 

   servlet-mapping
  servlet-nameApplicationStartup/servlet-name
  url-pattern/startup/url-pattern
   /servlet-mapping

This tells tomcat to run that servlet when Tomcat first intialises the
context. You can put all your initialisation stuff there I guess.

Regards...
Arup Vidyerthy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 14:41
To: tomcat-user@jakarta.apache.org
Subject: Instantiating an Application Scoped Bean


Hi,

 
I need some help on the following scenario:

 
As soon as I start my tomcat server, I need to populate an
application-scoped bean which will have values from the database.
Thereafter I should be able to access the bean across all JSP pages using
the jsp:useBean ... ...scope=application/ tag.

 
It'll be great if you guys can tell me how to initialize this bean at server
startup. Any specific web.xml entry to be recorded to map to the servlet
which does the DB operation? 
 
Thanks!





Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify the sender at Wipro or [EMAIL PROTECTED]
immediately and destroy all copies of this message and any attachments.





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: TC Apache integration

2005-07-28 Thread Arup Vidyerthy
Guys, just for completeness, I thought I would stick this in here. This is
for Linux.

http://cymulacrum.net/writings/tomcat5/c875.html 

-Original Message-
From: Asif Chowdhary [mailto:[EMAIL PROTECTED] 
Sent: 28 July 2005 17:04
To: Tomcat Users List
Subject: RE: TC  Apache integration 

Hope this helps


http://www.johnturner.com/howto/winxp-howto.html

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/confighowto.html

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 28, 2005 2:46 AM
To: Tomcat Users List
Subject: RE: TC  Apache integration 


 From: Paul Wallace [mailto:[EMAIL PROTECTED]
 Subject: RE: TC  Apache integration
 
 So, can someone point me towards Tomcat (5.5) and Apache integration 
 documentation

If you go to the main 5.5 doc page
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html
you'll see a link to JK 1.2 Documentation in the left column under
Reference.  You probably also want to look at Apache Tomcat Configuration.
And, of course, Google and the archives for this mailing list are your
friends.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: suppress directory listing

2005-08-04 Thread Arup Vidyerthy
In your TOMCAT_HOME/conf/web.xml there is some stuff that looks like this:


servlet
servlet-namedefault/servlet-name
 
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

Notice the listing is switched off. By default it's turned on.

 

-Original Message-
From: Paul Singleton [mailto:[EMAIL PROTECTED] 
Sent: 04 August 2005 17:00
To: Tomcat Users List
Subject: suppress directory listing

My JSP app has a /images folder and Tomcat 5.5.9 happily serves up a
directory listing of this: how can I suppress this?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.0/63 - Release Date: 3/Aug/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Webservice + tomcat or any websphere

2005-08-08 Thread Arup Vidyerthy
Of course. Go have a look at apache axis.

Arup 

-Original Message-
From: Pradeep Chauhan [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2005 15:36
To: tomcat-user@jakarta.apache.org
Subject: Webservice + tomcat or any websphere

Hi, 

 

Is Tomcat support webservices? If yes then how we can configure it.

 

If No then anybody knows how to configure on Websphere ?

 

Regards, 

Pradeep Chauhan 



DISCLAIMER:
This message, including any attachments contains confidential and privileged
information for the sole use of the intended recipient(s), and is protected
by law.
If you are not the intended recipient, please destroy all copies of the
original message. Any unauthorized review, use, disclosure, dissemination,
forwarding, printing or copying of this email or any action taken in
reliance on this e-mail is strictly prohibited and may be unlawful.
Indus and R Systems International Ltd reserves the right to record, monitor,
and inspect all email communications through its internal and external
networks. Your messages shall be subject to such lawful supervision as Indus
and R Systems International Ltd deems necessary in order to protect its
information, interests and reputation.
Indus and R Systems International Ltd prohibits and takes steps to prevent
its information systems from being used to view, store or forward offensive
or discriminatory material.




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Win32: tomcat is there, how to make it a service?

2005-08-08 Thread Arup Vidyerthy
In the bin directory you will find a service.bat file. That should allow you
to install it as a service. Or you alternatively you can have a look at the
Java Service Wrapper project on sourceforge
(http://sourceforge.net/projects/wrapper/). That's also pretty good.

-Original Message-
From: Robert Koberg [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2005 16:27
To: Tomcat Users List
Subject: Win32: tomcat is there, how to make it a service? 

Hi,

I have installed tomcat (by copying it) to a windows server. Is there some
way to make it a serevice so that on restarts it resstarts (and as a
particular user)?

Should tomcat be installed from the .exe for windows to get the service
installed?

thanks,
-Rob

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-08-09 Thread Arup Vidyerthy
 of the
velocity page so that the Velocity RunTime doesn't have to parse these
backslashes. Hopefully this will cure the problem. 

I just thought I will post this just in case some of you are seeing similar
problems in your app.

Good luck.

Arup
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2005 17:45
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: OutOfMemoryError 
WebappClassLoader.openJARs(WebappClassLoader.java:1544)

 From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
 Subject: RE: OutOfMemoryError 
 WebappClassLoader.openJARs(WebappClassLoader.java:1544)
 
 Any pointers in terms of how I should approach this problem...?

I'd raise the limit on the number of open file descriptors and see what
happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OutOfMemoryError WebappClassLoader.openJARs(WebappClassLoader.java:1544)

2005-08-09 Thread Arup Vidyerthy
 of the
velocity page so that the Velocity RunTime doesn't have to parse these
backslashes. Hopefully this will cure the problem. 

I just thought I will post this just in case some of you are seeing similar
problems in your app.

Good luck.

Arup
 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: 20 July 2005 17:45
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: OutOfMemoryError 
WebappClassLoader.openJARs(WebappClassLoader.java:1544)

 From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
 Subject: RE: OutOfMemoryError 
 WebappClassLoader.openJARs(WebappClassLoader.java:1544)
 
 Any pointers in terms of how I should approach this problem...?

I'd raise the limit on the number of open file descriptors and see what
happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session lifecycle (UNCLASSIFIED)

2005-08-09 Thread Arup Vidyerthy
Samara,

If your logout is a 'post' then when the user hits the back button he/she
should see a session expired message.

Arup

-Original Message-
From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] 
Sent: 09 August 2005 15:03
To: 'Tomcat Users List'
Subject: Session lifecycle (UNCLASSIFIED)

Classification:  UNCLASSIFIED
Caveats: NONE

Hey List,

I have an application that has login/logout functionality.  If a user logs
out and then presses the back button, they could go back in the application.
Anyone has an idea of what should be done ? 

Thanks
Fadi
Classification:  UNCLASSIFIED
Caveats: NONE






___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: R: JSTL Question

2005-08-09 Thread Arup Vidyerthy
If he doesn't listen - just tell him he is a buffoon! 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 09 August 2005 16:54
To: Tomcat Users List
Subject: RE: R: JSTL Question

 From: Tom Spence [mailto:[EMAIL PROTECTED]
 Subject: Re: R: JSTL Question
 
 I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me 
 to use HTTP Server.

(I assume you're referring to Apache httpd.)  Does he have a reason, or is
he just remembering the old days when Tomcat was not as efficient in serving
static pages?  You might want to show him Peter Lin's performance
measurements in an effort to keep your life simpler.

http://cvs.apache.org/~woolfel/benchmark_summary.doc
http://cvs.apache.org/~woolfel/benchmark_summary.sxw
http://cvs.apache.org/~woolfel/tc_results.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 4.1.31

2005-08-18 Thread Arup Vidyerthy
Looks like your server.xml syntax is not correct. You will need to look
through it figure it out...  

-Original Message-
From: Kuruganti, Lakshmi, ALABS [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2005 14:03
To: tomcat-user@jakarta.apache.org
Subject: tomcat 4.1.31

Hi,
 
I am new to tomcat and having problems bringing up tomcat after configuring
it to work with apache and web focus..below are the error messages...any
help is appreciated!
 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.start using /usr/jakarta-tomcat-4.1.31/conf/server.xml:
org.xml.sax.SAXParseException: The content of elements must consist of
well-formed character data or markup.
org.xml.sax.SAXParseException: The content of elements must consist of
well-formed character data or markup.
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)  at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:420)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
Thanks
-Lakshmi




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Session Tracking

2005-08-19 Thread Arup Vidyerthy
Does it not increment at all or does the increment counter gets reset and
starts all over again from 0. Basically if you want to keep the counter
incrementing everytime you access that page (or hit that that servlet) you
need to make it a static variable in your servlet/jsp.

-Original Message-
From: Raghaw Goswami [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2005 14:46
To: tomcat-user@jakarta.apache.org
Subject: Session Tracking

Hi,
I have JDK 1.5 [J2SE 5.0 update 3], Tomcat 5.5.9,Win XP SP2,  Trying a e.g.
session tracking [The Session Tracking API] using HttpSession object.

The program works[ accessCount increments] when I don't close the current
browser and open new brwoser with CTRL + N, But if i quit the browser and
then start again accessCount does not increment. 

Would appreciate any help in this regards

Thanks in Advance
R.




__
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: passing additional java parameters to tomcat

2005-08-19 Thread Arup Vidyerthy
Have look at these two links:

http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservc
fgpage=overview
http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=jsmpag
e=overview 

Thanks...
Arup

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
Sent: 19 August 2005 17:21
To: tomcat-user@jakarta.apache.org
Subject: passing additional java parameters to tomcat

Hi
if i am running tomcat as service on windows 2000 server, and if i need to
pass additional java parameters like -Dsun.io.useCanonCaches=false, what is
the best way to do, i have already these parameters in catalina.bat file,
but it seems that when tomcat runs as a service it does not use that file,
do i need to uninstall and reinstall tomcat service , or can i put it some
bat file which tomcat uses when starting

Ashish



__
Yahoo! Mail
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread Arup Vidyerthy
Hey dude, stop moaning and read the bottom of the email!! Come on - little
bit of proactive intuitiveness is all that required here!!


-Original Message-
From: Hildegard Bronkhorst XH (ZA/ESA)
[mailto:[EMAIL PROTECTED] 
Sent: 02 September 2005 07:50
To: Tomcat Users List
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

I want to be taken off this mailing list.  Can somebody PLEASE help.

 Hildegard Bronkhorst
 Senior Facilities Manager
 Kagiso Integrated Services (Pty) Ltd.
 Tel: +27 11 844 2015
 Fax: +27 11 844 2130
 Mobile: +27 83 212 4303
 mailto:[EMAIL PROTECTED]
 
 E-mail disclaimer
 
 This communication is confidential and intended solely for the
addressee(s).  Any unauthorized review; use, disclosure, or distribution is
prohibited.  If you believe this message has been sent to you in error,
please notify the sender by replying to this transmission and delete the
message without disclosing it.  Thank you.  E-mail including attachments is
susceptible to data corruption, interruption, unauthorized amendment,
tampering and viruses, and we only send and receive e-mails on the basis
that we are not liable for any such corruption, interception, amendment,
tampering or viruses or any consequences thereof.
 


-Original Message-
From: Zsolt [mailto:[EMAIL PROTECTED]
Sent: 02 September 2005 08:43
To: 'Tomcat Users List'
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28


I have found the solution:

JkOptions +FlushPackets

Zsolt

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 01, 2005 1:51 PM
To: Tomcat Users List
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

 From: Zsolt [mailto:[EMAIL PROTECTED] When I start a long 
 running servlet I want to give the user some feedback about the 
 progress, thus I just print some characters to the browser from the 
 servlet. It works fine when I go directly tomcat but when I go 
 through apache and tomcat connector I see the characters in the 
 browser only when the servlet is ready (that might take 20-30 
 minutes).
[...]
 How can I force a flush via connector?

I don't think you can.

If the process is going to be running for that length of time, would it 
make sense to delegate the processing to some other object?  Then the 
page can return immediately, with some appropriate code that requests 
the browser to refresh the page at an appropriate interval.  During a 
refresh, you could poll the request's status and return an appropriate 
message.

   - Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat war expansion fails on .cvsignore file

2005-09-06 Thread Arup Vidyerthy
I think you can't have that file there as the war files have to follow a
certain structure.

-Original Message-
From: Ben Wong [mailto:[EMAIL PROTECTED] 
Sent: 06 September 2005 15:56
To: tomcat-user@jakarta.apache.org
Subject: tomcat war expansion fails on .cvsignore file

Hi,
 
I have a .cvsignore file at the top level of my war file. does anyone has
any idea what this error message is about? This errors occurs when Tomcat is
started up, expanding the war file under webapps. Thanks!
 
Sep 6, 2005 5:09:30 AM org.apache.catalina.startup.HostConfig deployWARs
WARNING: Exception while expanding web application archive
magicbillboard.war Java HotSpot(TM) Client VM warning: Can't detect initial
thread stack location - find_vma failed Catalina.start using
conf/server.xml: java.io.FileNotFoundException:
/opt/lampp/webapps/magicbillboard/.cvsignore (No such file or directory)
java.io.FileNotFoundException: /opt/lampp/webapps/magicbillboard/.cvsignore
(No such file or directory)  at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
 at org.apache.commons.digester.Digester.startElement(Digester.java:1276)



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-06 Thread Arup Vidyerthy
Guys,

I have been watching this thread with interest.

Does this mean that all session.setAttribute() and session.getAttribute()
should always be synchronised (for instance, inside a servlet or struts
action) provided the same hashmap is accessed by say more than one
servlet/struts action?

Kind regards...
Arup Vidyerthy. 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 06 September 2005 15:54
To: Tomcat Users List
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
 
 and replace all req.getSession().setAttribute(beanName, beanValue) in 
 code with the call to this method (same for remove) and I've solved my 
 problem?

Unfortunately, you also need to change the places that retrieve attributes
from the Session, since the hash map is in a state of flux during the
setAttribute() invocations.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-08 Thread Arup Vidyerthy
Guys,

I use a synchronised HashMap like Chuck is suggesting here and I have to say
it's absolutely fine. We have an application here with hundreds of users
logging in and doing stuff concurrently and I have seen no negative impact
on performance. So basically you either do that or use something like a
Vector.

/Arup

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 08 September 2005 04:51
To: Tomcat Users List
Subject: RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

 From: Len Popp [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat/JVM hangs in session.getAttribute / HashMap.get()
 
 Inside Tomcat, references to the hashmap in question are synchronized 
 on the hashmap object itself, StandardSession.attributes (see 
 org.apache.catalina.session.StandardSession).

Except it doesn't appear to be done consistently.  The existing
synchronization in 5.5.9 protects against concurrent updates, but not
against a retrieval that happens at the same time as an update.

I don't understand the rationale behind this experiment that removed the
synchronization, since uncontended object locking has very little
performance impact in modern JVM/JIT implementations.  Removal of the synchs
would allow concurrent retrievals, but would the frequency of that warrant
the reduction in robustness?

 So if I want to *safely* call session.setAttribute or
session.getAttribute 
 I have to make sure the calls are synchronized on session.attributes.

Actually no - if you can find _all_ the events that can trigger references
or udpates to session attributes, you can synchronize on any object you
like.  The synchronize blocks internal to Tomcat then become redundant, but
they cause no harm.

Another option (as suggested by the HashMap javadoc) is to modify
StandardSession to use a HashMap wrappered by Collections.synchronizedMap().
No idea what kind of performance impact that would have, but at least it
would limit the changes needed to just one place in one file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Resizing JPEG Images

2005-09-20 Thread Arup Vidyerthy
Hi,

You have quite a few options. There are lots third party libs out there that
can do this for you. Last couple of projects I have used JAI and
ImageMagick/JMagick to do this. 

Look them up.

Hope this helps.

Arup

-Original Message-
From: Justin Jaynes [mailto:[EMAIL PROTECTED] 
Sent: 20 September 2005 04:29
To: tomcat-user@jakarta.apache.org
Subject: Resizing JPEG Images

I am accepting JPEG uploads on a website I developed in JSP and  Java Beans.
It all runs on Tomcat.

I once knew of a Java Bean that would accept a JPEG and scale and resize the
image and save it.  I need my web-app to resize the images as it accpets
them.

That was years ago.  I can't find it any longer.  Does anyone know how or
where I should start?  If writing my own bean would be easy using some part
of the Enterprise Java SDK, please point me in the right direction and I'll
do the work.

I am using the lates version of the JDK.

Thanks,

Justin



__
Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Starting options

2005-09-20 Thread Arup Vidyerthy
Sorry for being nosy but can I ask you exactly why do you want these
directories in different palces so that I can understand your problem a
little more? 

-Original Message-
From: Krzysztof Graczyk [mailto:[EMAIL PROTECTED] 
Sent: 20 September 2005 15:44
To: Tomcat Users List
Subject: Re: Starting options

Tim Funk wrote:

 See catalina.sh for options you can set on startup.

 CATALINA_TMPDIR - should allow you to set your temp directory.


Thanks for reply, but this doesn't solve the problem. Work directory is
still written in $CATALINA_BASE, also log files are written in /tmp. I would
like to customize it.

Additional question is that I want to remove directory $CATALINA_BASE/conf
and place it somewhere else. Is it possible to tell tomcat where removed
conf directory is ?

--
BR
Krzysiek


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Starting options

2005-09-21 Thread Arup Vidyerthy
May be you should ask your IT guy to give you enough permission so that you
don't have to mess with all these things. It just sounds it's an too much
hard work to do what you want to do.  

-Original Message-
From: Krzysztof Graczyk [mailto:[EMAIL PROTECTED] 
Sent: 21 September 2005 07:53
To: Tomcat Users List
Subject: Re: Starting options

Tim Funk wrote:

 I'm surprised the CATALINA_TMPDIR trick is not working. As for 
 changing (server.xml and ROOT.xml)  - I think you are stuck with those 
 in the situation you are describing.

Thanks for help. Maybe there is a way to change it tomcat sources ?


 -Tim

 Krzysztof Graczyk wrote:

 Arup Vidyerthy wrote:

 Sorry for being nosy but can I ask you exactly why do you want these 
 directories in different palces so that I can understand your 
 problem a little more?

 Yea, I have to change configuration scripts (server.xml and 
 ROOT.xml), from external application, but it must be placed in 
 somewhere where I have permission to change those files. In 
 CATALINA_HOME and CATALINA_BASE I dont have privillages to write. I 
 have to change this file because I want to set log dir paths and 
 working paths to another destination.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



--
BR
Krzysiek


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat would not start...

2005-09-21 Thread Arup Vidyerthy
Actually that's how it works. You have to send encrypted messages to it over
an encrypted network using 2.6987Ghz frequency. Only then does it run.
Surprised its not in the manual.

-Original Message-
From: Lenandlar Singh [mailto:[EMAIL PROTECTED] 
Sent: 21 September 2005 16:19
To: Tomcat Users List
Subject: Tomcat would not start...

Hi All,

I've just installed tomcat 5.5 on my windows XP machine with jdk 1.5.0_04.
It just would not start when i do http://127.0.0.1:8080/

Help1





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Arup Vidyerthy
Haven't really thought it through as I just woke up :-) 

However, I don't see why couldn't write a filter that filters all request.
It checks the DB connection and if it isn't there it just simply forwards
the user to an appropriate page.

As to making the whole web app unavailable - I am not sure dude.

Arup 

-Original Message-
From: Mike Miller [mailto:[EMAIL PROTECTED] 
Sent: 26 September 2005 19:18
To: tomcat-user@jakarta.apache.org
Subject: Options to prevent web app from being available if DB not
available?

Hi, 

I am looking for options to prevent my web application from being available
if our database is not available. I've used context listeners in the past,
but since you can return a bad return code they don't like the cleanest
approach.  

 

I have tried registering a context listener and then throwing a
RuntimeException if the database is not available but that seems like a
kludge.

Any other options?

 

Thanks in advance,

Mike




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
Look up allowLinking = true in google.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 28 September 2005 10:42
To: tomcat-user
Subject: pointing to a folder outside tomcat webapps

I'd like pointing a foder outside  webapps tomcat folder.
I know that with
Context path=/myPath  docBase=c://myFolder reloadable=true/ in
server.xml i can do it.
I'd like to use that tag in META-INF/context.xmlwithout using
server.xml.
But It allows just one context tag on context.xml.
So any idea?
Regards


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
You can just place the a empty context xml in your $tomcat_home/conf
directory. That's what we do and it works across all contexts... 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 28 September 2005 10:55
To: tomcat-user
Subject: RE: pointing to a folder outside tomcat webapps

I kwnow that.
I want to use the file META-INF/context.xml inside the application for
pointing to another resource.
I do not want use server.xml!

-- Initial Header ---

From  : Arup Vidyerthy [EMAIL PROTECTED]
To  : Tomcat Users List tomcat-user@jakarta.apache.org
Cc  : 
Date  : Wed, 28 Sep 2005 10:47:25 +0100
Subject : RE: pointing to a folder outside tomcat webapps


 



 Look up allowLinking = true in google.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 September 2005 10:42
 To: tomcat-user
 Subject: pointing to a folder outside tomcat webapps
 
 I'd like pointing a foder outside  webapps tomcat folder.
 I know that with
 Context path=/myPath  docBase=c://myFolder reloadable=true/ in 
 server.xml i can do it.  I'd like to use that tag in 
 META-INF/context.xmlwithout using server.xml.
 But It allows just one context tag on context.xml.
 So any idea?
 Regards
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
   
   
 ___
 Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
 voicemail http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
OK,

You place the context.xml inside $tomcat_home/conf. Contents of that file is
something like this:

!-- The contents of this file will be loaded for each web application --
Context allowLinking=true
  !-- Default set of monitored resources --
  WatchedResourceWEB-INF/web.xml/WatchedResource
  !-- Uncomment this to disable session persistence across Tomcat restarts
--
  !--Manager pathname= /--
/Context

The allowLinking attribute defined this way allows all our application use
symbolic links.

Hope this helps.

Arup

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 28 September 2005 11:22
To: tomcat-user
Subject: RE: pointing to a folder outside tomcat webapps

could u be more explicit please?
I cannot understanding u
-- Initial Header ---

From  : Arup Vidyerthy [EMAIL PROTECTED]
To  : Tomcat Users List tomcat-user@jakarta.apache.org
Cc  : 
Date  : Wed, 28 Sep 2005 11:16:28 +0100
Subject : RE: pointing to a folder outside tomcat webapps







 You can just place the a empty context xml in your $tomcat_home/conf 
 directory. That's what we do and it works across all contexts...
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]   Sent: 28 September 
 2005 10:55
 To: tomcat-user
 Subject: RE: pointing to a folder outside tomcat webapps
 
 I kwnow that.
 I want to use the file META-INF/context.xml inside the application for 
 pointing to another resource.
 I do not want use server.xml!
 
 -- Initial Header ---
 
 From  : Arup Vidyerthy [EMAIL PROTECTED]
 To  : Tomcat Users List tomcat-user@jakarta.apache.org
 Cc  : 
 Date  : Wed, 28 Sep 2005 10:47:25 +0100  Subject : RE: pointing to a
folder outside tomcat webapps
 
 
   
 
 
  Look up allowLinking = true in google.
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: 28 September 2005 10:42
  To: tomcat-user
  Subject: pointing to a folder outside tomcat webapps
  
  I'd like pointing a foder outside  webapps tomcat folder.
  I know that with
  Context path=/myPath  docBase=c://myFolder reloadable=true/ 
  inserver.xml i can do it.  I'd like to use that tag in
META-INF/context.xmlwithout using server.xml.
  But It allows just one context tag on context.xml.
  So any idea?
  Regards
  
  
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  ___
  Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
  voicemail http://uk.messenger.yahoo.com
  
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
   
   
 ___
 Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
 voicemail http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!-- The contents of this file will be loaded for each web application --
Context allowLinking=true

!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
	
!-- Uncomment this to disable session persistence across Tomcat restarts --
!--
Manager pathname= /
--

/Context

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: pointing to a folder outside tomcat webapps

2005-09-28 Thread Arup Vidyerthy
Using META-INF/context.xml, I don't think you can define other application.
I might be wrong though but I seriously doubt if you can define other
applications from another applications context.xml file.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 28 September 2005 13:53
To: tomcat-user
Subject: RE: pointing to a folder outside tomcat webapps

my problem is that i do not want put anything of my application inside
tomcat configuration files...
Exists context.xml in META-INF that is specific for an application but I can
define there just one context.
I need more than one context.
Hot to do it?


-- Initial Header ---

From  : Arup Vidyerthy [EMAIL PROTECTED]
To  : Tomcat Users List tomcat-user@jakarta.apache.org
Cc  :  Date  : Wed, 28 Sep 2005 11:27:25 +0100
Subject : RE: pointing to a folder outside tomcat webapps







 OK,
 
 You place the context.xml inside $tomcat_home/conf. Contents of that 
 file is something like this:
 
 !-- The contents of this file will be loaded for each web application 
 -- Context allowLinking=true
   !-- Default set of monitored resources --
   WatchedResourceWEB-INF/web.xml/WatchedResource
   !-- Uncomment this to disable session persistence across Tomcat 
 restarts
 --
   !--Manager pathname= /--
 /Context
 
 The allowLinking attribute defined this way allows all our application 
 use symbolic links.
 
 Hope this helps.
 
 Arup 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 28 September 2005 11:22
 To: tomcat-user
 Subject: RE: pointing to a folder outside tomcat webapps
 
 could u be more explicit please?
 I cannot understanding u
 -- Initial Header ---
 
 From  : Arup Vidyerthy [EMAIL PROTECTED]
 To  : Tomcat Users List tomcat-user@jakarta.apache.org
 Cc  : 
 Date  : Wed, 28 Sep 2005 11:16:28 +0100
 Subject : RE: pointing to a folder outside tomcat webapps
 
 
 
 
 
 
 
  You can just place the a empty context xml in your $tomcat_home/conf 
  directory. That's what we do and it works across all contexts...
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]   Sent: 28 
  September
  2005 10:55
  To: tomcat-user
  Subject: RE: pointing to a folder outside tomcat webapps   I kwnow 
  that.
  I want to use the file META-INF/context.xml inside the application 
  for pointing to another resource.
  I do not want use server.xml!
  
  -- Initial Header ---
  
  From  : Arup Vidyerthy [EMAIL PROTECTED]
  To  : Tomcat Users List tomcat-user@jakarta.apache.org
  Cc  : 
  Date  : Wed, 28 Sep 2005 10:47:25 +0100  Subject : RE: pointing to
a
 folder outside tomcat webapps
  
  

  
  
   Look up allowLinking = true in google.
   
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: 28 September 2005 10:42
   To: tomcat-user
   Subject: pointing to a folder outside tomcat webapps
   
   I'd like pointing a foder outside  webapps tomcat folder.
   I know that with
   Context path=/myPath  docBase=c://myFolder 
   reloadable=true/ inserver.xml i can do it.  I'd like to 
   use that tag in
 META-INF/context.xmlwithout using server.xml.
   But It allows just one context tag on context.xml.
   So any idea?
   Regards
   
   
   --
   --
   - To unsubscribe, e-mail: 
   [EMAIL PROTECTED]
   For additional commands, e-mail: 
   [EMAIL PROTECTED]
   
   
 
 
 
   ___
   Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide 
   with voicemail http://uk.messenger.yahoo.com
   
   --
   --
   - To unsubscribe, e-mail: 
   [EMAIL PROTECTED]
   For additional commands, e-mail: 
   [EMAIL PROTECTED]
   
   
  
  
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  ___
  Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
  voicemail http://uk.messenger.yahoo.com
  
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
How much free photo storage do you get

RE: Multiple tomcat services?

2005-09-28 Thread Arup Vidyerthy
Install it under a different name 

-Original Message-
From: Jens Nordberg [mailto:[EMAIL PROTECTED] 
Sent: 28 September 2005 15:13
To: tomcat-user@jakarta.apache.org
Subject: Multiple tomcat services?

Hi, I'm trying to install multiple tomcats on my machine, which works quite
well except for one thing. When I'm installing the second instance of
Tomcat, I get the following error:

Failed to install Tomcat5 service. Check your settings and permissions.
Ignore and continue anyway (not recommended)?

 

I chose to ignore and continue. Tomcat then installs, but no service is
added in windows services. If I go to the bin library of the second tomcat
and press tomcat5w, it opens the _first_ instance's application.

 

Is there a way to get two services going when I have multiple tomcats?

 

The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9.

 

Any suggestions?

Kind regards

/Jens

 




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple tomcat services?

2005-09-28 Thread Arup Vidyerthy
If you look at $tomcat_home/bin directory you should see a file call
service.bat. Using that file you should be able to install a tomcat service
under different names.  

-Original Message-
From: Jens Nordberg [mailto:[EMAIL PROTECTED] 
Sent: 28 September 2005 15:25
To: Tomcat Users List
Subject: RE: Multiple tomcat services?

How do you mean? The install program for Tomcat 5.5.9 doesn't allow me to
change the name, or does it? As far as I can tell, I can only specify
install directory, HTTP port, user name, password and jre.

/Jens

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED]
Sent: den 28 september 2005 16:20
To: 'Tomcat Users List'
Subject: RE: Multiple tomcat services?

Install it under a different name 

-Original Message-
From: Jens Nordberg [mailto:[EMAIL PROTECTED]
Sent: 28 September 2005 15:13
To: tomcat-user@jakarta.apache.org
Subject: Multiple tomcat services?

Hi, I'm trying to install multiple tomcats on my machine, which works quite
well except for one thing. When I'm installing the second instance of
Tomcat, I get the following error:

Failed to install Tomcat5 service. Check your settings and permissions.
Ignore and continue anyway (not recommended)?

 

I chose to ignore and continue. Tomcat then installs, but no service is
added in windows services. If I go to the bin library of the second tomcat
and press tomcat5w, it opens the _first_ instance's application.

 

Is there a way to get two services going when I have multiple tomcats?

 

The first instance is a tomcat 5.0 and the second is a tomcat 5.5.9.

 

Any suggestions?

Kind regards

/Jens

 




___
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Production Settings

2005-10-06 Thread Arup Vidyerthy
This is vague!! Recommended production settings for what exactly...? I would
think it varies from application to application. 

-Original Message-
From: Pitre, Russell [mailto:[EMAIL PROTECTED] 
Sent: 06 October 2005 14:21
To: tomcat-user@jakarta.apache.org
Subject: Production Settings

Does anyone know where I can find documentation on recommended production
setting for Windows environment?  I tried googling for some information but
I did not come back with much.


Thanks in advance

Russ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Why don't you use your eyes and read the bottom of the email. Or is that too
difficult? 

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2005 15:39
To: Tomcat Users List
Subject: RTE - Meridian Club [EMAIL PROTECTED]

can someone please remove this email from the list? It's kindof nerving...

thanx
leon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Guys,

My sincere apologies!! You see I handed in my notice at work today and was
feeling good until they have all started to treat me like an outsider. Hence
the anti social mood. 

I'll be careful next time and use my eyes first before replying ;-)

Arup 

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2005 16:00
To: 'Tomcat Users List'; 'Leon Rosenberg'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We're all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is 
 that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread Arup Vidyerthy
Somehow my apologetic message hasn't been delivered by the mail server as
yet.  

-Original Message-
From: Arup Vidyerthy [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2005 16:11
To: 'Tomcat Users List'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

Guys,

My sincere apologies!! You see I handed in my notice at work today and was
feeling good until they have all started to treat me like an outsider. Hence
the anti social mood. 

I'll be careful next time and use my eyes first before replying ;-)

Arup 

-Original Message-
From: David Short [mailto:[EMAIL PROTECTED]
Sent: 07 October 2005 16:00
To: 'Tomcat Users List'; 'Leon Rosenberg'
Subject: RE: RTE - Meridian Club [EMAIL PROTECTED]

I think Arup thought that you wanted to be removed from this list.  I'm
pretty sure you meant for the Meridian Club Auto-response message to be
blocked.  I would second the motion to block the Meridian Club messages.
Whoever the original poster was, I forgot, should use a different account to
communicate on this list.  These auto-reply messages are annoying and
unnecessarily consume resources.

Arup needs to work on his social skills.  We're all here trying to help each
other, not to attack each other.

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 7:51 AM
To: Tomcat Users List
Subject: Re: RTE - Meridian Club [EMAIL PROTECTED]


On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:
 Why don't you use your eyes and read the bottom of the email. Or is 
 that
too
 difficult?

Hae?
Leon


 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: 07 October 2005 15:39
 To: Tomcat Users List
 Subject: RTE - Meridian Club [EMAIL PROTECTED]

 can someone please remove this email from the list? It's kindof nerving...

 thanx
 leon

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 ___
 To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre. http://uk.security.yahoo.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: serving content from outside the context

2005-10-12 Thread Arup Vidyerthy
Or if you don't want to do what Darryl is suggesting you can configure your
tomcat to use unix symlinks by setting the allowLinking attribute to true.

Then you can simply create a softlink inside your webapp directory that
points to your data directory.

That will work as well.

Arup 

-Original Message-
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] 
Sent: 12 October 2005 09:59
To: Tomcat Users List
Subject: Re: serving content from outside the context

John Laughton wrote:

 Hi, I hope this is the right mailing list for this question

 I am using tomcat 5.0.28
 I have a simple web app and want to serve up some images in the jsp 
 pages, but the images are outside the context

 The HTTP statement looks like
 trtd
 img alt=thumb image src=/data/webData/family/DSC01183.JPG/
 /td/tr

 The web app is under /usr/local/tomcat/webapp/family On the browser it 
 only shows thumb image as it cannot get to the hyperlink 
 http://xx.xx.xx.xx/data/webData/family/DSC01183.JPG
 (IP shown as xx.xx.xx.xx for security)

 I have read a lot about tomcat and figure there must be a way to 
 configure server.xml and/or web.xml to allow this to work, but cannot 
 see it ?

 It is possible ?

Are you wanting TC to serve the static files or do you use AJP connector and
Apache.  The easiest way to serve files from outside is to let Apache serve
them and configure up AJP connector, then mount the entire content or just
*.jsp pages to TC.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]