RE: Packing web application

2005-01-25 Thread Donie Kelly
Try 

jar cvf project.war *

assuming all your directories are clean and ready for packaging.
Donie



-Original Message-
From: micky none [mailto:[EMAIL PROTECTED] 
Sent: 25 January 2005 15:17
To: Tomcat Users List
Subject: Re: Packing web application

Hi Friends,
I am still waiting for your replies.I am also sendin you my web.xml file:
   
- http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4">
  TITLE 
  30 
- 
  TR 
  bean.TR 
  A1 
  bean.A1 
  T1 
  bean.T1 
  1 
- 
  name 
  value 
  
  
   
 
When i try to do this:
C:\Tomcat 5.0\webapps\project>jar cvf project.war

It gives me the error:
'c' flag requires that input files be specified..
Please help me.





On Tue, 25 Jan 2005 micky none wrote :
>Hi Friends,
>I have a application with the following file structure:
>Tomcat5.0
>   webapps
> project
> WEB-INF
>   classes
>bean
>  *.java files
>   web.xml
> *.jsp files
>
>I want to package in into a war.The more tutorials I go through the more
confused I get.I tried using the ant-1.6.2 and in turn busted my server.I
even followed a tutorial and tried:
>/webapps:/>jar cvf project.war
>But when I tried to rerun it onto different machine,it failed.Can someone
please give me directions to the right and easy path.Any help would be
appreciated.Thanks.
>
>p.s:Someone even told me just make a project.zip and rename it to
project.war and it should work.
>

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 24/01/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 24/01/2005
 

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



RE: Problem with logging in Eclipse

2004-10-29 Thread Donie Kelly
Anybody else have this problem???

Thanks
Donie


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED] 
Sent: 28 October 2004 11:12
To: Tomcat Users List
Subject: RE: Problem with logging in Eclipse

Hi guys

I have the same problem and it's driving me nuts. I have a run configuration
in Eclipse 3.0 for tomcat 4.1.18 and I call bootstrap.jar directly within
eclipse to start tomcat. The only jars I put in the run configuration class
path are the tomcat ones.

This starts tomcat as it would be normally run and tomcat then inits the
webapps directory and creates the classpath for each webapp based on the
contents of the WEB-INF/lib.

I have commons-logging.jar in my WEB-INF/lib as it's required by some code.
This has problems finding log4j even though it's there. When I send in a
request that uses com.sun.xml.messaging.saaj.soap.dom4j.ElementFactory
tomcat throws an exception into Catalina.out log showing the following stack
trace below.

Now, if I put log4j.jar into the run configuration class path the problem
goes away? Why can't tomcat find this jar under Eclipse 3

However, because I have multiple webapps running, the logging for the
different webapps is the same as the log4j.jar is now global so the last
webapp to init sets the logging scheme and location. Painful.

Thanks
Donie




2004-10-28 11:14:41 StandardWrapperValve[webclient]: Servlet.service() for
servlet webclient threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
at java.lang.Thread.run(Thread.java:534)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:1
40)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:257)
at
com.sun.xml.messaging.saaj.soap.dom4j.ElementFactory.(ElementFactory
.java:84)
at
com.sun.xml.messaging.saaj.soap.dom4j.EnvelopeFactoryImpl.createEnvelope(Env
elopeFactoryImpl.java:67)
at
com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(S

RE: Problem with logging in Eclipse

2004-10-28 Thread Donie Kelly
Hi guys

I have the same problem and it's driving me nuts. I have a run configuration
in Eclipse 3.0 for tomcat 4.1.18 and I call bootstrap.jar directly within
eclipse to start tomcat. The only jars I put in the run configuration class
path are the tomcat ones.

This starts tomcat as it would be normally run and tomcat then inits the
webapps directory and creates the classpath for each webapp based on the
contents of the WEB-INF/lib.

I have commons-logging.jar in my WEB-INF/lib as it's required by some code.
This has problems finding log4j even though it's there. When I send in a
request that uses com.sun.xml.messaging.saaj.soap.dom4j.ElementFactory
tomcat throws an exception into Catalina.out log showing the following stack
trace below.

Now, if I put log4j.jar into the run configuration class path the problem
goes away? Why can't tomcat find this jar under Eclipse 3

However, because I have multiple webapps running, the logging for the
different webapps is the same as the log4j.jar is now global so the last
webapp to init sets the logging scheme and location. Painful.

Thanks
Donie




2004-10-28 11:14:41 StandardWrapperValve[webclient]: Servlet.service() for
servlet webclient threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
at java.lang.Thread.run(Thread.java:534)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:1
40)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:257)
at
com.sun.xml.messaging.saaj.soap.dom4j.ElementFactory.(ElementFactory
.java:84)
at
com.sun.xml.messaging.saaj.soap.dom4j.EnvelopeFactoryImpl.createEnvelope(Env
elopeFactoryImpl.java:67)
at
com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:8
7)
at
com.tecnomen.mms.client.eai.SOAPEncoder.decode(SOAPEncoder.java:256)
at
com.tecnomen.mms.client.eai.MessageFactory.createMIMEMessage(MessageFactory.
java:340)
at
com.tecnomen.mms.client.eai.MessageFa

RE: Filter question in 4.1.18, can my filter get unchunked and un zipped requests?

2004-10-22 Thread Donie Kelly
Hi Bill

I've tried that but it doesn't appear to work. Is this because I need to
upgrade to a later version of tomcat or what???

Thanks
Donie


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: 22 October 2004 03:54
To: [EMAIL PROTECTED]
Subject: Re: Filter question in 4.1.18, can my filter get unchunked and
unzipped requests?


"Donie Kelly" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi all
>
>
>
> I've been reading up on filters to see if I can find a solution to an
> annoying problem. I can't find it so I'm looking here.
>
>
>
> I have this http filter that messes with the http request and response
> before it enters and leaves tomcat. The problem is that this filter works 
> at
> a fairly low level on the data but a big mistake we made is that it 
> assumes
> that the data is neither chunked or gzipped. Now we have a situation where
> some clients send data either in chunked form or gzipped form and out 
> fairly
> complicated filter gets very confused as it's not expecting this.
>
>
>
> Ok, we can re-write the thing to handle this but doesn't tomcat already
> unzip and de-chunk data? Problem is where is it done?
>
>
>
>
>
> My question is, how can we arrange it so that the initial processing on 
> the
> incoming data is done by tomcat so that it unzip and de-chunks the data
> before it reaches my filter?
>
>
>
> Is this possible???
>
>
>
> Please say it is
>
>

You may need to plug in a newer Coyote Connector (or, even, plug it in in 
the first place, since 4.1.18 is a bit old :), but it will at least unchunk 
the input for you.  It doesn't currently unzip for you, but that should be a

lot less common.



>
> Many thanks
>
> Donie
>
>
>
> 




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



Filter question in 4.1.18, can my filter get unchunked and unzipp ed requests?

2004-10-21 Thread Donie Kelly
Hi all

 

I've been reading up on filters to see if I can find a solution to an
annoying problem. I can't find it so I'm looking here.

 

I have this http filter that messes with the http request and response
before it enters and leaves tomcat. The problem is that this filter works at
a fairly low level on the data but a big mistake we made is that it assumes
that the data is neither chunked or gzipped. Now we have a situation where
some clients send data either in chunked form or gzipped form and out fairly
complicated filter gets very confused as it's not expecting this.

 

Ok, we can re-write the thing to handle this but doesn't tomcat already
unzip and de-chunk data? Problem is where is it done?

 

 

My question is, how can we arrange it so that the initial processing on the
incoming data is done by tomcat so that it unzip and de-chunks the data
before it reaches my filter? 

 

Is this possible???

 

Please say it is 

 

Many thanks

Donie

 



RE: Session handling on machine behind a hardware load balancer

2004-10-01 Thread Donie Kelly
Hi Filip

Can this work on Tomcat 4.1.18??? Or am I better to upgrade to Tomcat 5???

Donie

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: 01 October 2004 15:52
To: Tomcat Users List
Subject: Re: Session handling on machine behind a hardware load balancer

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
  - Original Message -
  From: Donie Kelly
  To: Tomcat Users List (E-mail)
  Sent: Friday, October 01, 2004 9:40 AM
  Subject: Session handling on machine behind a hardware load balancer


  
  Hi all

  

  Just wondering how easy it is to use sessions on tomcat (with struts) when
the machines are behind a hardware load balancer.

  

  Can somebody point me at some relevant documentation? I'm searching with
google but haven't found anything too helpful yet.


  Thanks

  Donie

  




--


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



Clustered webapp that updates LDAP???

2004-10-01 Thread Donie Kelly









Hi all

 

I need to create a webapp which will be running on
multiple machines but they all get work which requires updates to an LDAP
server. I need to make sure that each webapp handles just one transaction each
so that they do stomp over each others changes.

 

I’m thinking of allowing just one of the webapps to
handle the updates but others would need to take over if it failed. 

 

Maybe this is the wrong way to go about it so any
pointers of a decent techinique to do this would be appreciated.

 

Thanks
Donie

 






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

Session handling on machine behind a hardware load balancer

2004-10-01 Thread Donie Kelly









Hi all

 

Just wondering how easy it is to use sessions on
tomcat (with struts) when the machines are behind a hardware load balancer. 

 

Can somebody point me at some relevant documentation?
I’m searching with google but haven’t found anything too helpful yet…


Thanks

Donie

 






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

RE: unpackWARs and autoDeploy

2004-08-23 Thread Donie Kelly

"How then does it do it when you set unpackWARs="false"?"

It doesn't do it at all. You have to do it manually...

Donie

-Original Message-
From: Anthony Colebourne [mailto:[EMAIL PROTECTED]
Sent: 23 August 2004 10:58
To: [EMAIL PROTECTED]
Subject: unpackWARs and autoDeploy

Hi,

How does Tomcat determine when to reload the app (using autoDeploy)?

It appears to compare the time stamp on the war with the time stamp of
the expanded directory.

How then does it do it when you set unpackWARs="false"?

Thanks,
Anthony.






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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



RE: Service startup problems under Win XP

2004-08-16 Thread Donie Kelly
Try starting it from the command line and look for the erros messages. There
is probably a good reason why it won't start.

The logs are in the $TOMCAT_HOME/logs dir

Donie

-Original Message-
From: David Fox [mailto:[EMAIL PROTECTED]
Sent: 16 August 2004 14:48
To: [EMAIL PROTECTED]
Subject: Service startup problems under Win XP

Hello,

I am currently trying to install Version 5.027 of Tomcat, running as a
service.
I have installed the .exe installer.

I can see the Tomcat service available, but when I try to start it, it won't
start up, and the event handler says the service terminated with
service-specific error 0, which doesn't really help me in determining, what
the problem is.

Anybody can help me there, please?

All the best

David


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



Accept Headers

2004-07-08 Thread Donie Kelly









Hi all

 

Using Tomcat 4.1.18 on Solaris 8.

 

Send a POST to tomcat with no Accept header and the
content type returned by the application is application/vnd.wap.mms-message

 

Now tomcat generates a HTTP 406 response to this case.
Is this correct? From the HTTP specification it says the following about the
Accept header…

 

“If no Accept header field is present, then it is assumed that the   client accepts all media types. If an Accept header field is present,   and if the server cannot send a response which is acceptable   according to the combined Accept field value, then the server SHOULD   send a 406 (not acceptable) response.”

 

 

In this case we have NOT send the header. If I add the
accept header it works OK.

 

Thanks for any help on this…


Donie

 






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

RE: how can I change a variable on the fly with shutting down tom cat

2004-01-29 Thread Donie Kelly
Create a properties file and use the Properties class to load the file at
regular intervals by running it in a thread. You might want to store the
properties object in a singleton so that you can access it throughout your
application.

Donie

-Original Message-
From: tom ly [mailto:[EMAIL PROTECTED]
Sent: 28 January 2004 19:55
To: [EMAIL PROTECTED]
Subject: how can I change a variable on the fly with shutting down tomcat

I have a variable stored in memory which will be returned for certain
xml-rpc requests in tomcat/axis, it needs a initial value upon startup of
tomcat.  But then I need to be able to change this variable on the fly
without shutting down tomcat and then have it be permanently changed
afterwards.  What can I do? I've though about using a text file.  But I want
to read from this text file once only during startup of tomcat, store the
value in memory for fast access but then be able to change the value in
memory as well as the text file on the fly.  What can i use to do this? or
is there a better way?
Regards,
Tom Ly



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!

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



RE: default directory for files in tomcat

2004-01-22 Thread Donie Kelly
In the Servlet init() method you can call a method called getRealPath()

This will return the name of the directory where your webapp is deployed.
You may need to store this is a system property or a static classs for
future use as it's only availalble on startup.

Donie


-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: 22 January 2004 13:08
To: [EMAIL PROTECTED]
Subject: default directory for files in tomcat


I have an applet which requires a .ini file to be loaded up.  This file is
only found if I am in the directory containing it when I startup tomcat.  Is
there a default location for files, or is there a config for this?  I tried
placing them in a few places but none worked unless I started tomcat from
within that directory.
Thanks
Allan


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



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



RE: Stop displaying version info

2004-01-22 Thread Donie Kelly
First thing you can do is put in a custom 404 error page. See the archives
or check the docs. It's easy to do.

Second you can override the server header normally sent by tomcat by adding
this line BEFORE any servlet output has been done.

Hope that helps.
Donie


public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
try
{
  // Override the Server header
  res.setHeader("Server", "My Custom header that give no
tomcat version info");

// Your servlet code goes here

}
catch (Exception ex) 
{ 
res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
}
}

-Original Message-
From: Allan Bruce [mailto:[EMAIL PROTECTED]
Sent: 22 January 2004 12:00
To: [EMAIL PROTECTED]
Subject: Stop displaying version info


Is there a way I can get tomcat to stop displaying so much info if somebody
hits a 404 or other error? Its a good clue for hackers to start if they know
what version of a popular software I am running.  I have it so that apache
displays no info, now just to get tomcat to do the same.
Thanks
Allan


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



[OT] rfc2822 clarification on date headers

2004-01-20 Thread Donie Kelly
Sorry guys, this was supposed to go to the JavaMail mailing list. Sorry.
 
 
-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 12:15
To: Tomcat Users List (E-mail)
Subject: rfc2822 clarification on date headers
 
Hi all
 
Javamail generates a date in the format:  Date: Tue, 20 Jan 2004 11:57:37
+ (GMT)
 
The spec below implies that the timezone is either a numeric offset or the
timezone is specified like Date: Fri, 23 Jan 2004 11:57:24 GMT
 
Can somebody clarify why javamail uses both forms?
Extract from rfc2822 below
 
Thanks
Donie
 
 
3.3. Date and Time Specification
 
   Date and time occur in several header fields.  This section specifies
   the syntax for a full date and time specification.  Though folding
   white space is permitted throughout the date-time specification, it
   is RECOMMENDED that a single space be used in each place that FWS
   appears (whether it is required or optional); some older
   implementations may not interpret other occurrences of folding white
   space correctly.
 
date-time   =   [ day-of-week "," ] date FWS time [CFWS]
 
day-of-week =   ([FWS] day-name) / obs-day-of-week
 
day-name=   "Mon" / "Tue" / "Wed" / "Thu" /
"Fri" / "Sat" / "Sun"
 
date=   day month year
 
year=   4*DIGIT / obs-year
 
month   =   (FWS month-name FWS) / obs-month
 
month-name  =   "Jan" / "Feb" / "Mar" / "Apr" /
"May" / "Jun" / "Jul" / "Aug" /
"Sep" / "Oct" / "Nov" / "Dec"
 
day =   ([FWS] 1*2DIGIT) / obs-day
 
time=   time-of-day FWS zone
 
time-of-day =   hour ":" minute [ ":" second ]
 
hour=   2DIGIT / obs-hour
 
minute  =   2DIGIT / obs-minute
 
second  =   2DIGIT / obs-second
 
zone=   (( "+" / "-" ) 4DIGIT) / obs-zone
 
   The day is the numeric day of the month.  The year is any numeric
   year 1900 or later.
 
   The time-of-day specifies the number of hours, minutes, and
   optionally seconds since midnight of the date indicated.
 
   The date and time-of-day SHOULD express local time.
 
   The zone specifies the offset from Coordinated Universal Time (UTC,
   formerly referred to as "Greenwich Mean Time") that the date and
   time-of-day represent.  The "+" or "-" indicates whether the
   time-of-day is ahead of (i.e., east of) or behind (i.e., west of)
   Universal Time.  The first two digits indicate the number of hours
   difference from Universal Time, and the last two digits indicate the
   number of minutes difference from Universal Time.  (Hence, +hhmm
   means +(hh * 60 + mm) minutes, and -hhmm means -(hh * 60 + mm)
   minutes).  The form "+" SHOULD be used to indicate a time zone at
   Universal Time.  Though "-" also indicates Universal Time, it is
   used to indicate that the time was generated on a system that may be
   in a local time zone other than Universal Time and therefore
   indicates that the date-time contains no information about the local
   time zone.
 
   A date-time specification MUST be semantically valid.  That is, the
   day-of-the-week (if included) MUST be the day implied by the date,
   the numeric day-of-month MUST be between 1 and the number of days
   allowed for the specified month (in the specified year), the
   time-of-day MUST be in the range 00:00:00 through 23:59:60 (the
   number of seconds allowing for a leap second; see [STD12]), and the
   zone MUST be within the range -9959 through +9959.
 


rfc2822 clarification on date headers

2004-01-20 Thread Donie Kelly







Hi all Javamail generates a date in the format:  Date: Tue, 20 Jan 2004 11:57:37 + (GMT) The spec below implies that the timezone is either a numeric offset or the timezone is specified like Date: Fri, 23 Jan 2004 11:57:24 GMT Can somebody clarify why javamail uses both forms?Extract from rfc2822 below ThanksDonie  3.3. Date and Time Specification    Date and time occur in several header fields.  This section specifies   the syntax for a full date and time specification.  Though folding   white space is permitted throughout the date-time specification, it   is RECOMMENDED that a single space be used in each place that FWS   appears (whether it is required or optional); some older   implementations may not interpret other occurrences of folding white   space correctly. date-time   =   [ day-of-week "," ] date FWS time [CFWS] day-of-week =   ([FWS] day-name) / obs-day-of-week day-name    =   "Mon" / "Tue" / "Wed" / "Thu" /    "Fri" / "Sat" / "Sun" date    =   day month year year    =   4*DIGIT / obs-year month   =   (FWS month-name FWS) / obs-month month-name  =   "Jan" / "Feb" / "Mar" / "Apr" /    "May" / "Jun" / "Jul" / "Aug" /    "Sep" / "Oct" / "Nov" / "Dec" day =   ([FWS] 1*2DIGIT) / obs-day time    =   time-of-day FWS zone time-of-day =   hour ":" minute [ ":" second ] hour    =   2DIGIT / obs-hour minute  =   2DIGIT / obs-minute second  =   2DIGIT / obs-second zone    =   (( "+" / "-" ) 4DIGIT) / obs-zone    The day is the numeric day of the month.  The year is any numeric   year 1900 or later.    The time-of-day specifies the number of hours, minutes, and   optionally seconds since midnight of the date indicated.    The date and time-of-day SHOULD express local time.    The zone specifies the offset from Coordinated Universal Time (UTC,   formerly referred to as "Greenwich Mean Time") that the date and   time-of-day represent.  The "+" or "-" indicates whether the   time-of-day is ahead of (i.e., east of) or behind (i.e., west of)   Universal Time.  The first two digits indicate the number of hours   difference from Universal Time, and the last two digits indicate the   number of minutes difference from Universal Time.  (Hence, +hhmm   means +(hh * 60 + mm) minutes, and -hhmm means -(hh * 60 + mm)   minutes).  The form "+" SHOULD be used to indicate a time zone at   Universal Time.  Though "-" also indicates Universal Time, it is   used to indicate that the time was generated on a system that may be   in a local time zone other than Universal Time and therefore   indicates that the date-time contains no information about the local   time zone.    A date-time specification MUST be semantically valid.  That is, the   day-of-the-week (if included) MUST be the day implied by the date,   the numeric day-of-month MUST be between 1 and the number of days   allowed for the specified month (in the specified year), the   time-of-day MUST be in the range 00:00:00 through 23:59:60 (the   number of seconds allowing for a leap second; see [STD12]), and the   zone MUST be within the range -9959 through +9959.

 






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

RE: Running multiple JVMs

2004-01-20 Thread Donie Kelly
Don't know as we use a hardware load balancer.
Donie

-Original Message-
From: Brennon Obst [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 23:30
To: 'Tomcat Users List'
Subject: RE: Running multiple JVMs

How do you run multiple instances of tomcat with an apache
front/balancer?

/Brennon

-Original Message-----
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 20 January 2004 3:03 AM
To: 'Tomcat Users List'
Subject: RE: Running multiple JVMs


Or you can have one IP and get multiple tomcat's listening on different
ports and get your balancer to route to each of them. Multiple IP's are
not necessary if you need to use a balancer.

Donie

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:52
To: Tomcat Users List
Subject: RE: Running multiple JVMs

An additional remark:

Only one process can listen on port 80 at a time on the !!! same IP !!!.

You can define several IP's on one machine and thus can have several
services that listen on port 80. (One for each IP)

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 19, 2004 5:42 PM
> To: Tomcat Users List
> Subject: RE: Running multiple JVMs
>
> Only one process can listen on port 80 at a time.
>

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



RE: Running multiple JVMs

2004-01-19 Thread Donie Kelly
Or you can have one IP and get multiple tomcat's listening on different
ports and get your balancer to route to each of them. Multiple IP's are not
necessary if you need to use a balancer. 

Donie

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:52
To: Tomcat Users List
Subject: RE: Running multiple JVMs

An additional remark:

Only one process can listen on port 80 at a time on the !!! same IP !!!.

You can define several IP's on one machine and thus can have
several services that listen on port 80. (One for each IP)

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 19, 2004 5:42 PM
> To: Tomcat Users List
> Subject: RE: Running multiple JVMs
>
> Only one process can listen on port 80 at a time.
>

-
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: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Donie Kelly
I've seen this before but I can't remember the solution. Search the
archives.
Donie

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:45
To: Tomcat Users List
Subject: RE: Please help, I have a headache .. servlet init troubles

no, it's one host,

Cheers, ADC


-Original Message-
From: James Neville [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:31
To: Tomcat Users List
Subject: Re: Please help, I have a headache .. servlet init troubles


Allistair Crossley wrote:

>Do you know why my servlet initalises twice? That's my remaining issue..
>
If you are specifying multiple hosts, all running from the same appBase,
then each web application will be deployed to each host.
If this is the case, run each host from a different appBase so that you
don't double deploy.

James.




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




---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



-
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: dramatic performance differences on development machines

2004-01-16 Thread Donie Kelly
Hi Johan

It's very suspicious that websphere runs so fast and tomcat doesn't. I think
there still might be a network issue.

Can you modify your server.xml as follows changing the enableLookups="false"
instead of enableLookups="true"



Maybe the reverse lookup is failing?

Just a guess...
Donie
-Original Message-
From: Johan Coens [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 10:57
To: Tomcat Users List
Subject: RE: dramatic performance differences on development machines

Hello all,

I tried:

- isolating code in a java class and running it on both machines, about same
performance
- running tomcat 4.1.29, bit faster but still ~15 sec.
- changing network connection to full duplex, 2*faster but stil ~6 sec
(should be < 1 sec). indicates network traffic could be a bottleneck
- running websphere, performance ~600 ms.
- changing java version 1.3.06 to 1.4.1, no reasonable effects
- eliminating all services, no effect

The tested machines:
(the machine which performance is fast, a dev. client) P4 2.4Gh, 512MB
memory, 60Gb harddisk
(the machine which performance is slow, the server) P4 2.4Gh, 1Gb memory,
10Gb harddisk
(the machine which performance is slow, a dev. client) P4 1.8Gh, 512MB
memory, 40Gb harddisk

I see tomcat running high on processor performance, peeks in processor
performance are the same as peeks in the network traffic. But, when running
everything on one box, it is also slow (so network should not be an issue).

Also, the developer on the fast machine noticed that when getting code from
CVS from other developers, his system slowed down signifficant too, but I
have no clue what too look for with this indication.

I hoped to hear a some kind of, hey look into this or look into that, did
you look here, but unfortunattaly there's not. It is also a complex problem
with many factors that could be the cause (network?, language settings os?,
system settings?, file system?, foreign processes which interfere?, ...).

If anyone has got a clue i would be glad too here, meanwhile i'll go look
furher looking for a solution / cause.

Cheers,
Johan


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 20:14
To: Tomcat Users List
Subject: Re: dramatic performance differences on development machines


> Unfortunattaly no option, we are bound to a specific java version and
tomcat
> version to gain support from the supplier...

Then could you just *try* a different version?

If it works, then YELL at your supplier - they would deserve it, sticking to
a buggy version. For that matter, sticking to just one version. Note that
4.1.24 is a RI for Sun's J2EE paltform and so is 5.0.16

Nix.


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



RE: dramatic performance differences on development machines

2004-01-13 Thread Donie Kelly
No I meant the rrequest times for each machine. You said one took 400ms I
think and the other was 20seconds. Which machine gave which response. You
said you moved it to a slow dev machine but it wasn't clear which request
time it gave you.

If you can do what peter lin says and give us more details. It may save time
in the long run...
Donie


-Original Message-
From: Johan Coens [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 16:07
To: Tomcat Users List
Subject: RE: dramatic performance differences on development machines

I'll come back on this later, i'll be out of office for a day but i'll do
some more testing and post results at this mailinglist.

what do you mean with transaction times, for each request or can i get more
detailed processing detail for a http request?

thanks for all responses

-Original Message-----
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 16:59
To: 'Tomcat Users List'
Subject: RE: dramatic performance differences on development machines


"Maybe the only solution for me is running websphere..."

ha. Telling this to a company that sold you Tomcat might work but making
threats like this won't get the problem solved quicker ;) Just joking.

Ca you view the processes cpu load on the machine during the request? I find
it strange that tomcat is using so much cpu during the request.

Can you send us the specs of the two machines you are using and also the
transaction times for each. I'm a bit confused over which machine gave the
fastest reponse.

Thanks
Donie



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



RE: dramatic performance differences on development machines

2004-01-13 Thread Donie Kelly
Maybe it's running as a service. Can you make sure you stop the services as
well...

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 16:09
To: Tomcat Users List
Subject: RE: dramatic performance differences on development machines


We made the experience with McAffe that disabling is
not sufficent to get the normal performace.
I can't offer more details, that has been done by one
of our sys admins.

> -Original Message-
> From: Johan Coens [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 13, 2004 5:03 PM
> To: Tomcat Users List
> Subject: RE: dramatic performance differences on development machines
>
>
> Hello Mike,
>
> Im running NAV but even when disabeling this the machine
> performces slow..
>

-
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: dramatic performance differences on development machines

2004-01-13 Thread Donie Kelly
"Maybe the only solution for me is running websphere..."

ha. Telling this to a company that sold you Tomcat might work but making
threats like this won't get the problem solved quicker ;) Just joking. 

Ca you view the processes cpu load on the machine during the request? I find
it strange that tomcat is using so much cpu during the request.

Can you send us the specs of the two machines you are using and also the
transaction times for each. I'm a bit confused over which machine gave the
fastest reponse.

Thanks
Donie

-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 16:51
To: 'Tomcat Users List'
Subject: RE: dramatic performance differences on development machines

Try tomcat-4.1.29 or tomcat-5.x

> --
> De:   Johan Coens[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  terça-feira, 13 de janeiro de 2004 11:10
> Para: Tomcat Users List
> Assunto:  RE: dramatic performance differences on development machines
>
> A lot of network traffic, database lookups, rmi is going on, but i even
> tested that by placing code on the mediasurface server with oracle
> (placing
> all on one box), and so limiting network traffic, but same performance
> issues occured.
>
> I tested on websphere and everything is speedy (so, its not the code).
>
> It should be something in the system, a configuration which influences
> tomcat performance dramatically and not webspheres performance, but what i
> can't figure out what this could be. Maybe the only solution for me is
> running websphere...
>
> Thanks for the feedback,
> Johan
>
> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: 13 January 2004 14:48
> To: 'Tomcat Users List'
> Subject: RE: dramatic performance differences on development machines
>
>
> What does the servlet do during the request. Is it a database lookup or
> what? It's intresting that it's using 50-90% cpu time. If it were a
> network
> error or mis-configuration I'd expect to see 0% cpu used during the
> timeout
> period. Are you sure the application is working correctly when the
> response
> has come back. Maybe there is some sort of timeout running in your
> application that does not yield very well, ie: a tight loop waiting for
> something? Maybe your processing is not as correct as you think.
>
> Give us more to work with...
> Donie
>
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
> Sent: 13 January 2004 13:45
> To: Tomcat Users List
> Subject: RE: dramatic performance differences on development machines
>
> This kind of performance degration can
> also have some of the following causes if
> the load of the system doesn't indicate
> a problem:
>
> - long or failing DNS Lookups.
> - Missconfiguration that leads to round trips
>   in the network.
> - locks (e.g. Database)
>
> I think you have to isolate one request that
> takes long and find out where the time is spent.
> (This doesn't mean in all cases profiling, in the
> first step it might be enough to find out if the
> time is spent before the request reaches the
> application, in the application, or after the
> application has sent the response.)
>
> > -Original Message-
> > From: Johan Coens [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 13, 2004 2:28 PM
> > To: Tomcat Users List
> > Subject: RE: dramatic performance differences on development machines
> >
> >
> > Here the specs are:
> >
> > It's a windows XP development Client
> > Pentium 4, 2GHz, 512Mb memory
> > jdk 1.3.1_06
> > tomcat 4.0.6
> >
> > Tomcat is consuming 50-90% of processing time when serving
> > the request.
> > Notice, i tetsted the app on websphere too, it is serving
> > quite fast, 400ms.
> > instead of 2ms.
> >
> > If anybody can point me where too look at I would be very happy.
> >
> > Johan
> >
> > -Original Message-
> > From: Donie Kelly [mailto:[EMAIL PROTECTED]
> > Sent: 13 January 2004 12:55
> > To: 'Tomcat Users List'
> > Subject: RE: dramatic performance differences on development machines
> >
> >
> > Any chance there is something else running on the machine
> > that's killing the
> > performance.
> >
> > You should post the specs of the machine if you expect a
> > reasonable guess as
> > to your problem.
> >
> > Donie
> >
> > -Original Message-
> > From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
> > Sent: 13 January 2004

RE: dramatic performance differences on development machines

2004-01-13 Thread Donie Kelly
But he said the same app was much faster on another (slower) machine. 
Donie


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 13:47
To: Tomcat Users List
Subject: Re: dramatic performance differences on development machines

Johan Coens wrote:
> Here the specs are:
>
> It's a windows XP development Client
> Pentium 4, 2GHz, 512Mb memory
> jdk 1.3.1_06
> tomcat 4.0.6
>
> Tomcat is consuming 50-90% of processing time when serving the request.
> Notice, i tetsted the app on websphere too, it is serving quite fast,
400ms.
> instead of 2ms.
>
> If anybody can point me where too look at I would be very happy.

If it's a JSP with lots of tags, then Jasper 1 generated code which
triggered a performance bug in the virtual machine (dealing with
try/catch nesting). You can notice the issue by taking Jasper 1 JARs,
putting them in TC 4.1, and notice (on Sun VMs, I don't know about
others) pages taking 10x or more the usual time to render.

Upgrade to 4.1 or 5.0 if this is the problem.

--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x


-
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: dramatic performance differences on development machines

2004-01-13 Thread Donie Kelly
What does the servlet do during the request. Is it a database lookup or
what? It's intresting that it's using 50-90% cpu time. If it were a network
error or mis-configuration I'd expect to see 0% cpu used during the timeout
period. Are you sure the application is working correctly when the response
has come back. Maybe there is some sort of timeout running in your
application that does not yield very well, ie: a tight loop waiting for
something? Maybe your processing is not as correct as you think.

Give us more to work with...
Donie

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 13:45
To: Tomcat Users List
Subject: RE: dramatic performance differences on development machines

This kind of performance degration can
also have some of the following causes if
the load of the system doesn't indicate
a problem:

- long or failing DNS Lookups.
- Missconfiguration that leads to round trips
  in the network.
- locks (e.g. Database)

I think you have to isolate one request that
takes long and find out where the time is spent.
(This doesn't mean in all cases profiling, in the
first step it might be enough to find out if the
time is spent before the request reaches the
application, in the application, or after the
application has sent the response.)

> -Original Message-
> From: Johan Coens [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 13, 2004 2:28 PM
> To: Tomcat Users List
> Subject: RE: dramatic performance differences on development machines
>
>
> Here the specs are:
>
> It's a windows XP development Client
> Pentium 4, 2GHz, 512Mb memory
> jdk 1.3.1_06
> tomcat 4.0.6
>
> Tomcat is consuming 50-90% of processing time when serving
> the request.
> Notice, i tetsted the app on websphere too, it is serving
> quite fast, 400ms.
> instead of 2ms.
>
> If anybody can point me where too look at I would be very happy.
>
> Johan
>
> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: 13 January 2004 12:55
> To: 'Tomcat Users List'
> Subject: RE: dramatic performance differences on development machines
>
>
> Any chance there is something else running on the machine
> that's killing the
> performance.
>
> You should post the specs of the machine if you expect a
> reasonable guess as
> to your problem.
>
> Donie
>
> -Original Message-
> From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
> Sent: 13 January 2004 09:43
> To: Tomcat Users List
> Subject: Re: dramatic performance differences on development machines
>
> Johan Coens wrote:
>
> > Hello Nikola,
> >
> > Machines are not identical, the fast machine has different
> specs (less
> > memory, less disk space and less cpu) then the slow machine
> (this one has
> > better specs).
>
> Quite ironic.
>
> > One hint we've got is the carachter encoding in which the
> > file is saved, but it seems to me this cannot be the problem...
>
> It can be a problem, but not responsible for 20x degradation.
>
> > Sure, heavy
> > artillery can be used, but i don't think that would lead us
> to a solution,
> > also because the machine with lesser specs serves better,
> and we use the
> > same tomcat version, same settings and same jdk version.
>
> Agreed. The only thing you're left with is profiling. There
> were some posts
> on
> that subject. So far, we've heard of JProfiler and something from IBM.
> Borland's
> JBuilder has OptimizeIt Suite", but it costs $$$.
>
> Nix.
>
>
> -
> 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]

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



RE: dramatic performance differences on development machines

2004-01-13 Thread Donie Kelly
Any chance there is something else running on the machine that's killing the
performance. 

You should post the specs of the machine if you expect a reasonable guess as
to your problem.

Donie

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 13 January 2004 09:43
To: Tomcat Users List
Subject: Re: dramatic performance differences on development machines

Johan Coens wrote:

> Hello Nikola,
>
> Machines are not identical, the fast machine has different specs (less
> memory, less disk space and less cpu) then the slow machine (this one has
> better specs).

Quite ironic.

> One hint we've got is the carachter encoding in which the
> file is saved, but it seems to me this cannot be the problem...

It can be a problem, but not responsible for 20x degradation.

> Sure, heavy
> artillery can be used, but i don't think that would lead us to a solution,
> also because the machine with lesser specs serves better, and we use the
> same tomcat version, same settings and same jdk version.

Agreed. The only thing you're left with is profiling. There were some posts
on
that subject. So far, we've heard of JProfiler and something from IBM.
Borland's
JBuilder has OptimizeIt Suite", but it costs $$$.

Nix.


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



Using acceptCount in server.xml

2004-01-09 Thread Donie Kelly









Hi all

 

Just
wondering how to use acceptCount in the Connector class. Default example here
modified to show what I’m trying to test to understand how this works.

 

  port="8443"
minProcessors="1" maxProcessors="1"

  
enableLookups="true" 
acceptCount="2" debug="0" scheme="https"
secure="true"

  
useURIValidationHack="false"
disableUploadTimeout="true">

  

    

 

I start
Tomcat with this setup and see that it has only one object in it’s connection pool
as expected.

 

I have a
small servlet that just returns a number (incrementing) and has a forced pause
to simulate work being done. 2 seconds wait.

 


 I send the request with
 Browser 1 to the servlet and it doesn’t return yet. Should be asleep for 2
 seconds
 I send the request with
 Browser 2 to the servlet and it does noting but looks like it’s busy as
 expected as maxProcessors=1 above
 Browser 1 now returns
 with it’s incrementing number
 Now I expect browser 2
 to be assigned to the free connection in Tomcat’s pool but nothing happens…
 ever.
 Browser 1 goes again and
 works after 2 seconds.


 

Q: Why did
browser 2 not get assigned the servlet that browser 1 freed up when it finished
the request

 

Q: Does the
acceptCount does what I think it does?

 

Thanks for
any help in understanding how this works.

Donie

 

 






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

RE: How does a servlet request work. Not a newbie question ;)

2004-01-09 Thread Donie Kelly
Hi Nix

I need to read the headers to see if the request can be moved up in
priority. If no I will put that particular servlet into a wait state to be
woken up by some scheduler I create in the servlet engine. 

Ideally, all requests will be processed but some will be done before others.


It is not a login or cookie application. We are not using browsers to access
the application so the headers are customizable and we know the type of
message arriving. It's just we want some types of messages to be done. Under
load we can reject certain messages that are not high priority if an
internal processor cannot be assigned with a specified time frame.

Thanks
Donie


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
Sent: 09 January 2004 12:34
To: Tomcat Users List
Subject: Re: How does a servlet request work. Not a newbie question ;)

Donie Kelly wrote:
> Hi all
>
> I want to insert some form of scheduling into our application and I was
> wondering how Tomcat passes the request to the actual servlet I write.
> Does Tomcat just read the headers to create the request object and leave
> the body of the message in an inputstream for the servlet to read or is
> all the data in the request read by Tomcat before passing it to servlet?
>
> Some of my traffic is more important that other based on headers in the
> request. I want to prioritise the handling of requests under load
> conditions.

I'm not aware of any priority scheduling in Tomcat's worker threads. There
is no
public API for that, anyway.

If I understand correctly, you'd like people to login to a part of your app
and
then they will be issued a Cookie, which would be the token for boosting
priority of such requests. Possibly in a Filter.

Unless you wish to employ your own thread pools, internal or real, I think
this
is a no-go.

As a quick solution, you'd be better off using IP layer stuff, like IP QoS
(Quality of Service), Linux policy routing, etc.

Nix.


-
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 does a servlet request work. Not a newbie question ;)

2004-01-09 Thread Donie Kelly









Hi all

 

I want to
insert some form of scheduling into our application and I was wondering how
Tomcat passes the request to the actual servlet I write. Does Tomcat just read
the headers to create the request object and leave the body of the message in
an inputstream for the servlet to read or is all the data in the request read
by Tomcat before passing it to servlet?

 

Some of my
traffic is more important that other based on headers in the request. I want to
prioritise the handling of requests under load conditions.

 

Any input
on this is welcome.

Thanks

Donie

 






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

RE: TomCat Server Killed

2003-12-18 Thread Donie Kelly
We have had the same problem with Solaris 8 and tomcat 4.1.18
No solution found yet. Tried using nohup to start the process but still
exits when you leave the session.

Donie

-Original Message-
From: "Ferreira, André" [mailto:[EMAIL PROTECTED]
Sent: 18 December 2003 10:45
To: [EMAIL PROTECTED]
Subject: TomCat Server Killed


1.  I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris
8 system.
2.  I exit the console screen from where I started tomcat and everything
is still fine.
3.  Once I logout the user (From the CDE environment), tomcat is killed.

Is there a workaround to start tomcat (and keep it alive) without keeping
the user session still open in the CDE environment?



Thanx.

André Ferreira


Note:
The information in this e-mail is confidential and is intended solely for
the addressee. If you have received this e-mail in error, you are hereby
notified that any review, copying or distribution is strictly prohibited.
Please inform the sender immediately and destroy the original. Siemens
Limited and/or its subsidiaries accepts no liability of whatever nature for
any loss, liability, damage or expense resulting directly or indirectly from
access to this message and any files or links that are attached hereto.

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



RE: Running tomcat on Solaris. Stops when exiting the console

2003-12-10 Thread Donie Kelly
Hi Guys
 
I'm really stuck on this one. Can anybody shed some light on it? Sorry for
the double post...

Thanks
Donie
 
-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: 09 December 2003 15:23
To: Tomcat Users List (E-mail)
Subject: Running tomcat on Solaris. Stops when exiting the console
 
Hi all
 
We have had this problem lately where we can start tomcat using "Catalina
start"  but when we exit the console it stops. When you look at the ps -ef |
grep java it shows tomcat running and the PPID is 1 so the process belongs
to inetd so I would have though it had detached from the terminal correctly.
 
I also noticed if you start tomcat as normal using same procedure and then
you tail the log files at $CATALINA_BASE/logs. Press control-c to exit  the
tail and tomcat also quits.
 
Anybody have any idea what is going on here.
 
Thanks
Donie
 


Running tomcat on Solaris. Stops when exiting the console

2003-12-09 Thread Donie Kelly









Hi all

 

We have had
this problem lately where we can start tomcat using “Catalina start”  but when we exit the console it stops.
When you look at the ps –ef | grep java it shows tomcat running and the PPID is
1 so the process belongs to inetd so I would have though it had detached from
the terminal correctly.

 

I also
noticed if you start tomcat as normal using same procedure and then you tail
the log files at $CATALINA_BASE/logs. Press control-c to exit  the tail and tomcat also quits.

 

Anybody
have any idea what is going on here.

 

Thanks

Donie

 






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

Setting the "Server" header in HTTP traffic

2003-08-27 Thread Donie Kelly









Hi all

 

Is there
any easy way to set the Server name for Tomcat so that all traffic originating
from Tomcat uses the new name instead of eg: Server: Apache
Tomcat/4.1.18-LE-jdk14 (HTTP/1.1 Connector)

 

Thanks in
advance

Donie

 

--

Eagles may
soar but weasels don't get sucked into jet engines

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**




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

RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool

2003-07-29 Thread Donie Kelly
Cool. I didn't see that but I'm only brushing the surface. 

I have installed it already and I will try to get the CVS thing going. I'll
let you know how I get on.

It's a nice piece of software but as I said I'm only brushing the surface at
the moment. It's also $1000 so please let me know if one as good as this can
be got from the open source community.

Regards
Donie


-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: 29 July 2003 16:27
To: 'Tomcat Users List'
Subject: RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the
best tool

If you dig a bit deeper with JIRA, there's a way to integrate it with
CVS. It appears to involve modifying your CVS to emit emails ?  I'm no
CVS expert, but it looks not "too bad" in terms of complexity.

http://www.atlassian.com/software/jira/docs/v2.3/cvs_emails.html


> -Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 29, 2003 10:12 AM
> To: 'Tomcat Users List'
> Subject: RE: Bugs, Issues, Tasks, Patches, CVS integration -
> which is the best tool
>
>
> Hi all
>
> Thanks for the replies but none of these projects appear to
> have CVS integration? How do I track which source code has
> been modified in the our software when I'm viewing a bug or issue?
>
> Do you have to add it as a comment like we do now?
>
> Thanks
> Donie
>
>
> -Original Message-
> From: Rick Roberts [mailto:[EMAIL PROTECTED]
> Sent: 29 July 2003 16:17
> To: Tomcat Users List
> Subject: Re: Bugs, Issues, Tasks, Patches, CVS integration -
> which is the best tool
>
> Take a look at this:
> http://scarab.tigris.org/
>
> I have not used it yet, but am going to install and evaluate
> as soon as I get some time.
>
> There is also Bugzilla.
> http://www.bugzilla.org/
>
> HTH,
> --
> ***
> * Rick Roberts*
> * Advanced Information Technologies, Inc. *
> ***
>
> Donie Kelly wrote:
> >-->
> >
> > Hi all
> >
> >
> >
> > We've been working on a project for a while and tracking
> details like
> > in the subject above are proving to be cumbersome. Is there
> any single
> > tool that's easy to install and use on a webserver (hopefully) that
> > will manage all this stuff for us.
> >
> >
> >
> > Ideally, we would like to log a bug or issue and have it
> fixed in the
> > source. We might then go to this tool and check the files
> in so that
> > the tool tracks the source code changes that are made for the issue
> > (or task or bug etc..)
> >
> >
> >
> > Any such tool?
> >
> >
> >
> > Regards
> >
> > Donie
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> **
> This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity
> to whom they are addressed. If you have received this email
> in error please notify the sender.
>
> This footnote also confirms that this email message has been
> swept by MIMEsweeper for the presence of computer viruses.
>
> **
>
>
> -
> 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]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool

2003-07-29 Thread Donie Kelly
Hi all

Thanks for the replies but none of these projects appear to have CVS
integration? How do I track which source code has been modified in the our
software when I'm viewing a bug or issue?

Do you have to add it as a comment like we do now?

Thanks
Donie


-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: 29 July 2003 16:17
To: Tomcat Users List
Subject: Re: Bugs, Issues, Tasks, Patches, CVS integration - which is the
best tool

Take a look at this:
http://scarab.tigris.org/

I have not used it yet, but am going to install and evaluate as soon as I
get
some time.

There is also Bugzilla.
http://www.bugzilla.org/

HTH,
--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***

Donie Kelly wrote:
>-->
>
> Hi all
>
> 
>
> We've been working on a project for a while and tracking details like in
> the subject above are proving to be cumbersome. Is there any single tool
> that's easy to install and use on a webserver (hopefully) that will
> manage all this stuff for us.
>
> 
>
> Ideally, we would like to log a bug or issue and have it fixed in the
> source. We might then go to this tool and check the files in so that the
> tool tracks the source code changes that are made for the issue (or task
> or bug etc..)
>
> 
>
> Any such tool?
>
> 
>
> Regards
>
> Donie
>


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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



[ot] RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool

2003-07-29 Thread Donie Kelly
We're looking for open source products if possible
Donie

-Original Message-
From: Mark F [mailto:[EMAIL PROTECTED]
Sent: 29 July 2003 12:59
To: Tomcat Users List
Subject: Re: Bugs, Issues, Tasks, Patches, CVS integration - which is the
best tool

Depends on if you are using a commercial SCM tool.

Bitkeeper has a nice tracking tool called BK/BugManager.  PVCS Professional
has one too.  Can't remember what it is called.  We are looking at SCM
software right now but have not yet decided on anything.  I'm sure most
other commercial SCM software will offer some sort of bug tracking.

http://www.bitkeeper.com
http://www.merant.com

-Mark

- Original Message -----
From: Donie Kelly
To: Tomcat Users List (E-mail)
Sent: Tuesday, July 29, 2003 6:42 AM
Subject: Bugs, Issues, Tasks, Patches, CVS integration - which is the best
tool



Hi all

We've been working on a project for a while and tracking details like in the
subject above are proving to be cumbersome. Is there any single tool that's
easy to install and use on a webserver (hopefully) that will manage all this
stuff for us.

Ideally, we would like to log a bug or issue and have it fixed in the
source. We might then go to this tool and check the files in so that the
tool tracks the source code changes that are made for the issue (or task or
bug etc..)

Any such tool?

Regards
Donie



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**




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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool

2003-07-29 Thread Donie Kelly









Hi all

 

We’ve been
working on a project for a while and tracking details like in the subject above
are proving to be cumbersome. Is there any single tool that’s easy to install
and use on a webserver (hopefully) that will manage all this stuff for us.

 

Ideally, we
would like to log a bug or issue and have it fixed in the source. We might then
go to this tool and check the files in so that the tool tracks the source code
changes that are made for the issue (or task or bug etc..)

 

Any such
tool?

 

Regards

Donie

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**




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

RE: Unscubscribe while on holidays

2003-06-27 Thread Donie Kelly
Ok, I'll admit it. I'm blind :) Thanks


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 27 June 2003 15:14
To: Tomcat Users List
Subject: RE: Unscubscribe while on holidays


Howdy,
As the footer of each list message says:
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

That's nice, courteous of you.  Enjoy your holidays ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-----
From: Donie Kelly [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 10:01 AM
To: Tomcat Users List (E-mail)
Subject: Unscubscribe while on holidays

Hi all

Can anybody remind me how to unsubscribe while I'm away on holidays to
avoid you getting me "Out of Office"

Tanks
Donie


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



Unscubscribe while on holidays

2003-06-27 Thread Donie Kelly









Hi all

 

Can anybody remind me how to unsubscribe while I’m away on holidays to
avoid you getting me “Out of Office”

 

Tanks

Donie





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**




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

RE: Log4j problem mixing 2 apps

2003-06-27 Thread Donie Kelly
OK, I think I see the problem but I'm not sure how to fix.

I'm using eclipse to debug and run tomcat and as it uses log4j to log in the
webapps I have to put log4j in the classpath for eclipse so that the code
will compile. However, I think this is causing a problem when the
application runs as the log4j jar is loaded by eclipse and therefore it
seems to use that version instead of the version in WEB-INF/lib.

If I run the application from the command line it works fine.

Anybody got any idea on how I can work in Eclipse (or any IDE) and get
around this loading problem?

Thanks
Donie


-Original Message-
From: Jim Lynch [mailto:[EMAIL PROTECTED]
Sent: 26 June 2003 16:56
To: Tomcat Users List
Subject: Re: Log4j problem mixing 2 apps

OK, I removed the jar file from common/lib and put copies in each
WEB-INF/lib and it works as expected.

Thanks again,

Donie, be sure you don't still have a copy somewhere in your tomcat lib
path, too.

Jim.

Donie Kelly wrote:
>
> I have this problem as well but my log4j.jar is in WEB-INF/lib in both
> contexts. The problem happens exactly the same way. The last app to load
> sets the logging for each webapp and all the logs go to the same location.
>
> Donie
>
> -Original Message-
> From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]
> Sent: 26 June 2003 14:48
> To: Tomcat Users List
> Subject: Re: Log4j problem mixing 2 apps
>
> easiest solution is to use log4j in the context scope, instead of
> application scope. meaning that you put your log4j.jar file in web-inf/lib
> of every context, instead of some central location. each application will
> have to configure the logger separately after that, and you will have no
> interference.
>
> cheers,
> Vlad
>
> At 09:40 AM 6/26/2003, you wrote:
> >I've two different applications running, using log4j to log.  For some
> >reason output destined for one app gets in the others log.  It looks
> >like only one application can have a log at a time.
> >
> >What might I have done to cause this problem? It looks like the
> >application that has been deployed last gets all the log messages.
> >
> >Thanks,
> >Jim.
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> 
> Vladimer Shioshvili
>
> QRC Division of Macro International Inc.
> 7315 Wisconsin Avenue, Suite 400W
> Bethesda, MD 20814
>
> Phone: (301) 657 3077 ext. 155
>
> -
> 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]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



RE: Log4j problem mixing 2 apps

2003-06-26 Thread Donie Kelly
I have this problem as well but my log4j.jar is in WEB-INF/lib in both
contexts. The problem happens exactly the same way. The last app to load
sets the logging for each webapp and all the logs go to the same location.

Donie


-Original Message-
From: Vladimer Shioshvili [mailto:[EMAIL PROTECTED]
Sent: 26 June 2003 14:48
To: Tomcat Users List
Subject: Re: Log4j problem mixing 2 apps

easiest solution is to use log4j in the context scope, instead of
application scope. meaning that you put your log4j.jar file in web-inf/lib
of every context, instead of some central location. each application will
have to configure the logger separately after that, and you will have no
interference.

cheers,
Vlad

At 09:40 AM 6/26/2003, you wrote:
>I've two different applications running, using log4j to log.  For some
>reason output destined for one app gets in the others log.  It looks
>like only one application can have a log at a time.
>
>What might I have done to cause this problem? It looks like the
>application that has been deployed last gets all the log messages.
>
>Thanks,
>Jim.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


Vladimer Shioshvili

QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814

Phone: (301) 657 3077 ext. 155


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



Log4J under two different webapps

2003-06-18 Thread Donie Kelly









Hi all

 

I’m using log4j in two webapps, which means I’ve copied the log4j.jar into
both WEB-INF/lib directory for each webapp. I’m loading a log4j.xml for
configuration from my webapp and this works great when I run the app from the command
line using the tomcat startup scripts. I can vary the settings in each
log4j.xml and see the effect shortly afterwards in my logs for that webapp.

 

However, when I run tomcat under a debugger (ide) like Eclipse the behaviour
is different. The logs work OK but if I modify one log4j.xml it affect BOTH
webapps. It’s like as if the classloader in tomcat is sharing the log4j.jar
file?

 

Anybody have any idea why this would happen under an IDE? It was also
observed under Visual Café Expert edition so it’s not just an Eclipse problem.

 

I’m using Tomcat 4.1.18 and JDK 1.4.1_02-b06 but we’ve noticed this same
problem with older tomcat’s and JDK’s.

 

Thanks for any help

Donie

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**




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

Mapping images in web.xml

2003-06-12 Thread Donie Kelly









Hi all

 

I’ve mapped my default servlet in server.xml as “/” so all requests are
mapped to that servlet. Is there any standard solution to getting the jsp and
images to work under this situation?

 

At the moment they are all getting routed to the default servlet.

 

If I make the mapping “/images” in server .xml I can make the images
load but I also have to map each individual jsp page to the jsp page.

 

Eg:

 



      index.jsp

      /onm/index.jsp

  

 

Question: is there any way to get all this to work without all these
mappings?

 

Regards

Donie

 

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**




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

RE: instance names problem will pay $2 for solution

2003-04-02 Thread Donie Kelly
This is a free service :) Don't think you can buy your answers here :)

Donie

-Original Message-
From: Michael Mattox [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 11:31
To: Tomcat Users List
Subject: RE: instance names problem will pay $2 for solution

When you create the instances (blue, red, etc.) store them in a hashtable.

SomeObject blue = new SomeObject();
ht.put("blue", blue);

then:

public void callUse(String color) {
  SomeObject o = ht.get(color);
  o.use();
}

If your instances aren't of the same type, then define an Interface (for
example they all have a method called "use") and use that instead of
SomeObject.

> -Original Message-
> From: Michael Ni [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 12:24 PM
> To: [EMAIL PROTECTED]
> Subject: instance names problem will pay $2 for solution
>
>
> i will pay $2 usd if you can solve my problem.  i'll send check
> by mail or
> paypal.
>
> my problem is i have a String variable s which stores the name of the
> instance i want to create.  how do i convert that variable to
> java code so
> that i can use it in my java code.
>
> for instance
>
> this is what i want to do
>
> blue.use();
> red.use();
>
> but have somethign like
> s = "blue";
> something(s).use();
> s = "red";
> something(s).use();
>
> which does the samething as above
>
> mike
>
>
> _
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> 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]



RE: JSP pages will not work for me. Please help

2003-04-02 Thread Donie Kelly
Hi

I was using JDK 1.4 and Tomcat 4.0.1 and this seems to be the problem.

Upgrading to Tomcat 4.0.2 solved the problem. We've now decided to move to
Tomcat 4.0.6 which also works fien in this case.
Can anybody explain what changed between 4.0.1 and 4.0.1 as it's not obvious
from the README in each version, which fixes would have repaired this
problem.

Regards
Donie

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 07:33
To: [EMAIL PROTECTED]
Subject: Re: JSP pages will not work for me. Please help

It looks like you've got a stray XML parser lying around somewhere.  My
first guess would be $JAVA_HOME/jre/lib/ext, but you should check all of the
usual suspects.

"Donie Kelly" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all, I posted this earlier and no response and I've been looking at it
> ever since to no avail. I have two machines behind a load balancer ant he
> jsp pages work on one and not the other. Both machine use the same release
> of software for both jdk and tomcat and our application is identical on
both
> machine.
>
> Something is obviously different on the non-working machine but as you can
> see the exception is not too helpful.
>
> Please cast an over it if you have time and maybe you can see something
I'm
> missing.
>
> StandardContext[]: Servlet  threw load() exception
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
> at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3267)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:388)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.lang.ClassCastException
> at
>
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
> java:93)
> at
>
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
> at
>
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
> che.java:165)
> at
>
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:1
> 38)
> at
>
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:32
> 4)
> at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
> at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3267)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
>
> Thanks
> Donie
>




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



JSP pages will not work for me. Please help

2003-04-01 Thread Donie Kelly
Hi all, I posted this earlier and no response and I've been looking at it
ever since to no avail. I have two machines behind a load balancer ant he
jsp pages work on one and not the other. Both machine use the same release
of software for both jdk and tomcat and our application is identical on both
machine.
 
Something is obviously different on the non-working machine but as you can
see the exception is not too helpful.
 
Please cast an over it if you have time and maybe you can see something I'm
missing.
 
StandardContext[]: Servlet  threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.ClassCastException
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:93)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:1
38)
at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:32
4)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 
Thanks
Donie


Problem running jsp pages

2003-04-01 Thread Donie Kelly









Hi all

 

I cannot get any jsp pages to run at all.
All I get is this

 

StandardContext[]: Servlet  threw load() exception

javax.servlet.ServletException:
Servlet.init() for servlet jsp threw exception

    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)

    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)

    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)

    at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

    at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)

    at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)

    at org.apache.catalina.core.StandardService.start(StandardService.java:388)

    at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)

    at
org.apache.catalina.startup.Catalina.start(Catalina.java:776)

    at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

    at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)

    at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at
java.lang.reflect.Method.invoke(Method.java:324)

    at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

- Root Cause -

java.lang.ClassCastException

    at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93)

    at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)

    at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165)

    at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)

    at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)

    at
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)

    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)

    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)

    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)

    at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

    at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)

 

Any ideas on what is wrong?

Thanks

Donie






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

Byte Ranges

2003-04-01 Thread Donie Kelly
Hi all

Can anybody explain how my service can support byte ranges in the GET
request. When data is requested from our application it comes from a
database and we cannot ask it for a specific range of bytes. 

My question is, will Tomcat look after this automatically and discard the
leading bytes if required and stop at the end byte range?

Thanks for any insights...
Donie

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



RE: Frequent hanging

2003-03-24 Thread Donie Kelly
Sounds like a memory leak. You may need to profile your application to see
where the problem is.
Donie

-Original Message-
From: Manohar Kamath [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 12:21
To: Tomcat Users List
Subject: Re: Frequent hanging


Adding to service wont solve the problem, check up server.xml file

 Erki Kriks <[EMAIL PROTECTED]> wrote:If you use some Windows server (NT, 2000,
XP), you can add a new service to
Services,
or to StartUp list (Win95/Win98) :-)

> Dear Sir,
>
> We installed a web application using Tomcat 4.0.
> It is a SQL 2000/ Tomcat 4.0.
>
> We observed a problem.
> The application is getting hanging on every 4 days.
> Once we restarted the Tomcat, it is ok.
>
> I need a clarification that why should i restart tomcat everytime?
> If it has to be done, can it be automated (at present, we are physically
go
> to the server room and do restart)
> (Or)
> Is there any installation parameters to be initialized?
>
> Regards,
> Karthikeyan VKS
>
>


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



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

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



RE: Apache - Tomcat connectors

2003-03-14 Thread Donie Kelly
Hi

Why do so many other sites need to do this. Should the definitive source not
be the Tomcat site? If people have time they should submit a working
example. It would be nice if there was an official source for this type of
information. 

It sure is a waste of time roaming the web for basic documentation when it
should be readily available. I haven't much experience of all areas of
Tomcat but I'd defiantly submit a HOW-TO for parts I do know. All it need is
for a webmaster to look after the submissions. They could be easily then
added to the existing tomcat site.

Donie
-Original Message-
From: Chris Dodunski [mailto:[EMAIL PROTECTED]
Sent: 14 March 2003 12:07
To: Tomcat Users List
Subject: Apache - Tomcat connectors

I'm honestly astounded at the number of people struggling with successfully
installing and configuring Apache - Tomcat connectors.  An extensive search
of apache.org (and other sites) reveals why.  Documentation is vague,
fragmented, and quite frankly confusing.  It's frustrating and it's time
wasting.  Time I say for some clear, concise, blow by blow documentation on
performing what should be a relatively simple procedure.  Do you agree?


-
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: preview of webapp of Tomcat Performance book

2003-02-11 Thread Donie Kelly
We plan to get it when it comes out. Actually, one for each developer here
to stop them writing the crap that they sometimes turn out. Your book and a
big stick!

Seriously thought, that would be cool. How about a preview of the book
itself. Word or PDF format is fine.

Donie

 -Original Message-
From:   Peter Lin [mailto:[EMAIL PROTECTED]] 
Sent:   11 February 2003 13:59
To: Tomcat Users List
Subject:preview of webapp of Tomcat Performance book


I plan on releasing the webapp and utilities for
Tomcat Performance Handbook Remy and I are writing in
the next few days. I'd like to know if tomcat-users
find that appealing?

peter lin


__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.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]




RE: Multiple SSL Certificates

2003-02-10 Thread Donie Kelly
This problem has been discussed here before so search the archives. Short
answer is that Tomcat cannot support two SSL certificates on the same port
so while tomcat supports virtual hosting, it cannot work with SSL. This is
not a limitation of Tomcat but a limitation of the SSL protocol which must
encrypt the link before passing any data to tomcat that could allow it to
decide which certificate to use.

Easy solution is to run two tomcat instances (two jvm's) and maybe use a
load balancer that does port translation. There are other ways but if you
search the archives you see what I mean.

Donie


-Original Message-
From: Driscoll, Jerry [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 18:38
To: [EMAIL PROTECTED]
Subject: Multiple SSL Certificates

I am running Tomcat 4.1 as a standalone server with two separate IP
addresses (one for internet and the other for intranet access), both
pointing to the same application.  I ordered two certificates from Verisign
(who stated I needed two) and installed both in Tomcat using the keystore
utility. However, only one certificate is recognized. The internet
certificate with name test1.internet.app is recognized, but the other
certificate with name test2.intranet.app is not. Depending on which one I
install first, that is the one that is recognized. So I called Verisign
(they do not support Tomcat) and they stated that I need to get Tomcat to
support multiple certificates. If I only need one, how do I get Tomcat to
recognize both IP addresses or both names?  Do I just define a virtual host
for each IP address (or domain name) that it serves in the server.xml file?

Jerry L. Driscoll
WEB Implementation Manager
Chesapeake College
P.O. Box 8
Wye Mills, MD  21679
Phone: 410-827-585


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




RE: Can a single host with multiple hostnames (same IP) have multiple SSL certs?

2003-02-07 Thread Donie Kelly
Have a look at docs surrounding CATALINA_BASE to get tomcat to run in
different JVM's using single code base. We use hosting at that was the only
solution. 

Donie


-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2003 04:11
To: [EMAIL PROTECTED]
Subject: Re: Can a single host with multiple hostnames (same IP) have
multiple SSL certs?

The short answer is:  No.

It's basically the same problem as having multiple sites sharing an IP
address.  In the SSL protocol, the server (aka Tomcat) has to send the cert
very early on in the handshake.  In particular, *before* the browser has
sent the request headers (there is no point in the browser sending
potentially sensitive info until it has decided to trust you :).  Tomcat (or
any other SSL-enabled server) simply doesn't have access to the information
it needs to do this at the time it needs to make a decision.


"Jeff Skubick" <[EMAIL PROTECTED]> wrote in message
002601c2ce30$85c7c890$0800290a@sasi">news:002601c2ce30$85c7c890$0800290a@sasi...
Suppose a webapp, "foo.war", is deployed to a single standalone Tomcat
instance, installed in c:\tomcat, on a single host whose IP address is
1.2.3.4. There are a half-dozen hostnames that resolve to 1.2.3.4, including
www.foo.com, www.bar.net, and www.boom.org. No distinction is made among the
various hostnames... virtual hosting isn't being used. As long as the user
makes a request to a hostname that resolves to 1.2.3.4, Tomcat is happy to
serve the request.

Is there any way to associate three SSL certificates with it -- one for
www.foo.com, one for www.bar.net, and one for www.boom.org, so that requests
to https://www.foo.com/foo/page.jsp, https://www.bar.net/foo/page.jsp, and
https://www.boom.org/foo/page.jsp will all satisfy both Tomcat *AND* the
browser?

Note that I'm specifically *NOT* trying to have multiple different sites
sharing the same IP address with different hostnames. I know SSL doesn't
support that. What I'm trying to do is ensure that regardless of what
hostname is used to access the https page, the browser will be presented
with a valid certificate so it won't gripe about the certificate's name not
matching the site's hostname.

I know that the usual obstacle lies with the request header itself being
encrypted. However, if that's still the case, why couldn't Tomcat just
iterate through all the plausible keys available to it, one at a time, in
descending order of likelihood, until it finds one that decrypts it into a
valid request & then send the reply with THAT one? To give a real-world
analogy, it would kind of be like when a friend asks you to watch his house
while he's out of town, hands you a ring with a dozen keys that all look
alike, and you have to try them one at a time until you find the one that
fits and unlocks the door...

Yeah, it would increase the load on the server for requests to that one
page, but seeing how the only thing on the entire site that's actually SSL
is the login page and the actual number of possible hostnames/keys is fairly
small, the performance penalty of brute force doesn't seem like all that big
of a deal.

Thanks!




-
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: Why won't anyone help me out??

2003-02-05 Thread Donie Kelly
"constant whiner" writes:
" I will try to be more charming and gracious in my dealings with our
newsgroup in the future, I promise you!"
and then continues on with...
JSP, right before I go to "beddie bye" for the nite, I just had to ask u
directly what in the hell you meant by the damned phrase "Live long, and
prosper"? Were you trying/attempting to be "cute" or something because we
really don't need that kind of "cuteness" in our little newsgroup!!!
Capiche?!
>From my experience on this list you attitude will get you nowhere and you
should take the advice as given. Most of your problems are because you are
in over your head and maybe you need to stand back and get the little things
working first and develop an understanding of how this stuff works before
begging for answers. None of us have time for that kind of detail. We have
work to do ourselves you know... If you have a specific technical problem
that goes beyond reading the first pages of a servlets book then we will
gladly help. Otherwise have a look at www.amazon.com 
Donie



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




RE: Tomcat, log4j and strange output log

2003-01-15 Thread Donie Kelly
You should put log4j in your app/WEB-INF/lib directory as I think it has
static classes internally so if one app configures it one way and something
some other way then only the last app takes effect. If it's in the app lib
dir then the class loader will keep it safe from this stuff.

If you can only see info,warn,error and fatal I'd suspect that the log4j is
configured to info level. Read the docs that come with it to learn how to
configure it.

Donie




-Original Message-
From: Damien Lecan [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 17:25
To: [EMAIL PROTECTED]
Subject: Tomcat, log4j and strange output log


Hi,

I'm using tomcat 4.1.18 and I would like to use log4j in my application.

I decided to put the jar file into the common/lib directory and a 
log4j.properties file into my WEb-INF/classes directory.


But at this time, classical outputs from tomcat are changed !

Before adding log4J.jar in common/lib :
15 janv. 2003 18:18:34 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
15 janv. 2003 18:18:34 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance

After :
0 [main] INFO modeler.Registry  - Loading registry information
0 [main] INFO modeler.Registry  - Creating new Registry instance

Ok, I thought this was coming from my log4j.properties file, but in fact 
not (I removed it, and nothing changed)

More, in servlet, I cannot output debug log, just warn, info and fatal, 
except if I also add log4j.jar in my WEB-INF/lib directory.

This is not really important for me, but i don't understand why this 
both things happen ?

Thanks for your help


Damien Lecan




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Startup Error

2003-01-09 Thread Donie Kelly
Try removing the servlet.jar from you WEB-INF/lib directory as it's already
in the tomcat/common/lib directory

Donie

-Original Message-
From: Nathan McMinn [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2003 13:47
To: Tomcat Users List
Subject: Startup Error

First, thanks to everyone for all the help.  I just have one more question.
When starting tomcat (4.1.18 on win xp, jdk 1.4.1_01).  I receive this error
message:

WebappClassLoader:
validateJarFile(C:\TomcatTest\webapps\wwxchange\WEB-INF\lib\s
ervlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class

Has anyone ever seen this before?

-Nathan McMinn



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: why doesn't tomcat see my correct keystore?

2003-01-09 Thread Donie Kelly
In Tomcat 4.0.4 I have the following


  


What version of tomcat are you using? The reason I ask is the fact that you
are using the name, value attributes?

Donie


-Original Message-
From: Rasputin [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2003 12:49
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: why doesn't tomcat see my correct keystore?

* Rob Lagana <[EMAIL PROTECTED]> [0108 23:08]:
>
>
> I found out that tomcat was looking at the .keystore default...
> However I specified in the server.xml file the below and tomcat just
> ignores it.

>  

I'd try putting the path relative to $CATALINA_BASE - maybe there's a
bug with the C:\ part?

"keystoreFile:
Add this attribute if the keystore file you created is not in the default
place that Tomcat expects (a file named .keystore in the user home
directory under which Tomcat is running). You can specify an absolute
pathname, or a relative pathname that is resolved against the
$CATALINA_BASE environment variable."
--
Rasputin :: Jack of All Trades - Master of Nuns

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: TOMCAT Not listening on 80

2003-01-06 Thread Donie Kelly
When you say you can't stop it do you mean "won't stop it?" or you are
unable to stop it?

Donie


-Original Message-
From: Vivek Singh [mailto:[EMAIL PROTECTED]]
Sent: 06 January 2003 10:52
To: 'Tomcat Users List'
Subject: TOMCAT Not listening on 80

Hi,

 I did exactly as in the John Turner's website, Apache
1.3.27 with mod_jk and tomcat 4.1.18. To sum up here is what is
happening

  1. I already have a Bugzilla running on my server at port80. Can't
stop it
  2. At port 8080 I can see Tomcat listening. I need it on 80 ( Apache
is running here)


Can anyone help me?


  Thanks a lot in Advance and thanks John mail for Host Container
clarifications


~Vivek

  



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: [OT] RE: Creating a signed SSL certificate with my own CA

2002-12-12 Thread Donie Kelly
 00 03 81 8D 00 30  *.H0
05C0: 81 89 02 81 81 00 C9 3D   71 EE 3F 00 3F C4 03 6E  ...=q.?.?..n
05D0: D1 7B 4D D2 E5 65 CC 02   44 77 71 77 04 E9 2C 4F  ..M..e..Dwqw..,O
05E0: D2 9E 33 64 61 76 0A 38   C2 60 F0 91 33 32 E7 C9  ..3dav.8.`..32..
05F0: 80 31 EC CF BB 04 AA CD   0C 3A B0 EA F7 F3 E0 AE  .1...:..
0600: 54 CC F0 31 C2 63 26 86   18 ED 8A 7A 28 E4 8B B7  T..1.c&z(...
0610: 08 BE A1 A7 AA 7D 02 98   6F 67 4C 80 E7 06 B5 EF  ogL.
0620: 6B 3C F4 F9 B2 45 87 8C   FB DD C6 2C 9D 2D A4 8C  k<...E.,.-..
0630: 12 12 4E E7 4C 9C 7C 3E   FB 0D 64 D9 B9 43 3A DE  ..N.L..>..d..C:.
0640: 3D BD 16 B7 5F 13 02 03   01 00 01 A3 81 C3 30 81  =..._.0.
0650: C0 30 1D 06 03 55 1D 0E   04 16 04 14 D8 18 22 CF  .0...U".
0660: F1 9D DE E6 0E 83 D3 04   E7 96 09 2C E3 AA 0C 2E  ...,
0670: 30 81 90 06 03 55 1D 23   04 81 88 30 81 85 80 14  0U.#...0
0680: D8 18 22 CF F1 9D DE E6   0E 83 D3 04 E7 96 09 2C  ..",
0690: E3 AA 0C 2E A1 6A A4 68   30 66 31 0B 30 09 06 03  .j.h0f1.0...
06A0: 55 04 06 13 02 49 45 31   0E 30 0C 06 03 55 04 08  UIE1.0...U..
06B0: 13 05 63 6C 61 72 65 31   10 30 0E 06 03 55 04 07  ..clare1.0...U..
06C0: 13 07 73 68 61 6E 6E 6F   6E 31 11 30 0F 06 03 55  ..shannon1.0...U
06D0: 04 0A 13 08 74 65 63 6E   6F 6D 65 6E 31 0C 30 0A  tecnomen1.0.
06E0: 06 03 55 04 0B 13 03 64   61 64 31 14 30 12 06 03  ..Udad1.0...
06F0: 55 04 03 13 0B 74 65 63   6E 6F 6D 65 6E 20 63 61  Utecnomen ca
0700: 82 01 00 30 0C 06 03 55   1D 13 04 05 30 03 01 01  ...0...U0...
0710: FF 30 0D 06 09 2A 86 48   86 F7 0D 01 01 04 05 00  .0...*.H
0720: 03 81 81 00 4A EC C3 08   97 C3 C9 D3 E4 56 DA C1  JV..
0730: 11 FF D7 36 7D F0 2A E0   C2 B4 D9 86 6E 94 6D 52  ...6..*.n.mR
0740: 50 4C CF E2 A1 C2 63 F1   95 CE 61 5C 76 4C 6D C0  PLc...a\vLm.
0750: A9 C5 50 66 1C D1 B3 1D   02 EE B2 EB C0 DC F5 ED  ..Pf
0760: B1 32 A1 0F F1 94 29 CD   37 11 BC 3B 90 85 BD BE  .2).7..;
0770: 1F A8 39 44 5E BC 1C 6F   21 65 DD 9C 1F 98 0A 07  ..9D^..o!e..
0780: 88 4C F1 CE 46 1D 8F 73   40 F5 52 E0 C4 88 A7 00  .L..F..s@.R.
0790: EA EE 20 E6 05 5D A1 3C   DF 5D C4 F9 EF 86 8B 3C  .. ..].<.].<
07A0: C9 D6 99 3F 0C 00 01 38   00 81 00 F4 88 FD 58 4E  ...?...8..XN
07B0: 49 DB CD 20 B4 9D E4 91   07 36 6B 33 6C 38 0D 45  I.. .6k3l8.E
07C0: 1D 0F 7C 88 B3 1C 7C 5B   2D 8E F6 F3 C9 23 C0 43  ...[-#.C
07D0: F0 A5 5B 18 8D 8E BB 55   8C B8 5D 38 D3 34 FD 7C  ..[U..]8.4..
07E0: 17 57 43 A3 1D 18 6C DE   33 21 2C B5 2A FF 3C E1  .WC...l.3!,.*.<.
07F0: B1 29 40 18 11 8D 7C 84   A7 0A 72 D6 86 C4 03 19  .)@...r.
0800: C8 07 29 7A CA 95 0C D9   96 9F AB D0 0A 50 9B 02  ..)z.P..
0810: 46 D3 08 3D 66 A4 5D 41   9F 9C 7C BD 89 4B 22 19  F..=f.]A.K".
0820: 26 BA AB A2 5E C3 55 E9   2F 78 C7 00 01 02 00 80  &...^.U./x..
0830: 3E 59 9B 81 68 37 8D 4D   D1 82 34 0B D9 D9 CA 10  >Y..h7.M..4.
0840: 45 50 73 58 3E 95 01 10   AB FD 0C 49 59 EF 99 2C  EPsX>..IY..,
0850: 65 2C 1E 18 09 0C BC 0E   BF 4A 93 BD 51 BB 06 2D  e,...J..Q..-
0860: C1 23 6E 1E 54 37 90 66   55 40 B3 5D 4E 42 15 A5  .#n.T7.fU@.]NB..
0870: 20 FE 1D 7E 18 75 A9 21   ED 1E DD 13 A8 CE 1D D8   u.!
0880: 78 AA 79 60 BA 32 6F 1E   CB 47 EE 3C B9 17 73 47  x.y`.2o..G.<..sG
0890: 59 36 8A 73 C7 61 72 8B   84 7D F3 12 42 8A 00 52  Y6.s.ar.B..R
08A0: 73 6C 5D 43 63 FC 58 65   D6 67 21 1B 4A 74 F4 4F  sl]Cc.Xe.g!.Jt.O
08B0: 00 2E 30 2C 02 14 5C 63   BD 47 6C D0 A1 62 98 1F  ..0,..\c.Gl..b..
08C0: FB 4D 5D EA BE 1B AB 2E   42 64 02 14 5B 9E 4D D5  .M].Bd..[.M.
08D0: 5D 25 49 A0 53 99 2C B8   8B 5F A9 BF 90 B0 24 63  ]%I.S.,.._$c
08E0: 0E 00 00 00
HttpProcessor[443][4], WRITE:  SSL v3.0 Handshake, length = 2276


-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 14:58
To: 'Donie Kelly '; ''Tomcat Users List' '
Subject: RE: Creating a signed SSL certificate with my own CA

You can turn SSL debugging by setting the following environment variable

CATALINA_OPTS="-Djavax.net.debug=ALL"

Then, restart tomcat. You will then see much more info in the log.
This might help you to debug your problem.

Andy.

-Original Message-
From: Donie Kelly
To: 'Tomcat Users List'
Sent: 12/12/2002 14:11
Subject: RE: Creating a signed SSL certificate with my own CA

Just to clarify, when I try to connect via SSL the SSL Handshake fails.
Donie

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 12:08
To: 'Tomcat Users List'
Subject: Creating a signed SSL certificate with my own CA


Hi all
I'm really stuck here and I'd appreciate some help. To summarise, I've
followed the instructions below to generate a CA key so that I can si

[OT] RE: Creating a signed SSL certificate with my own CA

2002-12-12 Thread Donie Kelly
 00 03 81 8D 00 30  *.H0
05C0: 81 89 02 81 81 00 C9 3D   71 EE 3F 00 3F C4 03 6E  ...=q.?.?..n
05D0: D1 7B 4D D2 E5 65 CC 02   44 77 71 77 04 E9 2C 4F  ..M..e..Dwqw..,O
05E0: D2 9E 33 64 61 76 0A 38   C2 60 F0 91 33 32 E7 C9  ..3dav.8.`..32..
05F0: 80 31 EC CF BB 04 AA CD   0C 3A B0 EA F7 F3 E0 AE  .1...:..
0600: 54 CC F0 31 C2 63 26 86   18 ED 8A 7A 28 E4 8B B7  T..1.c&z(...
0610: 08 BE A1 A7 AA 7D 02 98   6F 67 4C 80 E7 06 B5 EF  ogL.
0620: 6B 3C F4 F9 B2 45 87 8C   FB DD C6 2C 9D 2D A4 8C  k<...E.,.-..
0630: 12 12 4E E7 4C 9C 7C 3E   FB 0D 64 D9 B9 43 3A DE  ..N.L..>..d..C:.
0640: 3D BD 16 B7 5F 13 02 03   01 00 01 A3 81 C3 30 81  =..._.0.
0650: C0 30 1D 06 03 55 1D 0E   04 16 04 14 D8 18 22 CF  .0...U".
0660: F1 9D DE E6 0E 83 D3 04   E7 96 09 2C E3 AA 0C 2E  ...,
0670: 30 81 90 06 03 55 1D 23   04 81 88 30 81 85 80 14  0U.#...0
0680: D8 18 22 CF F1 9D DE E6   0E 83 D3 04 E7 96 09 2C  ..",
0690: E3 AA 0C 2E A1 6A A4 68   30 66 31 0B 30 09 06 03  .j.h0f1.0...
06A0: 55 04 06 13 02 49 45 31   0E 30 0C 06 03 55 04 08  UIE1.0...U..
06B0: 13 05 63 6C 61 72 65 31   10 30 0E 06 03 55 04 07  ..clare1.0...U..
06C0: 13 07 73 68 61 6E 6E 6F   6E 31 11 30 0F 06 03 55  ..shannon1.0...U
06D0: 04 0A 13 08 74 65 63 6E   6F 6D 65 6E 31 0C 30 0A  tecnomen1.0.
06E0: 06 03 55 04 0B 13 03 64   61 64 31 14 30 12 06 03  ..Udad1.0...
06F0: 55 04 03 13 0B 74 65 63   6E 6F 6D 65 6E 20 63 61  Utecnomen ca
0700: 82 01 00 30 0C 06 03 55   1D 13 04 05 30 03 01 01  ...0...U0...
0710: FF 30 0D 06 09 2A 86 48   86 F7 0D 01 01 04 05 00  .0...*.H
0720: 03 81 81 00 4A EC C3 08   97 C3 C9 D3 E4 56 DA C1  JV..
0730: 11 FF D7 36 7D F0 2A E0   C2 B4 D9 86 6E 94 6D 52  ...6..*.n.mR
0740: 50 4C CF E2 A1 C2 63 F1   95 CE 61 5C 76 4C 6D C0  PLc...a\vLm.
0750: A9 C5 50 66 1C D1 B3 1D   02 EE B2 EB C0 DC F5 ED  ..Pf
0760: B1 32 A1 0F F1 94 29 CD   37 11 BC 3B 90 85 BD BE  .2).7..;
0770: 1F A8 39 44 5E BC 1C 6F   21 65 DD 9C 1F 98 0A 07  ..9D^..o!e..
0780: 88 4C F1 CE 46 1D 8F 73   40 F5 52 E0 C4 88 A7 00  .L..F..s@.R.
0790: EA EE 20 E6 05 5D A1 3C   DF 5D C4 F9 EF 86 8B 3C  .. ..].<.].<
07A0: C9 D6 99 3F 0C 00 01 38   00 81 00 F4 88 FD 58 4E  ...?...8..XN
07B0: 49 DB CD 20 B4 9D E4 91   07 36 6B 33 6C 38 0D 45  I.. .6k3l8.E
07C0: 1D 0F 7C 88 B3 1C 7C 5B   2D 8E F6 F3 C9 23 C0 43  ...[-#.C
07D0: F0 A5 5B 18 8D 8E BB 55   8C B8 5D 38 D3 34 FD 7C  ..[U..]8.4..
07E0: 17 57 43 A3 1D 18 6C DE   33 21 2C B5 2A FF 3C E1  .WC...l.3!,.*.<.
07F0: B1 29 40 18 11 8D 7C 84   A7 0A 72 D6 86 C4 03 19  .)@...r.
0800: C8 07 29 7A CA 95 0C D9   96 9F AB D0 0A 50 9B 02  ..)z.P..
0810: 46 D3 08 3D 66 A4 5D 41   9F 9C 7C BD 89 4B 22 19  F..=f.]A.K".
0820: 26 BA AB A2 5E C3 55 E9   2F 78 C7 00 01 02 00 80  &...^.U./x..
0830: 3E 59 9B 81 68 37 8D 4D   D1 82 34 0B D9 D9 CA 10  >Y..h7.M..4.
0840: 45 50 73 58 3E 95 01 10   AB FD 0C 49 59 EF 99 2C  EPsX>..IY..,
0850: 65 2C 1E 18 09 0C BC 0E   BF 4A 93 BD 51 BB 06 2D  e,...J..Q..-
0860: C1 23 6E 1E 54 37 90 66   55 40 B3 5D 4E 42 15 A5  .#n.T7.fU@.]NB..
0870: 20 FE 1D 7E 18 75 A9 21   ED 1E DD 13 A8 CE 1D D8   u.!
0880: 78 AA 79 60 BA 32 6F 1E   CB 47 EE 3C B9 17 73 47  x.y`.2o..G.<..sG
0890: 59 36 8A 73 C7 61 72 8B   84 7D F3 12 42 8A 00 52  Y6.s.ar.B..R
08A0: 73 6C 5D 43 63 FC 58 65   D6 67 21 1B 4A 74 F4 4F  sl]Cc.Xe.g!.Jt.O
08B0: 00 2E 30 2C 02 14 5C 63   BD 47 6C D0 A1 62 98 1F  ..0,..\c.Gl..b..
08C0: FB 4D 5D EA BE 1B AB 2E   42 64 02 14 5B 9E 4D D5  .M].Bd..[.M.
08D0: 5D 25 49 A0 53 99 2C B8   8B 5F A9 BF 90 B0 24 63  ]%I.S.,.._$c
08E0: 0E 00 00 00
HttpProcessor[443][4], WRITE:  SSL v3.0 Handshake, length = 2276


-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 14:58
To: 'Donie Kelly '; ''Tomcat Users List' '
Subject: RE: Creating a signed SSL certificate with my own CA

You can turn SSL debugging by setting the following environment variable

CATALINA_OPTS="-Djavax.net.debug=ALL"

Then, restart tomcat. You will then see much more info in the log.
This might help you to debug your problem.

Andy.

-Original Message-
From: Donie Kelly
To: 'Tomcat Users List'
Sent: 12/12/2002 14:11
Subject: RE: Creating a signed SSL certificate with my own CA

Just to clarify, when I try to connect via SSL the SSL Handshake fails.
Donie

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 12:08
To: 'Tomcat Users List'
Subject: Creating a signed SSL certificate with my own CA


Hi all
I'm really stuck here and I'd appreciate some help. To summarise, I've
followed the instructions below to generate a CA key so that I can si

RE: Creating a signed SSL certificate with my own CA

2002-12-12 Thread Donie Kelly
Thanks

I'll turn it on and get back her if the logs don't help me...

Donie

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 14:58
To: 'Donie Kelly '; ''Tomcat Users List' '
Subject: RE: Creating a signed SSL certificate with my own CA


You can turn SSL debugging by setting the following environment variable

CATALINA_OPTS="-Djavax.net.debug=ALL"

Then, restart tomcat. You will then see much more info in the log.
This might help you to debug your problem.

Andy.

-Original Message-
From: Donie Kelly
To: 'Tomcat Users List'
Sent: 12/12/2002 14:11
Subject: RE: Creating a signed SSL certificate with my own CA

Just to clarify, when I try to connect via SSL the SSL Handshake fails. 
Donie

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 12:08
To: 'Tomcat Users List'
Subject: Creating a signed SSL certificate with my own CA


Hi all
I'm really stuck here and I'd appreciate some help. To summarise, I've
followed the instructions below to generate a CA key so that I can sign
my
own certificates for use with tomcat. The instructions below work and
the
ca.crt and client.crs.der certs that pop out are viewable in IE. If I
import
the CA key it shows the client.crs.der key with the CA above. Everything
looks great.
Then I use the testkeys with tomcat

  

Now when I try to connect with SLL from IE it just shows
Cannot find server or DNS Error
What am I doing wrong? Are the certs I am creating suitable for SLL with
Tomcat. I'd really appreciate some help.
Donie

PS: Instructions from
http://www.ddj.com/documents/s=870/ddj0102a/0102a.htm 
Certificate Authority
In a nutshell, what I'm suggesting is that you create your own
Certificate
Authority (CA) to sign your keys. This gets complicated because nothing
in
the Java Development Kit or JSSE lets you set up a CA and sign keys. You
have to go elsewhere for tools to do this. I chose to go with the
OpenSSL
toolkit (http://www.openssl.org/) running on Linux. There are toolsets
available from other vendors and platforms, however. If you choose to
use a
different toolset, you will just have to substitute the appropriate
commands; the theory is the same no matter what.
First, you need to generate your CA's key. That key is used to sign all
the
other application keys. The OpenSSL toolkit comes configured to setup a
CA
from whatever directory you start it in. This means that you need to use
all
the CA commands from the same directory. In the sample code, you'll find
the
CA directory that I used to generate the CA key and sign all the
application
keys:
1.Generate the CA key
$ openssl genrsa -rand -des -out ca.key 1024
2.Create a self signed certificate
$ openssl req -new -x509 -days 365 -key ca.key -out ca.crt
You are prompted for location information for the certificate. Enter
whatever you want, but make sure you enter something for each field:
3.Setup the OpenSSL CA tools
$ mkdir demoCA
$ mkdir demoCA/newcerts
$ touch demoCA/index.txt
$ cp ca.crt demoCA/
$ echo "01" > demoCA/serial
You now can create the client application's key store and export its
public
key so your CA can sign it. You can enter whatever you want for all the
location information, but again make sure you enter something - standard
alphanumeric characters and spaces, but no underscores or other special
characters - for every field: 
4.Create a new key store for the client application
$ keytool -keystore testkeys -genkey - alias client 
When prompted, enter passphrase for the password to use this keystore
with
the sample applications. 
5.Export the client's public key
$ keytool -keystore testkeys -certreq -alias client -file client.crs
6.Sign the client's key with our CA key
$ openssl ca -config /etc/openssl.cnf -in client.crs -out client.crs.pem
-keyfile ca.key  -cert ca.crt
At this point, you should have a file called "client.crs.pem," which is
the
signed public key. It needs to be converted to a format suitable for the
JDK's keytool command, and then imported into the testkeys keystore:
7.Convert to DER format
$ openssl x509 -in client.crs.pem -out client.crs.der -outform DER
8.Import CA certificate into client's key store
$ keytool -keystore testkeys -alias jsse_article_ca -import -file ca.crt

9.Import signed key into client's key store
$ keytool -keystore testkeys -alias client -import -file client.crs.der
Step 8 must be completed so that the keytool command agrees to import
the
signed key. While importing the signed key, keytool checks the
signatories
to ensure that their signatures can be validated. They can be validated
if
their public keys are in the key store.
Once you have completed all of these steps, move the testkeys key store
to
the client directory. Start over with step 4 and create a key store for
the
server proc

RE: Creating a signed SSL certificate with my own CA

2002-12-12 Thread Donie Kelly
I can create a single key and use that. it works ok. When i try to sign the
key using my own ca is where the problem is happening.

Donie


-Original Message-
From: Christoph Fischer [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 14:35
To: Tomcat Users List
Subject: Re: Creating a signed SSL certificate with my own CA


Maybe you have an entry for a special proxy-server
in you IE for SSL-connections ?
I've created a key with the keytool from j2sdk1.4.1 and it works without 
problem

Chris

Donie Kelly wrote:

>Hi all
>I'm really stuck here and I'd appreciate some help. To summarise, I've
>followed the instructions below to generate a CA key so that I can sign my
>own certificates for use with tomcat. The instructions below work and the
>ca.crt and client.crs.der certs that pop out are viewable in IE. If I
import
>the CA key it shows the client.crs.der key with the CA above. Everything
>looks great.
>Then I use the testkeys with tomcat
>address="192.168.1.4" port="443" enableLookups="true" scheme="https"
>secure="true">
>  className="org.apache.catalina.net.SSLServerSocketFactory"
>clientAuth="false" protocol="TLS" keystoreFile="c:\tomcat4.0\conf\testkeys"

>   keystorePass="changeit" />
>
>Now when I try to connect with SLL from IE it just shows
>Cannot find server or DNS Error
>What am I doing wrong? Are the certs I am creating suitable for SLL with
>Tomcat. I'd really appreciate some help.
>Donie
>
>PS: Instructions from http://www.ddj.com/documents/s=870/ddj0102a/0102a.htm

>Certificate Authority
>In a nutshell, what I'm suggesting is that you create your own Certificate
>Authority (CA) to sign your keys. This gets complicated because nothing in
>the Java Development Kit or JSSE lets you set up a CA and sign keys. You
>have to go elsewhere for tools to do this. I chose to go with the OpenSSL
>toolkit (http://www.openssl.org/) running on Linux. There are toolsets
>available from other vendors and platforms, however. If you choose to use a
>different toolset, you will just have to substitute the appropriate
>commands; the theory is the same no matter what.
>First, you need to generate your CA's key. That key is used to sign all the
>other application keys. The OpenSSL toolkit comes configured to setup a CA
>from whatever directory you start it in. This means that you need to use
all
>the CA commands from the same directory. In the sample code, you'll find
the
>CA directory that I used to generate the CA key and sign all the
application
>keys:
>1.Generate the CA key
>$ openssl genrsa -rand -des -out ca.key 1024
>2.Create a self signed certificate
>$ openssl req -new -x509 -days 365 -key ca.key -out ca.crt
>You are prompted for location information for the certificate. Enter
>whatever you want, but make sure you enter something for each field:
>3.Setup the OpenSSL CA tools
>$ mkdir demoCA
>$ mkdir demoCA/newcerts
>$ touch demoCA/index.txt
>$ cp ca.crt demoCA/
>$ echo "01" > demoCA/serial
>You now can create the client application's key store and export its public
>key so your CA can sign it. You can enter whatever you want for all the
>location information, but again make sure you enter something - standard
>alphanumeric characters and spaces, but no underscores or other special
>characters - for every field: 
>4.Create a new key store for the client application
>$ keytool -keystore testkeys -genkey - alias client 
>When prompted, enter passphrase for the password to use this keystore with
>the sample applications. 
>5.Export the client's public key
>$ keytool -keystore testkeys -certreq -alias client -file client.crs
>6.Sign the client's key with our CA key
>$ openssl ca -config /etc/openssl.cnf -in client.crs -out client.crs.pem
>-keyfile ca.key  -cert ca.crt
>At this point, you should have a file called "client.crs.pem," which is the
>signed public key. It needs to be converted to a format suitable for the
>JDK's keytool command, and then imported into the testkeys keystore:
>7.Convert to DER format
>$ openssl x509 -in client.crs.pem -out client.crs.der -outform DER
>8.Import CA certificate into client's key store
>$ keytool -keystore testkeys -alias jsse_article_ca -import -file ca.crt 
>9.Import signed key into client's key store
>$ keytool -keystore testkeys -alias client -import -file client.crs.der
>Step 8 must be completed so that the keytool command agrees to import the
>signed key. While importing the signed key, keytool checks the signatories
>to ensure that their signatures can be validated. They can be validated if
>their

RE: Creating a signed SSL certificate with my own CA

2002-12-12 Thread Donie Kelly
Just to clarify, when I try to connect via SSL the SSL Handshake fails. 
Donie

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 12 December 2002 12:08
To: 'Tomcat Users List'
Subject: Creating a signed SSL certificate with my own CA


Hi all
I'm really stuck here and I'd appreciate some help. To summarise, I've
followed the instructions below to generate a CA key so that I can sign my
own certificates for use with tomcat. The instructions below work and the
ca.crt and client.crs.der certs that pop out are viewable in IE. If I import
the CA key it shows the client.crs.der key with the CA above. Everything
looks great.
Then I use the testkeys with tomcat

  

Now when I try to connect with SLL from IE it just shows
Cannot find server or DNS Error
What am I doing wrong? Are the certs I am creating suitable for SLL with
Tomcat. I'd really appreciate some help.
Donie

PS: Instructions from http://www.ddj.com/documents/s=870/ddj0102a/0102a.htm 
Certificate Authority
In a nutshell, what I'm suggesting is that you create your own Certificate
Authority (CA) to sign your keys. This gets complicated because nothing in
the Java Development Kit or JSSE lets you set up a CA and sign keys. You
have to go elsewhere for tools to do this. I chose to go with the OpenSSL
toolkit (http://www.openssl.org/) running on Linux. There are toolsets
available from other vendors and platforms, however. If you choose to use a
different toolset, you will just have to substitute the appropriate
commands; the theory is the same no matter what.
First, you need to generate your CA's key. That key is used to sign all the
other application keys. The OpenSSL toolkit comes configured to setup a CA
from whatever directory you start it in. This means that you need to use all
the CA commands from the same directory. In the sample code, you'll find the
CA directory that I used to generate the CA key and sign all the application
keys:
1.Generate the CA key
$ openssl genrsa -rand -des -out ca.key 1024
2.Create a self signed certificate
$ openssl req -new -x509 -days 365 -key ca.key -out ca.crt
You are prompted for location information for the certificate. Enter
whatever you want, but make sure you enter something for each field:
3.Setup the OpenSSL CA tools
$ mkdir demoCA
$ mkdir demoCA/newcerts
$ touch demoCA/index.txt
$ cp ca.crt demoCA/
$ echo "01" > demoCA/serial
You now can create the client application's key store and export its public
key so your CA can sign it. You can enter whatever you want for all the
location information, but again make sure you enter something - standard
alphanumeric characters and spaces, but no underscores or other special
characters - for every field: 
4.Create a new key store for the client application
$ keytool -keystore testkeys -genkey - alias client 
When prompted, enter passphrase for the password to use this keystore with
the sample applications. 
5.Export the client's public key
$ keytool -keystore testkeys -certreq -alias client -file client.crs
6.Sign the client's key with our CA key
$ openssl ca -config /etc/openssl.cnf -in client.crs -out client.crs.pem
-keyfile ca.key  -cert ca.crt
At this point, you should have a file called "client.crs.pem," which is the
signed public key. It needs to be converted to a format suitable for the
JDK's keytool command, and then imported into the testkeys keystore:
7.Convert to DER format
$ openssl x509 -in client.crs.pem -out client.crs.der -outform DER
8.Import CA certificate into client's key store
$ keytool -keystore testkeys -alias jsse_article_ca -import -file ca.crt 
9.Import signed key into client's key store
$ keytool -keystore testkeys -alias client -import -file client.crs.der
Step 8 must be completed so that the keytool command agrees to import the
signed key. While importing the signed key, keytool checks the signatories
to ensure that their signatures can be validated. They can be validated if
their public keys are in the key store.
Once you have completed all of these steps, move the testkeys key store to
the client directory. Start over with step 4 and create a key store for the
server process. Just substitute "server" everywhere you see "client." Make
sure you enter something different in one of the location fields
(organizational unit would be a good choice).


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

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




Creating a signed SSL certificate with my own CA

2002-12-12 Thread Donie Kelly
Hi all
I'm really stuck here and I'd appreciate some help. To summarise, I've
followed the instructions below to generate a CA key so that I can sign my
own certificates for use with tomcat. The instructions below work and the
ca.crt and client.crs.der certs that pop out are viewable in IE. If I import
the CA key it shows the client.crs.der key with the CA above. Everything
looks great.
Then I use the testkeys with tomcat

  

Now when I try to connect with SLL from IE it just shows
Cannot find server or DNS Error
What am I doing wrong? Are the certs I am creating suitable for SLL with
Tomcat. I'd really appreciate some help.
Donie

PS: Instructions from http://www.ddj.com/documents/s=870/ddj0102a/0102a.htm 
Certificate Authority
In a nutshell, what I'm suggesting is that you create your own Certificate
Authority (CA) to sign your keys. This gets complicated because nothing in
the Java Development Kit or JSSE lets you set up a CA and sign keys. You
have to go elsewhere for tools to do this. I chose to go with the OpenSSL
toolkit (http://www.openssl.org/) running on Linux. There are toolsets
available from other vendors and platforms, however. If you choose to use a
different toolset, you will just have to substitute the appropriate
commands; the theory is the same no matter what.
First, you need to generate your CA's key. That key is used to sign all the
other application keys. The OpenSSL toolkit comes configured to setup a CA
from whatever directory you start it in. This means that you need to use all
the CA commands from the same directory. In the sample code, you'll find the
CA directory that I used to generate the CA key and sign all the application
keys:
1.Generate the CA key
$ openssl genrsa -rand -des -out ca.key 1024
2.Create a self signed certificate
$ openssl req -new -x509 -days 365 -key ca.key -out ca.crt
You are prompted for location information for the certificate. Enter
whatever you want, but make sure you enter something for each field:
3.Setup the OpenSSL CA tools
$ mkdir demoCA
$ mkdir demoCA/newcerts
$ touch demoCA/index.txt
$ cp ca.crt demoCA/
$ echo "01" > demoCA/serial
You now can create the client application's key store and export its public
key so your CA can sign it. You can enter whatever you want for all the
location information, but again make sure you enter something - standard
alphanumeric characters and spaces, but no underscores or other special
characters - for every field: 
4.Create a new key store for the client application
$ keytool -keystore testkeys -genkey - alias client 
When prompted, enter passphrase for the password to use this keystore with
the sample applications. 
5.Export the client's public key
$ keytool -keystore testkeys -certreq -alias client -file client.crs
6.Sign the client's key with our CA key
$ openssl ca -config /etc/openssl.cnf -in client.crs -out client.crs.pem
-keyfile ca.key  -cert ca.crt
At this point, you should have a file called "client.crs.pem," which is the
signed public key. It needs to be converted to a format suitable for the
JDK's keytool command, and then imported into the testkeys keystore:
7.Convert to DER format
$ openssl x509 -in client.crs.pem -out client.crs.der -outform DER
8.Import CA certificate into client's key store
$ keytool -keystore testkeys -alias jsse_article_ca -import -file ca.crt 
9.Import signed key into client's key store
$ keytool -keystore testkeys -alias client -import -file client.crs.der
Step 8 must be completed so that the keytool command agrees to import the
signed key. While importing the signed key, keytool checks the signatories
to ensure that their signatures can be validated. They can be validated if
their public keys are in the key store.
Once you have completed all of these steps, move the testkeys key store to
the client directory. Start over with step 4 and create a key store for the
server process. Just substitute "server" everywhere you see "client." Make
sure you enter something different in one of the location fields
(organizational unit would be a good choice).


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Advice: good tutorial out there?

2002-12-10 Thread Donie Kelly
Sorry, list didn't like my URL. Here is is in full

http://safari.oreilly.com/?XmlId=1-56592-391-X

Donie

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 10:38
To: 'Tomcat Users List'
Subject: RE: Advice: good tutorial out there?

You can also get a preview of the book here

There used to be a complete free copy of this book on the web but I can't
find it now. If I do I'll post it back to the list. This book is great. I
started on it. It's more or less the bible. It's also out of print but there
is a second edition, which covers Servlets 2.3. And no, I don't work for
O'Reilly...

Donie
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 10:30
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Advice: good tutorial out there?

Hi Jean,

There is a very good book that comes highly recommended.

Java Servlet Programming by Jason Hunter.  Published by O'Reilly.

And I found the website http://resources.coreservlets.com/ a good site to
start with.

Regards

Simon

- Original Message -
From: "Jean Georges PERRIN" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 11:21 AM
Subject: Advice: good tutorial out there?


> Hi,
>
> I am looking for a good tutorial on JSP / servlet... Any hint? Sun's quite
> poor on those I found (compared to the other ones)...
>
> Jean Georges PERRIN
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

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

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




RE: Advice: good tutorial out there?

2002-12-10 Thread Donie Kelly
You can also get a preview of the book here

There used to be a complete free copy of this book on the web but I can't
find it now. If I do I'll post it back to the list. This book is great. I
started on it. It's more or less the bible. It's also out of print but there
is a second edition, which covers Servlets 2.3. And no, I don't work for
O'Reilly...

Donie
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 10:30
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Advice: good tutorial out there?

Hi Jean,

There is a very good book that comes highly recommended.

Java Servlet Programming by Jason Hunter.  Published by O'Reilly.

And I found the website http://resources.coreservlets.com/ a good site to
start with.

Regards

Simon

- Original Message -
From: "Jean Georges PERRIN" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 11:21 AM
Subject: Advice: good tutorial out there?


> Hi,
>
> I am looking for a good tutorial on JSP / servlet... Any hint? Sun's quite
> poor on those I found (compared to the other ones)...
>
> Jean Georges PERRIN
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: I don´t understand the objective of this open list !

2002-12-09 Thread Donie Kelly
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

Didn't realise the archive on the other site was out of date. :(
Donie


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 14:44
To: 'Tomcat Users List'
Subject: RE: I don´t understand the objective of this open list !


On a side note, I checked that URL and found that the archive stops after
March 2002.  Or did I miss something?

John


> -Original Message-----
> From: Donie Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 09, 2002 9:29 AM
> To: 'Tomcat Users List'
> Subject: RE: I don´t understand the objective of this open list !
>
>
> I still don't understand the question. If it's so easy maybe
> it's because
> people are sick of answering simple questions where people
> don't read the
> how-to or installation guides properly. The archive for this
> list is at
> http://mikal.org/interests/java/tomcat/
>
> I suggest you spend a little time there first and come back
> if you have a
> real problem.
>
> Donie
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 09 December 2002 14:29
> To: Tomcat Users List
> Subject: RE: I don´t understand the objective of this open list !
>
> Dear Jhon,
> Thank´s for your answer. Yes, maybe my questions is very
> dificult because:
> 1. Nobody has to installed tomcat 4.1.12 and
> 2. Nobody has to run the simple examples of tomcat 4.1.12
> after the install.
>
> Jhon, this questions are very easy. Please, i give you
> excuses for this, but
> i
> don´t understand how to people with big knowledges don´t have
> a minimal time
> for help something.
> And, i don´t understand, how the people have time to waste
> for to answer my
> claim and don´t have time to answer my technical problem.
>
> Thank´s.
>
>
> Mensaje citado por: "Turner, John" <[EMAIL PROTECTED]>:
>
> >
> > Would you rather that people who can't help you waste your
> time sending
> > you
> > on wild goose chases that don't help at all?  If you're not
> getting a
> > response to your post, it's because nobody can help you.  That's not
> > our
> > fault.  Deal with it.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, December 09, 2002 8:40 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: I don´t understand the objective of this open list !
> > >
> > >
> > > In 3 opportunities i wrote to this stuped (sorry) list, and
> > > NEVER i found help.
> > > I hope that the people that participates of this list, don´t
> > > have damages about
> > > other people that don´t belong´s at your countries.
> > > Thank´s for NOTHING.
> > >
> > >
> > > --
> > > To unsubscribe, e-mail: 
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:  
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

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




RE: I don´t understand the objective of this open list !

2002-12-09 Thread Donie Kelly
I still don't understand the question. If it's so easy maybe it's because
people are sick of answering simple questions where people don't read the
how-to or installation guides properly. The archive for this list is at
http://mikal.org/interests/java/tomcat/ 

I suggest you spend a little time there first and come back if you have a
real problem.

Donie


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 14:29
To: Tomcat Users List
Subject: RE: I don´t understand the objective of this open list !

Dear Jhon,
Thank´s for your answer. Yes, maybe my questions is very dificult because:
1. Nobody has to installed tomcat 4.1.12 and
2. Nobody has to run the simple examples of tomcat 4.1.12 after the install.

Jhon, this questions are very easy. Please, i give you excuses for this, but
i
don´t understand how to people with big knowledges don´t have a minimal time
for help something.
And, i don´t understand, how the people have time to waste for to answer my
claim and don´t have time to answer my technical problem.

Thank´s.


Mensaje citado por: "Turner, John" <[EMAIL PROTECTED]>:

>
> Would you rather that people who can't help you waste your time sending
> you
> on wild goose chases that don't help at all?  If you're not getting a
> response to your post, it's because nobody can help you.  That's not
> our
> fault.  Deal with it.
>
> John
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 09, 2002 8:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: I don´t understand the objective of this open list !
> >
> >
> > In 3 opportunities i wrote to this stuped (sorry) list, and
> > NEVER i found help.
> > I hope that the people that participates of this list, don´t
> > have damages about
> > other people that don´t belong´s at your countries.
> > Thank´s for NOTHING.
> >
> >
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail:
> 
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: I don´t understand the objective of this open list !

2002-12-09 Thread Donie Kelly
I reckon you should develop a sense of humour and take it in the way it was
intended. I don't care what country you come from and neither does anybody
else here. I've personally got major help from this list and find it an
invaluable source of information. Your post below will get you nowhere. Post
you question in a form that is answerable and you just might get some use
from the list.

Donie

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 14:20
To: Tomcat Users List
Subject: RE: I don´t understand the objective of this open list !

Sorry, buy your words don´t give me fear. I only search technical help for
something. i don´t have interest in to obtain enemies, I´d like friends that
can help me. Only friends.
I don´t need your threats.
Thank´s.

Mensaje citado por: Donie Kelly <[EMAIL PROTECTED]>:

> You're defiantly blacklisted now :)
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 09 December 2002 13:40
> To: [EMAIL PROTECTED]
> Subject: I don´t understand the objective of this open list !
>
> In 3 opportunities i wrote to this stuped (sorry) list, and NEVER i
> found
> help.
> I hope that the people that participates of this list, don´t have
> damages
> about
> other people that don´t belong´s at your countries.
> Thank´s for NOTHING.
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>

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

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




RE: I don´t understand the objective of this open list !

2002-12-09 Thread Donie Kelly
You're defiantly blacklisted now :)



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 13:40
To: [EMAIL PROTECTED]
Subject: I don´t understand the objective of this open list !

In 3 opportunities i wrote to this stuped (sorry) list, and NEVER i found
help.
I hope that the people that participates of this list, don´t have damages
about
other people that don´t belong´s at your countries.
Thank´s for NOTHING.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mapping URLs

2002-11-06 Thread Donie Kelly
Try putting http: in front of the path...

Donie


-Original Message-
From: Panos Konstantinidis [mailto:girionis@;yahoo.com]
Sent: 06 November 2002 15:44
To: Tomcat Users List
Subject: RE: mapping URLs


  Thank you, I just tried it with images and it is
working fine. The problem is that it does not work
with include files. Any thoughts on this? Do include
files work differently?


--- Donie Kelly <[EMAIL PROTECTED]> wrote:
> Looks like the include file parameter works
> differently. Maybe you should
> make it a URL
> 
> I have a  tag as follows  src="images/spacer.gif" width="1"
> height="40"> and this works with the supplied
> contect path. That path will
> be translated to a URL.
> 
> Try using @include
> file="http:content/Common/Footer.inc" and see what
> happens.
> 
> Donie
> 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: mapping URLs

2002-11-06 Thread Donie Kelly
Looks like the include file parameter works differently. Maybe you should
make it a URL

I have a  tag as follows  and this works with the supplied contect path. That path will
be translated to a URL.

Try using @include file="http:content/Common/Footer.inc" and see what
happens.

Donie


-Original Message-
From: Panos Konstantinidis [mailto:girionis@;yahoo.com]
Sent: 06 November 2002 15:11
To: Tomcat Users List
Subject: RE: mapping URLs

  Sorry

--- Panos Konstantinidis <[EMAIL PROTECTED]> wrote:
>   Thank you Donnie for your time, but unfortunatelly
> it did not help. I have added the line:
>
>  docBase="C:\Tomcat4.1\webapps\content"/>
>
>   in my server.xml file, restarted Tomcat but when
> my
> JSP page has the following line:
>
>   <%@ include file =
> "/content/Common/JavaFooter.inc"%>
>
>   I am getting the error message:

  the following

> org.apache.jasper.JasperException:
> /index.jsp(593,22)
> File "/wtgContent/English/Common/JavaFooter.inc" not
> found.


  should be:

 org.apache.jasper.JasperException:
 /index.jsp(593,22)
 File "/content/Common/JavaFooter.inc" not
 found.

   The previous one was actually taken from another
browser window (the same problem there as well, but
still it is better to make things clearer).

  Thank you.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: mapping URLs

2002-11-06 Thread Donie Kelly
Hi Panos

I have the following line in my server.xml (inside the host tag) to map my
images for jsp pages. It might do what u want



hope it helps
Donie


-Original Message-
From: Panos Konstantinidis [mailto:girionis@;yahoo.com]
Sent: 06 November 2002 12:58
To: [EMAIL PROTECTED]
Subject: mapping URLs

  Hello, this is the second time I am asking this
message and hopefully someone can help me this time.

  I am migrating from Resin to Tomcat 4.1 for Windows
NT with JDK1.3. We have a bunch of include files and
images in a shared folder that all web application
share using Resin. This folder resides on
c:\include\content. I have configured the
corresponding Resin's web.xml file, whenever the
pattern "/content" is encounter to look into the
c:\include\content folder. So whenever in the jsp
files Resin sees the "/content/myInclude.inc" url
pattern it is looking at the
c:\include\content\myInclude.inc fodler.

  Is there something similar I can do with Tomcat? If
Tomcat encounters the "/content" then it will look on
the root folder of the specific application, which I
do not want.

  I have look through the web.xml documentation and
have only found URL-mapping for Servlets.

  I'd really appreciate any help given.

  Thank you.

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




USING SSL with VIRTUAL HOST and TOMCAT STANDALONE

2002-10-25 Thread Donie Kelly
Hi all
I'm trying to configure my server.xml with multiple hosts on Tomcat 4.0.4
and I want to use a different SSL certificate for each host entry. 

I AM NOT USING APACHE! JUST TOMCAT STANDALONE (sorry for
shouting but this is important)

Does anybody have an example of how to do this? I'd really appreciate a
simple HOW-TO. I'd also be interested in how the IP addresses are configured
on the machine. Do I need to always use the DNS name to access the protected
hosts (DNS name is stored in certificate). What happens if I use the IP
address when the host is protected by SSL?

Thanks for the help
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?

2002-10-23 Thread Donie Kelly
I've installed it also and it works fine for me too. Thanks guys. Saves a
LOT of url typing

Donie


-Original Message-
From: Fabio Marsilio [mailto:fmarsilio@;veniceplaza.net]
Sent: 23 October 2002 15:32
To: Tomcat Users List
Subject: R: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?

I installed The ManagerX servlet of  http://www.talika.org/

and works great!

now I can manage all apps of all virtualhosts from a single url.

thank you Wu Yiqun!

Fabio


-Messaggio originale-
Da: Wu Yiqun [mailto:yqwu@;mail.etonenet.com]
Inviato: mercoledì 23 ottobre 2002 03.10
A: Tomcat Users List
Oggetto: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all
TOGHETHER?


There was a site http://www.talika.org/. The author wrote a Tomcat ManagerX
Servlet
which can support virtual host. He sent out an email about it long time ago.
I have successfully
tested it with Tomcat 4.0.4 or some early version.(I cannot remember) You
can have a try.

Btw, developer such as Craig, Remy or someone else, would you please
consider adding this
servlet to new version of tomcat? IMHO this is useful to tomcat user.
Thanks.

- Original Message -
From: "Randy Secrist" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 23, 2002 7:50 AM
Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?


>
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 22, 2002 10:34 AM
> Subject: Re: Tomcat Manager APP: manage VIRTUALHOST'S apps all TOGHETHER?
>
> > It depends on how you've configured your Tomcat virtual hosts.  If you
> > have set up separate  elements for each of them, then you must set
> > up a webapp for the Manager inside each of them.  If there is a single
> >  element (relying on the "defaulthost" attribute to resolve all
> > unknown host names to the same one), then a single Manager webapp will
> > manage all of them.
> >
> > Craig
> >
>
> Silly question I suppose - but can you nest a  element inside
another
>  element?  Unless you can, then a single manager app will not
> encompass all virtual hosts since each host needs it's own manager...
>
> Randy
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [HOWTO] VIRTUAL HOSTING, APACHE 2.0.43, JK2, TOMCAT 4.1.12

2002-10-22 Thread Donie Kelly
Can you update the HOW-TO to show how we could use SSL on all the virtual
hosts, each with separate certificates and all listening on port 443
(different IP's of course). That would make me v. happy :)

Thanks
Donie


-Original Message-
From: Umberto Nicoletti [mailto:unicoletti@;arpa.veneto.it]
Sent: 22 October 2002 15:07
To: [EMAIL PROTECTED]
Subject: [HOWTO] VIRTUAL HOSTING, APACHE 2.0.43, JK2, TOMCAT 4.1.12

I posted to this mailing list before with the subject: JK2 connector and
virtual hosting,
but got no answer.

After some more reading through the ML archives and the documentation
I eventually came up with a solution.
Just to annoy some more people I wrote a little HOWTO ;-).

Hope it will be useful to somebody.

Umberto
--
Umberto Nicoletti - [EMAIL PROTECTED] | [EMAIL PROTECTED]
Tel. 049-8239380 (assistenza)

"We'll try to make different mistakes this time." - Larry Wall

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Static class not working under multiple webapps deployment

2002-10-15 Thread Donie Kelly

That's where it is running (WEB-INF/classes/com/.). The problem might be
that I am running Tomcat under Visual Café 4.51 expert edition. Without any
changes I run Tomcat from the command line and it works like magic. No
problems.

I wonder how running under Visual Café can affect the classloader for the
webapp? 

Maybe it's because I have to list the jar's for Tomcat in the Café classpath
and this somehow screws things up. It won't compile if I don't do this
obviously...
Any ideas on how to get over this are welcome...


On a similar note, I am using log4j for logging and under café the logging
for each webapp is configured from whichever log4j.xml file I modify last.
Running from the command line allows the setting for each webapp too be
configured seperatly (ie: debug, warn, error levels). Catch 23 here too in
that I must include log4j.jar in the classpath to compile the code.

Any idea how to get around this behaviour?
Donie

Note: I have the following jar's in the Café classpath

bootstrap.jar
catalina.jar
slflogger.jar
servlets-defaults.jar
xerces.jar
servlets-common.jar
servlets-invoker.jar
servlet.jar
naming-common.jar
naming-resource.jar
log4j.jar





-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: 15 October 2002 14:29
To: 'Tomcat Users List'
Subject: RE: Static class not working under multiple webapps deployment

where is this class located? if it is in /common/classes or shared/classes,
that is the correct result.

you will have to copy the .class file to each webapp under its
WEB-INF/classes to get the result that you desire.

Charlie

> -----Original Message-
> From: Donie Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 6:12 AM
> To: 'Tomcat Users List'
> Subject: Static class not working under multiple webapps deployment
>
>
> Hi
> I have written a static class which is populated with data on
> startup of my
> servlets and is suppose to be use in the context of the
> request. However,
> the static class seems to return the same information for all
> webapps and
> holds the configuration of the last servlet run on startup.
> Here is the
> code... As you can see I want to use something that looks like the
> System.Properties but System.Properties is gloabal so it's no
> use to me. I
> want to be able to set the webapp name here so it's used
> during processing
> but at the moment it's only returning the last name
> configured for the last
> webapp.
>
> Any ideas why this is happening. What have I done wrong to
> make this class
> appear global?
> Thanks
> Donie
>
>
> import org.apache.log4j.Category;
> import java.util.Hashtable;
> import java.util.Properties;
> import java.io.InputStream;
>
> public class vMmsc
> {
> static Category log = Category.getInstance(vMmsc.class.getName());
> public final static String version = "$Revision:   1.3 
> $$Date:   10 Oct
> 2002 11:57:48  $";
> public static String getVersion() { return version; }
> private static Properties props=new Properties();
>
> // Defeats instantiation
> private vMmsc(){}
>
> public static void load(InputStream is)
> {
> try
> {
> props.load(is);  
> }
> catch(Exception ex)
> {
> log.error("Problem loading property file: " +
> ex.getMessage());
>
> }
> }
>
> public static void setProperty(String Name, String Value)
> {
> props.setProperty(Name, Value);
> }
>
> public static String getProperty(String Name)
> {
> String Value = props.getProperty(Name);
> if(Value==null || Value.equalsIgnoreCase(""))
> log.debug("The property value " + Name + " is not
> defined");
> return Value;
> }
>
> public static String getProperty(String Name, String defaultValue)
> {
> String Value = props.getProperty(Name);
> if(Value==null || Value.equalsIgnoreCase(""))
> {
> log.debug("The property value " + Name + " is
> returning it's
> default value");
> return defaultValue;
> }
> return Value;
> }
>
> public static Integer getInteger(String Name)
> {
> String Value = getProperty(Name);
> if(Value==null || Value.equalsIgnoreCase(""))
> log.debug("The property value " + Name + " is not
> defined");
>
> return new Integer(Value);
> }
>
> public static Integer getInteger(String Name, int defaultVal

Static class not working under multiple webapps deployment

2002-10-15 Thread Donie Kelly

Hi
I have written a static class which is populated with data on startup of my
servlets and is suppose to be use in the context of the request. However,
the static class seems to return the same information for all webapps and
holds the configuration of the last servlet run on startup. Here is the
code... As you can see I want to use something that looks like the
System.Properties but System.Properties is gloabal so it's no use to me. I
want to be able to set the webapp name here so it's used during processing
but at the moment it's only returning the last name configured for the last
webapp.

Any ideas why this is happening. What have I done wrong to make this class
appear global?
Thanks
Donie


import org.apache.log4j.Category;
import java.util.Hashtable;
import java.util.Properties;
import java.io.InputStream;

public class vMmsc
{
static Category log = Category.getInstance(vMmsc.class.getName());
public final static String version = "$Revision:   1.3  $$Date:   10 Oct
2002 11:57:48  $";
public static String getVersion() { return version; }
private static Properties props=new Properties();

// Defeats instantiation
private vMmsc(){}

public static void load(InputStream is)
{
try
{
props.load(is);   
}
catch(Exception ex)
{
log.error("Problem loading property file: " + ex.getMessage());

}
}

public static void setProperty(String Name, String Value)
{
props.setProperty(Name, Value);
}

public static String getProperty(String Name)
{
String Value = props.getProperty(Name);
if(Value==null || Value.equalsIgnoreCase(""))
log.debug("The property value " + Name + " is not defined");
return Value;
}

public static String getProperty(String Name, String defaultValue)
{
String Value = props.getProperty(Name);
if(Value==null || Value.equalsIgnoreCase(""))
{
log.debug("The property value " + Name + " is returning it's
default value");
return defaultValue;
}
return Value;
}

public static Integer getInteger(String Name)
{
String Value = getProperty(Name);
if(Value==null || Value.equalsIgnoreCase(""))
log.debug("The property value " + Name + " is not defined");

return new Integer(Value);
}

public static Integer getInteger(String Name, int defaultValue)
{
String Value = getProperty(Name);
if(Value==null || Value.equalsIgnoreCase(""))
{
log.debug("The property value " + Name + " is returning it's
default value");
return new Integer(defaultValue);
}
return new Integer(Value);
}

// Return true if property is enabled/yes/true
public static boolean isEnabled(String Name)
{
String Value = getProperty(Name);

if(Value!=null)
if(Value.equalsIgnoreCase("yes") || 
Value.equalsIgnoreCase("true") || 
Value.equalsIgnoreCase("enabled") ||
Value.equalsIgnoreCase("1"))
return true;
return false;
}
}

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[HOW TO] - GLOBAL VARIABLES - PLEASE HELP

2002-10-11 Thread Donie Kelly

Hi all
Sorry for shouting but I've no hair left so it's the only thing I can do :)

Please tell me if it's possible to define a variable in server.xml or
somewhere, which is available to all running webapps.
I've looked in loads of docs and searched the archive but to no avail.

Please please please

Donie




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




global variables from server.xml

2002-10-09 Thread Donie Kelly

Hi all
I want to set a variable in server.xml which can be read by all webapps. How
do I do this?
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Multiple certificates in virtual host setup

2002-10-09 Thread Donie Kelly

Hi all

I have a server hosting multiple sites and each wants to use ssl. Can I use
a single keystore for all sites? How do I get each site to extract the
correct certificate from the keystore?

Any help is appreciated.
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to specify the location of a properties file.

2002-10-08 Thread Donie Kelly

Here is the simple solution

ServletContext sc;
String RootPath=null;
  
   sc = getServletContext();
RootPath = sc.getRealPath("/");
 
Donie   
 
-Original Message-
From: Andreas Probst [mailto:[EMAIL PROTECTED]]
Sent: 08 October 2002 16:31
To: Tomcat Users List
Subject: Re: How to specify the location of a properties file.

Hi Mehdi,

you could get the resource stream from within a servlet's init()
method (where you have a ServletContext) and pass it to the
other object that needs it.

I do it pretty similar. But instead of passing the stream I pass
the servletContext.

Andreas


On 8 Oct 2002 at 15:40, [EMAIL PROTECTED] wrote:

>
> Hi,
>
> There was no ServletContext.getResourceAsStream () ... maybe this is
> because the whole project is a bunch of utilities for my web-app, and is
> not a webapp itself ? The class that needs the properties file, is not
part
> of the webapp. So anyway, i tried the closest available method.. (or so i
> thought);
>
> p.load( javax.servlet.ServletContext.class.getResourceAsStream(
> "/WEB-INF/myprops.properties") );
>
> which also did not work.
>
> Cheers,
>
> Mehdi
>
> Mehdi Nejad - Senior Developer
> [EMAIL PROTECTED]
> ~~
> Bluewave Ltd - Online Creations
> http://www.bluewave.com
> Tel. +44 (0)20 7479 8394
> ~~
>
>
>

>   "Andreas Probst"

>   <[EMAIL PROTECTED]To:   "Tomcat Users
List" <[EMAIL PROTECTED]>   
>   >cc:

>Subject:  Re: How to
specify the location of a properties file.  
>   08/10/2002 13:57

>   Please respond to

>   "Tomcat Users

>   List"

>

>

>
>
>
>
> Hi Mehdi,
>
> I have my properties file in /WEB-INF. Eclipse doesn't delete it
> there. I access it with
>
> InputStream propsIn  = servletContext.getResourceAsStream("/WEB-
> INF/dms.properties");
> props.load(propsIn);
>
> As far as I know this also works when the web-app ist deployed
> as a war without expansion.
>
> Hope that helps.
>
> Andreas
>
>
>
> On 8 Oct 2002 at 12:48, [EMAIL PROTECTED] wrote:
>
> >
> > I use the getResourceAsStram() method also, but i find that my IDE,
tends
> > to remove the properties file from my classpath, as soon as I do a
build,
> > which is not nice.
> >
> > In the particular case i have now, I don't want to specify the
parameters
> > in my web.xml, because the utility that requires a properties file, is
> not
> > actually a web-app, rather a bunch of utility classes used by my webapp.
> > Im not keen to implement a "setProperties()" method, as this would mean
> > changing stuff, so im just re-copying the properties into my classes
> folder
> > after each build.. (unless someone can tell me how to tell WSAD to stop
> > deleting my properties file... but .. *ahem* thats not a Tomcat question
> :)
> >
> > Cheers,
> >
> > Mehdi
> >
> >
> >
> >
> >
>
> >   Justin Ruthenbeck
>
> >List" <[EMAIL PROTECTED]>
> >   ne.com>  cc:
>
> >Subject:  Re: How to
> specify the location of a properties file.
> >   07/10/2002 22:20
>
> >   Please respond to
>
> >   "Tomcat Users
>
> >   List"
>
> >
>
> >
>
> >
> >
> >
> >
> >
> > Niaz ...
> >
> > The idea is to load the properties file like you would any other java
> > resource at runtime ... this is (almost) always better, IMHO, than using
> > something J2EE-specific like initialization parameters to a servlet.
> >
> > The relevant code would look something like this:
> >
> > InputStream inStream = this.getClass().getResourceAsStream("/my.props");
> > Properties props = new Properties(inStream);
> >
> > or
> >
> > Properties prop = new Properties();
> > prop.load(this.getClass().getResourceAsStream
> ("/MyProperties.properties"));
> >
> > There was a thread some time ago that went over this.  You can see the
> > details at:
> > http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg63518.html
> >
> > Hope this helps...
> > justin
> >
> >
> > At 01:40 PM 10/7/2002, you wrote:
> > >Justin,
> > >
> > >I am facing the same problem. Your approach seems to be an elegent one.
> > >Would you mind eleborating on the idea a little bit more. Some code
> > snippet
> > >would definitely be helpful.
> > >
> > >I thank you in advance.
> > >
> > >niaz.
> > >- Original Message -
> > >From: "Justin Ruthenbeck" <[EMAIL PROTECTED]>
> > >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >Sent: Monday, October 07, 2002 4:06 PM
> > >Subject: Re: How to specify the location of a properties file.
> > >
> > >
> > > >
> > > > Shaun --
> > > >
> > > > Consider dynamically loading the properties 

RE: HOW TO: How do I add a global variable in server.xml readable in all webapps?

2002-10-07 Thread Donie Kelly

I have added the following under the Engine tag]





How do I retrieve this value using the servlet context? I have tried the API
and the docs but I cannot see how to retrieve this value.
Donie
  

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 07 October 2002 17:11
To: 'Tomcat Users List'
Subject: RE: HOW TO: How do I add a global variable in server.xml readable
in all webapps?

Hi
I want a variable to be available across all virtual hosts so I want to add
it to server.xml. Is this possible?

Thanks
Donie


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

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




RE: HOW TO: How do I add a global variable in server.xml readable in all webapps?

2002-10-07 Thread Donie Kelly

Hi
I want a variable to be available across all virtual hosts so I want to add
it to server.xml. Is this possible?

Thanks
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HOW TO: How do I add a global variable in server.xml readable in all webapps?

2002-10-07 Thread Donie Kelly

Hi 
I want a variable to be available across all virtual hosts so I want to add
it to server.xml. Is this possible?

Thanks
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-30 Thread Donie Kelly

Thanks for that.

We are currently analysing the problem and we will look seriously at JDK 1.4
and probably IBM's JDK.

We obviously have some work to do but as our app depends on it we are happy
to look into these issues. 

Thanks for all the pointers
Donie

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 13:22
To: Tomcat Users List
Subject: RE: HOW TO: How do I allocate memory in JVM for extra virtual hosts

Hi,

> Check out perc 3.3 at http://www.newmonics.com/info/gc.shtml, it has a
>pretty decent GC performing much better than Sun's. Also IBM's JVM is
>pretty
>good too.

Please define "performing much better" ?

For our app benchmarks, JDK 1.4 GC was substantially better than PERC
3.3. 

I love how the PERC page still says "generational garbage collection"
like it's a big new thing.  Have you experimented with the train and
concurrent parallel GCs in JDK 1.4 and compared them (seriously compared
them, with hprof / another profiler and/or a heap analyzer)?

>I am not aware of all the performance implications of
>this, but it should be possible to create a Thread to
>run on some interval you define which just infinitely
>loops a call for garbage collection (gc() right?) then
>goes back to sleep until next iteration.

System.gc() is a suggestion.  It doesn't guarantee GC will run.  You
don't want to do it anyways.  The JDK internally is better at detecting
when to run GC and what type of GC to do, on what segment.

Spend your time tuning the parameters, e.g. Xmx, Xms, XX:NewSize,
XX:MaxNewSize, min and max free percentages, etc.  Analyze the results
seriously, don't go for "seat of the pants, this seems better" testing.

FYI, we have several large (>1G heaps) JVMs.  We have run into long GCes
in the past, until we just set aside several weeks to researching and
tuning the GC.  The results were excellent.  As mentioned above, it was
then that we experimented with alternative JDKs, including IBM, PERK,
jRockit, and others. 

>At least then you can control how often garbage
>collection happens, and I suppose it is possible that

No you don't control it.  It's only a suggestion.  In fact, JDK 1.4
supports a switch that says to completely ignore System.gc() calls, so
if you server admin uses this switch System.gc() does nothing.

To get started, see:
http://java.sun.com/docs/hotspot/gc/index.html
http://java.sun.com/docs/hotspot/VMOptions.html
http://wireless.java.sun.com/midp/articles/garbage/

Good luck,

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-27 Thread Donie Kelly

Hi all
I am running tomcat 4.0.1 with virtual hosting and was wondering how much
memory to allocate to each additional host. By default, we use 64M for one
host but adding another 64M for second host seems excessive considering it's
the same tomcat instance.
However, if we add a lot the JVM will use more memory before garbage
collection and we've seen a 30 second (!!!) delay when using 1G Ram on JVM
as it just kept using memory until it ran out. It then had almost 1G of ram
to garbage collect. How can I force garbage collection to be more aggressive
and do it more often when garbage is small enough not to cause a problem?
As we need this to run in a production environment we cannot possible allow
a JVM to go for a garbage break for 30 seconds
Any insight or help is greatly appreciated.
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Automatic Client Login

2002-09-26 Thread Donie Kelly

Send the "Authentication" header with the "username:password" but encoded in
base64

Donie


-Original Message-
From: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 20:47
To: 'Tomcat'
Subject: Automatic Client Login

My application uses Form-based authentication.

However, I would like to be able to have a request
from a client automacally log in without their seeing the
form by passing the userid/password with an HTTP request. 

I thought I saw one time some syntax like:

  http://myhost?user=someone&password=base64pwd/.

Is there some way to set the userid and password in
the header from a page (genrated by a JSP) sent
from the server to the client
so that the login occurs silently (e.g. a page with just
javascript that does an automatic submit or a redirect
from the server)?

Thanks,

Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Making a webapp the document root, help?

2002-09-26 Thread Donie Kelly

Map your context directly in server.xmls as follows



This will do what you want.
Donie


-Original Message-
From: Dan Lipofsky [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 21:21
To: Tomcat Users List
Subject: Re: Making a webapp the document root, help?

The webapp called "ROOT" has the behavior you desire.
Is it possible for you to just use that one?
I am afraid I don't know how to make something else
behave like "ROOT" or even if it is possible.
- Dan

> Is it possible, from Apache 1.3 and Tomcat 4.1.10
> (tied together w/ mod_jk)
> to make a webapp the top-level (DocumentRoot) ??
> For instance:
> /usr/local/tomcat/webapps/MYAPP
>
> I want MYAPP to be my document root and start serving
> JSPs immediately, only using Apache if a HTML file is
> requested and for htaccess (using mod_auth_db).
> I don't want to have to type into the browser:
> http://this.that.com/MYAPP
>
> I would like: http://this.that.com
> and have it simply use the MYAPP from this point on
> This doesn't work, b/c if I try to access a file:
> /usr/local/tomcat/webapps/MYAPP/jsp/myfile.jsp
> using the following URL:
> http://this.that.com/jsp/myfile.jsp
> I get a 404 error, thrown from Tomcat, b/c the server
> is apparently looking for that file somewhere else.
> Thoughts/help?
> Thanks,
> Paul



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Starting TOMCAT without opening new DOS promt

2002-09-25 Thread Donie Kelly

"Catalina run"

You could also run it as a service if running under NT/2000 so that you
don't see the dos box at all. See docs.

Donie




-Original Message-
From: RAJESH KANNAN [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 15:31
To: [EMAIL PROTECTED]
Subject: Starting TOMCAT without opening new DOS promt

Hi all,

We would like to start the TOMCAT server without opening a new DOS prompt.
How should we do this?


With Regards
K.RajeshKannan



_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Bug in tag in server.xml

2002-09-19 Thread Donie Kelly









Hi all

 

I want to use an alias in the host section
of server.xml but if I use the alias o2 it returns
400 Bad request when I try to access it using that hostanme. If I change it to otwo
it works fine. 

 

Is it a bug that Tomcat is complaining about
the numeric bit? It’s a valid hostname? Right?

 

Thanks

Donie

 







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


FW: Using Alias within a host element

2002-09-18 Thread Donie Kelly

Hi all
I have a host section in my server.xml as follows

o2

Tomcat does not like the part "o2" as it return 400 Bad request when I use
it in the browser. It resolves OK and all that.
If I change my host file to "otwo" it works OK. Is this a bug or am I doing
something wrong?

Thanks
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using Alias within a host element

2002-09-17 Thread Donie Kelly

Hi all 
I have a host section in my server.xml as follows

o2
Tomcat does not like the part "o2" as it return 400 Bad request when I use
it in the browser. It resolves OK and all that.
If I change my host file to "otwo" it works OK. Is this a bug or am I doing
something wrong?
Thanks
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Catalina doesn't like JRE, but works fine with JDK

2002-09-11 Thread Donie Kelly

Tomcat needs the JDK to compile JSP pages. The JRE does not include the
compiler.

Donie


-Original Message-
From: Wolfgang Stein [mailto:[EMAIL PROTECTED]]
Sent: 11 September 2002 14:29
To: [EMAIL PROTECTED]
Subject: Catalina doesn't like JRE, but works fine with JDK


I just installed JRE 1.3.1_04 and JDK 1.3.1_04 successively.

Pointing JAVA_HOME to JDK for Tomcat 4.1.10 works fine,
setting JAVA_HOME to JRE gives the error message:

"The JAVA_HOME environment variable is not defined correctly"

I found the message often in tomcat-users list but
in the context of misspellings.

In my case i can eliminate a misspelling.

So,
what makes the difference between JDK and JRE for Tomcat 4.1.10 ?

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: server.xml and configuring connection pools (URGENT: please look)

2002-09-11 Thread Donie Kelly

Thanks Bill

I understand you answer. Thank you for that. I was hoping it was different
but now that I know what it's doing I'm happier.

Donie


-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]]
Sent: 11 September 2002 06:13
To: [EMAIL PROTECTED]
Subject: Re: server.xml and configuring connection pools (URGENT: please
look)

The "acceptCount" is nearly useless (unless you *really* know what you are
doing), since it only sets the TCP/IP "backlog" (which is one of those
things, that if you don't know what it is, you don't need it :).

There is a one-to-one mapping of socket connections to threads, so setting
"maxProcessors" to 20 means that Tomcat will only accept 20 socket
connections.  This could be from 20 different IPs, or much less if some
clients aren't using keep-alive.  On the other hand increasing the number of
threads doesn't really cost you anything, since the unused ones are blocked
until a request comes in.

What the "acceptCount" is doing for you is allowing each client to stack up
100 different requests in the queue.  I don't know of any client that would
even think of trying something like this, which is why it's not that useful.

"Donie Kelly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all
> Simple problem I guess. I'm trying to limit tomcat to 20 threads max but
> still accept connections using the acceptCount parameter of Connector in
> server.xml.
>
> My problem is that the application will accept up to 20 connections and
give
> connection refused for everything else. What am I doing wrong? I thought I
> would have to make 120 active connections before I would get connection
> refused?
>
> My config is below
> Thanks
> Donie
>
>  port="80" minProcessors="5" maxProcessors="20"
>enableLookups="true" redirectPort="443" acceptCount="100"
> debug="0" connectionTimeout="6"/>





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

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




Using the cluster classes in tomcat 4.0.4 (org.apache.catalina.cluster)

2002-09-10 Thread Donie Kelly

Hi all
Has anybody seen the classes in org.apache.catalina.cluster 
Is there any docs on these. I have looked on Jakarta.apache.org without
success.
Thanks
Donie


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How can I send respond incrementally in a Servlet

2002-09-10 Thread Donie Kelly

I think he means that nothing is sent back to the browser. I have noticed
this as well and I could not get a solution. If you close the connection
it's sent back and the servlet can continue to run but that may not be
desirable

Donie


-Original Message-
From: Rosdi bin Kasim [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2002 16:47
To: Tomcat Users List
Subject: Re: How can I send respond incrementally in a Servlet


What is exactly the 'response' you are sending?
If it is a table, then the browser will only display it once the whole table
is completed (until it received ).

Regards,
Rosdi.

- Original Message -
From: "Sam Cheung" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 11:46 PM
Subject: How can I send respond incrementally in a Servlet


> Hi,
>
> I would like to send response back to user during the
> execution of the doGet() method, not upon completion
> of the excution of the doGet() method.
>
> I try calling the flushBuffer() of the response and
> the flush() of the print writer of the response but it
> does not work, could someone please tell me how I can
> do it?
>
> Thanks for your help.
> Sam
>
>
> __
> Yahoo! - We Remember
> 9-11: A tribute to the more than 3,000 lives lost
> http://dir.remember.yahoo.com/tribute
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: server.xml and configuring connection pools

2002-09-10 Thread Donie Kelly

To simulate this I have set the max and min processors to 5 and used 7
Internet Explorer instances to connect. My servlet has a 120 second delay so
that causes the connection to hold. 

I can start 5 and hold the connection open. That's what I want. However,
when I connect the sixth one, Internet exploder says that the server
returned an invalid response. I used telnet to connect to port 80 and it
says connection refused.

I am confused. I would have expected the sixth thread to sit and wait for 60
seconds (the timeout period set in server.xml) before saying that connection
refused.
Thanks
Donie


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2002 16:47
To: Tomcat Users List
Subject: RE: server.xml and configuring connection pools

How do you test your configuration? You test with more than 20 users?
Your configuration is correct according to your explication, but does it can
really work?
If you test with a soft as LoadRunner, I think you have a simulation
scenario. What do the first 20 users after their requests are completed? Do
they launch others ones? If it's the case, Tomcat cannot have the time to
process the 100 ones in the queue.

-Message d'origine-----
De : Donie Kelly [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 10 septembre 2002 17:17
À : 'Tomcat Users List'
Objet : RE: server.xml and configuring connection pools


Can somebody please help me with this Thanks
Donie


-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2002 11:12
To: 'Tomcat Users List'
Subject: server.xml and configuring connection pools

Hi all
Simple problem I guess. I'm trying to limit tomcat to 20 threads max but
still accept connections using the acceptCount parameter of Connector in
server.xml.

My problem is that the application will accept up to 20 connections and give
connection refused for everything else. What am I doing wrong? I thought I
would have to make 120 active connections before I would get connection
refused?

My config is below
Thanks
Donie



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

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



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

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




RE: server.xml and configuring connection pools

2002-09-10 Thread Donie Kelly

Can somebody please help me with this Thanks
Donie
 

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: 10 September 2002 11:12
To: 'Tomcat Users List'
Subject: server.xml and configuring connection pools

Hi all
Simple problem I guess. I'm trying to limit tomcat to 20 threads max but
still accept connections using the acceptCount parameter of Connector in
server.xml.

My problem is that the application will accept up to 20 connections and give
connection refused for everything else. What am I doing wrong? I thought I
would have to make 120 active connections before I would get connection
refused?

My config is below
Thanks
Donie



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

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




RE: server.xml and configuring connection pools (URGENT: please look)

2002-09-10 Thread Donie Kelly

Hi all
Simple problem I guess. I'm trying to limit tomcat to 20 threads max but
still accept connections using the acceptCount parameter of Connector in
server.xml.

My problem is that the application will accept up to 20 connections and give
connection refused for everything else. What am I doing wrong? I thought I
would have to make 120 active connections before I would get connection
refused?

My config is below
Thanks
Donie




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >