Re: Tomcat 4.1.18 - IIS 5.0 plugin

2003-02-28 Thread Johannes Fiala
Dear Ben,

isapi_redirector version 1.0 is running smoothly with Tomcat 4.1.18 on my 
PC.
Being curious, I tried to get 2.0.2 running as well, but it didn't work 
out (the arrow stays red down).
However, it should be running, because I used the same 
uriworkermap/workers.properties. Or did these files change for 2.0?

Can you send me 
*) the working registry entries and 
*) uriworkermap.properties
*) workers.properties
*) the isapi_redirector2.dll you are using?

I'd like to see 2.0 up and running as well!

thx alot
Johannes





Schleimer, Ben [EMAIL PROTECTED] 
27.02.2003 15:09
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
Tomcat Users List [EMAIL PROTECTED]
cc

Subject
Re: Tomcat 4.1.18 - IIS 5.0 plugin






Hi,
  You need to get isapi_redirector2.dll from the JK2
connectors part of the website. I had the same
problem.
Also, the registry keys need to be in 2.0, not 1.0.
4.1.18 is compiled to use jk2, not jk.

Good luck,
Ben

--- Johannes Fiala [EMAIL PROTECTED] wrote:
 hi there,
 
 I just tried to get the IIS JK2 running using 
 Tomcat 4.1.18 with JK isapi 2.0.2 and IIS 5.0 (Win
 2000 Professional)
 
 I added the registry entries correctly (no error in
 event viewer) 
 according to the howto.
 I created the virtual directory jakarta which
 displays the entry 
 isapi_redirect.dll correctly.
 However, after I stop and start IIS 5.0 the ISAPI
 Filter shows the red 
 arrow down. 
 
 The log file I specified in the registry entry
 log_file is simplest, but 
 there is no log file showing up (c:\isapi.log).
 
 Any ideas on where I have to look at for errors?
 
 thx alot
 Johannes Fiala


=
The competent programmer is fully aware of the strictly limited size of 
his own skull; therefore he approaches the programming task in full 
humility, and among other things he avoids clever tricks like the plague 
- Edsger Dijkstra

http://snow.prohosting.com/bensch

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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




Re: locale

2003-02-28 Thread Jon Wingfield
And if, for example, you have a UK-en application hosted in a data 
centre in Germany...

Drew Sudell wrote:

Yes, but this is an per-instance  attribute, isn't it? How could I
make it be set in all f Tomcat's VMs?
Maybe a java -D option?
On Thu, 2003-02-27 at 14:38, Jon Wingfield wrote:
   

via a static method on java.util.Locale. In your case the Locale call=20
will be
Locale.setDefault(new Locale(br, PT));
=20
You may also want to set the TimeZone in a similar manner.
=20
Felipe Schnack wrote:
=20
 

How can i set the default locale of my application? There is a system
property to do that? I can't find it anywhere, and need to set mine to
pt-BR locale.
   

Generally the JVM will do reasonable things about the locale.  I
don't think this is required, per se, but at least for JVMs from Sun
(or ports derived from the Sun code) on Unix platforms, the JVM
startup code tended to derive default locale and file encoding from
the Unix environment (ie the LANG environment variable).  I'd expect
other JVMs to act similar.  I'd expect JMVs on other platforms to at
in similar but platform dependent ways.  For example, I'd expect a JVM 
on Windows to pick up on the internationalization settings in control
pannel. 

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


HTTP Status 503 - Servlet ERROR on MAC OS X

2003-02-28 Thread apratim sharma
hi !!!

while running the servlet on mac os x i got this
error!!!

HTTP Status 503 - Servlet
org.apache.catalina.INVOKER.HelloWorldExample is
currently unavailable

type Status report

message Servlet
org.apache.catalina.INVOKER.HelloWorldExample is
currently unavailable

description The requested service (Servlet
org.apache.catalina.INVOKER.HelloWorldExample is
currently unavailable) is not currently available.

Apache Tomcat/4.1.18

any idea guys

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: Tomcat 4.1.18 - IIS 5.0 plugin

2003-02-28 Thread Christopher Watson
Johannes , All,

I've found the 2.0.1 dll works - with jk2 style config, but not the
2.0.2 dll.

Can anyone else confirm this is the case for them?
If so, does anyone know why 2.0.2 is not working?
Or what I need to change from 2.0.1 config to get it to work?
(My workers2.properties, jk2.properites and exported registry are
attached for the curious)

If it's not a config, perhaps 2.0.2 should be fixed or removed?
I only kind of by accident tried 2.0.1 and found it to work, having
puzzled over 2.0.2 for a long time.

My 2p (UK c version of 2 cents)

Christopehr

 -Original Message-
 From: Johannes Fiala [mailto:[EMAIL PROTECTED] 
 Sent: 28 February 2003 08:08
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.18 - IIS 5.0 plugin
 
 
 Dear Ben,
 
 isapi_redirector version 1.0 is running smoothly with Tomcat 
 4.1.18 on my 
 PC.
 Being curious, I tried to get 2.0.2 running as well, but it 
 didn't work 
 out (the arrow stays red down).
 However, it should be running, because I used the same 
 uriworkermap/workers.properties. Or did these files change for 2.0?
 
 Can you send me 
 *) the working registry entries and 
 *) uriworkermap.properties
 *) workers.properties
 *) the isapi_redirector2.dll you are using?
 
 I'd like to see 2.0 up and running as well!
 
 thx alot
 Johannes
 
 
 
 
 
 Schleimer, Ben [EMAIL PROTECTED] 
 27.02.2003 15:09
 Please respond to
 Tomcat Users List [EMAIL PROTECTED]
 
 
 To
 Tomcat Users List [EMAIL PROTECTED]
 cc
 
 Subject
 Re: Tomcat 4.1.18 - IIS 5.0 plugin
 
 
 
 
 
 
 Hi,
   You need to get isapi_redirector2.dll from the JK2
 connectors part of the website. I had the same
 problem.
 Also, the registry keys need to be in 2.0, not 1.0.
 4.1.18 is compiled to use jk2, not jk.
 
 Good luck,
 Ben
 
 --- Johannes Fiala [EMAIL PROTECTED] wrote:
  hi there,
  
  I just tried to get the IIS JK2 running using
  Tomcat 4.1.18 with JK isapi 2.0.2 and IIS 5.0 (Win
  2000 Professional)
  
  I added the registry entries correctly (no error in
  event viewer)
  according to the howto.
  I created the virtual directory jakarta which
  displays the entry 
  isapi_redirect.dll correctly.
  However, after I stop and start IIS 5.0 the ISAPI
  Filter shows the red 
  arrow down. 
  
  The log file I specified in the registry entry
  log_file is simplest, but
  there is no log file showing up (c:\isapi.log).
  
  Any ideas on where I have to look at for errors?
  
  thx alot
  Johannes Fiala
 
 
 =
 The competent programmer is fully aware of the strictly 
 limited size of 
 his own skull; therefore he approaches the programming task in full 
 humility, and among other things he avoids clever tricks like 
 the plague 
 - Edsger Dijkstra
 
http://snow.prohosting.com/bensch

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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


ÿþWindows Registry Editor Version 5.00



[HKEY_LOCAL_MACHINE\SOFTWARE\Apache 
Software Foundation\Jakarta Isapi 
Redirector\2.0]

serverRoot=W:\\jakarta-tomcat

extensionUri=/jakarta/isapi_redirector2.dll

workersFile=W:\\jakarta-tomcat\\conf\\workers2.properties

authComplete=0

threadPool=20

logLevel=DEBUG



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

Jsp compilation avoiding writing \r\n characters

2003-02-28 Thread Alban Soupper
Hi all,

Is there a way to configure Tomcat 4, so it compiles the jsp pages without
writing
those boring \n and \r characters?

(I am using Catalina embedded in JBoss)

Alban.


**
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 system manager at postmaster.eim.ch.
**


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



Tomcat WAR expansion

2003-02-28 Thread Tomcat

 Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

 Thanks and Regards,
 Pratt


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



Re: Installing Thawte test certificate in Tomcat 4.1.18

2003-02-28 Thread Einar M. Råberg Rosenvinge
On Wed, Feb 26, 2003 at 20:41:20 +0100, Einar M. Råberg Rosenvinge wrote:
 
 I'm trying to install a Thawte test certificate in Tomcat 4.1.18.
 
 Still, I consistently get the errors
 C:\EiTkeytool -import -alias tomcat -keystore keystore -trustcacerts
 -file testcertificate
 Enter keystore password:  the password
 keytool error: java.lang.Exception: Failed to establish chain from reply

I got a reply from Thawte. I need the certificate in PKCS#7 format, and
their test system does not provide that. The support technicial will
generate a PKCS#7 format certificate for me, however.

Still, the keytool documentation says that the certificate _can_ be in
_either_ X509 _or_ PKCS#7 format, and that keytool can handle
both. Strange...

I'll send my CSR to Thawte now and see if the PKCS#7 reply works.


-Einar

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



jk2 config: regex in uri

2003-02-28 Thread Jannik Hendriksen
I cannot find any documentation on how to use regex in uri's in jk2.

According to changes.txt regex uris start with a dollar sign, but I
can't get it to work.
Example that doesn't work:
[uri:$www\.stikaf\.dk.*]

Anyone with experience in this?

regards,
Jannik



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



Default Context

2003-02-28 Thread Tomcat
Hi,

Is there any limitation in using the JNDI resources configured under
DefaultContext in load-on-startup servlets.

For load-on-startup servlet, it is giving null values to the Resource
parameters configured.
If load-on-startup is removed, it is working fine if the servlet is accessed
manually.

Can anybody help me out?

I am using Tomcat4.1.18 version.

Thanks and Regards,
Pratt.



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



Apache Tomcat/4.1.18-LE-jdk14 - class loader problem with servlets/javamail

2003-02-28 Thread Hanasaki JiJi
I have am deploying a war file with j2ee.jar from j2ee1.3.1  also tried 
the 1.4 beta and my servlet cannot find the javamail classes.

A small standalone application using the javamail from the same j2ee.jar 
file works fine.

j2ee.jar is in the lib directory.

Any thoughts?



javax.servlet.ServletException: Servlet execution threw an exception
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.StandardContext.invoke(StandardContext.java:2415)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
	at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
	at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
	at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.NoClassDefFoundError: javax/mail/Address

--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Jsp compilation avoiding writing \r\n characters

2003-02-28 Thread Reynir Hübner
Hi, 
There is a simple reason for all the \r\n characters, but they actually are in your 
jsp document. 

See example : 

%= TEST1 %
%= TEST2 %
%= TEST3 %

Will return : 

TEST1\r\nTEST2\r\nTEST3\r\n

But : 
% 
  out.write(TEST1);
  out.write(TEST2);
  out.write(TEST3);
%

Will return : 
 
TEST1TEST2TEST3



For every return-char in a jsp document that is not with in a jsp-code block you will 
get a \r\n 

If you think you do not want to change the way you write your jsp pages you should 
look for Trim-filter in google.com

Hope it helps
-reynir




 




 -Original Message-
 From: Alban Soupper [mailto:[EMAIL PROTECTED] 
 Sent: 28. febrúar 2003 09:58
 To: 'Tomcat Users List' (E-mail)
 Subject: Jsp compilation avoiding writing \r\n characters
 
 
 Hi all,
 
 Is there a way to configure Tomcat 4, so it compiles the jsp 
 pages without writing those boring \n and \r characters?
 
 (I am using Catalina embedded in JBoss)
 
 Alban.
 
 
 **
 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 system manager at postmaster.eim.ch.
 **
 
 
 -
 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]



NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

2003-02-28 Thread Georges Roux
Hi,

When I try to set up a PostgreSQL Datasource for connection Pooling I ve 
this Exception:

2003-02-27 02:00:27 StandardContext[/PhotoBaseManager]: Servlet 
/PhotoBaseManager threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet 
PostgresqlClient threw exception
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:962) 

  at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) 

  at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  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:203)
- Root Cause -
java.lang.NoClassDefFoundError: 
org/apache/commons/pool/impl/GenericObjectPool
  at 
org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDataSourceFactory.java:121) 

  at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:186) 

  at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
  at PostgresqlClient.init(PostgresqlClient.java:37)
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:934) 

  at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) 

  at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  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:203)
I have commons-dbcp.jar and pgjdbc2.jar in common/lib

in server.xml
  Resource name=jdbc/postgresql
  auth=Container
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/postgresql
  
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter 

  
parameternamedriverClassName/namevalueorg.postgresql.Driver/value/parameter 

  
parameternamedriverName/namevaluejdbc:postgresql://192.168.123.3:5432/BasePhoto/value/parameter 

  
parameternameusername/namevaluetomcat4/value/parameter
  
parameternamepassword/namevaluejava4/value/parameter
  
parameternamemaxActive/namevalue100/value/parameter
  parameternamemaxIdle/namevalue30/value/parameter
  
parameternamemaxWait/namevalue1/value/parameter
  /ResourceParams

in my web.xml

  resource-ref
  descriptionPostgreSQL Datasource/description
  res-ref-namejdbc/postgresql/res-ref-name
  res-typejavax.sql.DataSource/res-type
  

Re: Jsp compilation avoiding writing \r\n characters

2003-02-28 Thread Tomcat
Hi,

Are there any limitations with Tomcat4.1.18 while using load-on-startup
servlets to use JNDI resouces of default Context.

Thanks and Regards,
Pratt


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



Re: NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

2003-02-28 Thread Tomcat
Hi,

Try by extracting the pgjdbc2.jar and place it in the common\classes. It
should locate the classes.

Pratt.




- Original Message -
From: Georges Roux [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 4:37 PM
Subject: NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool


 Hi,

 When I try to set up a PostgreSQL Datasource for connection Pooling I ve
 this Exception:

 2003-02-27 02:00:27 StandardContext[/PhotoBaseManager]: Servlet
 /PhotoBaseManager threw load() exception
 javax.servlet.ServletException: Servlet.init() for servlet
 PostgresqlClient threw exception
at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:96
2)

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

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)

at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
 org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)
 - Root Cause -
 java.lang.NoClassDefFoundError:
 org/apache/commons/pool/impl/GenericObjectPool
at

org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDataSo
urceFactory.java:121)

at

org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:186)

at
 javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at PostgresqlClient.init(PostgresqlClient.java:37)
at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)

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

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)

at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
 org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)

 I have commons-dbcp.jar and pgjdbc2.jar in common/lib

 in server.xml
Resource name=jdbc/postgresql
auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/postgresql


parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourc
eFactory/value/parameter



parameternamedriverClassName/namevalueorg.postgresql.Driver/value
/parameter



parameternamedriverName/namevaluejdbc:postgresql://192.168.123.3:543
2/BasePhoto/value/parameter


 parameternameusername/namevaluetomcat4/value/parameter

 parameternamepassword/namevaluejava4/value/parameter

 

HTTTP Status 404 Tomcat on MAC os X

2003-02-28 Thread apratim sharma
hi !!1

i'm getting following error on running servlet created
by me

HTTP Status 404 - /exp/servlet/first


type Status report

message /exp/servlet/first

description The requested resource
(/exp/servlet/first) is not available.


Apache Tomcat/4.1.18


Anybody plz help me

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



reference material

2003-02-28 Thread Deepa Raja
Could someone mail me a link about where I could find information that compares 
different type of connectors. 
i could not trace the archives of this group.

Thanks in advance
Deepa





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



Problem rendering Greek and Latin Characters in Tomcat 4.1.18

2003-02-28 Thread Joshua Sunil Kumar




Hi 

The JSP page that 
I am using has Greek and Latin Characters. I am unable to display it properly in 
the browser. 
I am fetching data 
from the a Oracle Database which is stored in UTF-8 . When I display it on the 
browser this the characters are getting garbled. Ex- Grnbk 
If I change the 
View--Encoding-- to UTF-8 then I am able to view it properly as 
Ex- Grnbk 

1.I am setting the 
the following META tag
META 
http-equiv="Content-Type" content="text/html; charset=UTF-8"But still 
when I check it up in the browser the encoding setting is 
ISO-8859-1

2. I have tried 
setting the response.setContentType("text/html;charset=UTF-8"); This also does 
not work. 
3. I have tried 
putting % page contentType = "text/html;charset=UTF-8" %. This 
also does not work.

4. I have changed 
the setting Tomcat4.1.18 for web.xml file to 
filter 
filter-nameSet Character 
Encoding/filter-name 
filter-classfilters.SetCharacterEncodingFilter/filter-class 
init-param 
param-nameencoding/param-name 
param-valueUTF-8/param-value 
/init-param /filter


5. I 
thought there might be a problem with the Apache webserver and then I set this 
in the httpd.conf file
AddDefaultCharset UTF-8 (default is 
ISO-8859-1)
Having done all the setting still I am unable to the view the characters 
properly. 

I am 
running Tomcat4.1.18 with Apache2.0.34 using the JK2 Connector on Solaris 
5.8.

Code 
snippet which I have used.

html% page import="java.util.*" %% page 
import="java.io.*" %% page import="java.sql.*" 
%headMETA http-equiv="Content-Type" content="text/html; 
charset=UTF-8"/head% 

 
Class.forName(driverClassName); 
Connection con = DriverManager.getConnection(dbURL, user, 
password); 
con.setAutoCommit(false); 
Statement 
stmt=null; 
ResultSet 
rst=null; 
stmt = 
con.createStatement(); 
String testString=null;

 
try {



 
rst = stmt.executeQuery(queryString); 
} 
catch(SQLException e) 
{ 
System.out.println("error while fetching data from old 
table."); 
System.out.println("Error message: 
"+e.getMessage()); 
return; 
}

 
while(rst.next()) 
{ 
testString = rst.getString(1);

 
out.println("LastNAME "+ testString);

 
}

%/
/body
/html

7. I have also 
tried using the String.getBytes("UTF-8); But this also does not 
work.

I would like to know if any other setting also needs to be 
made for in addtion to what I have done so that it 
works.

Joshua Sunil Kumar


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




include a class

2003-02-28 Thread kwolff
Hi all,

i am new to JSP and have a beginner question. I can't fix to include a class. hmm I 
have 
class wrtitten that do all i need and it works fine on the shell.
Now i want to handle this class in a jsp script, so that i get back the string..

that is what i want to do in my jsp:

Class a = new Class;
out.println(a.Function());


But how to include my class, can anyone give me a short example, i can't get throw and 
my 
books are not very well.

Thanx a lot.

Kris Wolff
Application Developer
dietzk. Interactive OHG
An der Schindhohl 7
D-65843 Sulzbach am Taunus
Fon +49 (0) 6196 4939-95
Fax +49 (0) 6196 758830
[EMAIL PROTECTED]
http://www.dietzk.de


RE: get apache-tomcat virtual host

2003-02-28 Thread Turner, John

What are the contents of mod_jk.conf?

Did you restart Apache so that it could pick up the changes?

Is there a VirtualHost container in mod_jk.conf for www.host2.com?

In your Host container in server.xml, you list the name as host2.com, not
www.host2.com.   Is this a typo?  The two are different.  Either change it
to www.host2.com or use Alias within the Host container to alias
www.host2.com to host2.com.

John


-Original Message-
From: Xiongfei Wang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 11:35 PM
To: Tomcat Users List
Subject: get apache-tomcat virtual host 


On Thu, 27 Feb 2003, Xiongfei Wang wrote:

I have redhat linux 7.3 
 
 i have two virtual host in my machine www.host1.com and www.host2.com
www.host1.com is the default one.  apache-tomcat runs fine with the default
one.  i mean both http://www.host1.com:8080/examples and 
http://www.host1.com/examples  come to same result whick is
good.  i want www.host2.com work same way as www.host1.com in term of runing
apache servlet, i did following to server.xml
  
 
 I add host dirctive like this
 ***
  Host name=host2.com debug=0 appBase=/home/www/zhujp98
   unpackWARs=true

   Listener
  className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /

!-- Normally, users must authenticate themselves to each web app
 individually.  Uncomment the following entry if you would
  like
 a user to be authenticated the first time they encounter a
 resource protected by a security constraint, and then have
   that
 user identity maintained across *all* web applications
 contained
 in this virtual host. --
!--
Valve className=org.apache.catalina.authenticator.SingleSignOn
   debug=0/
--

!-- Access log processes all requests for this virtual host.  By
 default, log files are created in the logs directory
 relative to
 $CATALINA_HOME.  If you wish, you can specify a different
 directory with the directory attribute.  Specify either a
 relative
 (to $CATALINA_HOME) or absolute path to the desired
  directory.
--
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
 suffix=.txt
 pattern=common/

!-- Logger shared by all Contexts related to this virtual host.
By
 default (when using FileLogger), log files are created in the
  logs
 directory relative to $CATALINA_HOME.  If you wish, you can
  specify
 a different directory with the directory attribute.
 Specify either a
 relative (to $CATALINA_HOME) or absolute path to the desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

!-- Define properties for each web application.  This is only
   needed
 if you want to set non-default properties, or have web
 application
 document roots in places other than the virtual host's
 appBase
 directory.  --

!-- Tomcat Root Context --
!--
  Context path= docBase=ROOT debug=0/
--

 Context path=/servlets docBase=/home/www/zhujp98/servlets
 debug=0
reloadable=true/
 /Host


**

after that I can access servlets using http://www.host2.com:8080/servlets

but fails when i use http://www.host2.com/servlets

it seems that apache did not connect to tomcat in terms of www.host2.com

how can i fix this problem?
Thanks

j.p 


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



User Web Applications

2003-02-28 Thread Roy Giles
Hello,

I am a sysadmin in a University IT environment, charged with getting a
number of packages running by the imminent start of the academic year,
one of which is Tomcat.

I have a simple application installed and running on a standalone
version of Tomcat but I now need to get this configured for use in a
couple of courses by around one hundred students so they can install
their own applications.

I have tried both methods listed in the Host Container - User Web 
Applications reference without success.

The first via the /etc/passwd route creates a directory as :-

$CATALINA_HOME/work/Standalone/localhost/~lname and a thread for every
entry in the password file but then crashes about 1000 entries into it.

We need something finer grained so I tried the specified base directory
method; this worked fine in the simple case but when I set up a few
users directories from our actual environment, a mixture of Solaris
and Linux boxes, home directories via NFS, symbolic links (the full
Network is the Computer deal) it's back to nobody's home.

The reference indicates that Catalina can map a request URI in the same 
way as many webservers; we accomplish this easily via the UserDir
directive in Apache, anyone know how to get there with Tomcat?

Regards,
Roy Giles
School of Information Technologies
Madsen Building, F09
University of Sydney
N.S.W., 2006
Australia

e-mail: [EMAIL PROTECTED]
phone:  +61 2 9351 3272
fax:+61 2 9351 3838

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



Problem rendering Greek and Latin Characters in Tomcat 4.1.18

2003-02-28 Thread Joshua Sunil Kumar



Hi 

The JSP page that 
I am using has Greek and Latin Characters. I am unable to display it properly in 
the browser. 
I am fetching data 
from the a Oracle Database which is stored in UTF-8 . When I display it on the 
browser this the characters are getting garbled. Ex- Grnbk 
If I change the 
View--Encoding-- to UTF-8 then I am able to view it properly as 
Ex- Grnbk 

1.I am setting the 
the following META tag
META 
http-equiv="Content-Type" content="text/html; charset=UTF-8"But still 
when I check it up in the browser the encoding setting is 
ISO-8859-1

2. I have tried 
setting the response.setContentType("text/html;charset=UTF-8"); This also does 
not work. 
3. I have tried 
putting % page contentType = "text/html;charset=UTF-8" %. This 
also does not work.

4. I have changed 
the setting Tomcat4.1.18 for web.xml file to 
filter 
filter-nameSet Character 
Encoding/filter-name 
filter-classfilters.SetCharacterEncodingFilter/filter-class 
init-param 
param-nameencoding/param-name 
param-valueUTF-8/param-value 
/init-param /filter


5. I thought 
there might be a problem with the Apache webserver and then I set this in the 
httpd.conf file
AddDefaultCharset UTF-8 (default is 
ISO-8859-1)
Having done 
all the setting still I am unable to the view the characters properly. 


I am running 
Tomcat4.1.18 with Apache2.0.34 using the JK2 Connector on Solaris 
5.8.

Code snippet 
which I have used.

html% page import="java.util.*" %% page 
import="java.io.*" %% page import="java.sql.*" 
%headMETA http-equiv="Content-Type" content="text/html; 
charset=UTF-8"/head%

 
Class.forName(driverClassName); 
Connection con = DriverManager.getConnection(dbURL, user, 
password); 
con.setAutoCommit(false); 
Statement 
stmt=null; 
ResultSet 
rst=null; 
stmt = 
con.createStatement(); 
String testString=null;

 
try {



 
rst = stmt.executeQuery(queryString); 
} 
catch(SQLException e) 
{ 
System.out.println("error while fetching data from old 
table."); 
System.out.println("Error message: 
"+e.getMessage()); 
return; 
}

 
while(rst.next()) 
{ 
testString = rst.getString(1);

 
out.println("LastNAME "+ testString);

 
}

%/
/body
/html

7. I have also 
tried using the String.getBytes("UTF-8); But this also does not 
work.

I would like to know if any other setting also needs to be 
made for in addtion to what I have done so that it 
works.

Joshua Sunil Kumar


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.




cgi-bin

2003-02-28 Thread Kaps Stefan
hello!
i need a cgi-bin directory and enabled cgi in the web.xml and renamed a
file. should this create a new directory when restarting (not on my
server...)?
need help for this problem!

Thanks!!
stefan

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



Re: include a class

2003-02-28 Thread Lindomar
Kris, first, does your webapp started fine?
If yes, we can have some situations for one class works in jsp files using
tomcat:
1- webapp
|_WEB-INF
|_classes
|_yourclass - if your class doesn't have a package
2- webapp
|_WEB-INF
|_classes
|_pack
|_subpk1
|_subpk2
|_yourclass -if your class is in
package(s), in this case: pack.subpk1.subpk2.yourclass

3- if your class is any jar, this jar file must be in /WEB-INF/lib(your
class is shared only in especific webapp) or %CATALINA_HOME%/common/lib(your
class is shared in webapp'S' and tomcat) or
%CATALINA_HOME%/shared/lib(your class is shared in webapp'S').

After this cases, if your class is in package(s), in you jsp file you have
to use the import directive, for example:
%@ page import=pack.subpk1.subpk2.* % or if import only  a especific
class %@ page import=pack.subpk1.subpk2.yourclass %

Well, i think that's.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 08:46
Subject: include a class


 E-mail Premium BOL
 Antivírus, anti-spam e até 100 MB de espaço. Assine já!
 http://email.bol.com.br/
 Hi all,

 i am new to JSP and have a beginner question. I can't fix to include a
class. hmm I have
 class wrtitten that do all i need and it works fine on the shell.
 Now i want to handle this class in a jsp script, so that i get back the
string..

 that is what i want to do in my jsp:

 Class a = new Class;
 out.println(a.Function());


 But how to include my class, can anyone give me a short example, i can't
get throw and my
 books are not very well.

 Thanx a lot.

 Kris Wolff
 Application Developer
 dietzk. Interactive OHG
 An der Schindhohl 7
 D-65843 Sulzbach am Taunus
 Fon +49 (0) 6196 4939-95
 Fax +49 (0) 6196 758830
 [EMAIL PROTECTED]
 http://www.dietzk.de



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



Problem with servlet filter configuration

2003-02-28 Thread Alban Soupper
Hi all,

I work with JBoss + embeded Tomcat 4.1.12.

I have put the following lines in my web.xml
?xml version=1.0?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
filter
filter-nametrimFilter/filter-name
filter-classcom.cj.trim.trimFilter/filter-class
/filter
filter-mapping
filter-nametrimFilter/filter-name
url-pattern*.jsp/url-pattern
/filter-mapping
!-- Action Servlet Configuration --
servlet
servlet-namecustomAction/servlet-name

servlet-classcom.eim.application.intranet.control.struts.CustomActionServl
et/servlet-class
init-param
..
/web-app


but when launching tomcat I have the following error:
ERROR [Digester] Parse Error at line 4 column -1: L'élément web-app
n'accepte pas filter ici.
org.xml.sax.SAXParseException: L'élément web-app n'accepte pas filter
ici.


== the web-app element does not accept filter here


What is the problem?

Thanks for the answers :)

Alban.


**
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 system manager at postmaster.eim.ch.
**


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



disable jsp in a directory

2003-02-28 Thread Jannik Hendriksen
I am trying to disable jsp in the subdirectory editable of a webapp. 
I am running apache-jk2-tomcat4.1.17

Since I'm using JK2 I'm restricted to the syntax in the
workers2.properties file on the apache side. I have tried to use regex
in the uri, and wan't something like this:
[uri:$^localhost/(?!editable).*\.jsp]
but I can't get regex to work with uris at all.

Does someone know of another way to do this? Maybe in server.xml?

Thanks
-jannik


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



RE: Problem with servlet filter configuration

2003-02-28 Thread Alban Soupper
I found the problem :
the error was:
-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
and it must be:
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN

-Original Message-
From: Alban Soupper [mailto:[EMAIL PROTECTED]
Sent: vendredi, 28. février 2003 15:04
To: 'Tomcat Users List' (E-mail)
Subject: Problem with servlet filter configuration


Hi all,

I work with JBoss + embeded Tomcat 4.1.12.

I have put the following lines in my web.xml
?xml version=1.0?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.2//EN http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
filter
filter-nametrimFilter/filter-name
filter-classcom.cj.trim.trimFilter/filter-class
/filter
filter-mapping
filter-nametrimFilter/filter-name
url-pattern*.jsp/url-pattern
/filter-mapping
!-- Action Servlet Configuration --
servlet
servlet-namecustomAction/servlet-name

servlet-classcom.eim.application.intranet.control.struts.CustomActionServl
et/servlet-class
init-param
..
/web-app


but when launching tomcat I have the following error:
ERROR [Digester] Parse Error at line 4 column -1: L'élément web-app
n'accepte pas filter ici.
org.xml.sax.SAXParseException: L'élément web-app n'accepte pas filter
ici.


== the web-app element does not accept filter here


What is the problem?

Thanks for the answers :)

Alban.


**
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 system manager at postmaster.eim.ch.
**


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

2003-02-28 Thread Reynir Hübner
You need to create a new directory named cgi-bin (or something else if you 
configured web.xml to use something else) under your WEB-INF/ directory of the webapp.

Then you can put your cgi scripts in to that directory, and run from command line.

Hope it helps
-reynir


 -Original Message-
 From: Kaps Stefan [mailto:[EMAIL PROTECTED] 
 Sent: 28. febrúar 2003 13:18
 To: [EMAIL PROTECTED]
 Subject: cgi-bin
 
 
 hello!
 i need a cgi-bin directory and enabled cgi in the web.xml and 
 renamed a file. should this create a new directory when 
 restarting (not on my server...)? need help for this problem!
 
 Thanks!!
 stefan
 
 -
 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]



WebDav Problems with url mappings

2003-02-28 Thread Stratmann, Holger
Hello everybody,

I have serious problems with the WebDAV servlet when I try to map it to a
URL-pattern other than /.

I'd like to map it to /DAV or /webdav or something.
Just to clarify my terminology (which may not be 100% correct):

I want the WebDAV servlet to run in the same context as many other servlets
and I want them to access the same webspace-directory (i.e.: I want the
WebDAV-servlet to provice access to my webspace).

I would assume that that is what many users want - what's a stand alone
WebDAV-servlet good for??

Anyway: the servlet doesn't seem to consider its url mapping internally (not

at all or not correctly).
 
As a quick experimental patch I tried the following:

 MyDavServlet extends WebdavServlet {
 protected String getRelativePath(HttpServletRequest request) {
String res = super.getRelativePath(request);
System.err.println(translating path  + res);
if (res.startsWith(/XDAV)) res = res.substring(5);
if (res.length()  1) return /;
return res;
}
 }
 
 Without this modification, Windows webfolders do not work at all.
 With this modification, they work, but not 100% correctly.
 Every folder (collection) also seems to contain itself. Funny effect.
 
 == My patch is not the solution, but probably a pointer to 
 the problem...
 I haven't spent more time with it (yet) because I don't use 
 it yet. I just stumbled across this problem after just 10 
 minutes of experimenting :-(((

 I would soon LIKE TO use it and appreciate any hints that help me solve the
problem before I have to start digging in the source codes...

 Holger
 
P.S.: Some other people seem to have experienced this problem already. I've
seen the problem on the mailing list, but no hint or solution :-((( 

P.P.S.: Please reply to my e-mail address as well... this list is so busy
I'd probably miss some answers otherwise... Thanks

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



RE: Segmentation Violation with HttpCoyoteConnector

2003-02-28 Thread Juan
Thanks. The stacksize was already limited with ulimit -s 2048.
I think that I have already found the solution. It seems that there was a
bug in the system libraries and there are some rpms to be updated.

- Original Message -
From: pero [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 10:10 PM
Subject: RE: Segmentation Violation with HttpCoyoteConnector


 Hi,

   this is a JVM issue. Did you limit the stacksize with
 ulimit -s 2048 (bash)? That helps in most cases.

 Peter

  -Original Message-
  From: Juan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 27, 2003 6:16 PM
  To: [EMAIL PROTECTED]
  Subject: Segmentation Violation with HttpCoyoteConnector
 
 
  Hello
 
  I have a Tomcat 4.1.18 standalone server installed on Red Hat
  Linux 7.3, using the Sun JVM 1.3.1_03, green threads, standalone.
 
  After having some problems with Http11Connector, I activated
  Coyote about 10 days ago. In these days JVM has crashed,
  obtaining a Segmentation Violation message, about 5-6 times.
  The CPU maintained mostly idle and there was still enough
  free memory for the JVM. It happens normally after working
  between 1 and 2 days, it has not been in the moments with
  more work load, and some times it has been preceded by some
  incorrect requests (extrange characters appeared in the log)
  from the same IP, at the same time of the day (I suspect that
  could be a user with a browser whose JVM generates bad requests)
 
  Have anybody reported such problem? Any solution suggested?
 
  Juan Zubieta
 
 
  -
  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]



Tomcat 4.1.18 DBCP Error/Show-Stopper

2003-02-28 Thread Chakravarthy, Sundar
Environment
-

Apache 2.x - Mod_jk2 - Tomcat 4.1.18 - - - Solaris 5.8

- 2 GB RAM  , Xms512m, Xmx512m


Error
-

DHCP browse object failed: java.sql.SQLException: ORA-00020


Why doesn't restarting the database server refresh the connection in
DBCP ?

I do have validationQuery value set and seemed to work before.

Thanks
Sundar


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



Re: HTTTP Status 404 Tomcat on MAC os X

2003-02-28 Thread Francisco J. Bido
1. Did you try restarting Tomcat?
2. Double check your web.xml file since It doesn't look like your  
servlet is deploying correctly.
3. Also check your catalina.out log for any startup errors.
4. Find a complete example that works and make sure you understand what  
the web.xml entries mean.

Best of Luck,
-FB




On Friday, February 28, 2003, at 05:31  AM, apratim sharma wrote:

hi !!1

i'm getting following error on running servlet created
by me
HTTP Status 404 - /exp/servlet/first
--- 
-

type Status report

message /exp/servlet/first

description The requested resource
(/exp/servlet/first) is not available.
--- 
-

Apache Tomcat/4.1.18

Anybody plz help me

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.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]


tomcat log (error) monitoring

2003-02-28 Thread krip pane
All,

I need to provide a template of possible error
messages
to my ITO group for monitoring.  If someone can
provide some acutal examples that'll be great or Can
someone provide some basis for what type of error
messages tomcat might throw out or some keywords to
look for?

TIA

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Default Context

2003-02-28 Thread Tomcat
Hi,

 Is there any limitation in using the JNDI resources configured under
DefaultContext in load-on-startup servlets.

 For load-on-startup servlet, it is giving null values to the Resource
parameters configured.
 If load-on-startup is removed, it is working fine if the servlet is
accessed manually.

 Can anybody help me out?

 I am using Tomcat4.1.18 version.

 Thanks and Regards,
Pratt.


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



Tomcat WAR expansion

2003-02-28 Thread Tomcat
Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

Thanks and Regards,
Pratt



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



Pre-compiling JSPs

2003-02-28 Thread Robert Csiki
Hi there,
 
I'm trying to pre-compile all the JSPs before deploying and running Webtop
(for fast initial invocation purposes) under Tomcat 4.0.x app server.
 
I've found both jspc.bat tool from Tomcat/bin and Ant's JspC task (that are
doing the same thing) are generating outputs (that is, .java and then .class
files) that are not recognized at runtime by Tomcat's servlet engine.

And that's because of 2 issues:
 
 1. The .java and .class filenames are not mangled by the above tools; the
Jasper compiler does that for generating unique filenames
 2.  The package name is set accordingly by the above tools on all .java
classes (ex. for /system/login/login.jsp source, a Java one called
login.java is created and the package name is system.login); Jasper sets the
hardcoded org.apache.jsp package for all .java classes generated from JSPs
(bug?).

However, if you look into the Tomcat sources (at least on the 4.0.x level
code), you'll notice there are 2 distinct contexts for compiling the JSPs:
one used at runtime (JSPCompiler.java), the second one used by jspc and Ant
task (CommandLineCompiler.java). They are not the same. The command line
compiler doesn't mangle the generated Java sources names and it also sets
the package differently. And that's enough to prevent the compiled classes
being recognized at runtime.

Didn't understand exactly why 2 contexts?
 
Any idea about how to handle this problem?
 
Thank you,
Robert Csiki


RE: Compile JSP on Tomcat Startup

2003-02-28 Thread Molof, Barry
I tried jspc and all it did was convert .jsp to .java, instead of
.class.  I'm looking for a solution that handles the conversion of .jsp
to .java to .class files during Tomcat 3.3.1a startup.  

Can anyone else help?

Thanks

-Original Message-
From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 3:07 AM
To: Tomcat Users List
Subject: Re: Compile JSP on Tomcat Startup

I think that you would use jspc (JSP compiler) that comes with Tomcat 
distribution. It's materialized in jsp.bat[sh] in
$TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
more 
info

regards,
c.

At 04:07 PM 2/25/2003 -0500, you wrote:
How can I compile all of my JSPs when I start Tomcat?  The version I am
using is 3.3.1a.  Any help would be great.

Thanks.
Barry


-
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: Beginner problems with Tomcat and Memory

2003-02-28 Thread Shapira, Yoav

Howdy,
A Profiler is your friend.  My favorite is OptimizeIt.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Shaun Roach [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 6:36 PM
To: [EMAIL PROTECTED]
Subject: Beginner problems with Tomcat and Memory

Hi, I am using Tomcat for just the second time, and I am running into
some trouble.

I am trying to make a fantasy baseball drafting webpage for me and my
friends.  The code below is a servlet action class that will execute
properly (and produce the proper jsp) for the first two times it is
called.

However, invariably on the third execution, the memory balloons out of
control (I know this isn't very accurate, but I am looking at my task
manager Mem usage column)  it goes from about 30MB when the application
first runs to around 300MB or more, until my whole system crashes when
the code is run for the third time.

I am using Windows 2000, j2sdk1.4.1_01 and Tomcat 4.0.

Here is my code.  I browsed the archives and haven't found any examples
for memory leaks that happen this drastically.  I hope someone can
help,
I would be very appreciative.  Here is my code

Thanks,
Shaun Roach


public final class DraftAction extends Action {



public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
   throws IOException, ServletException {

   // Extract attributes we will need
   Locale locale = getLocale(request);

   // Validate the request parameters specified by the user
   ActionErrors errors = new ActionErrors();
   HttpSession session = request.getSession();



   String position = request.getParameter(position);
   String ix = request.getParameter(ix);
   ArrayList teams = (ArrayList)session.getAttribute(teams);
   ArrayList positions =
(ArrayList)session.getAttribute(positionLists);
   Team draftingTeam = (Team)teams.get(0);

   PositionList positionList;
   PositionList teamPositionList;
   if( C.equals(position) ) {
   positionList = (PositionList)positions.get(0);
   teamPositionList =
(PositionList)draftingTeam.getPositions().get(0);
   }
   else if( 1B.equals(position) ) {
   positionList = (PositionList)positions.get(1);
   teamPositionList =
(PositionList)draftingTeam.getPositions().get(1);
   }
   else if( 2B.equals(position) ) {
   positionList = (PositionList)positions.get(2);
   teamPositionList =
(PositionList)draftingTeam.getPositions().get(2);
   }
   else if( 3B.equals(position) ) {
   positionList = (PositionList)positions.get(3);
   teamPositionList =
(PositionList)draftingTeam.getPositions().get(3);
   }
   else if( SS.equals(position) ) {
   positionList = (PositionList)positions.get(4);
   teamPositionList =
(PositionList)draftingTeam.getPositions().get(4);
   }
   else  {
   positionList = (PositionList)positions.get(5);
   teamPositionList =
(PositionList)draftingTeam.getPositions().get(5);
   }


   int index;
   try
   {
   index = Integer.parseInt(ix);
   }
   catch(NumberFormatException nfe)
   {
   index = 0;
   }


   if( index = positionList.getPlayers().size() )
   index = 0;

   Player player = (Player)positionList.getPlayers().get(index);
   positionList.getPlayers().remove(index);
   teamPositionList.getPlayers().add(player);



   // Report any errors we have discovered back to the original
form
   if (!errors.empty()) {
   saveErrors(request, errors);
   return (new ActionForward(mapping.getInput()));
   }



   session.setAttribute(positionLists,positions);
   session.setAttribute(teams, teams);



/*

*/

   // Forward control to the specified success URI


   // Remove the obsolete form bean
   if (mapping.getAttribute() != null) {
   if (request.equals(mapping.getScope()))
   request.removeAttribute(mapping.getAttribute());
else
session.removeAttribute(mapping.getAttribute());
}
   return (mapping.findForward(draftpage));
}
}



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




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 

SSL certificate not refreshing in Tomcat

2003-02-28 Thread Ed Hoden
Greetings and thanks in advance for any help.

I am running Tomcat 4.0.3 on AIX 4.3.3 using Java 1.3.1.

I recently renewed my SSL certificate. I imported it into the keystore using
the keytool and it looks like the import was successful because when I run
keytool -v -list -alias tomcat, the new information for the certificate is
shown.

However, when I bring up a page served by the https connection, I get a
certificate expired warning. When I view the certificate information, it
shows the certificate which should have been replaced.

I am certain Tomcat is using the correct keystore. There is only one
keystore file on the server and it is in the home directory of the owner of
Tomcat. The server.conf file still has the default entries.

The Tomcat server has been stopped and restarted several times since the
certificate was renewed and imported.

As an addendum, the previous certificate worked just fine and I had no
issues with it.

Has anyone else encountered this issue before and if so, can you offer a
solution? Thanks again.

Ed Hoden
Oracle DBA
SITEL Corporation
7277 World Communication Dr
Omaha, NE 68122

This message and any attachments are intended only for the use of the
addressee and may contain information that is privileged and confidential.
If the reader of the message is not the intended recipient, or the
authorized agent of the intended recipient, you are hereby notified that any
dissemination of this communication is strictly prohibited.  If you have
received this communication in error, please notify SITEL immediately by
telephone at 402.963.6001 and delete the message and any attachments from
your system.  Thank you for your cooperation.


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



Problem with AJP 1.3 Connector

2003-02-28 Thread Raja Sekhar
Hi,

I have six Apache webservers in my front-end and one Tomcat server in my backend. All 
these 6 apache servers connect to single tomcat engine using AJP Connector. 

Each apache server is configured in such a way that it accepts 150 client requests at 
a time. In tomcat server.xml, the AJP min processors is set to 120 and max processors 
to 1200. 
Now the problem is, sometimes the users dont get any response on the website for 15-20 
mins. All the requests dont have any response. But after sometime again everything is 
normal. So the assumption I take is apache is sending requests to tomcat, but because 
of the huge load, tomcat might be queueing the requests. 

So can any please say me what should be the parameters I set for tomcat to remove this 
problem ??? This is a very urgent production problem so any immediate help would be 
highly appreciated.

Thanks  Regards,

..Raj


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

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



Tomcat + postgresql+ jdbc integration problem

2003-02-28 Thread pcampaigne
I am getting the error Error accessing database No suitable Driver.  My installation 
consists of:
tomcat 4.06
postgresql 7.3.2
pg731bjdbc2.jar
IBMJava2-14 SDK

I have read archives and how to and taken the following actions.
placed pg731bjdbc2.jar in common/lib
tcpip_socket= 1  in postresql.conf

In java connection class I have specified the following:
driverClassName is org.postgresql.Driver
dbURL is jdbc:postgresql://192.168.1.2/nba
specified username and password

This is a long shot but, I read somewhere that postgresql only uses tcp/ip with jdbc 
even if the postgresql database is on the local host. 
1. Is this true? 
If this is the case, then does my router come into play?  The router is set up to only 
route port 80 to the ip adddress of this localhost machine.  Could this be why 
connection is refused?

So I change the HTTP/1.1 Connector entry in the server.xml from port:8080 to port:80 
and try again.
now I get the messageThe connection was refused when attempting to contact 
localhost:8080
2. Why does it think I am trying to contact localhost:8080 if I changed the port 
number in server.xml?
Any suggestions would be appreciated.
thanks,
Phil Campaigne


Is there a common lib between webapps, but not instances?

2003-02-28 Thread Frank Diakovasilis
I have multiple instance of Tomcat set up with multiple webapps in each.  I
would like a jar file to be shared across the webapps, but not across the
instances.  Is there a directory in place for that, or does anyone know how
to get around this?
TomcatHome\common\ is shared across instances so is not good.


RE: Tomcat 4.1.18 - Scalability Issue ?

2003-02-28 Thread Chakravarthy, Sundar
Hi,

Thanks for replying. Yes that is correct. Throws 

java.lang.NoClassDefFoundError: org/apache/jasper/runtime/HttpJspBase

as mentioned below after Jmeter threads increase to above 10.

I notice my acceptCount is 10 , should I bump this value ? 

What is the difference between acceptCount and maxPrcessors ?

I expect upto but not beyond 50 max concurrent users. 

Listing of AJP in tomcat/conf/server.xml

   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=0
   useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
/

This is a listing of my workers.properties file.

#Define 1 real worker using ajp13

worker.list=worker1

# Set propeties for worker1 (ajp13)

worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=50
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300

Thanks 


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 9:08 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.18 - Scalability Issue ?


Howdy,
It works OK normally, and then during stress test throws a
NoClassDefFound error

How do you have your connector configured?  Specifically,
min/maxProcessors and acceptCount?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 9:02 AM
To: Tomcat Users List
Subject: Tomcat 4.1.18 - Scalability Issue ?

Hi  ,

I have a single instance of Tomcat in the following environment,

Apache 2.x - Mod_jk2 - Tomcat 4.1.18 - - - Solaris 5.8

   - 2 GB RAM  , Xms512m, Xmx512m

However, when I try to stress-test Tomcat with 10 or more Threads using
Jmeter, I get the following exception quite consistently.

Is is a bug ?


Thanks
Sundar

2003-02-25 11:34:03 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
javax.servlet.ServletException: org/apache/jasper/runtime/HttpJspBase
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
1
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
a
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
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.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at

RE: Is there a common lib between webapps, but not instances?

2003-02-28 Thread Shapira, Yoav

Howdy,
You would probably save yourself some headaches and frustration if you
just package everything a webapp needs with the webapp.  Don't use
common libraries at all...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:21 AM
To: Tomcat Users List
Subject: Is there a common lib between webapps, but not instances?

I have multiple instance of Tomcat set up with multiple webapps in
each.  I
would like a jar file to be shared across the webapps, but not across
the
instances.  Is there a directory in place for that, or does anyone know
how
to get around this?
TomcatHome\common\ is shared across instances so is not good.



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]



Error using JSP Templates

2003-02-28 Thread Percival Bragg
I am still trying to find my way around JSP and am
trying to use JSP Templates. I have coded all the
template tags and tried accessing it on Tomcat.

The file accessed in the url is DesktopDefault.asp and
the template file is Template.jsp. Both are in the
same folder. I am getting errors as shown in
errors.txt.

I suspect the compiled servlet for Template.jsp is not
being created because the java file in Tomcat is
empty.

I have tried putting the template name in the insert
tag as 'Template.jsp', '/Template.jsp' and
'../Template.jsp', I suspected it could't find the
Template.jsp file.

Any help would be greatly appreciated. I have attached
the files mentioned to this email.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

org.apache.jasper.JasperException: tags.templates.InsertTag
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException: tags.templates.InsertTag
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530)
at org.apache.jsp.DesktopDefault_jsp._jspService(DesktopDefault_jsp.java:62)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 

Re: Objects in JSP PLEASE HELP.

2003-02-28 Thread Jason Johnston
 [EMAIL PROTECTED] 02/27/03 02:56PM 
Can you show us the errors that were reported when the JSP failed to
compile?  Full stacktraces are best.

-Jake
 
 
Yes, here they are.  I guess my real problem is that I'm not sure how
to reference the object from the page.
All the errors and source code are below.  Thanks.
 
*
***  tomcat log
*
 
2003-02-28 09:37:58 ApplicationDispatcher[/boastuff] Servlet.service()
for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
 
An error occurred at line: 87 in the jsp file: /editor.jsp
 
Generated servlet error:
C:\tomcat\work\localhost\boastuff\editor$jsp.java:97: Undefined
variable or class name: content
  out.print(content.getAction());
^
1 error
 
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
 at boa.iadmin.callEditor(iadmin.java:337)
 at boa.iadmin.submit(iadmin.java:173)
 at boa.iadmin.processRequest(iadmin.java:397)
 at boa.iadmin.doGet(iadmin.java:428)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:484)
 
 
 

 Partial JSP source  - editor.jsp
*
 
 

/head
body
 
H2BOA Content Editor/h2
center
 
boa:placecontent/
 

form name=editor action=%=content.getAction()%  // line
87
TABLEtrtdTitle:td
 
 

RE: Is there a common lib between webapps, but not instances?

2003-02-28 Thread Frank Diakovasilis
That probably would be ideal, but I am using soap as a web app and it shares
files with the other webapp, so I am stuck with the headache, but thanks
anyway.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:21 AM
To: Tomcat Users List
Subject: RE: Is there a common lib between webapps, but not instances?



Howdy,
You would probably save yourself some headaches and frustration if you
just package everything a webapp needs with the webapp.  Don't use
common libraries at all...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:21 AM
To: Tomcat Users List
Subject: Is there a common lib between webapps, but not instances?

I have multiple instance of Tomcat set up with multiple webapps in
each.  I
would like a jar file to be shared across the webapps, but not across
the
instances.  Is there a directory in place for that, or does anyone know
how
to get around this?
TomcatHome\common\ is shared across instances so is not good.



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]

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



RE: Problem with AJP 1.3 Connector

2003-02-28 Thread Dennis Cartier
Hi Raj,

Yikes! Six Apache's all going to 1 Tomcat sounds like a recipe for disaster
to me. In my experience, Apache handles load way better than Tomcat, so
having 1 or 2 Apache's and 5 or 6 Tomcat's sounds like a better setup.
Unless Tomcat is doing almost no work, it is going to be your bottleneck.

I have a cluster with 4 nodes each housing an Apache and a Tomcat. The
Apaches are always yawning, and the Tomcat's are sweating, but my apps are
totally dynamic. YMMV.

Dennis

-Original Message-
From: Raja Sekhar [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:11 AM
To: [EMAIL PROTECTED]
Subject: Problem with AJP 1.3 Connector


Hi,

I have six Apache webservers in my front-end and one Tomcat server in my
backend. All these 6 apache servers connect to single tomcat engine using
AJP Connector.

Each apache server is configured in such a way that it accepts 150 client
requests at a time. In tomcat server.xml, the AJP min processors is set to
120 and max processors to 1200.
Now the problem is, sometimes the users dont get any response on the website
for 15-20 mins. All the requests dont have any response. But after sometime
again everything is normal. So the assumption I take is apache is sending
requests to tomcat, but because of the huge load, tomcat might be queueing
the requests.

So can any please say me what should be the parameters I set for tomcat to
remove this problem ??? This is a very urgent production problem so any
immediate help would be highly appreciated.

Thanks  Regards,

..Raj


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.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]



how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang


I have redhat linux 7.3 
 
 i have two virtual host in my machine www.host1.com and www.host2.com
 www.host1.com is the default one.
 I have installed apache-tomcat on my machine
 apache-tomcat runs fine with the www.host1.com  one.
 i mean both http://www.host1.com:8080/examples and 
http://www.host1.com/examples  come to same result which is
 good.
 i want www.host2.com work same way as www.host1.com in term of running
 apache-tomcat i did following to server.xml
  
 
 I add host dirctive like this
 ***
  Host name=host2.com debug=0 appBase=/home/www/zhujp98
   unpackWARs=true

   Listener
  className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /

!-- Normally, users must authenticate themselves to each web app
 individually.  Uncomment the following entry if you would
  like
 a user to be authenticated the first time they encounter a
 resource protected by a security constraint, and then have
   that
 user identity maintained across *all* web applications
 contained
 in this virtual host. --
!--
Valve className=org.apache.catalina.authenticator.SingleSignOn
   debug=0/
--

!-- Access log processes all requests for this virtual host.  By
 default, log files are created in the logs directory
 relative to
 $CATALINA_HOME.  If you wish, you can specify a different
 directory with the directory attribute.  Specify either a
 relative
 (to $CATALINA_HOME) or absolute path to the desired
  directory.
--
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
 suffix=.txt
 pattern=common/

!-- Logger shared by all Contexts related to this virtual host.
By
 default (when using FileLogger), log files are created in the
  logs
 directory relative to $CATALINA_HOME.  If you wish, you can
  specify
 a different directory with the directory attribute.
 Specify either a
 relative (to $CATALINA_HOME) or absolute path to the desired
 directory.--
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

!-- Define properties for each web application.  This is only
   needed
 if you want to set non-default properties, or have web
 application
 document roots in places other than the virtual host's
 appBase
 directory.  --

!-- Tomcat Root Context --
!--
  Context path= docBase=ROOT debug=0/
--

 Context path=/servlets docBase=/home/www/zhujp98/servlets
 debug=0
reloadable=true/
 /Host

**

after that I can access servlets using http://www.host2.com:8080/servlets

but fails when i use http://www.host2.com/servlets

it seems that apache did not connect to tomcat in terms of www.host2.com

how can i fix this problem?
Thanks

j.p 


-
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: Tomcat 4.1.18 - Scalability Issue ?

2003-02-28 Thread Peter Lin

the acceptCount is the number of connections to accept
before rejecting new connections.  It is only useful
if you don't want to reject connections and want them
to get processed eventually.

Max processors is the number of Coyote processors
Tomcat will create. If you're max concurrent will be
50, you may want to increase the min processors to
match the expected average load or the max concurrent.

One way to calculate the min or accept count is to
perform a series of benchmarks incrementing by 1 with
default tomcat settings. Plot the results based on
response time vs concurrent requests. Then rerun the
same test, but this time increase the accept count to
see if under max load it improves the response time or
error rate. Rerun the same exact test and only modify
either min or accept count. What I tend to do is start
with min first and then do accept count. Repeat the
process as many times as necessary. Once you're done
and it's all graphed in a chart, you can see if one
particular set of min/accept values results in better
scalability.

hope that helps.

peter



--- Chakravarthy, Sundar [EMAIL PROTECTED]
wrote:
 Hi,
 
 Thanks for replying. Yes that is correct. Throws 
 
 java.lang.NoClassDefFoundError:
 org/apache/jasper/runtime/HttpJspBase
 
 as mentioned below after Jmeter threads increase to
 above 10.
 
 I notice my acceptCount is 10 , should I bump this
 value ? 
 
 What is the difference between acceptCount and
 maxPrcessors ?
 
 I expect upto but not beyond 50 max concurrent
 users. 
 
 Listing of AJP in tomcat/conf/server.xml
 
Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5
 maxProcessors=75
enableLookups=true
 redirectPort=8443
acceptCount=10 debug=0
 connectionTimeout=0
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 /
 
 This is a listing of my workers.properties file.
 
 #Define 1 real worker using ajp13
 
 worker.list=worker1
 
 # Set propeties for worker1 (ajp13)
 
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=8009
 worker.worker1.lbfactor=50
 worker.worker1.cachesize=50
 worker.worker1.cache_timeout=600
 worker.worker1.socket_keepalive=1
 worker.worker1.socket_timeout=300
 
 Thanks 
 
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 26, 2003 9:08 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.18 - Scalability Issue ?
 
 
 Howdy,
 It works OK normally, and then during stress test
 throws a
 NoClassDefFound error
 
 How do you have your connector configured? 
 Specifically,
 min/maxProcessors and acceptCount?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Error using JSP Templates

2003-02-28 Thread Percival Bragg
All the Attachments might not have come over properly
I am adding them to the body of the email.

file: DesktopDefault.jsp
%@ taglib uri='WEB-INF/tld/template.tld'
prefix='template' %

template:insert template='../Template.jsp'
  template:put name='LeftPane' content='Left pane'
direct='true'/
  template:put name='ContentPane' content='Content
pane' direct='true'/
  template:put name='RightPane' content='Right pane'
direct='true'/
/template:insert

file: Template.jsp
%@ taglib uri=WEB-INF/tld/tags.tld prefix=ptag %
%@ taglib uri=WEB-INF/tld/template.tld
prefix=template %

%

   /* The DesktopDefault.jsp page is used to load and
populate each Portal View.  It accomplishes
   this by reading the layout configuration of the
portal from the Portal Configuration
   system, and then using this information to
dynamically instantiate portal modules
   (each implemented as a custom tag), and then inject
them into the page. */

 /* This scriplet capture the request parameters
passed and uses them to
   determine how to process the page. */

String tabIndex = request.getParameter(tabindex);
String tabId = request.getParameter(tabid);

if (tabIndex == null){
pageContext.setAttribute(tabIndex, 0);
}else{
pageContext.setAttribute(tabIndex, tabIndex);
}

if (tabId == null){
pageContext.setAttribute(tabId, 1);
}else{
pageContext.setAttribute(tabId, tabId);
}

%

html
head
titleBraggOnline Portal/title
link href=braggonline.css type=text/css
rel=stylesheet /
/head
body leftmargin=0 bottommargin=0
rightmargin=0 topmargin=0 marginheight=0
marginwidth=0
form
table width=100% cellspacing=0
cellpadding=0 border=0
tr valign=top
td colspan=2
ptag:banner/
/td
/tr
tr
td
br
table width=100%
cellspacing=0 cellpadding=4 border=0
tr height=*
valign=top
td width=5
nbsp;
/td
td id=LeftPane
Visible=false Width=170template:get
name='LeftPane'/
/td
td width=1nbsp;
/td
td id=ContentPane
Visible=false Width=*template:get
name='ContentPane'/
/td
td id=RightPane
Visible=false Width=230template:get
name='RightPane'/
/td
td width=10
nbsp;
/td
/tr
/table
/td
/tr
/table
/form
/body
/html

file: errors.txt
HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error
() that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException:
tags.templates.InsertTag
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at

RE: Is there a common lib between webapps, but not instances?

2003-02-28 Thread Scott, Sean

You can create a separate CATALINA_BASE for each instance and place the
common libraries in the $CATALINA_BASE/shared directory. ( This works in
4.1.18, but I am not sure about prior versions )

-sean

-Original Message-
From: Frank Diakovasilis [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:21 AM
To: Tomcat Users List
Subject: Is there a common lib between webapps, but not instances?

I have multiple instance of Tomcat set up with multiple webapps in
each.  I
would like a jar file to be shared across the webapps, but not across
the
instances.  Is there a directory in place for that, or does anyone know
how
to get around this?
TomcatHome\common\ is shared across instances so is not good.



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]

-
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: Tomcat WAR expansion

2003-02-28 Thread Scott, Sean
I am seeing this behavior too, but I am not sure of the benefit of expanding
the WAR. Does it run faster?

-sean

-Original Message-
From: Tomcat [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:55 AM
To: [EMAIL PROTECTED]
Subject: Tomcat WAR expansion



 Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

 Thanks and Regards,
 Pratt


-
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: Problem with AJP 1.3 Connector

2003-02-28 Thread Dennis Cartier
Hi Raj,

I just realized I did not answer your original question. That huge pause, I
would expect it would be garbage collection. You likely have lots of memory
in your tomcat box and it is taking a long time to garbage collect it.

If you switch to the incremental garbage collector (-Xincgc), you will not
see that huge pause (if that is  the cause), but the trade off will be lower
overall throughput as the GC runs more often.

Dennis

-Original Message-
From: Raja Sekhar [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:11 AM
To: [EMAIL PROTECTED]
Subject: Problem with AJP 1.3 Connector


Hi,

I have six Apache webservers in my front-end and one Tomcat server in my
backend. All these 6 apache servers connect to single tomcat engine using
AJP Connector.

Each apache server is configured in such a way that it accepts 150 client
requests at a time. In tomcat server.xml, the AJP min processors is set to
120 and max processors to 1200.
Now the problem is, sometimes the users dont get any response on the website
for 15-20 mins. All the requests dont have any response. But after sometime
again everything is normal. So the assumption I take is apache is sending
requests to tomcat, but because of the huge load, tomcat might be queueing
the requests.

So can any please say me what should be the parameters I set for tomcat to
remove this problem ??? This is a very urgent production problem so any
immediate help would be highly appreciated.

Thanks  Regards,

..Raj


Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.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: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Is this a glitch?  Did my first reply to this post get lost?

John


 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:53 AM
 To: Tomcat Users List
 Subject: how to get apache-tomcat virtual host work? 
 
 
 
 
 I have redhat linux 7.3 
  
  i have two virtual host in my machine www.host1.com and www.host2.com
  www.host1.com is the default one.
  I have installed apache-tomcat on my machine
  apache-tomcat runs fine with the www.host1.com  one.
  i mean both http://www.host1.com:8080/examples and 
 http://www.host1.com/examples  come to same 
 result which is
  good.
  i want www.host2.com work same way as www.host1.com in term 
 of running
  apache-tomcat i did following to server.xml
   
  
  I add host dirctive like this
  
 **
 *
   Host name=host2.com debug=0 appBase=/home/www/zhujp98
unpackWARs=true
 
Listener
   className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true  /
 
 !-- Normally, users must authenticate themselves to 
 each web app
  individually.  Uncomment the following entry if you would
   like
  a user to be authenticated the first time they 
 encounter a
  resource protected by a security constraint, and 
 then have
that
  user identity maintained across *all* web applications
  contained
  in this virtual host. --
 !--
 Valve 
 className=org.apache.catalina.authenticator.SingleSignOn
debug=0/
 --
 
 !-- Access log processes all requests for this 
 virtual host.  By
  default, log files are created in the logs directory
  relative to
  $CATALINA_HOME.  If you wish, you can specify a different
  directory with the directory attribute.  
 Specify either a
  relative
  (to $CATALINA_HOME) or absolute path to the desired
   directory.
 --
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common/
 
 !-- Logger shared by all Contexts related to this 
 virtual host.
 By
  default (when using FileLogger), log files are 
 created in the
   logs
  directory relative to $CATALINA_HOME.  If you 
 wish, you can
   specify
  a different directory with the directory attribute.
  Specify either a
  relative (to $CATALINA_HOME) or absolute path to 
 the desired
  directory.--
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. 
 suffix=.txt
 timestamp=true/
 
 !-- Define properties for each web application.  This is only
needed
  if you want to set non-default properties, or have web
  application
  document roots in places other than the virtual host's
  appBase
  directory.  --
 
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 
  Context path=/servlets 
 docBase=/home/www/zhujp98/servlets
  debug=0
 reloadable=true/
  /Host
 
 **
 
 
 after that I can access servlets using 
http://www.host2.com:8080/servlets

but fails when i use http://www.host2.com/servlets

it seems that apache did not connect to tomcat in terms of www.host2.com

how can i fix this problem?
Thanks

j.p 


-
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: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
War is different from jar. WAR has to be expanded in order to run.

 
Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:02 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat WAR expansion

I am seeing this behavior too, but I am not sure of the benefit of expanding
the WAR. Does it run faster?

-sean

-Original Message-
From: Tomcat [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:55 AM
To: [EMAIL PROTECTED]
Subject: Tomcat WAR expansion



 Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

 Thanks and Regards,
 Pratt


-
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: Tomcat 4.1.18 - Scalability Issue ?

2003-02-28 Thread Chakravarthy, Sundar
Thanks Peter. 

When you say Coyote processors you mean threads ? Right ?

I may have a few more questions after I conduct the test with Jmeter.
Don't change your channel!



-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 10:55 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.18 - Scalability Issue ?


the acceptCount is the number of connections to accept
before rejecting new connections.  It is only useful
if you don't want to reject connections and want them
to get processed eventually.

Max processors is the number of Coyote processors
Tomcat will create. If you're max concurrent will be
50, you may want to increase the min processors to
match the expected average load or the max concurrent.

One way to calculate the min or accept count is to
perform a series of benchmarks incrementing by 1 with
default tomcat settings. Plot the results based on
response time vs concurrent requests. Then rerun the
same test, but this time increase the accept count to
see if under max load it improves the response time or
error rate. Rerun the same exact test and only modify
either min or accept count. What I tend to do is start
with min first and then do accept count. Repeat the
process as many times as necessary. Once you're done
and it's all graphed in a chart, you can see if one
particular set of min/accept values results in better
scalability.

hope that helps.

peter



--- Chakravarthy, Sundar [EMAIL PROTECTED]
wrote:
 Hi,
 
 Thanks for replying. Yes that is correct. Throws 
 
 java.lang.NoClassDefFoundError:
 org/apache/jasper/runtime/HttpJspBase
 
 as mentioned below after Jmeter threads increase to
 above 10.
 
 I notice my acceptCount is 10 , should I bump this
 value ? 
 
 What is the difference between acceptCount and
 maxPrcessors ?
 
 I expect upto but not beyond 50 max concurrent
 users. 
 
 Listing of AJP in tomcat/conf/server.xml
 
Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5
 maxProcessors=75
enableLookups=true
 redirectPort=8443
acceptCount=10 debug=0
 connectionTimeout=0
useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
 /
 
 This is a listing of my workers.properties file.
 
 #Define 1 real worker using ajp13
 
 worker.list=worker1
 
 # Set propeties for worker1 (ajp13)
 
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=8009
 worker.worker1.lbfactor=50
 worker.worker1.cachesize=50
 worker.worker1.cache_timeout=600
 worker.worker1.socket_keepalive=1
 worker.worker1.socket_timeout=300
 
 Thanks 
 
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 26, 2003 9:08 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.18 - Scalability Issue ?
 
 
 Howdy,
 It works OK normally, and then during stress test
 throws a
 NoClassDefFound error
 
 How do you have your connector configured? 
 Specifically,
 min/maxProcessors and acceptCount?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.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: Tomcat 4.1.18 - Scalability Issue ?

2003-02-28 Thread Ralph Einfeldt
If all processors are busy, the acceptcount defines the length of 
the queue for requests that are waiting for the next free processor.

 -Original Message-
 From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 26, 2003 6:16 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.18 - Scalability Issue ?
 
 
 What is the difference between acceptCount and maxPrcessors ?
 


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



RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
My Tomcat used to expand my app war automatically. As soon as I added JNDI
stuff (resource) to my context, it stopped expanding my app war and threw
exception. I guess it looks for the resource before it expands my war.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:02 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat WAR expansion

I am seeing this behavior too, but I am not sure of the benefit of expanding
the WAR. Does it run faster?

-sean

-Original Message-
From: Tomcat [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:55 AM
To: [EMAIL PROTECTED]
Subject: Tomcat WAR expansion



 Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

 Thanks and Regards,
 Pratt


-
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: NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool

2003-02-28 Thread Georges Roux
Sorry, the problem was: I don't have commons-pool.jar

org/apache/commons/pool/impl/GenericObjectPool

thanks anyway.

Tomcat wrote:

Hi,

Try by extracting the pgjdbc2.jar and place it in the common\classes. It
should locate the classes.
Pratt.



- Original Message -
From: Georges Roux [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 4:37 PM
Subject: NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool
 

Hi,

When I try to set up a PostgreSQL Datasource for connection Pooling I ve
this Exception:
2003-02-27 02:00:27 StandardContext[/PhotoBaseManager]: Servlet
/PhotoBaseManager threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet
PostgresqlClient threw exception
  at
   

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:96
2)
 

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

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 

  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  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:203)
- Root Cause -
java.lang.NoClassDefFoundError:
org/apache/commons/pool/impl/GenericObjectPool
  at
   

org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(BasicDataSo
urceFactory.java:121)
 

  at

   

org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:186)
 

  at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
  at PostgresqlClient.init(PostgresqlClient.java:37)
  at
   

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 

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

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 

  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  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:203)
I have commons-dbcp.jar and pgjdbc2.jar in common/lib

in server.xml
  Resource name=jdbc/postgresql
  auth=Container
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/postgresql
   

parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourc
eFactory/value/parameter
 

   

parameternamedriverClassName/namevalueorg.postgresql.Driver/value
/parameter
 

   

parameternamedriverName/namevaluejdbc:postgresql://192.168.123.3:543
2/BasePhoto/value/parameter
 

parameternameusername/namevaluetomcat4/value/parameter


RE: Tomcat WAR expansion

2003-02-28 Thread Scott, Sean
I can't speak for Pratt, but my WAR runs fine without being expanded.
(4.1.18)

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:02 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat WAR expansion


War is different from jar. WAR has to be expanded in order to run.

 
Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Scott, Sean [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:02 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat WAR expansion

I am seeing this behavior too, but I am not sure of the benefit of expanding
the WAR. Does it run faster?

-sean

-Original Message-
From: Tomcat [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:55 AM
To: [EMAIL PROTECTED]
Subject: Tomcat WAR expansion



 Hi,

 When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
is not expanding the WAR if server.xml contains the Context entry related to
 this, If i remove the Context entry it is expanding.

 Is there any configuration required to expand the WAR by keeping the
Context entry in the server.xml?

 I am using Tomcat 4.1.18 version.

 Thanks and Regards,
 Pratt


-
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: Tomcat WAR expansion

2003-02-28 Thread Shapira, Yoav

Howdy,

WAR has to be expanded in order to run.

Absolutely wrong.

In fact, the ability to run an exploded (as opposed to a packed) WAR is
completely up to the container implementation.  The servlet
specification only requires the container to run packed WAR archives.

Yoav Shapira
Millennium ChemInformatics



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]



RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
So unpackWars is just a nice feature provided by Tomcat?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:08 AM
To: Tomcat Users List
Subject: RE: Tomcat WAR expansion


Howdy,

WAR has to be expanded in order to run.

Absolutely wrong.

In fact, the ability to run an exploded (as opposed to a packed) WAR is
completely up to the container implementation.  The servlet
specification only requires the container to run packed WAR archives.

Yoav Shapira
Millennium ChemInformatics



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]


Re: Tomcat WAR expansion

2003-02-28 Thread Prathap
Hi,
My Problem is why it is not expanded even the unpackWARS is set to true,
any idea?

Thanks



- Original Message -
From: Scott, Sean [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:39 PM
Subject: RE: Tomcat WAR expansion


 I can't speak for Pratt, but my WAR runs fine without being expanded.
 (4.1.18)

 -Original Message-
 From: Phillip Qin [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 9:02 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat WAR expansion


 War is different from jar. WAR has to be expanded in order to run.


 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: Scott, Sean [mailto:[EMAIL PROTECTED]
 Sent: February 28, 2003 11:02 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat WAR expansion

 I am seeing this behavior too, but I am not sure of the benefit of
expanding
 the WAR. Does it run faster?

 -sean

 -Original Message-
 From: Tomcat [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 2:55 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat WAR expansion



  Hi,

  When i place a WAR file into the Tomcat webapps folder, on Restart tomcat
 is not expanding the WAR if server.xml contains the Context entry related
to
  this, If i remove the Context entry it is expanding.

  Is there any configuration required to expand the WAR by keeping the
 Context entry in the server.xml?

  I am using Tomcat 4.1.18 version.

  Thanks and Regards,
  Pratt


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



Pre-compiling JSPs

2003-02-28 Thread Robert Csiki
I'd like to re-formulate this using a shorter form, maybe I'll get some
feedback...

Q: How to pre-compile all the JSPs from my web application, in such way
Tomcat WILL recognize and use them (I'm talking about the .class files) at
runtime, WITHOUT re-compiling them?

Thanks a lot in advance,
Robert

-Original Message-
From: Robert Csiki [mailto:[EMAIL PROTECTED]
Sent: February 28, 2003 9:59 AM
To: 'Tomcat Users List'
Subject: Pre-compiling JSPs


Hi there,
 
I'm trying to pre-compile all the JSPs before deploying and running my web
app
(for fast initial invocation purposes) under Tomcat 4.0.x app server.
 
I've found both jspc.bat tool from Tomcat/bin and Ant's JspC task (that are
doing the same thing) are generating outputs (that is, .java and then .class
files) that are not recognized at runtime by Tomcat's servlet engine.

And that's because of 2 issues:
 
 1. The .java and .class filenames are not mangled by the above tools; the
Jasper compiler does that for generating unique filenames
 2.  The package name is set accordingly by the above tools on all .java
classes (ex. for /system/login/login.jsp source, a Java one called
login.java is created and the package name is system.login); Jasper sets the
hardcoded org.apache.jsp package for all .java classes generated from JSPs
(bug?).

However, if you look into the Tomcat sources (at least on the 4.0.x level
code), you'll notice there are 2 distinct contexts for compiling the JSPs:
one used at runtime (JSPCompiler.java), the second one used by jspc and Ant
task (CommandLineCompiler.java). They are not the same. The command line
compiler doesn't mangle the generated Java sources names and it also sets
the package differently. And that's enough to prevent the compiled classes
being recognized at runtime.

Didn't understand exactly why 2 contexts?
 
Any idea about how to handle this problem?
 
Thank you,
Robert Csiki


mod_jk

2003-02-28 Thread Jeremy Whitlock
Tomcat-List,
I have just built a new Red Hat machine and I installed
it with no preinstalled Web Server or Databases so that I could install
them myself.  I have Apache 2.0.44 and I wanted to integrate Tomcat.  I
downloaded mod_jk-2.0.43 and I need to know if it will work with Apache
2.0.44.  Thanks,
 
Jeremy Whitlock --- MCP/MCSA
IT Manager for Star Precision, Inc.
Phone:  (970) 535-4795
Metro:  (303) 926-0559
Fax:  (970) 535-0780
Metro Fax:  (303) 926-0559
http://www.starprecision.com 
 


Default Context

2003-02-28 Thread Prathap
Hi,

 Is there any limitation in using the JNDI resources configured under
DefaultContext in load-on-startup servlets.

 For load-on-startup servlet, it is giving null values to the Resource
parameters configured.
 If load-on-startup is removed, it is working fine if the servlet is
accessed manually.

 Can anybody help me out?

 I am using Tomcat4.1.18 version.

 Thanks and Regards,
Pratt.




RE: Tomcat WAR expansion

2003-02-28 Thread Shapira, Yoav

Howdy,

So unpackWars is just a nice feature provided by Tomcat?

Exactly.

As to the original question for this thread: sorry for hijacking your
thread.  I just felt the statement that WARs must be exploded was so
flagrantly wrong that it had to be addressed.  I don't know the answer
to your original question as to why it's not unpacking your specific
WAR.

Yoav Shapira
Millennium ChemInformatics



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]



RE: Tomcat 4.1.18 - Scalability Issue ?

2003-02-28 Thread Peter Lin

Coyote is referring to CoyoteConnector. Remy and I
discuss these topics in the book with examples, so
hopefully when it comes out, it will help.

peter

--- Chakravarthy, Sundar [EMAIL PROTECTED]
wrote:
 Thanks Peter. 
 
 When you say Coyote processors you mean threads ?
 Right ?
 
 I may have a few more questions after I conduct the
 test with Jmeter.
 Don't change your channel!
 
 
 
 Connector
 

className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5
  maxProcessors=75
 enableLookups=true
  redirectPort=8443
 acceptCount=10 debug=0
  connectionTimeout=0
 useURIValidationHack=false
 

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
  /
  


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
I saw some error messages and my app war is not expanded. Did you see them
in your log?

2003-02-28 11:22:04 StandardContext[/lciponline]: Starting
2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(),
current available=false
2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
Resources
2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start failed:
2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring non-privileged
default Loader
2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
Manager
2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard
container startup
2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed due
to previous errors
2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during cleanup
after start failed
LifecycleException:  Container StandardContext[/lciponline] has not been
started
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:529)
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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
a:585)
at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
:647)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:1008)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:335)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:203)


Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Prathap [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:07 AM
To: Tomcat Users List
Subject: Re: Tomcat WAR expansion

Hi,
My Problem is why it is 

RE: mod_jk

2003-02-28 Thread Turner, John

Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

 -Original Message-
 From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:11 AM
 To: Tomcat
 Subject: mod_jk
 
 
 Tomcat-List,
 I have just built a new Red Hat machine and I 
 installed
 it with no preinstalled Web Server or Databases so that I 
 could install
 them myself.  I have Apache 2.0.44 and I wanted to integrate 
 Tomcat.  I
 downloaded mod_jk-2.0.43 and I need to know if it will work 
 with Apache
 2.0.44.  Thanks,
  
 Jeremy Whitlock --- MCP/MCSA
 IT Manager for Star Precision, Inc.
 Phone:  (970) 535-4795
 Metro:  (303) 926-0559
 Fax:  (970) 535-0780
 Metro Fax:  (303) 926-0559
 http://www.starprecision.com 
  
 

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



Two Realms for client authentication

2003-02-28 Thread Gil
Hi.

Can I use two Realms for client authentication?? I would like to define a 
set of servlets that uses a Realm and another set of sevlets that uses 
another Realm. Can I make this??

Regards. 

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


RE: mod_jk

2003-02-28 Thread Jeremy Whitlock
John,
Thanks for your help.  Do you think that since I didn't install
apache via Red Hat installer that the document might not work for me?
They use an older version of Apache.  Thanks, Jeremy

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:25 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk


Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

 -Original Message-
 From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:11 AM
 To: Tomcat
 Subject: mod_jk
 
 
 Tomcat-List,
 I have just built a new Red Hat machine and I 
 installed
 it with no preinstalled Web Server or Databases so that I 
 could install
 them myself.  I have Apache 2.0.44 and I wanted to integrate 
 Tomcat.  I
 downloaded mod_jk-2.0.43 and I need to know if it will work 
 with Apache
 2.0.44.  Thanks,
  
 Jeremy Whitlock --- MCP/MCSA
 IT Manager for Star Precision, Inc.
 Phone:  (970) 535-4795
 Metro:  (303) 926-0559
 Fax:  (970) 535-0780
 Metro Fax:  (303) 926-0559
 http://www.starprecision.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: Tomcat WAR expansion

2003-02-28 Thread Prathap
Hi
I am getting this trace.. Can you figure it out??

2003-02-28 21:55:02 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\test\Tomcat41\work\Standalone\localhost\webdav
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding of random number
generator has been completed
2003-02-28 21:55:02 StandardWrapper[/webdav:default]: Loading container
servlet default
2003-02-28 21:55:02 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2003-02-28 21:55:02 StandardContext[/test]: Resources start failed:
2003-02-28 21:55:02 StandardContext[/test]: Context startup failed due to
previous errors
2003-02-28 21:55:02 StandardContext[/test]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/test] has not been started
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Regards,
Pratt
- Original Message -
From: Phillip Qin [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:55 PM
Subject: RE: Tomcat WAR expansion


 I saw some error messages and my app war is not expanded. Did you see them
 in your log?

 2003-02-28 11:22:04 StandardContext[/lciponline]: Starting
 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(),
 current available=false
 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
 Resources
 2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start failed:
 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring
non-privileged
 default Loader
 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
 Manager
 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard
 container startup
 2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed
due
 to previous errors
 2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during cleanup
 after start failed
 LifecycleException:  Container StandardContext[/lciponline] has not been
 started
 at
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
 at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
 21)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
 java:529)
 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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
 at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
 at
 org.apache.commons.digester.Digester.endElement(Digester.java:1036)
 at

org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
 a:585)
 at

org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
 :647)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
 mentFragmentScannerImpl.java:1008)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
 ntFragmentScannerImpl.java:329)
 at

org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
 at

org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at

org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
 5)
 at org.apache.commons.digester.Digester.parse(Digester.java:1514)
 at

org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
 ava:335)

RE: mod_jk

2003-02-28 Thread Phillip Qin
I see many problems when you include apache in your Red hat installation. If
you make a clean build, John's document should perfectly meet your
requirement.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:28 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk

John,
Thanks for your help.  Do you think that since I didn't install
apache via Red Hat installer that the document might not work for me?
They use an older version of Apache.  Thanks, Jeremy

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:25 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk


Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

 -Original Message-
 From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:11 AM
 To: Tomcat
 Subject: mod_jk
 
 
 Tomcat-List,
 I have just built a new Red Hat machine and I 
 installed
 it with no preinstalled Web Server or Databases so that I 
 could install
 them myself.  I have Apache 2.0.44 and I wanted to integrate 
 Tomcat.  I
 downloaded mod_jk-2.0.43 and I need to know if it will work 
 with Apache
 2.0.44.  Thanks,
  
 Jeremy Whitlock --- MCP/MCSA
 IT Manager for Star Precision, Inc.
 Phone:  (970) 535-4795
 Metro:  (303) 926-0559
 Fax:  (970) 535-0780
 Metro Fax:  (303) 926-0559
 http://www.starprecision.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: mod_jk

2003-02-28 Thread Jeremy Whitlock
Phillip,
Just the answer I was looking for.  Thanks a lot, Jeremy

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:34 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk

I see many problems when you include apache in your Red hat
installation. If
you make a clean build, John's document should perfectly meet your
requirement.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:28 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk

John,
Thanks for your help.  Do you think that since I didn't install
apache via Red Hat installer that the document might not work for me?
They use an older version of Apache.  Thanks, Jeremy

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:25 AM
To: 'Tomcat Users List'
Subject: RE: mod_jk


Yes, .44 is module compatible with .43.   For more info, check out my RH
HOWTO for Apache + JK + Tomcat:

http://www.johnturner.com/howto

John

 -Original Message-
 From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:11 AM
 To: Tomcat
 Subject: mod_jk
 
 
 Tomcat-List,
 I have just built a new Red Hat machine and I 
 installed
 it with no preinstalled Web Server or Databases so that I 
 could install
 them myself.  I have Apache 2.0.44 and I wanted to integrate 
 Tomcat.  I
 downloaded mod_jk-2.0.43 and I need to know if it will work 
 with Apache
 2.0.44.  Thanks,
  
 Jeremy Whitlock --- MCP/MCSA
 IT Manager for Star Precision, Inc.
 Phone:  (970) 535-4795
 Metro:  (303) 926-0559
 Fax:  (970) 535-0780
 Metro Fax:  (303) 926-0559
 http://www.starprecision.com 
  
 

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



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


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



RE: mod_jk

2003-02-28 Thread Turner, John

Nope, in my opinion you made the right choice.  That's how I do it; I never
use the Apache that comes with RH.  The HOWTO covers installing the JDK,
installing Apache from source (2.0.44), installing Tomcat 4.1.18 from
binary, and installing and configuring the JK connector (mod_jk.so).

John

 -Original Message-
 From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:28 AM
 To: 'Tomcat Users List'
 Subject: RE: mod_jk
 
 
 John,
   Thanks for your help.  Do you think that since I didn't install
 apache via Red Hat installer that the document might not work for me?
 They use an older version of Apache.  Thanks, Jeremy
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 28, 2003 9:25 AM
 To: 'Tomcat Users List'
 Subject: RE: mod_jk
 
 
 Yes, .44 is module compatible with .43.   For more info, 
 check out my RH
 HOWTO for Apache + JK + Tomcat:
 
 http://www.johnturner.com/howto
 
 John
 
  -Original Message-
  From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 11:11 AM
  To: Tomcat
  Subject: mod_jk
  
  
  Tomcat-List,
  I have just built a new Red Hat machine and I 
  installed
  it with no preinstalled Web Server or Databases so that I 
  could install
  them myself.  I have Apache 2.0.44 and I wanted to integrate 
  Tomcat.  I
  downloaded mod_jk-2.0.43 and I need to know if it will work 
  with Apache
  2.0.44.  Thanks,
   
  Jeremy Whitlock --- MCP/MCSA
  IT Manager for Star Precision, Inc.
  Phone:  (970) 535-4795
  Metro:  (303) 926-0559
  Fax:  (970) 535-0780
  Metro Fax:  (303) 926-0559
  http://www.starprecision.com 
   
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Hostmaster of the day
John,

where is your reply ?

how to get apache-tomcat virtual host work? is an easy
question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.

Although I'm working very successfully with virtual hosts 
and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
hosts running with Tomcat 4.

Only the default virtual host is running. It doesn't matter
which virtual host I'm using.

I'm not alone and still working on it.

--Dave

 

Is this a glitch?  Did my first reply to this post get lost?

John


 I have redhat linux 7.3 
  
  i have two virtual host in my machine www.host1.com and
www.host2.com
  www.host1.com is the default one.
  I have installed apache-tomcat on my machine
  apache-tomcat runs fine with the www.host1.com  one.
  i mean both http://www.host1.com:8080/examples and 
 http://www.host1.com/examples  come to same 
 result which is
  good.
  i want www.host2.com work same way as www.host1.com in term 
 of running
  apache-tomcat i did following to server.xml
   
  
  I add host dirctive like this
  
 **
 *
   Host name=host2.com debug=0 appBase=/home/www/zhujp98
unpackWARs=true
 
Listener
   className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true  /
 
 !-- Normally, users must authenticate themselves to 
 each web app
  individually.  Uncomment the following entry if you
would
   like
  a user to be authenticated the first time they 
 encounter a
  resource protected by a security constraint, and 
 then have
that
  user identity maintained across *all* web applications
  contained
  in this virtual host. --
 !--
 Valve 
 className=org.apache.catalina.authenticator.SingleSignOn
debug=0/
 --
 
 !-- Access log processes all requests for this 
 virtual host.  By
  default, log files are created in the logs directory
  relative to
  $CATALINA_HOME.  If you wish, you can specify a
different
  directory with the directory attribute.  
 Specify either a
  relative
  (to $CATALINA_HOME) or absolute path to the desired
   directory.
 --
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common/
 
 !-- Logger shared by all Contexts related to this 
 virtual host.
 By
  default (when using FileLogger), log files are 
 created in the
   logs
  directory relative to $CATALINA_HOME.  If you 
 wish, you can
   specify
  a different directory with the directory attribute.
  Specify either a
  relative (to $CATALINA_HOME) or absolute path to 
 the desired
  directory.--
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. 
 suffix=.txt
 timestamp=true/
 
 !-- Define properties for each web application.  This is
only
needed
  if you want to set non-default properties, or have web
  application
  document roots in places other than the virtual host's
  appBase
  directory.  --
 
 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 
  Context path=/servlets 
 docBase=/home/www/zhujp98/servlets
  debug=0
 reloadable=true/
  /Host
 
 **
 
 
 after that I can access servlets using 
http://www.host2.com:8080/servlets

but fails when i use http://www.host2.com/servlets

it seems that apache did not connect to tomcat in terms of
www.host2.com

how can i fix this problem?
Thanks

j.p 


-
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: Two Realms for client authentication

2003-02-28 Thread Donald Ball
On 2/28/2003 at 5:25 PM Gil wrote:

Can I use two Realms for client authentication?? I would like to define a 
set of servlets that uses a Realm and another set of sevlets that uses 
another Realm. Can I make this??

In the same webapp? I don't think so. I think you have a few choices:

1. split the servlets into two webapps, each which its own Realm. annoying
and pedantic.

2. Write your own Realm which acts as a front-end to the two real Realms
and dispatches authentication requests to one or the other based on some
criteria... don't know if Realms get enough information to make this
decision though.

3. you might check out the securityfilter project:

http://securityfilter.sourceforge.net/

they're trying to mitigate some of the portability problems associated with
CMS by bundling the security into the webapps themselves. interesting
approach, might work for you.

- donald


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



RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

What are the contents of mod_jk.conf?

Did you restart Apache so that it could pick up the changes?

Is there a VirtualHost container in mod_jk.conf for www.host2.com?

In your Host container in server.xml, you list the name as host2.com, not
www.host2.com.   Is this a typo?  The two are different.  Either change it
to www.host2.com or use Alias within the Host container to alias
www.host2.com to host2.com.

John

 -Original Message-
 From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:36 AM
 To: [EMAIL PROTECTED]
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 John,
 
 where is your reply ?
 
 how to get apache-tomcat virtual host work? is an easy
 question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
 
 Although I'm working very successfully with virtual hosts 
 and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
 hosts running with Tomcat 4.
 
 Only the default virtual host is running. It doesn't matter
 which virtual host I'm using.
 
 I'm not alone and still working on it.
 
 --Dave
 
  
 
 Is this a glitch?  Did my first reply to this post get lost?
 
 John
 
 
  I have redhat linux 7.3 
   
   i have two virtual host in my machine www.host1.com and
 www.host2.com
   www.host1.com is the default one.
   I have installed apache-tomcat on my machine
   apache-tomcat runs fine with the www.host1.com  one.
   i mean both http://www.host1.com:8080/examples and 
  http://www.host1.com/examples  come to same 
  result which is
   good.
   i want www.host2.com work same way as www.host1.com in term 
  of running
   apache-tomcat i did following to server.xml

   
   I add host dirctive like this
   
  **
  *
Host name=host2.com debug=0 appBase=/home/www/zhujp98
 unpackWARs=true
  
 Listener
className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true  /
  
  !-- Normally, users must authenticate themselves to 
  each web app
   individually.  Uncomment the following entry if you
 would
like
   a user to be authenticated the first time they 
  encounter a
   resource protected by a security constraint, and 
  then have
 that
   user identity maintained across *all* web applications
   contained
   in this virtual host. --
  !--
  Valve 
  className=org.apache.catalina.authenticator.SingleSignOn
 debug=0/
  --
  
  !-- Access log processes all requests for this 
  virtual host.  By
   default, log files are created in the logs directory
   relative to
   $CATALINA_HOME.  If you wish, you can specify a
 different
   directory with the directory attribute.  
  Specify either a
   relative
   (to $CATALINA_HOME) or absolute path to the desired
directory.
  --
  Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=localhost_access_log.
   suffix=.txt
   pattern=common/
  
  !-- Logger shared by all Contexts related to this 
  virtual host.
  By
   default (when using FileLogger), log files are 
  created in the
logs
   directory relative to $CATALINA_HOME.  If you 
  wish, you can
specify
   a different directory with the directory attribute.
   Specify either a
   relative (to $CATALINA_HOME) or absolute path to 
  the desired
   directory.--
  Logger className=org.apache.catalina.logger.FileLogger
   directory=logs  prefix=localhost_log. 
  suffix=.txt
  timestamp=true/
  
  !-- Define properties for each web application.  This is
 only
 needed
   if you want to set non-default properties, or have web
   application
   document roots in places other than the virtual host's
   appBase
   directory.  --
  
  !-- Tomcat Root Context --
  !--
Context path= docBase=ROOT debug=0/
  --
  
   Context path=/servlets 
  docBase=/home/www/zhujp98/servlets
   debug=0
  reloadable=true/
   /Host
  
  **
  
  
  after that I can access servlets using 
 http://www.host2.com:8080/servlets
 
 but fails when i use http://www.host2.com/servlets
 
 it seems that apache did not connect to tomcat in terms of
 www.host2.com
 
 how can i fix this problem?
 Thanks
 
 j.p 
 
 
 -
 To unsubscribe, e-mail: [EMAIL 

Running outside of localhost

2003-02-28 Thread Chris Fowler
Hi all,

I am a complete newbie to tomcat and apache. I have followed John's
excellent Windows 2000/XP - Apache + JK + Tomcat HOWTO and all works
well. AS sugested I have used localhost throughout the installation.
What do I need to do so I can serve .jsp's to clients outside my
machine. For example if I use:

http://localhost/examples/jsp/index.html

All works well. But if I replace local host with machine_name.domain I
get a 404 error. This is probably a really dumb question to ask, but can
somebody point me in the right direction.

Thanks,



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



Re: help with SSI directives on tomcat 4.1.12

2003-02-28 Thread Becky Phaneuf

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html

-B



 [EMAIL PROTECTED] 02/27/03 06:55PM 
Hello all
I am using the following SSI directive in a .shtml file in the
ROOT directory:
!--#include virtual=/OutputServlet1.class --

OutputServlet1 is a servlet class that just prints helllo.
(some plain text). I have a println in doGet which wud not print.

It shows in the browser as [an error occurred while processing
this directive].

Even if I use any other directive I have the same problem.

Please advise
thanks
Mahesh



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



conflict with tomcat's commons-logging and webapp's commons-logging

2003-02-28 Thread Kirby Vandivort
Hello,

I am running Tomcat 4.1.18, and after a while (a few hours) of accessing 
a webapp that is using struts 1.1 rc 1 everything hangs and I have to 
restart tomcat.  I'm accessing the webapp via https.

catalina.out has an exception that looks like the following:




org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: 
org.apache.commons.logging.LogConfigurationException: Class 
org.apache.commons.logging.impl.SimpleLog does not implement Log
 at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)
 at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
 at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
 at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
 at org.apache.tomcat.util.log.Log.log(Log.java:198)
 at org.apache.tomcat.util.log.Log.log(Log.java:192)
 at org.apache.tomcat.util.log.Log.log(Log.java:174)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:484)



I surmise that there is a conflict between the commons-logging that
tomcat has in server/lib and the commons-logging that struts comes
with.  How can I resolve this?  I would like to leave commons-logging
in the webapp so that it is complete if possible, although I suspect
that it might not be, and I'll be forced to package different versions
of my webapp depending on whether the end-installer is using tomcat or
not.

I've searched the groups and can't seem to find anything that really
addresses this issue, though I've probably just missed it.

Thanks!


-- 

Kirby Vandivort  Theoretical and Computational Biophysics 
Email: [EMAIL PROTECTED]  3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/University of Illinois
Phone: (217) 244-5711405 N. Mathews Ave
Fax  : (217) 244-6078Urbana, IL  61801, USA

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



RE: Running outside of localhost

2003-02-28 Thread Turner, John

Basically, everywhere you see localhost, change it to my.domain.com. ;)
The alternative, or if you have more than one virtual host, is to copy the
entire localhost Host container in server.xml, and change localhost to
my.domain.com.  This will preserve the localhost configuration.  

John

 -Original Message-
 From: Chris Fowler [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: Running outside of localhost
 
 
 Hi all,
 
 I am a complete newbie to tomcat and apache. I have followed John's
 excellent Windows 2000/XP - Apache + JK + Tomcat HOWTO and all works
 well. AS sugested I have used localhost throughout the installation.
 What do I need to do so I can serve .jsp's to clients outside my
 machine. For example if I use:
 
 http://localhost/examples/jsp/index.html
 
 All works well. But if I replace local host with machine_name.domain I
 get a 404 error. This is probably a really dumb question to 
 ask, but can
 somebody point me in the right direction.
 
 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]



Tomcat/RMI and Spaces in Filenames

2003-02-28 Thread Bodycombe, Andrew
I am having a problem with Tomcat 4.1.18 running on Windows NT 4, and JDK
1.4

I have a servlet accessing a remote server via RMI, and the RMI calls fail
with an UnmarshallException, 
but only when the tomcat install directory contains spaces. e.g. C:\Program
Files\Apache Group\Tomcat 4.1\,
the default install directory.

I enclose the stack trace:

java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.net.MalformedURLException: no protocol: Files/Apache
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
java.net.MalformedURLException: no protocol: Files/Apache
java.net.MalformedURLException: no protocol: Files/Apache
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:240)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx
y.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73
)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.create(Unknown Source)
at
uk.co.siemenscomms.eng.j2ee.model.GazetteerManager.getStreet(GazetteerManage
r.java:103)
at
uk.co.siemenscomms.eng.j2ee.action.MoreDetailsAction.perform(MoreDetailsActi
on.java:90)
at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1786)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:479)


In this case, the servlet is accessing an EJB on a remote machine when the
exception occurs,
but the same happens when accessing an RMI server on the same machine, in a
different VM.

Note the 

Jakarta Tomcat on Solaris

2003-02-28 Thread Oleksiy Podopryhora
Hi there,
I am configuring a Jakarta Tomcat on Solaris for our students. Since I 
have no experience with subject I decided to ask for your help and 
advice in order to avoid unnecessary mistakes. I have installed Tomcat 
on the port 8080. On our system everybody has an account so I added 
listener:

!--
Web server can automatically map a request URI starting
with a tilde character (~) and a username to a directory
(commonly named public_html) in that user's home directory
on the server. we accomplish the same thing in Catalina by
using a special Listener element like this (on a Unix system
that uses the /etc/passwd file to identify valid users):
--
Listener className=org.apache.catalina.startup.UserConfig
directoryName=public_html
userClass=org.apache.catalina.startup.PasswdUserDatabase/
our users can put their JSP stuff into their public_html directory. Also 
I added

DefaultContext reloadable=true/

because I would like Catalina automatically reload the web application 
if a change is detected.

but it does not work ;-( and it's not convinient to restart a whole 
server after making simple change to the script.

How can I put log files in the user's public_html directories, so users 
can see errors that belong to their scripts only? What shell I configure 
as well? What can be useful?

Please advice.

Thanks to all





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


Where to put a custom Realm?

2003-02-28 Thread Yajun Liu
Hi,

I'm implementing a custom Realm which shares an UserManager with the rest of 
application. I put the customer Realm in the WAR file and tomcat could not find it at 
startup time. What is the best practice to solve this problem?

Thanks.

--Yajun

Parasite string length added in the message body

2003-02-28 Thread Raphael Bousquet
Does someone know why Tomcat (version 4.1.18 Linux and Windows) adds the
string length in the message body?

Here is what I receive from Tomcat:
--
HTTP/1.1 200 OK
Content-Type: text/xml
Transfer-Encoding: chunked
Date: Fri, 28 Feb 2003 16:59:22 GMT
Server: Apache Coyote/1.0
Connection: close

56
?xml version=1.0?
book
authorMike/author
/book

0

--
as you can see the message body contains a '56' and a '0', and I don't know
where they come from? 56 is the size of the string ?xml ... /book in
hex.

Here is the code of my servlet:
--
package testservlet;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class Reply
extends HttpServlet
implements SingleThreadModel
{
private static final String CONTENT_TYPE = text/xml;

//Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
//partner identifier
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println(?xml version=\1.0\?);
out.println(book);
out.println(authorMike/author);
out.println(/book);
out.flush();
out.close();
}
}
--

It is very simple and there is no sign of any string length being written in
the output stream.

Is this normal? If I am missing something I would really appreciate your
input. Thanks


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



RE: Parasite string length added in the message body

2003-02-28 Thread Mike Jackson
I've noticed that also, but I don't have clue why.  I had only noticed the
trailing zero, not the leading.  But this is with Oracle's XSQL servlet, so
it's not even my code

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Raphael Bousquet [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 9:30 AM
 To: [EMAIL PROTECTED]
 Subject: Parasite string length added in the message body


 Does someone know why Tomcat (version 4.1.18 Linux and Windows) adds the
 string length in the message body?

 Here is what I receive from Tomcat:
 --
 HTTP/1.1 200 OK
 Content-Type: text/xml
 Transfer-Encoding: chunked
 Date: Fri, 28 Feb 2003 16:59:22 GMT
 Server: Apache Coyote/1.0
 Connection: close

 56
 ?xml version=1.0?
 book
 authorMike/author
 /book

 0

 --
 as you can see the message body contains a '56' and a '0', and I
 don't know
 where they come from? 56 is the size of the string ?xml ... /book in
 hex.

 Here is the code of my servlet:
 --
 package testservlet;

 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;

 public class Reply
   extends HttpServlet
   implements SingleThreadModel
 {
   private static final String CONTENT_TYPE = text/xml;

   //Process the HTTP Get request
   public void doGet(HttpServletRequest request,
 HttpServletResponse response)
   throws ServletException, IOException
   {
   //partner identifier
   response.setContentType(CONTENT_TYPE);
   PrintWriter out = response.getWriter();
   out.println(?xml version=\1.0\?);
   out.println(book);
   out.println(authorMike/author);
   out.println(/book);
   out.flush();
   out.close();
   }
 }
 --

 It is very simple and there is no sign of any string length being
 written in
 the output stream.

 Is this normal? If I am missing something I would really appreciate your
 input. 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]



setting up Tomcat 4.1

2003-02-28 Thread Curtis Seyfried
I have been trying to setup Tomcat 4.1 I have entered all class and other
paths. When I run Startup it goes through a whole set of operations then
finishes with can not find -Djava.endorsed.dirs=
I someone can help I'd appreciate it. If you need a log of the startup
operations I would create one if I knew how, so if someone can tell me I'd
appreciates that also.
I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
sp3 with all security and other patches.
I have Sun's Java j2sdk1.4.1
--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried mailto:[EMAIL PROTECTED]



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


RE: Tomcat WAR expansion

2003-02-28 Thread Phillip Qin
I gave up. Instead, I use ant to create a webapps/myapp dir and copy all
stuff to that directory. Craig should be the right person to answer this
question.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Prathap [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:29 AM
To: Tomcat Users List
Subject: Re: Tomcat WAR expansion

Hi
I am getting this trace.. Can you figure it out??

2003-02-28 21:55:02 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\test\Tomcat41\work\Standalone\localhost\webdav
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2003-02-28 21:55:02 StandardManager[/webdav]: Seeding of random number
generator has been completed
2003-02-28 21:55:02 StandardWrapper[/webdav:default]: Loading container
servlet default
2003-02-28 21:55:02 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2003-02-28 21:55:02 StandardContext[/test]: Resources start failed:
2003-02-28 21:55:02 StandardContext[/test]: Context startup failed due to
previous errors
2003-02-28 21:55:02 StandardContext[/test]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/test] has not been started
 at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Regards,
Pratt
- Original Message -
From: Phillip Qin [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:55 PM
Subject: RE: Tomcat WAR expansion


 I saw some error messages and my app war is not expanded. Did you see them
 in your log?

 2003-02-28 11:22:04 StandardContext[/lciponline]: Starting
 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing start(),
 current available=false
 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
 Resources
 2003-02-28 11:22:04 StandardContext[/lciponline]: Resources start failed:
 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring
non-privileged
 default Loader
 2003-02-28 11:22:04 StandardContext[/lciponline]: Configuring default
 Manager
 2003-02-28 11:22:04 StandardContext[/lciponline]: Processing standard
 container startup
 2003-02-28 11:22:04 StandardContext[/lciponline]: Context startup failed
due
 to previous errors
 2003-02-28 11:22:04 StandardContext[/lciponline]: Exception during cleanup
 after start failed
 LifecycleException:  Container StandardContext[/lciponline] has not been
 started
 at
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
 at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
 21)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
 java:529)
 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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
 at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
 at
 org.apache.commons.digester.Digester.endElement(Digester.java:1036)
 at

org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
 a:585)
 at

org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
 :647)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
 mentFragmentScannerImpl.java:1008)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
 ntFragmentScannerImpl.java:329)
 at


Streaming files from Tomcat thru JK and IIS: No Headers (?)

2003-02-28 Thread Jeff Corliss
I'm having a problem with my IIS/Tomcat integration
using the JK connector.  Regular pages and servlet
mapped extensions work fine, but when I try to send
files using the ServletOutputStream, it does not work
properly when going thru IIS-JK-Tomcat.  I wind up
getting the content returned to the browser with
absolutely no headers (at least from the perspective
of doing a View Source on the returned page).  I
am setting headers including content type, length, and
disposition.  Also, if I go directly to Tomcat using
its port #, the files come down the wire with the
headers and all and the appropriate plug-ins get
called by the browser, etc.  

Anyone know a solution for this?

Thanks,
JC


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: reference material

2003-02-28 Thread Will Hartung
Look through the archives. On Dec 18, John Turner wrote a pretty good post
on the various connectors.

Regards,

Will Hartung
([EMAIL PROTECTED])

- Original Message -
From: Deepa Raja [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:33 AM
Subject: reference material


Could someone mail me a link about where I could find information that
compares different type of connectors.
i could not trace the archives of this group.

Thanks in advance
Deepa





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

2003-02-28 Thread Phillip Qin
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html


Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 12:56 PM
To: Tomcat Users List
Subject: Re: reference material

Look through the archives. On Dec 18, John Turner wrote a pretty good post
on the various connectors.

Regards,

Will Hartung
([EMAIL PROTECTED])

- Original Message -
From: Deepa Raja [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:33 AM
Subject: reference material


Could someone mail me a link about where I could find information that
compares different type of connectors.
i could not trace the archives of this group.

Thanks in advance
Deepa





-
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: how to get apache-tomcat virtual host work?

2003-02-28 Thread Xiongfei Wang
John,
Thank you very much for your response.

after i chang host2.com to www.host2.com and restart tomacat apache

My mod_jk.conf is like:
***
VirtualHost www.host2.com
ServerName www.host2.com

JkMount /servlets ajp13
JkMount /servlets/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost

VirtualHost www.host1.com
ServerName www.host1.com

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /mlogin ajp13
JkMount /mlogin/* ajp13

JkMount /login ajp13
JkMount /login/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13
/VirtualHost


 But it still not working.

Thanks for any futher suggestion.









On Fri, 28 Feb 2003, Turner, John wrote:

 
 What are the contents of mod_jk.conf?
 
 Did you restart Apache so that it could pick up the changes?
 
 Is there a VirtualHost container in mod_jk.conf for www.host2.com?
 
 In your Host container in server.xml, you list the name as host2.com, not
 www.host2.com.   Is this a typo?  The two are different.  Either change it
 to www.host2.com or use Alias within the Host container to alias
 www.host2.com to host2.com.
 
 John
 
  -Original Message-
  From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 11:36 AM
  To: [EMAIL PROTECTED]
  Subject: RE: how to get apache-tomcat virtual host work?
  
  
  John,
  
  where is your reply ?
  
  how to get apache-tomcat virtual host work? is an easy
  question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
  
  Although I'm working very successfully with virtual hosts 
  and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
  hosts running with Tomcat 4.
  
  Only the default virtual host is running. It doesn't matter
  which virtual host I'm using.
  
  I'm not alone and still working on it.
  
  --Dave
  
   
  
  Is this a glitch?  Did my first reply to this post get lost?
  
  John
  
  
   I have redhat linux 7.3 

i have two virtual host in my machine www.host1.com and
  www.host2.com
www.host1.com is the default one.
I have installed apache-tomcat on my machine
apache-tomcat runs fine with the www.host1.com  one.
i mean both http://www.host1.com:8080/examples and 
   http://www.host1.com/examples  come to same 
   result which is
good.
i want www.host2.com work same way as www.host1.com in term 
   of running
apache-tomcat i did following to server.xml
 

I add host dirctive like this

   **
   *
 Host name=host2.com debug=0 appBase=/home/www/zhujp98
  unpackWARs=true
   
  Listener
 className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true  /
   
   !-- Normally, users must authenticate themselves to 
   each web app
individually.  Uncomment the following entry if you
  would
 like
a user to be authenticated the first time they 
   encounter a
resource protected by a security constraint, and 
   then have
  that
user identity maintained across *all* web applications
contained
in this virtual host. --
   !--
   Valve 
   className=org.apache.catalina.authenticator.SingleSignOn
  debug=0/
   --
   
   !-- Access log processes all requests for this 
   virtual host.  By
default, log files are created in the logs directory
relative to
$CATALINA_HOME.  If you wish, you can specify a
  different
directory with the directory attribute.  
   Specify either a
relative
(to $CATALINA_HOME) or absolute path to the desired
 directory.
   --
   Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=localhost_access_log.
suffix=.txt
pattern=common/
   
   !-- Logger shared by all Contexts related to this 
   virtual host.
   By
default (when using FileLogger), log files are 
   created in the
 logs
directory relative to $CATALINA_HOME.  If you 
   wish, you can
 specify
a different directory with the directory attribute.
Specify either a
relative (to $CATALINA_HOME) or absolute path to 
   the desired
directory.--
   Logger className=org.apache.catalina.logger.FileLogger
  

RE: how to get apache-tomcat virtual host work?

2003-02-28 Thread Turner, John

Is that something you created by hand?  That's not output from ApacheConfig.
Are there entries in httpd.conf for things like JkWorkersFile, etc.?

John

 -Original Message-
 From: Xiongfei Wang [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 12:58 PM
 To: Tomcat Users List
 Subject: RE: how to get apache-tomcat virtual host work?
 
 
 John,
 Thank you very much for your response.
 
 after i chang host2.com to www.host2.com and restart tomacat apache
 
 My mod_jk.conf is like:
 ***
 VirtualHost www.host2.com
 ServerName www.host2.com
 
 JkMount /servlets ajp13
 JkMount /servlets/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 VirtualHost www.host1.com
 ServerName www.host1.com
 
 JkMount /webdav ajp13
 JkMount /webdav/* ajp13
 
 JkMount /mlogin ajp13
 JkMount /mlogin/* ajp13
 
 JkMount /login ajp13
 JkMount /login/* ajp13
 
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 
 JkMount /tomcat-docs ajp13
 JkMount /tomcat-docs/* ajp13
 
 JkMount /manager ajp13
 JkMount /manager/* ajp13
 /VirtualHost
 
 
  But it still not working.
 
 Thanks for any futher suggestion.
 
 
 
 
 
 
 
 
 
 On Fri, 28 Feb 2003, Turner, John wrote:
 
  
  What are the contents of mod_jk.conf?
  
  Did you restart Apache so that it could pick up the changes?
  
  Is there a VirtualHost container in mod_jk.conf for www.host2.com?
  
  In your Host container in server.xml, you list the name as 
 host2.com, not
  www.host2.com.   Is this a typo?  The two are different.  
 Either change it
  to www.host2.com or use Alias within the Host container to alias
  www.host2.com to host2.com.
  
  John
  
   -Original Message-
   From: Hostmaster of the day [mailto:[EMAIL PROTECTED]
   Sent: Friday, February 28, 2003 11:36 AM
   To: [EMAIL PROTECTED]
   Subject: RE: how to get apache-tomcat virtual host work?
   
   
   John,
   
   where is your reply ?
   
   how to get apache-tomcat virtual host work? is an easy
   question as long as you are using Tomcat 3.2.3 or Tomcat 3.3.1.
   
   Although I'm working very successfully with virtual hosts 
   and Tomcat 3.2.3 + 3.3.1 I was up to now unable to get virtual 
   hosts running with Tomcat 4.
   
   Only the default virtual host is running. It doesn't matter
   which virtual host I'm using.
   
   I'm not alone and still working on it.
   
   --Dave
   

   
   Is this a glitch?  Did my first reply to this post get lost?
   
   John
   
   
I have redhat linux 7.3 
 
 i have two virtual host in my machine www.host1.com and
   www.host2.com
 www.host1.com is the default one.
 I have installed apache-tomcat on my machine
 apache-tomcat runs fine with the www.host1.com  one.
 i mean both http://www.host1.com:8080/examples and 
http://www.host1.com/examples  come to same 
result which is
 good.
 i want www.host2.com work same way as www.host1.com in term 
of running
 apache-tomcat i did following to server.xml
  
 
 I add host dirctive like this
 
**
*
  Host name=host2.com debug=0 appBase=/home/www/zhujp98
   unpackWARs=true

   Listener
  
 className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true  /

!-- Normally, users must authenticate themselves to 
each web app
 individually.  Uncomment the following entry if you
   would
  like
 a user to be authenticated the first time they 
encounter a
 resource protected by a security constraint, and 
then have
   that
 user identity maintained across *all* web 
 applications
 contained
 in this virtual host. --
!--
Valve 
className=org.apache.catalina.authenticator.SingleSignOn
   debug=0/
--

!-- Access log processes all requests for this 
virtual host.  By
 default, log files are created in the 
 logs directory
 relative to
 $CATALINA_HOME.  If you wish, you can specify a
   different
 directory with the directory attribute.  
Specify either a
 relative
 (to $CATALINA_HOME) or absolute path to the desired
  directory.
--
Valve 
 className=org.apache.catalina.valves.AccessLogValve
 directory=logs  
 prefix=localhost_access_log.
 suffix=.txt
 pattern=common/

!-- Logger shared by all Contexts related to this 

RE: Compile JSP on Tomcat Startup

2003-02-28 Thread Molof, Barry
Can someone PLEASE help me?  This is an urgent issue.

Thanks

-Original Message-
From: Molof, Barry 
Sent: Friday, February 28, 2003 10:02 AM
To: Tomcat Users List
Subject: RE: Compile JSP on Tomcat Startup

I tried jspc and all it did was convert .jsp to .java, instead of
.class.  I'm looking for a solution that handles the conversion of .jsp
to .java to .class files during Tomcat 3.3.1a startup.  

Can anyone else help?

Thanks

-Original Message-
From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 3:07 AM
To: Tomcat Users List
Subject: Re: Compile JSP on Tomcat Startup

I think that you would use jspc (JSP compiler) that comes with Tomcat 
distribution. It's materialized in jsp.bat[sh] in
$TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
more 
info

regards,
c.

At 04:07 PM 2/25/2003 -0500, you wrote:
How can I compile all of my JSPs when I start Tomcat?  The version I am
using is 3.3.1a.  Any help would be great.

Thanks.
Barry


-
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: Compile JSP on Tomcat Startup

2003-02-28 Thread Edson Alves Pereira
Have you ever tried Ant and Jasper, they are the tools that Tomcat
use to create JSP files and compile then.

 --
 De:   Molof, Barry[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  sexta-feira, 28 de fevereiro de 2003 15:07
 Para: Tomcat Users List
 Assunto:  RE: Compile JSP on Tomcat Startup
 Prioridade:   Alta
 
 Can someone PLEASE help me?  This is an urgent issue.
 
 Thanks
 
 -Original Message-
 From: Molof, Barry 
 Sent: Friday, February 28, 2003 10:02 AM
 To: Tomcat Users List
 Subject: RE: Compile JSP on Tomcat Startup
 
 I tried jspc and all it did was convert .jsp to .java, instead of
 .class.  I'm looking for a solution that handles the conversion of .jsp
 to .java to .class files during Tomcat 3.3.1a startup.  
 
 Can anyone else help?
 
 Thanks
 
 -Original Message-
 From: Mr. Cristian Romanescu [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 26, 2003 3:07 AM
 To: Tomcat Users List
 Subject: Re: Compile JSP on Tomcat Startup
 
 I think that you would use jspc (JSP compiler) that comes with Tomcat 
 distribution. It's materialized in jsp.bat[sh] in
 $TOMCAT_HOME/bin directory. I hope I'm correct, but I cannot give you
 more 
 info
 
 regards,
 c.
 
 At 04:07 PM 2/25/2003 -0500, you wrote:
 How can I compile all of my JSPs when I start Tomcat?  The version I am
 using is 3.3.1a.  Any help would be great.
 
 Thanks.
 Barry
 
 
 -
 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]
 


About Direct SSL with Tomcat as Stand Alone web Server for tomcat SSL experts

2003-02-28 Thread stev sutherland
Hello Tomcat SSL Experts


I read the official documentation on using Tomcat with
SSL Support 

I decided to use your Direct SSL solution since we
are running Tomcat 3.2.3 as a stand alone product.
I was wondering if you know about a related bug in
which sometimes (a 1:15 ratio) the page comes up not
found. 

I noticed this problem happens only after I implement
the Direct SSL solution (which involves recompiling
webserver.jar with ANT for SSL support ).

Do know what this problem might be related to?

This problem occurs at a 1:15 ratio when we access the
server via both https and http

(My guess is  a - webserver.jar bug resulting from my
recompilation of webserver.jar with ANT for security
support.  But I could be wrong  )

 ---
By the way here are the full set of instructions that
we used to implement the SSL solution with Tomcat
after recompiling the webserver.jar file with ANT .
---
DIRECTIONS FOR SETTING UP SSL WITH TOMCAT/PORTAL
===

PREPARE THE PORTAL SERVER
---

1. ADD SECURITY JAR FILES TO TOMCAT LIB DIRECTORY
---
first put the following jar files in C:\Program
Files\folder1\folder2\tomcat\lib
-- jcert.jar 
-- jnet.jar
-- jsse.jar 
-- webserver.jar 

also place these files in %JAVA_HOME%\jre\lib\ext

Add %JAVA_HOME%\jre\lib\ext\jsse.jar to the CLASSPATH
env variable

You can download the first three security jar files
from the java web site. 
webserver.jar is special because we had to re-compile
this jar file using ANT and the 3 jar files. 
As a result of using ANT, webserver.jar now has
special security options that makes SSL possible. 
We can simply send you our webserver.jar file so that
you will not have to rebuild it with ANT. 


2. PREPARE SERVER.XML 
---
Go to C:\Program
Files\folder1\folder2\tomcat\conf\server.xml and
uncomment the server.xml options as seen below.

Connector
className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port value=8443/
Parameter name=socketFactory
value=org.apache.tomcat.net.SSLSocketFactory /
Parameter name=keystore value=THE FILE
CREATED FOR YOUR KEYSTORE /
Parameter name=keypass value=changeit/
Parameter name=clientAuth value=false/

/Connector

3. ADD JSSE, JNET, JCERT.JAR FILE TO TOMCAT CLASSPATH
--
SET
TOMCAT_JAR=%TOMCAT_LIB%\jasper.jar;%TOMCAT_LIB%\servlet.jar;%TOMCAT_LIB%\webserver.jar;%TOMCAT_LIB%\jsse.jar;%TOMCAT_LIB%\jnet.jar;%TOMCAT_LIB%\jcert.jar


4. ADD THE SECURITY PROVIDER TO THE JAVA.SECURITY
PROPERTIES FILE


 Edit %JAVA_HOME%/jre/lib/security/java.security
 Add:

security.provider.2=com.sun.net.ssl.internal.ssl.Provider


5. PREPARE YOUR CSR WHICH YOU WILL SEND 

* Generate key: 
* Use the attached cmd file genkey
genkey keystore Name

* Generate CSR: 
certgen keystore Name

THIS IS WHAT THE DOS OUTPUT SHOULD LOOK LIKE  

C:\keytool -genkey -alias aliaskeystore Name
-keysize 1024 -validity 365 -keyalg RSA -keystore
c:\keystore Name
Enter keystore password:  changeit
What is your first and last name?
  [Unknown]:  Fully qualified name of your server
What is the name of your organizational unit?
  [Unknown]:  Use your keystore name
What is the name of your organization?
  [Unknown]:  XXX
What is the name of your City or Locality?
  [Unknown]:  
What is the name of your State or Province?
  [Unknown]:  DO NOT ABBREIVIATE YOUR STATE OR
PROVINCE OR VERISIGN WILL REJECT IT
What is the two-letter country code for this unit?
  [Unknown]:  XX
Is CN=portalssl.learningideas.com, OU=learningideas,
O=learningideas, L=new york, ST=new
york, C=US correct?
  [no]:  y

Enter key password for keystore Name
(RETURN if same as keystore password): 
changeit

C:\keytool -certreq -alias aliaskeystore Name -file
c:\keystore Name.csr -keystore keystore Name
Enter keystore password:  changeit



6. GET THE SECURE SERVER ID FROM VERISIGN
--
You will need to get a Secure Server ID from Verisign
which you can get free for 14 days.
STEP #1: Go to https://www.verisign.com/
STEP #2: Click on Get SSL Site Security 
STEP #3: You will see a box entitled Enable
e-commerce with Commerce Site Services
STEP #4: Click Try 

STEP #5: Fill out the form with your name, company
name etc.  

STEP #6: Click Continue

STEP #7: Following the Instructions. 
 STEP 1 of 5 ask you to Generate a CSR for
that machine.
You may have generated the CSR in the previous step.
  

STEP#8: Copy and paste your 

RE: setting up Tomcat 4.1

2003-02-28 Thread Tam, Michael
Did you set JAVA_HOME in your environment variable?
i.e.  JAVA_HOME=C:\j2sdk1.4.1

-Original Message-
From: Curtis Seyfried [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:41 AM
To: [EMAIL PROTECTED]
Subject: setting up Tomcat 4.1


I have been trying to setup Tomcat 4.1 I have entered all class and other
paths. When I run Startup it goes through a whole set of operations then
finishes with can not find -Djava.endorsed.dirs=
I someone can help I'd appreciate it. If you need a log of the startup
operations I would create one if I knew how, so if someone can tell me I'd
appreciates that also.
I am running Dell Dimension XPS t700r  PIII-700mHz.  256meg RAM  Win2K pro
sp3 with all security and other patches.
I have Sun's Java j2sdk1.4.1

--
All Outgoing mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.

All Incoming mail, downloaded files and e-mail attachments are certified
Virus Free.  Checked by Symantec Norton Anti-virus 2003 using the latest 
virus definition
list.
Curtis Seyfried mailto:[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]



Error while shutdown

2003-02-28 Thread Edson Alves Pereira
Does anyone known how to solve this error?

Catalina.stop: org.xml.sax.SAXParseException: Content is not allowed in
prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1189

With best wishes
Edson Alves Pereira


  1   2   >