Re: Mozilla, SSL certificates, and Tomcat 5

2003-10-22 Thread Bill Barker
Are you using IBM's JVM?  If so, please see the latest SSL-howto
documentation for how to get SSL working.

Jeff Jackson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 Short version: I can access Tomcat via SSL from IE6, but not from Mozilla
 1.4/Netscape 7.1.  Is this a known problem, and if so, what's the
 work-around?

 Long version:

 I've installed Sun's Java Web Services Developer Pack 1.3 version of
 Tomcat 5 under Linux.  I also created a self-signed certificate using the
 Java keytool, accepting the default keystore location and using the
 default changeit password.  When I enable SSL (either by removing
 comment delimiters from the SSL Connector in the out-of-the-box
 server.xml, or by running the web-based admin tool) and restart Tomcat,
 there are no error messages in any log files.  And I can access the SSL
 port with an https URL using IE6 from a Windows client.

 But Mozilla 1.4 and Netscape 7.1 (on the same Windows client I used for
 IE) both give a The document contains no data. alert when I try to
 access the same URL, after a several second delay and a number of
 Connecting/Connected status messages.  These browsers have had no
 trouble accessing other https URL's, so I'm assuming that it's a Tomcat
 issue.

 I have tried changing the server.xml Host name from localhost to my actual
 host name and changing the Factory protocol from TLS to SSL (based on
 something I saw in another SSL question).  This had no apparent effect.

 I also tried using a trial Verisign-signed certificate, with the same
 results: IE6 can access the site, Mozilla cannot.

 What am I missing?




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



shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-22 Thread Mario Juric
I need some help in solving the following problem.

 

I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection using the standard Tomcat examples webapp. The browser waits
forever when I try to access http://localhost/examples/. I also get the the
following errors two times in my /var/lo/httpd/error_log:

 

[error] jk2_init() Can't find child XXX in scoreboard

[error] mod_jk child init 1 -2

 

Similar problem descriptions I found in the Tomcat User mailing archive
indicate that this may have something to do with the shared memory file
(shm). I have setup up read/write permission for this file.

 

Note that http://localhost/ (Apache default page) and
http://localhost:8009/examples/ (Tomcat examples) work as expected.

 

My OS is Mandrake Linux 9.1 and I use the following setup files:

 

# workers2.properties

 

[shm]

file=/var/log/httpd/jk2.shm

size=1048576

 

[channel.socket:localhost:8009]

tomcatId=localhost:8009

port=8009

host=127.0.0.1

 

[ajp13:localhost:8009]

channel=channel.socket:localhost:8009

 

[uri:/examples/*]

worker=ajp13:localhost:8009

 

# jk2.properties

 

handler.list=request,container,channelSocket

 

channelSocket.port=8009

 

shm.file=/var/log/httpd/jk2.shm



RE: UNIX+Apache+Tomcat Situtation

2003-10-22 Thread Francois JEANMOUGIN


 I would suggest that you always run tomcat as the tomcat user, and
 make
 developer and root start it as the tomcat user.
 That can be easily done with a startup script instead of calling
 $TOMCAT_HOME/bin/startup.sh directly or whatever it is.
 I would make sure that the directories all have the tomcat user as the
 owner and group, and then add root and developer to that group.

To help in this situation, you can also use the group permissions. I set up umask to 
002 and added a sgid bit to all the CATALINA_BASE directories. This way, tomcat user 
can always overwrite files even if they were created by another user.

Regarding modifying startup.sh, I suggest you use a wrapper like I mentioned before, 
that manage all the environment variables and then call the out of the box startup.sh. 
Much more portable when upgrading tomcat.

Hope this helps.

François.


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



Re: encrypting a form's action URL with HTTPS link

2003-10-22 Thread frode
  PS is there a tool like wget or perhaps a way of using wget, where I can
  specify form elements in a request and see the contents  config of the
  server's response?

You might want to look at cURL, http://curl.haxx.se/



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



JNDI configuration in server.xml

2003-10-22 Thread Galbayar
I have component deployed in common/lib/component.jar and configured many
webapplications
each webapplication use global component through JNDI and my configuration
in server.xml is

GlobalNamingResources
Resource name=vasLogger auth=Container type=javax.sql.DataSource/

  ResourceParams name=component
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
  namemaxActive/name
  value100/value
/parameter

parameter
  namemaxIdle/name
  value30/value
/parameter

parameter
  namemaxWait/name
  value1/value
/parameter

  /ResourceParams

/GlobalNamingResources

Servlet calling components method example is but it doesnot work What
happened?

public void CallJNDIContext {
InitialContext iCtx = null;
Context ctx = null;

try {
iCtx = new InitialContext();
ctx = (Context) iCtx.lookup(java:comp/env);

if (ctx != null) {
DataSource ds = (DataSource) ctx.lookup(jdbc/component);

if (ds != null) {
connection = ds.getConnection();
}
}
} catch (NamingException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}







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



Tom cat set up problem

2003-10-22 Thread UR Friend
Hi!

I am trying to set up tomcat...tried to set-up following env var

It is installed in 

C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12



SET JAVA_HOME=C:\jdk1.3.1_01
SET CATALINA_HOME=C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12

When tried to run, I got the following exception. Am I running it in a proper 
manner...??


C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\bincatalina run
Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\temp
Using JAVA_HOME:   C:\jdk1.3.1_01
[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError: jav
ax/xml/transform/Sourcejava.lang.NoClassDefFoundError: javax/xml/transform/Sour
ce
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:595)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:258)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)

java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: jav
ax/xml/transform/Source
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
at org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
at org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
at org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)

at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:595)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen

building mod_jk from source

2003-10-22 Thread Javier Sanchez Monzon


Hi , dear community

i am fixing slowly my bugs with your help!.  This mailing list works fine.

I want to build my own mod_jk from source for solaris.

I have a new problem while trying to run the command make (after I did: 
./configure -with-apxs=APACHE_HOME/bin/apxs). 

I receive this message:
/bin/bash ./config.status --recheck
running /bin/bash ./configure  --with-apxs=/opt/apache-1.3.27-2002-12-
14/bin/apxs  --no-create --no-recursion
./configure: line 1261: syntax error near unexpected token `AM_INIT_AUTOMAKE
(${PACKAGE},'
./configure: line 1261: `AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION})'


After this i cann see only links of mod_jk.so under apache1.3/ 
mod_jk.so - mod_jk.so.0.0.0
mod_jk.so.0 - mod_jk.so.0.0.0


Any idea to fix this? 


best regards, 
tino

-
This mail sent through IMP: http://horde.org/imp/


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



RE: File writing performance

2003-10-22 Thread Ralph Einfeldt
I would guess that it's quite unperfomant the way you do it.

You should at leat read and write bigger chunks (1K to 8k 
are common values.

There is another problem: Are you shure that flash is using 
a simple download and won't use things from http 1.1 like 
byte range requests (and won't do it in the next version).

To implement this, you would have to implement much more code.
(Have a look at the source of the DefaultServlet) 
Or force the server to use HTTP 1.0)

 -Original Message-
 From: Carlos Pereira [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 9:10 PM
 To: Tomcat Users List
 Subject: File writing performance
 
 response.setContentType(application/x-shockwave-flash);
 DataInputStream dis = new DataInputStream(
   getServletContext().getResourceAsStream(filename)
 );
 OutputStream out = response.getOutputStream();
 int b = -1;
 while((b = dis.read()) != -1) {
   out.write(b);
 }
 out.close();
 /code
 
 My question: is this approach more expensive than simply 
 retrieving the file? If so, is it significative?
 

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



RE: File writing performance

2003-10-22 Thread Francois JEANMOUGIN

 
 I would guess that it's quite unperfomant the way you do it.
 
 You should at leat read and write bigger chunks (1K to 8k
 are common values.

Really efficient values are FS blocksize (linux defaults to 4096b).

No?

François.


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



Re: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-10-22 Thread vijaya prasad pala
Hi Jason,

I tried as u said. But same exception is getting.
I am using tomcat4.1.27, sqlserver 2000.
can u send me ur connection pooling code.
Thank you.

vijay
--- El Toro [EMAIL PROTECTED] wrote:
 Where are your jdbc for sql server jars?  Put all
 three under /%TOMCAT_HOME%/common/lib.
 
 Also, your factoryClassName should be:
 

factoryClassName=org.apache.naming.factory.ResourceFactory
 
 I'm currently using connection pooling with sql
 server
 and thats the only things i can see that might cause
 you problems.  Also, make sure you don't have any
 duplicate entries for the jdbc for sql server jars
 in
 your classpath.
 
 Hope That Helps,
 
 Jason
 
 --- vijaya prasad pala [EMAIL PROTECTED]
 wrote:
  Hi,
  
  From one week i am trying to solve this problem.
  Please any one help me.
  if i am connection directly its ok. but if i am
  using
  connection pooling this exception is comming.
  
  my connection pooling syntax in server.xml is
 

--
 Resource name=jdbc/edmsCP auth=Container
  type=javax.sql.DataSource/
 ResourceParams name=jdbc/edmsCP
   parameter
 namefactory/name

 

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namedriverClassName/name

 

valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
   /parameter
   parameter
 nameurl/name

 

valuejdbc:microsoft:sqlserver://vijay2k:1433;databasename=eDMS/value
   /parameter
   parameter
 nameusername/name
 valuesa/value
   /parameter
   parameter
 namepassword/name
 valuesa/value
   /parameter
   parameter
 namemaxActive/name
 value20/value
   /parameter
   parameter
 namemaxIdle/name
 value10/value
   /parameter
   parameter
 namemaxWait/name
 value-1/value
   /parameter
 /ResourceParams
 

-
web.xml
  ---
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
  resource-ref
res-ref-namejdbc/edmsCP/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
  /web-app
 

---
  Here is my code.. 
  ---
   public Connection getConnection()
   {
Connection conn = null;
try
{
 Context initCtx = new InitialContext();
 Context envCtx = (Context)
  initCtx.lookup(java:comp/env);
  
 if(envCtx == null )
   throw new Exception(No Context);
 else
   System.out.println(Context Ok -  +
 envCtx);
  
 DataSource ds = (DataSource)
  envCtx.lookup(jdbc/edmsCP);
  
 System.out.println(DataSource - + ds);
  
 if (ds != null)
  conn = ds.getConnection();
  
}
catch(Exception ex)
{
 System.out.println(ex.getMessage());
 //ex.printStackTrace();
}finally
{
 return conn;
}
   }
  ---
  
  
  
  __
  Do you Yahoo!?
  The New Yahoo! Shopping - with improved product
  search
  http://shopping.yahoo.com
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product
 search
 http://shopping.yahoo.com
 

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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: Tomcat hangs after a few days!

2003-10-22 Thread Volker
Shapira, Yoav schrieb:

 Howdy,

 catalina.out grows up by adding [INFO] ChannelSocket - -server has been
 restarted or reset this connection
 
 Maybe someone at least ;-) can explain under which circumstances such an
 error message is produced?

 Look at the source code to see where the message comes from.  As the
 [INFO] indicates, it's not an error, just an informational message.  You
 can configure commons-logging for tomcat so that these messages do not
 appear in your log.

 Yoav Shapira


Hi Yoav,

thanks for your help!

What I do not understand: - Look at the source code to see where the message comes 
from.

I think the [INFO]-lines are produced by tomcat and not by the application.

Isn´t that correct?

Best regards

Volker


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



Re: Tom cat set up problem

2003-10-22 Thread Lim Huat Heng
I guess the main problem is your jdk is version 1.3.1. If I am not wrong the
javax.xml.* only in jdk1.4 above.Try to get jdk1.4.1 or preferably jdk1.4.2,
then change your JAVA_HOME to point to the new jdk location. hope it helps.

- Original Message -
From: UR Friend [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:40 PM
Subject: Tom cat set up problem


Hi!

I am trying to set up tomcat...tried to set-up following env var

It is installed in

C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12



SET JAVA_HOME=C:\jdk1.3.1_01
SET CATALINA_HOME=C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12

When tried to run, I got the following exception. Am I running it in a
proper manner...??


C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\bincatalina run
Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\temp
Using JAVA_HOME:   C:\jdk1.3.1_01
[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Sourcejava.lang.NoClassDefFoundError:
javax/xml/transform/Sour
ce
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:595)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:258)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)

java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Source
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)

 

RE: building mod_jk from source

2003-10-22 Thread Greg_Cope
Jusy a thought;

What varients of automake/cc/make are you using?  Was apache complied with
sun's cc/make/automake and you are using GNU's?

Greg


 
 Hi , dear community
 
 i am fixing slowly my bugs with your help!.  This mailing 
 list works fine.
 
 I want to build my own mod_jk from source for solaris.
 
 I have a new problem while trying to run the command make 
 (after I did: 
 ./configure -with-apxs=APACHE_HOME/bin/apxs). 
 
 I receive this message:
 /bin/bash ./config.status --recheck
 running /bin/bash ./configure  --with-apxs=/opt/apache-1.3.27-2002-12-
 14/bin/apxs  --no-create --no-recursion
 ./configure: line 1261: syntax error near unexpected token 
 `AM_INIT_AUTOMAKE
 (${PACKAGE},'
 ./configure: line 1261: `AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION})'
 
 
 After this i cann see only links of mod_jk.so under apache1.3/ 
 mod_jk.so - mod_jk.so.0.0.0
 mod_jk.so.0 - mod_jk.so.0.0.0
 
 
 Any idea to fix this? 
 
 
 best regards, 
 tino
 
 -
 This mail sent through IMP: http://horde.org/imp/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Can I configure Tomcat to send HTTP/1.1 200 OK rather than HTT P/1.1 200?

2003-10-22 Thread Jason Viers
 I have a really picky browser that is expecting the OK after 200 when
 receiving HTTP response as:
out of curiosity, which browser is this?  Might save me some 
bug-tracking headaches later.

Jason

Hua Hou wrote:

I have a really picky browser that is expecting the OK after 200 when
receiving HTTP response as:
HTTP/1.1 200 OK



Without the OK, the browser can NOT render the HTTP response correctly.



I have two questions:

(1) Is there a way to configure Tomcat to send OK after the 200 code
when sending response header to browser?
(2) According the HTTP 1.1 spec, is the OK required after the 200 
code?



Thank you very much for your great help!



Hua






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


jk2 error

2003-10-22 Thread Joe Leone
I am running  Apache 2.0.46 , tomcat4-4.1.24-full.2jpp and mod_jk2.so on a Redhat 8 
server. Both apache and jk2 was compiled from source. 
I am getting these error in my apache logs and tomcat stops responding. I have seen 
other request for help but no solutions.
Any comments would be appreciated.


[Mon Oct 20 09:39:59 2003] [error] msgAjp.receive(): Bad signature fff57
[Mon Oct 20 09:39:59 2003] [error] channelSocket.receive(): Bad header
[Mon Oct 20 09:39:59 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Oct 20 09:39:59 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Oct 20 09:43:25 2003] [error] msgAjp.receive(): Bad signature fff57
[Mon Oct 20 09:43:25 2003] [error] channelSocket.receive(): Bad header
[Mon Oct 20 09:43:25 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Oct 20 09:43:25 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Oct 20 09:43:25 2003] [error] ajp13.service() Error  forwarding 
ajp13:127.0.0.1:8019 1 0
[Mon Oct 20 09:43:25 2003] [error] lb.service() worker failed 12 for 
ajp13:127.0.0.1:8019
[Mon Oct 20 09:45:23 2003] [error] msgAjp.receive(): Bad signature f0
[Mon Oct 20 09:45:23 2003] [error] channelSocket.receive(): Bad header
[Mon Oct 20 09:45:23 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Oct 20 09:45:23 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Oct 20 09:45:36 2003] [error] msgAjp.receive(): Bad signature 00
[Mon Oct 20 09:45:36 2003] [error] channelSocket.receive(): Bad header



Thanks Joe

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



Internal Server Error, ErrorDocument does not work using mod_jk2 and servlet engine stopped

2003-10-22 Thread Bernhard Erdmann
Hi,

how can I customize Apache's error page if mod_jk2 does not get a usable
worker (Tomcat is down)?

Using Apache 2.0.47, mod_jk2 2.0.2 and Tomcat 4.1.24 running on Linux I
get an error message when the servlet engine is stopped (Tomcat is
down):


The servlet container is temporary unavailable or being upgraded
Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error
log.

Additionally, a 500 Internal Server Error error was encountered while
trying to use an ErrorDocument to handle the request.


httpd.conf defines:

ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var

This document (HTTP_INTERNAL_SERVER_ERROR.html.var) is shown when I try
to execute a CGI script missing its x-bit in filesystem access rights.


The first sentence (The servlet container is temporary unavailable or
being upgraded) comes from mod_jk2
(jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/common/jk_worker_lb.c):

#define NO_WORKER_MSG The servlet container is temporary unavailable or
being upgraded\n;


The next paragraphs are hardcoded into Apache
(httpd-2.0.47/modules/http/http_protocol.c, get_canned_error_string()):

default:/* HTTP_INTERNAL_SERVER_ERROR */
/*
 * This comparison to expose error-notes could be modified to
 * use a configuration directive and export based on that
 * directive.  For now * is used to designate an error-notes
 * that is totally safe for any user to see (ie lacks paths,
 * database passwords, etc.)
 */
if (((error_notes = apr_table_get(r-notes,
  error-notes)) != NULL)
 (h1 = apr_table_get(r-notes, verbose-error-to)) !=
NULL
 (strcmp(h1, *) == 0)) {
return(apr_pstrcat(p, error_notes, p /\n, NULL));
}
else {
return(apr_pstrcat(p,
   pThe server encountered an internal 
   error or\n
   misconfiguration and was unable to
complete\n
   your request./p\n
   pPlease contact the server 
   administrator,\n ,
   ap_escape_html(r-pool,
  r-server-server_admin),
and inform them of the time the 
   error occurred,\n
   and anything you might have done that 
   may have\n
   caused the error./p\n
   pMore information about this error 
   may be available\n
   in the server error log./p\n,
   NULL));
}


The last sentence comes from ap_send_error_response() in
httpd-2.0.47/modules/http/http_protocol.c:

if (recursive_error) {
ap_rvputs_proto_in_ascii(r, pAdditionally, a ,

status_lines[ap_index_of_response(recursive_error)],
  \nerror was encountered while trying to use an 
  ErrorDocument to handle the request./p\n,
NULL);
}


Regards,
Bernie


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



Re: JDBC Connection question

2003-10-22 Thread Carlos Pereira
 You can only run one transaction per connection.
 Also, your DBMS may support a limited number of threads per connection.
(Wade Chandler)
Ok. So, using one connection for the whole application is out of question. My other 
alternatives are connection pooling and using one connection per user.

The server is supposed to have between 300/1000 people online at a time. I'm sure my 
question is very basic, but i want to know: what does it mean to have 1000 concurrent 
connections to the database (lets forget the dbms connection limit, just performance)?

 Please use a connection pool.  For Instruction:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
 and http://www.mysql.com/articles/connection_pooling_with_connectorj.html
(Caroline Jen)
I read it all. Connection pooling looks like the solution for all my problems. But, i 
had to configure server.xml to put it working. What about when i have to deploy the 
application? And if the server is NOT Tomcat, will it support connection pooling? 

Best regards,
Carlos Pereira

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



Re: Re: Tom cat set up problem

2003-10-22 Thread UR Friend
Thanks for the info...can you tell me which version of Tomcat will work with this 
version. Is it possible to include any jar file and get it working..

Sudhir H

On Wed, 22 Oct 2003 Lim Huat Heng wrote :
I guess the main problem is your jdk is version 1.3.1. If I am not wrong the
javax.xml.* only in jdk1.4 above.Try to get jdk1.4.1 or preferably jdk1.4.2,
then change your JAVA_HOME to point to the new jdk location. hope it helps.

- Original Message -
 From: UR Friend [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:40 PM
Subject: Tom cat set up problem


Hi!

I am trying to set up tomcat...tried to set-up following env var

It is installed in

C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12



SET JAVA_HOME=C:\jdk1.3.1_01
SET CATALINA_HOME=C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12

When tried to run, I got the following exception. Am I running it in a
proper manner...??


C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\bincatalina run
Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\temp
Using JAVA_HOME:   C:\jdk1.3.1_01
[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Sourcejava.lang.NoClassDefFoundError:
javax/xml/transform/Sour
ce
 at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
 at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
 at org.apache.commons.modeler.Registry.load(Registry.java:819)
 at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
 at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
 at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
 at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
 at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:237)
 at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)

 at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
 at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
 at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:595)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:258)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)

java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Source
 at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
 at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
 at org.apache.commons.modeler.Registry.load(Registry.java:819)
 at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
 at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
 at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
 at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
 at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
 at java.lang.Class.newInstance0(Native Method)
 at 

Re: Tom cat set up problem

2003-10-22 Thread Kok Wei, Koh
Hi Sudhir.

You may give 4.1.24 a shot. I used it with jdk1.3.x and it worked fine.

Lim is right, javax.xml.* is specific to jdk1.4 and above.

UR Friend wrote:
Thanks for the info...can you tell me which version of Tomcat will work with this version. Is it possible to include any jar file and get it working..

Sudhir H

On Wed, 22 Oct 2003 Lim Huat Heng wrote :

I guess the main problem is your jdk is version 1.3.1. If I am not wrong the
javax.xml.* only in jdk1.4 above.Try to get jdk1.4.1 or preferably jdk1.4.2,
then change your JAVA_HOME to point to the new jdk location. hope it helps.
- Original Message -
From: UR Friend [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:40 PM
Subject: Tom cat set up problem
Hi!

I am trying to set up tomcat...tried to set-up following env var

It is installed in

C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12



SET JAVA_HOME=C:\jdk1.3.1_01
SET CATALINA_HOME=C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
When tried to run, I got the following exception. Am I running it in a
proper manner...??
C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\bincatalina run
Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\temp
Using JAVA_HOME:   C:\jdk1.3.1_01
[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Sourcejava.lang.NoClassDefFoundError:
javax/xml/transform/Sour
ce
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
   at org.apache.commons.modeler.Registry.load(Registry.java:819)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
   at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
   at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
   at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
   at java.lang.Class.newInstance0(Native Method)
   at java.lang.Class.newInstance(Class.java:237)
   at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
   at org.apache.commons.digester.Rule.begin(Rule.java:200)
   at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
   at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
   at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
   at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:595)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
   at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
   at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
   at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
   at org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:258)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Source
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
   at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
   at org.apache.commons.modeler.Registry.load(Registry.java:819)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
   at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
   at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
   at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
   at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
   at 

IIS/Tomcat tuning

2003-10-22 Thread Jean-René Blaive
Hello,

I would like to know your feeling about the IIS/Tomcat installation.
We know that Apache/Tomcat works well but what can we say about IIS/Tomcat ?
Is it reliable into production systems ?
If you could inform me about this question or send me some links.

Thanks for your job.
Jean-René Blaive.



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



Cannot build Tomcat 4.1.27 from source - org.apache.tomcat is mis sing

2003-10-22 Thread Borrajo Iniesta, Javier
Hi

I want to build Tomcat 4.1.27 from source but it seems some needed
source files are missing from the source distribution. 

I've downloaded

jakarta-tomcat-4.1.27-src.zip

I unzip this file into C:\

I cd into the catalina subfolder

I run 

ant deploy-catalina 

and then I get a lot of javac error messages like

build-catalina:
[javac] Compiling 305 source files to
C:\jakarta-tomcat-4.1.27-src\catalina\build\server\classes
[javac]
C:\jakarta-tomcat-4.1.27-src\catalina\src\share\org\apache\catalina\core\Sta
ndardWrapper.java:99: Class org.apache.tomcat.util.log.SystemLogHandler
not found in import.
[javac] import org.apache.tomcat.util.log.SystemLogHandler;
[javac]

I see that the folder 

C:\jakarta-tomcat-4.1.27-src\catalina\src\share\org\apache\tomcat

is missing

So the question is: how can I get an src zip file with all the source code
necessary to build
Tomcat 4.1.27 ?

Thanks for the help

Javier



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



RE: building mod_jk from source - TO GREG -

2003-10-22 Thread Javier Sanchez Monzon
Hi Greg,

i am using make, version: GNU MAKE 3.80
-?? i don't know, if apache was compiled with sun's cc/make/automake

helps you to make conclusions?

regards, 
tino




Quoting [EMAIL PROTECTED]:

 Jusy a thought;
 
 What varients of automake/cc/make are you using?  Was apache complied with
 sun's cc/make/automake and you are using GNU's?
 
 Greg
 
 
  
  Hi , dear community
  
  i am fixing slowly my bugs with your help!.  This mailing 
  list works fine.
  
  I want to build my own mod_jk from source for solaris.
  
  I have a new problem while trying to run the command make 
  (after I did: 
  ./configure -with-apxs=APACHE_HOME/bin/apxs). 
  
  I receive this message:
  /bin/bash ./config.status --recheck
  running /bin/bash ./configure  --with-apxs=/opt/apache-1.3.27-2002-12-
  14/bin/apxs  --no-create --no-recursion
  ./configure: line 1261: syntax error near unexpected token 
  `AM_INIT_AUTOMAKE
  (${PACKAGE},'
  ./configure: line 1261: `AM_INIT_AUTOMAKE(${PACKAGE}, ${VERSION})'
  
  
  After this i cann see only links of mod_jk.so under apache1.3/ 
  mod_jk.so - mod_jk.so.0.0.0
  mod_jk.so.0 - mod_jk.so.0.0.0
  
  
  Any idea to fix this? 
  
  
  best regards, 
  tino
  
  -
  This mail sent through IMP: http://horde.org/imp/
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




-
This mail sent through IMP: http://horde.org/imp/


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



Re: IIS/Tomcat tuning

2003-10-22 Thread jerome moliere
 Hello,

Hi Jean rene,
 I would like to know your feeling about the IIS/Tomcat installation. We
 know that Apache/Tomcat works well but what can we say about IIS/Tomcat
 ? Is it reliable into production systems ?
good question
TROLL
is IIS production ready
/TROLL
seems to be a troll but this is the main question...
mod_jk is a very reliable connector AJP (3) is a good protocol...
so your debts turn to have an answer for this TROLL:question
don't have much experience with IIS...

Tomcat (3.3 or 4.1.2x) are production ready releases...
tuning can be made by several tricks:
-config of tomcat
- JVM
- connectors

for robustness constraints don't forget to use:
load balancer facilities of the connectors
clustering features of Tomcat 4.1 version (is it useful for you ?)

 If you could inform me about this question or send me some links.

 Thanks for your job.

HTH
Jerome



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



Missing jdbc context

2003-10-22 Thread Johann Uhrmann
Hello,

I have some problems with Tomcat 4.1.27 and database connection pooling:

Apparently, the context java:comp/env/jdbc does not exist.

This is what I get from catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27-LE-jdk14
GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI Resources
Stopping service Tomcat-Standalone
GlobalResourcesLifecycleListener: Creating MBeans for Global JNDI Resources in Context 
'' [EMAIL PROTECTED]
GlobalResourcesLifecycleListener: Processing resource jdbc java.lang.String
GlobalResourcesLifecycleListener: Creating MBeans for Global JNDI Resources in Context 
'jdbc/' [EMAIL PROTECTED]
GlobalResourcesLifecycleListener: Naming exception processing jdbc: 
org.apache.naming.NamingContext:[EMAIL PROTECTED] javax.naming.NamingException: Cannot 
create resource instance
The configuration in server.xml is:

?xml version='1.0' encoding='utf-8'?
Server className=org.apache.catalina.core.StandardServer debug=0 port=8006 
shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 
jsr77Names=false/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
debug=2/
  GlobalNamingResources
Resource name=jdbc/globaldb scope=Shareable type=javax.sql.DataSource/
ResourceParams name=jdbc/globaldb
  parameter
namevalidationQuery/name
valueselect version()/value
  /parameter
  parameter
nameurl/name
valuejdbc:postgresql://dbserver:5432/mydb/value
  /parameter
  parameter
namepassword/name
valuemyPwd/value
  /parameter
  parameter
namemaxActive/name
value10/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
  /parameter
  parameter
nameusername/name
valuedbuser/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
/ResourceParams
...
Can someone give me a hint why that context is not available?

Thank You,

Johann Uhrmann

--
Johann Uhrmann
xpecto AG | Lindenstrasse 81 | D-84030 Ergolding
Telefon: 0700 xpecto 00 (0700 973286 00)
Telefax: 0700 xpecto 10 (0700 973286 10)
Internet: http://www.xpecto.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: Tom cat set up problem

2003-10-22 Thread Sudhir
Thanks KOk and Lim...I got it working

Sudhir H

On Thu, 23 Oct 2003 Kok Wei, Koh wrote :
Hi Sudhir.

You may give 4.1.24 a shot. I used it with jdk1.3.x and it worked fine.

Lim is right, javax.xml.* is specific to jdk1.4 and above.

UR Friend wrote:
Thanks for the info...can you tell me which version of Tomcat will work with this 
version. Is it possible to include any jar file and get it working..

Sudhir H

On Wed, 22 Oct 2003 Lim Huat Heng wrote :

I guess the main problem is your jdk is version 1.3.1. If I am not wrong the
javax.xml.* only in jdk1.4 above.Try to get jdk1.4.1 or preferably jdk1.4.2,
then change your JAVA_HOME to point to the new jdk location. hope it helps.

- Original Message -
 From: UR Friend [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:40 PM
Subject: Tom cat set up problem


Hi!

I am trying to set up tomcat...tried to set-up following env var

It is installed in

C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12



SET JAVA_HOME=C:\jdk1.3.1_01
SET CATALINA_HOME=C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12

When tried to run, I got the following exception. Am I running it in a
proper manner...??


C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\bincatalina run
Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.12\jakarta-tomcat-5.0.12\temp
Using JAVA_HOME:   C:\jdk1.3.1_01
[ERROR] Digester - -Begin event threw error java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Sourcejava.lang.NoClassDefFoundError:
javax/xml/transform/Sour
ce
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.clinit(
GlobalResourcesLifecycleListener.java:112)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:253)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)

at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:595)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.load(Catalina.java:512)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:258)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)

java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
jav
ax/xml/transform/Source
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.execute
(MbeansDescriptorsDOMSource.java:130)
at
org.apache.commons.modeler.modules.MbeansDescriptorsDOMSource.loadDes
criptors(MbeansDescriptorsDOMSource.java:120)
at org.apache.commons.modeler.Registry.load(Registry.java:819)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:931
)
at
org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:909
)
at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1646)
at
org.apache.catalina.mbeans.MBeanUtils.clinit(MBeanUtils.java:154)
   

error-page directive gives a wrong response code to apache

2003-10-22 Thread Julien Oix
hi everyone,

I have a problem with the error-page directive included in my web.xml

The RPM's I use on a Linux RedHat top box :

apache-1.3.27-2.7.1
tomcat4-4.1.18-full.1jpp
mod_jk-ap13-1.2.2-1jpp

so when apache gives a jsp to Tomcat, this one answers a code 200 instead of
a 404 in the apache log even if the jsp is not found ...

I know this bug is in the bugzilla database as RESOLVED yet (
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15406 ) but for 4.1.12
version so I can't understand what happens ...


the interesting part of my web.xml :


error-page
error-code403/error-code
location/error/403.jsp/location
/error-page

error-page
error-code404/error-code
location/error/404.jsp/location
/error-page

##

has anyone an idea ?

thanks in advance,

Julien OIX
Service Informatique de Gestion - Université de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]


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



Request, response and session.

2003-10-22 Thread anunay ashish
Hi,
I have a good background of ASP but recently started programming in JSP.
Where does Request and Response object comes in JSP?
Can we define a session variable in JSP similar to ASP?

Thanks in advance.
Regards,
Anunay Ashish.

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



JNDI - LDAP: org.apache.tomcat.request.SecurityCheck

2003-10-22 Thread Michiel Bakker
Hi there guys,

Does anybody know where I can find the jar file in which the class
org.apache.tomcat.request.SecurityCheck is located?
Thanks.

Michiel.


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



Re: error-page directive gives a wrong response code to apache

2003-10-22 Thread Tim Funk
If you have a custom error page, its the job of the page to explicitly set 
the error code. This is because errors may *not* be errors and the error page 
may have logic to recover from various errors.

You'll see this behavior in other servlet engines too.

In your error page, you'll need this snippet:
%response.setStatus(HttpServletResponse.SC_NOT_FOUND);%
-Tim

Julien Oix wrote:
hi everyone,

I have a problem with the error-page directive included in my web.xml

The RPM's I use on a Linux RedHat top box :

apache-1.3.27-2.7.1
tomcat4-4.1.18-full.1jpp
mod_jk-ap13-1.2.2-1jpp
so when apache gives a jsp to Tomcat, this one answers a code 200 instead of
a 404 in the apache log even if the jsp is not found ...
I know this bug is in the bugzilla database as RESOLVED yet (
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15406 ) but for 4.1.12
version so I can't understand what happens ...
the interesting part of my web.xml :


error-page
error-code403/error-code
location/error/403.jsp/location
/error-page
error-page
error-code404/error-code
location/error/404.jsp/location
/error-page
##



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


Re: error-page directive gives a wrong response code to apache

2003-10-22 Thread Johann Uhrmann
Julien Oix wrote:
hi everyone,

I have a problem with the error-page directive included in my web.xml

The RPM's I use on a Linux RedHat top box :

apache-1.3.27-2.7.1
tomcat4-4.1.18-full.1jpp
mod_jk-ap13-1.2.2-1jpp
so when apache gives a jsp to Tomcat, this one answers a code 200 instead of
a 404 in the apache log even if the jsp is not found ...
I know this bug is in the bugzilla database as RESOLVED yet (
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15406 ) but for 4.1.12
version so I can't understand what happens ...
It is RESOLVED INVALID. In other words:
That behaviour is considered correct.
If You want Your JSP to return a response code different from 200
You have to include:
% response.setStatus(response.SC_NOT_FOUND); %

in Your 404-page.

Regards,

Johann Uhrmann

--
Johann Uhrmann
xpecto AG | Lindenstrasse 81 | D-84030 Ergolding
Telefon: 0700 xpecto 00 (0700 973286 00)
Telefax: 0700 xpecto 10 (0700 973286 10)
Internet: http://www.xpecto.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Request, response and session.

2003-10-22 Thread Tim Funk
1) get a good JSP book
2) Request and Response are 2 classes as defined by the Servlet API. A JSP is 
actually a servlet when all is said and done. Anyhoo - the Request and 
Response are the interfaces to get the data the user agent sent as well as 
send data back to the user agent.
3) To use sessions - there is HttpSession which is available in Jsp pages as 
a variable called session. In servlets, you have to get it via 
request.getSession() (or a variant).

There are many free resources about intro to servlets and Jsp on the web, I 
can't think of any right know since I am so dependent on Google.

-Tim

anunay ashish wrote:

Hi,
I have a good background of ASP but recently started programming in JSP.
Where does Request and Response object comes in JSP?
Can we define a session variable in JSP similar to ASP?
Thanks in advance.
Regards,
Anunay Ashish.
-
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]


linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN
Hi all,

One of my developers reached the limit of file descriptors using tomcat. With no more 
than 400 clients at a time and 500 threads, we have more than 20 (two hundred 
thousands) of FD opened. As far as I can read (just try to read a lsof output with 
more than 20 lines), each thread seems to open all the jar and java files.

Anyone already seen this? It only happens on this machine, so it is probably 
configuration or application related. Just need some tip about such problem.

Thanks,

François.


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



RE: linux : Limit of file descriptor

2003-10-22 Thread Ralph Einfeldt
Those are shared fd's.

(Otherwise you would have hit the limit much earlier
as it is typically something betweenn 1024 and 4096).

 -Original Message-
 From: Francois JEANMOUGIN 
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 22, 2003 3:05 PM
 To: Tomcat Users List
 Subject: linux : Limit of file descriptor 
 
 
 One of my developers reached the limit of file descriptors 
 using tomcat. With no more than 400 clients at a time and 500 
 threads, we have more than 20 (two hundred thousands) of 
 FD opened. As far as I can read (just try to read a lsof 
 output with more than 20 lines), each thread seems to 
 open all the jar and java files.
 

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



RE: error-page directive gives a wrong response code to apache

2003-10-22 Thread Julien Oix
it works great !

thanks a lot for your tip's, both Tim  Johann :-)

Julien OIX
Service Informatique de Gestion - Universite de Nantes
Tel: 02 40 99 83 65 / abroad + (33) 240 99 83 65
Web: http://www.univ-nantes.fr
mailto:[EMAIL PROTECTED]

 -Message d'origine-
 De : Tim Funk [mailto:[EMAIL PROTECTED]
 Envoye : mercredi 22 octobre 2003 14:25
 A : Tomcat Users List
 Objet : Re: error-page directive gives a wrong response code to apache


 If you have a custom error page, its the job of the page to
 explicitly set
 the error code. This is because errors may *not* be errors and
 the error page
 may have logic to recover from various errors.

 You'll see this behavior in other servlet engines too.

 In your error page, you'll need this snippet:
 %response.setStatus(HttpServletResponse.SC_NOT_FOUND);%

 -Tim

 Julien Oix wrote:
  hi everyone,
 
  I have a problem with the error-page directive included in my web.xml
 
  The RPM's I use on a Linux RedHat top box :
 
  apache-1.3.27-2.7.1
  tomcat4-4.1.18-full.1jpp
  mod_jk-ap13-1.2.2-1jpp
 
  so when apache gives a jsp to Tomcat, this one answers a code
 200 instead of
  a 404 in the apache log even if the jsp is not found ...
 
  I know this bug is in the bugzilla database as RESOLVED yet (
  http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15406 ) but for 4.1.12
  version so I can't understand what happens ...
 
 
  the interesting part of my web.xml :
 
  
  error-page
  error-code403/error-code
  location/error/403.jsp/location
  /error-page
 
  error-page
  error-code404/error-code
  location/error/404.jsp/location
  /error-page
 
  ##
 


 -
 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: linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN


 -Message d'origine-
 De : Ralph Einfeldt [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 22 octobre 2003 15:09
 À : Tomcat Users List
 Objet : RE: linux : Limit of file descriptor
 
 Those are shared fd's.

Nope, those are real FDs
 
 (Otherwise you would have hit the limit much earlier
 as it is typically something betweenn 1024 and 4096).

Nope, on this server, it is 209713. You want some?

François.


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



Re: linux : Limit of file descriptor

2003-10-22 Thread Randy Watler
Francois,

For what it is worth, we run vanilla RedHat 8.0 servers and have to bump 
up the number handles available to Tomcat using ulimit, (otherwise it is 
limited to ~1024). We have a complex application that does a lot of 
proxied access work. Despite that, we have only run out of file 
descriptors once in several years during what we think was a DOS attack. 
Remember, each socket gets a file descriptor as well.

It seems unlikely that the FDs are being consumed by Tomcat if your log 
files look normal. Does the number of file handles climb steadily over 
time or rapidly balloon beyond norms on startup? What build of Linux is 
on the box in question?

Randy Watler
Finali Corporation
Francois JEANMOUGIN wrote:

 

-Message d'origine-
De : Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 22 octobre 2003 15:09
À : Tomcat Users List
Objet : RE: linux : Limit of file descriptor
Those are shared fd's.
   

Nope, those are real FDs

 

(Otherwise you would have hit the limit much earlier
as it is typically something betweenn 1024 and 4096).
   

Nope, on this server, it is 209713. You want some?

François.

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




smime.p7s
Description: S/MIME Cryptographic Signature


RE: linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN


 For what it is worth, we run vanilla RedHat 8.0 servers and have to
 bump
 up the number handles available to Tomcat using ulimit, (otherwise it
 is
 limited to ~1024). We have a complex application that does a lot of
 proxied access work. Despite that, we have only run out of file
 descriptors once in several years during what we think was a DOS
 attack.
 Remember, each socket gets a file descriptor as well.

Yes. So we have 500 clients and this uses a pool of SQL connections (about 
120). Everything else is local open files. Mostly jar and java that doesn't seem to be 
shared. That's strange.
 
 It seems unlikely that the FDs are being consumed by Tomcat if your
 log
 files look normal. Does the number of file handles climb steadily over
 time or rapidly balloon beyond norms on startup? What build of Linux
 is
 on the box in question?

It is a RedHat enterprise server 2.1 (due to silly constructor support restrictions). 
I just saw the problem today, so I don't saw it coming up. The service was restarted 
this morning and two hours later, it already reached the current score. This night, it 
will be dead...

On another machine running about the same type of applications (and two tomcat 
instances), I only have 8000FDs opened (which could be correcte regarding the number 
of jars, connections and log files).

François.


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



RE: Request, response and session.

2003-10-22 Thread Carlos Pereira
 JSP is built on top of Servlets. JSP pages are actually transformed into servlets. 
So, if you're serious about starting to program in JSP, i would recommend that you 
learn the basics of servlets before jumping into JSP.

http://java.sun.com/products/servlet/docs.html is the Java Servlet Documentation page 
and should have everything you need.

Starting out with Servlet Essentials is a good bet; it covers the very basics and 
you will learn very fast. Including the equivalent to Request and Response, and 
sessions.

Regards,
Carlos Pereira

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



RE: File writing performance

2003-10-22 Thread Carlos Pereira
 The main problem with performance comes from your source code.  You are
 reading 1 byte at a time then writing 1 byte at a time.  Use a buffered
 input stream, and also use a buffered output stream
(Wade Chandler)

 Really efficient values are FS blocksize (linux defaults to 4096b).
(Francois JEANMOUGIN)

 (Have a look at the source of the DefaultServlet)
(Ralph Einfeldt)

 Ok, I'll use a 4096b long buffer. The code i posted was just a test; it worked, now 
i'll go for performance tuning. My doubt was if it would be slower that the processing 
that the default servlet does. After watching it's source i guess it will even be 
quicker, because it doesn't need so many tests.

 There is another problem: Are you shure that flash is using 
 a simple download and won't use things from http 1.1 like 
 byte range requests (and won't do it in the next version).
(Ralph Einfeldt)
 I don't understand what you are talking about. SWF files work just like java applets; 
they are downloaded, the flash player is started and runs the SWF file (much like the 
java plugin). I really don't know anything about byte range requests. According to 
this behaviour, do you think there might be any problem?

 I've searched the SWF file format specification, macromedia's developer center and 
Flash's help files. They don't have any reference to that either.
 I tried an example and it worked fine, with no problems at all. But, i want to make 
sure i don't need to worry about this...

Best regards,
Carlos Pereira

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



RE: Can I configure Tomcat to send HTTP/1.1 200 OK rather than HTT P/1.1 200?

2003-10-22 Thread Hua Hou
Thank you for your reply. I am using Tomcat 4.1.24 and have to recompile the
code to append the reason phrase.

Thanks again.

Hua

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2003 5:03 PM
To: Tomcat Users List
Subject: Re: Can I configure Tomcat to send HTTP/1.1 200 OK rather than
HTT P/1.1 200?

Recompile the source. (But I thought the 4.1.27 also appended the status
text 
too)

http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6

 The individual values of the numeric status codes defined for HTTP/1.1,
and 
an example set of corresponding Reason-Phrase's, are presented below. The 
reason phrases listed here are only recommendations -- they MAY be replaced 
by local equivalents without affecting the protocol.

So OK is only a recommendation. It may actually be any word based on locale.

So the following is probably also valid:

HTTP/1.1 200 Roger

-Tim


Hua Hou wrote:
 I have a really picky browser that is expecting the OK after 200 when
 receiving HTTP response as:
 
 HTTP/1.1 200 OK
 
  
 
 Without the OK, the browser can NOT render the HTTP response correctly.
 
  
 
 I have two questions:
 
 (1) Is there a way to configure Tomcat to send OK after the 200 code
 when sending response header to browser?
 
 (2) According the HTTP 1.1 spec, is the OK required after the 200
code?
 



-
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: linux : Limit of file descriptor

2003-10-22 Thread Randy Watler
Francois:

H. Are you running with a fronting web server, (i.e. Apache, IIS, 
etc), or Tomcat stand alone?

Randy Watler
Finali Corporation


smime.p7s
Description: S/MIME Cryptographic Signature


RE: linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN


 Francois:
 
 H. Are you running with a fronting web server, (i.e. Apache, IIS,
 etc), or Tomcat stand alone?

Standalone.


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



POI

2003-10-22 Thread Hart, Justin
I'm considering using POI (the jakarta package for managing OLE objects in java) in a 
commercial project.

2 Questions
1)  Is it any good?
2)  Will the license allow for this?  IANAL.

Justin W. Hart

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



RE: File writing performance

2003-10-22 Thread Ralph Einfeldt
I don't know how it is with SWF files. But other technologies like 
PDF work with byte range requests to start the display of the 
first page before the full dokument is there.

These feature is nothing you will find in the fileformat. (At 
least not in PDF) This is just a way to get the file with the 
given format from the server to the client.

My remark was just a warning, that something like that can
happen.

 -Original Message-
 From: Carlos Pereira [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 22, 2003 3:54 PM
 To: Tomcat Users List
 Subject: RE: File writing performance
 
 
  I don't understand what you are talking about. SWF files 
 work just like java applets; they are downloaded, the flash 
 player is started and runs the SWF file (much like the java 
 plugin). I really don't know anything about byte range 
 requests. According to this behaviour, do you think there 
 might be any problem?
 

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



RE: POI

2003-10-22 Thread Walker Chris
Justin,

I've used POI to read and write Excel files.  I'd say it was generally very
good, although I had problems reading a file in, IIRC, pre-Excel 97 format.

Chris

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED]
Sent: 22 October 2003 15:01
To: Tomcat Users List (E-mail)
Subject: POI


I'm considering using POI (the jakarta package for managing OLE objects in
java) in a commercial project.

2 Questions
1)  Is it any good?
2)  Will the license allow for this?  IANAL.

Justin W. Hart

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


The information in this e:mail and any attachments or any 
reproduction of this e:mail in whatever manner is confidential 
and for the use of the addressee(s) only.  If you are not the 
addressee then the distribution, use or reproduction of this 
e:mail or the information within it is strictly prohibited and 
may be unlawful.  If received in error please advise the 
sender and delete all record of it from your system.  
Although believed to be virus free, accurate and complete,  
responsibility for any loss or cost arising from its receipt or 
use or its incomplete or inaccurate transmission is hereby 
excluded to the fullest extent possible.


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



RE: linux : Limit of file descriptor

2003-10-22 Thread Ralph Einfeldt
Sorry, but I can't beleaf that each thread has his own fd.

On my box I have a limit of 1024 files but lsof report over 
6500 open fd's. (As the the jar files are memory mapped files
on my box, lsof doesn't show the fd, so I can't proove that 
they are shared)

 -Original Message-
 From: Francois JEANMOUGIN 
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 22, 2003 3:25 PM
 To: Tomcat Users List
 Subject: RE: linux : Limit of file descriptor 
 
  
  Those are shared fd's.
 
 Nope, those are real FDs
  

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



Re: linux : Limit of file descriptor

2003-10-22 Thread Randy Watler
Francois,

This may be a Red Herring, but I have to wonder if the usage of Posix 
threads in the RedHat enterprise servers is causing problems somehow? 
Are your other servers RedHat enterprise boxen or different in other 
ways? What JVM are you using?

Randy Watler
Finali Corporation



smime.p7s
Description: S/MIME Cryptographic Signature


Re: POI

2003-10-22 Thread Arthur Veinstein
1. We use it a lot and it works fast !
2. We use it in a commercial project, and as you can see in this link
(http://jakarta.apache.org/poi/casestudies.html) , they actually are
promoting case studies with commercial users

Arthur
- Original Message - 
From: Hart, Justin [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:00 PM
Subject: POI


I'm considering using POI (the jakarta package for managing OLE objects in
java) in a commercial project.

2 Questions
1)  Is it any good?
2)  Will the license allow for this?  IANAL.

Justin W. Hart

-
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: File writing performance

2003-10-22 Thread Carlos Pereira
 I don't know how it is with SWF files. But other technologies like 
 PDF work with byte range requests to start the display of the 
 first page before the full dokument is there.
(Ralph Einfeldt)

Oops! Flash does show frames as they come in, before the whole swf file is 
downloaded...

 My remark was just a warning, that something like that can
 happen.
(Ralph Einfeldt)

Yes, and i don't know anything about that, so i must be careful.
What is the consequence, if flash uses byte range requests and i simply write the file 
to the output stream?

Best regards,
Carlos Pereira

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



Re: jk2 error

2003-10-22 Thread Daniel Gibby
It may be that you need to set LD_ASSUME_KERNEL in your environment for 
tomcat and apache to 2.2.5 That seemed to fix this type of thing for me, 
but you are getting some messages that I never did. However, I was using 
unixSockets on Redhat 9. Search google for tomcat and LD_ASSUME_KERNEL

Daniel Gibby

Joe Leone wrote:

I am running  Apache 2.0.46 , tomcat4-4.1.24-full.2jpp and mod_jk2.so on a Redhat 8 server. Both apache and jk2 was compiled from source. 
I am getting these error in my apache logs and tomcat stops responding. I have seen other request for help but no solutions.
Any comments would be appreciated.

[Mon Oct 20 09:39:59 2003] [error] msgAjp.receive(): Bad signature fff57
[Mon Oct 20 09:39:59 2003] [error] channelSocket.receive(): Bad header
[Mon Oct 20 09:39:59 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Oct 20 09:39:59 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Oct 20 09:43:25 2003] [error] msgAjp.receive(): Bad signature fff57
[Mon Oct 20 09:43:25 2003] [error] channelSocket.receive(): Bad header
[Mon Oct 20 09:43:25 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Oct 20 09:43:25 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Oct 20 09:43:25 2003] [error] ajp13.service() Error  forwarding 
ajp13:127.0.0.1:8019 1 0
[Mon Oct 20 09:43:25 2003] [error] lb.service() worker failed 12 for 
ajp13:127.0.0.1:8019
[Mon Oct 20 09:45:23 2003] [error] msgAjp.receive(): Bad signature f0
[Mon Oct 20 09:45:23 2003] [error] channelSocket.receive(): Bad header
[Mon Oct 20 09:45:23 2003] [error] workerEnv.processCallbacks() Error reading reply
[Mon Oct 20 09:45:23 2003] [error] ajp13.service() ajpGetReply recoverable error 12
[Mon Oct 20 09:45:36 2003] [error] msgAjp.receive(): Bad signature 00
[Mon Oct 20 09:45:36 2003] [error] channelSocket.receive(): Bad header


Thanks Joe

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

2003-10-22 Thread Adam Hardy


On 10/22/2003 04:00 PM Hart, Justin wrote:
I'm considering using POI (the jakarta package for managing OLE objects in java) in a commercial project.

2 Questions
1)  Is it any good?
2)  Will the license allow for this?  IANAL.
Justin W. Hart
A colleague used it on a project I was on - seemed to do the job, at 
least for Excel spreadsheets. I hope the license was OK! Guess it 
wouldn't have got past the suits if it hadn't been.

Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat for Liquidoffice - As 2k service: Service will not start w hen a Domain user replaces SYSTEM

2003-10-22 Thread Sharp, Bryce
Issue: tomcat service with an account other than system when installed as an
2k service.

 

Does anyone have experience with this issue? 

 

The ultimate goal is:

 

Exporting finished E-forms in adobe.pdf forms to Onbase Document management.


Via a custom java class that wraps a c++ dll ( JNI ), that uses DCOM to
remote a document broker. This is completing without errors, however it does
no work. It is my thinking that Anonymous is being used as the user for
the dll/dcom security.

 

I am certain there is a better way to do this but in my very limited
experience this is the best solution I have found.

 

Thanks for the help

Bryce Sharp [EMAIL PROTECTED] County

 

P.s. Advice on design is more than welcome.

 



servlet problem with tomcat 4.0.4

2003-10-22 Thread Ivan Venuti
Hello,

I have a servlet that generates a PDF document. The generation task is quite
long, so I have decided to do it in an asyncronous way:

the servlet receives the request of generating the document and outputs a
waiting HTML page that submit a request to the servlet, after a predefined
lap of time (using a javascript setTimeout function), asking if the
document is ready:


HTMLHEAD
TITLEL675FoServlet/TITLE
/HEAD
BODY bgcolor='#99ccff' link=blue vlink=purple
table bgcolor='FF' cellpadding=0 cellspacing=0td width=652
align='center'
script language = JavaScript
window.setTimeout(window.location.href = 'http://...servlet 
URL with
parameters';, 15000);
/script
/BODY
/HTML



If the document is ready it is presented to the user else the servlet
generates another HTML page with the same lap of time of the previous HTML
page

Everything works nice with Netscape (4.7).
The problems arise with MS Explorer (tested with versions 5.0, 5.5 or 6.0).

Testing the application we notice that:

1) The servlet generates the first HTML waiting page correctly
2) The first invocation of the subsequent page fails to be activated after
the predefined amount of time but is waiting until the completation of the
generation of document from the servlet

So we decided to comment out the setTimeout function and to put an HTML
button:

HTML
HEAD
 script
function reload(){window.location.href ='URL';}
 /script
/HEAD
BODY bgcolor=#99ccff

form
input type=button onClick=javascript:reload(); value=Ricarica
/form

/BODY
/HTML

when the user pushes it the page should make another invocation.
This doesn't happend until the completation of the document.
Most strange if the user clicks two times, the second invocation has effect
immediatly, but finally, when the document is generated, fails to retrieve
it because someone else seems to be listing for it (maybe is the first
invocation hanging up?).
We are using Tomcat 4.0.4.

Please help me if someone can imagine a possible solution.
Thanks in advance

Ivan Venuti



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



RE: JNDI configuration in server.xml

2003-10-22 Thread Shapira, Yoav

Howdy,
I thought you needed a Resource name=component ... / before
ResourceParams name=component ... /ResourceParams...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 2:44 AM
To: Tomcat Users List
Subject: JNDI configuration in server.xml

I have component deployed in common/lib/component.jar and configured
many
webapplications
each webapplication use global component through JNDI and my
configuration
in server.xml is

GlobalNamingResources
Resource name=vasLogger auth=Container
type=javax.sql.DataSource/

  ResourceParams name=component
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
  namemaxActive/name
  value100/value
/parameter

parameter
  namemaxIdle/name
  value30/value
/parameter

parameter
  namemaxWait/name
  value1/value
/parameter

  /ResourceParams

/GlobalNamingResources

Servlet calling components method example is but it doesnot work What
happened?

public void CallJNDIContext {
InitialContext iCtx = null;
Context ctx = null;

try {
iCtx = new InitialContext();
ctx = (Context) iCtx.lookup(java:comp/env);

if (ctx != null) {
DataSource ds = (DataSource)
ctx.lookup(jdbc/component);

if (ds != null) {
connection = ds.getConnection();
}
}
} catch (NamingException e) {
   e.printStackTrace();
} catch (SQLException e) {
   e.printStackTrace();
}
}







-
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 system 
and notify the sender.  Thank you.


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



RE: Missing jdbc context

2003-10-22 Thread Shapira, Yoav

Howdy,
Set debug=99 for your server, engine, host, so you can see why tomcat
is running into errors processing server.xml.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Johann Uhrmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:00 AM
To: Tomcat Users List
Subject: Missing jdbc context

Hello,

I have some problems with Tomcat 4.1.27 and database connection
pooling:

Apparently, the context java:comp/env/jdbc does not exist.

This is what I get from catalina.out:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.27-LE-jdk14
GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI
Resources
Stopping service Tomcat-Standalone
GlobalResourcesLifecycleListener: Creating MBeans for Global JNDI
Resources
in Context '' [EMAIL PROTECTED]
GlobalResourcesLifecycleListener: Processing resource jdbc
java.lang.String
GlobalResourcesLifecycleListener: Creating MBeans for Global JNDI
Resources
in Context 'jdbc/' [EMAIL PROTECTED]
GlobalResourcesLifecycleListener: Naming exception processing jdbc:
org.apache.naming.NamingContext:[EMAIL PROTECTED]
javax.naming.NamingException: Cannot create resource instance


The configuration in server.xml is:

?xml version='1.0' encoding='utf-8'?
Server className=org.apache.catalina.core.StandardServer debug=0
port=8006 shutdown=SHUTDOWN
   Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 jsr77Names=false/
   Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=2/
   GlobalNamingResources
 Resource name=jdbc/globaldb scope=Shareable
type=javax.sql.DataSource/
 ResourceParams name=jdbc/globaldb
   parameter
 namevalidationQuery/name
 valueselect version()/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:postgresql://dbserver:5432/mydb/value
   /parameter
   parameter
 namepassword/name
 valuemyPwd/value
   /parameter
   parameter
 namemaxActive/name
 value10/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namedriverClassName/name
 valueorg.postgresql.Driver/value
   /parameter
   parameter
 nameusername/name
 valuedbuser/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
 /ResourceParams
...


Can someone give me a hint why that context is not available?

Thank You,

Johann Uhrmann

--
Johann Uhrmann
xpecto AG | Lindenstrasse 81 | D-84030 Ergolding
Telefon: 0700 xpecto 00 (0700 973286 00)
Telefax: 0700 xpecto 10 (0700 973286 10)
Internet: http://www.xpecto.com


-
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 system 
and notify the sender.  Thank you.


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



RE: Tomcat hangs after a few days!

2003-10-22 Thread Shapira, Yoav

Howdy,

 Look at the source code to see where the message comes from.  As the
 [INFO] indicates, it's not an error, just an informational message.  You
 can configure commons-logging for tomcat so that these messages do not
 appear in your log.

 Yoav Shapira


Hi Yoav,

thanks for your help!

What I do not understand: - Look at the source code to see where the
message comes from.

I think the [INFO]-lines are produced by tomcat and not by the application.

Isn´t that correct?

Yup, that's correct, and I meant the tomcat source code not your app's.

Yoav Shapira



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]



[URGENT] Tomcat SSL crash on start-up

2003-10-22 Thread Bruno Morin
Hi,

I tried to configure Tomcat 4.1.27 with SSL

I use JDK 1.3.1 with jcert.jar, jnet.jar and jsse.jar in
JAVA_HOME/jre/lib/ext/
I had security.provider.3=com.sun.net.ssl.internal.ssl.Provider in
JAVA_HOME/jre/lib/ext/java.security


Then I generate a certificate whith those instructions :
keytool -genkey -alias server -keyalg RSA -keystore servercerts.ks
keytool -export -rfc -alias server -keystore servercerts.ks -file
server.cert
keytool -import -file server.cert -keystore client.ks
and put servercerts.ks in CATALINA_HOME


Then I modified the connector in CATALINA_HOME/conf/server.xml like this :
Connector className=org.apache.catalina.connector.http.HttpConnector

port=8443 minProcessors=5 maxProcessors=75

enableLookups=true acceptCount=10 debug=0 scheme=https
secure=true

Factory className=org.apache.catalina.net.SSLServerSocketFactory

clientAuth=false

protocol=TLS

keystorePass=serverpassword/

/Connector


Then I lauched the server but it crash on start-up with the exception :
java.io.IOException: Keystore was tampered with, or password was incorrect

What's wrong ?







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



Re: Mozilla, SSL certificates, and Tomcat 5

2003-10-22 Thread Jeff Jackson
I'm using Sun's j2sdk1.4.2.  Are you saying that using IBM's JVM would 
make a difference?

I've read the howto.  Again, I have SSL working with IE6.  Mozilla 1.4 
on the same machine gets a server certificate, but then fails to get any 
data.  Seems like a handshake problem to me.

Bill Barker wrote:

Are you using IBM's JVM?  If so, please see the latest SSL-howto
documentation for how to get SSL working.
Jeff Jackson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Short version: I can access Tomcat via SSL from IE6, but not from Mozilla
1.4/Netscape 7.1.  Is this a known problem, and if so, what's the
work-around?
Long version:

I've installed Sun's Java Web Services Developer Pack 1.3 version of
Tomcat 5 under Linux.  I also created a self-signed certificate using the
Java keytool, accepting the default keystore location and using the
default changeit password.  When I enable SSL (either by removing
comment delimiters from the SSL Connector in the out-of-the-box
server.xml, or by running the web-based admin tool) and restart Tomcat,
there are no error messages in any log files.  And I can access the SSL
port with an https URL using IE6 from a Windows client.
But Mozilla 1.4 and Netscape 7.1 (on the same Windows client I used for
IE) both give a The document contains no data. alert when I try to
access the same URL, after a several second delay and a number of
Connecting/Connected status messages.  These browsers have had no
trouble accessing other https URL's, so I'm assuming that it's a Tomcat
issue.
I have tried changing the server.xml Host name from localhost to my actual
host name and changing the Factory protocol from TLS to SSL (based on
something I saw in another SSL question).  This had no apparent effect.
I also tried using a trial Verisign-signed certificate, with the same
results: IE6 can access the site, Mozilla cannot.
What am I missing?




-
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: Mozilla, SSL certificates, and Tomcat 5

2003-10-22 Thread Adam Hardy


Jeff,
I get strange behaviour with Moz  tomcat5 SSL but not what you're 
describing. To do with the form-based authentication.

Adam

On 10/22/2003 05:58 PM Jeff Jackson wrote:
I'm using Sun's j2sdk1.4.2.  Are you saying that using IBM's JVM would 
make a difference?

I've read the howto.  Again, I have SSL working with IE6.  Mozilla 1.4 
on the same machine gets a server certificate, but then fails to get any 
data.  Seems like a handshake problem to me.

Bill Barker wrote:

Are you using IBM's JVM?  If so, please see the latest SSL-howto
documentation for how to get SSL working.
Jeff Jackson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Short version: I can access Tomcat via SSL from IE6, but not from 
Mozilla
1.4/Netscape 7.1.  Is this a known problem, and if so, what's the
work-around?

Long version:

I've installed Sun's Java Web Services Developer Pack 1.3 version of
Tomcat 5 under Linux.  I also created a self-signed certificate using 
the
Java keytool, accepting the default keystore location and using the
default changeit password.  When I enable SSL (either by removing
comment delimiters from the SSL Connector in the out-of-the-box
server.xml, or by running the web-based admin tool) and restart Tomcat,
there are no error messages in any log files.  And I can access the SSL
port with an https URL using IE6 from a Windows client.

But Mozilla 1.4 and Netscape 7.1 (on the same Windows client I used for
IE) both give a The document contains no data. alert when I try to
access the same URL, after a several second delay and a number of
Connecting/Connected status messages.  These browsers have had no
trouble accessing other https URL's, so I'm assuming that it's a Tomcat
issue.
I have tried changing the server.xml Host name from localhost to my 
actual
host name and changing the Factory protocol from TLS to SSL (based on
something I saw in another SSL question).  This had no apparent effect.

I also tried using a trial Verisign-signed certificate, with the same
results: IE6 can access the site, Mozilla cannot.
What am I missing?


--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2 connection

2003-10-22 Thread Klaus Wienert
Try the following:

# workers2.properties
[shm]
file=/var/log/httpd/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=tomcat1

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[status:status]

[uri:/examples/*]
group=ajp13:localhost:8009

[uri:/jkstatus/*]
group=status:status

--

# jk2.properties
# no entries here

--

In server.xml add jvmRoute in Engine-Tag like this:

Engine jvmRoute=tomcat1 name=Standalone defaultHost=localhost
debug=0



Klaus

- Original Message - 
From: Mario Juric [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 8:20 AM
Subject: shared memory problem in Tomcat 4.1.24/Apache 2.0.47/mod_jk2
connection


 I need some help in solving the following problem.



 I am trying to establish a simple Tomcat 4.1.24/Apache 2.0.47/mod_jk2
 connection using the standard Tomcat examples webapp. The browser waits
 forever when I try to access http://localhost/examples/. I also get the
the
 following errors two times in my /var/lo/httpd/error_log:



 [error] jk2_init() Can't find child XXX in scoreboard

 [error] mod_jk child init 1 -2



 Similar problem descriptions I found in the Tomcat User mailing archive
 indicate that this may have something to do with the shared memory file
 (shm). I have setup up read/write permission for this file.



 Note that http://localhost/ (Apache default page) and
 http://localhost:8009/examples/ (Tomcat examples) work as expected.



 My OS is Mandrake Linux 9.1 and I use the following setup files:



 # workers2.properties



 [shm]

 file=/var/log/httpd/jk2.shm

 size=1048576



 [channel.socket:localhost:8009]

 tomcatId=localhost:8009

 port=8009

 host=127.0.0.1



 [ajp13:localhost:8009]

 channel=channel.socket:localhost:8009



 [uri:/examples/*]

 worker=ajp13:localhost:8009



 # jk2.properties



 handler.list=request,container,channelSocket



 channelSocket.port=8009



 shm.file=/var/log/httpd/jk2.shm




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



[Off Topic] Ant OS conditionals

2003-10-22 Thread Mark W. Webb
I have to compile some JNI stuff for tomcat, and the gcc compile is 
different for linux and solaris.  Is there a way I can set this up in ant?

thank you.

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


Limiting the size of the log files produced by wrapper.properties

2003-10-22 Thread Anthony Nolan
Hi,

I am running tomcat 3.2.1 as a service on windows 2000. The log files
created for standard out and standard error are called jvm.stdout.log and
jvm.stderr.log. This is set up by the following 2 lines in the
wrapper.properties file:

wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout.log
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr.log

Does anyone know of a way to limit the size of these logs? There was a
repeated exception on our server recently and one of the logs got to 1.5Gb.

Thanks

Anthony Nolan



This E-mail 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 E-mail in error please notify us immediately 
and delete this E-mail from your system. Thank you.
It is possible for data transmitted by email to be deliberately or
accidentally corrupted or intercepted. For this reason, where the
communication is by E-mail, the Big Picture Group does not accept 
any responsibility for any breach of confidence which may arise through the use of 
this medium.
Opinions, conclusions and other information in this message that do not relate to the 
official business of Big Picture Group shall be understood as neither given nor 
endorsed by it.
This footnote also confirms that this email message has been swept for the presence of 
known computer viruses.

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



timeout on JK with IIS

2003-10-22 Thread TANAKA Yoshihiro
Hi.

I've got a timeout from JK with IIS when I POST.
It does not happen all the time, not at GET but POST
with JK1.2.4  1.2.5.

Tomcat4.1.27 + JDK1.3.1_0 + Windows2000 Professional w/ SP2

Can anyone help me with this problem?

Here are the logs:
a)iis_redirect.log
[Fri Oct 17 18:06:34 2003]  [jk_isapi_plugin.c (548)]:
jk_ws_service_t::read, ReadClient failed
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (882)]: ERROR: receiving data from client 
failed. Connection aborted or network problems
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (1303)]: ERROR: Client connection aborted 
or network problems
[Fri Oct 17 18:06:34 2003]  [jk_isapi_plugin.c (925)]: HttpExtensionProc service() 
returned OK
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (1529)]: Into jk_endpoint_t::done, 
closing connection 0
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (605)]: In 
jk_endpoint_t::ajp_close_endpoint

b)stderr.log
[ERROR] HandlerRequest - -Error decoding request  java.io.InterruptedIOException: 
Read timed outjava.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at java.io.BufferedInputStream.read(BufferedInputStream.java:275)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:597)
at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:300)
at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:465)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:343)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:479)

[WARN] ChannelSocket - -processCallbacks status 2


--
   TANAKA Yoshihiro  /   http://www.ytp.ne.jp/
 ---


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



Tomcat / AD / Queries from Username instead of Full Name

2003-10-22 Thread Matt Fury
Has anyone run into an issue with querying LDAP/AD and
getting the username?

It seems as though because our AD was set up with
Organizational Units there is no way to get the
username from a query. It seems that the CN=Full Name
instead of CN=Username. Has anyone worked around this
or no of a fix?

Thanks.

-Matt

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



RE: Tomcat and Active Directory / 2003

2003-10-22 Thread Robyne Vaughn
Hi all,
I'm also trying to authenticate to AD from Tomcat.  I'm having some struggles.

When you use this Realm, do you specify basic or form authentication in your 
web-app.xml?

I wish I knew how your ADS forest was arranged.  I'm having trouble figuring out what 
I need to use - what trail to follow - what keywords to use.  Our AD admin is either 
not knowlegeable enough to tell me or I'm asking the wrong questions.
Thanks,
Robyne

-Original Message-
From: Pitre, Russell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2003 11:34 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat and Active Directory / 2003


This is my realm setup in my server.xml config

Realm className=org.apache.catalina.realm.JNDIRealm
debug=99
connectionURL=ldap://[domain controller]:389
userBase=OU=Users,OU=Shawmut,DC=[domain],DC=com
userSearch=(sAMAccountName={0})
userRoleName=member
roleBase=OU=Users,OU=Shawmut,DC=[domain],DC=com
roleName=memberOf
roleSearch=(memberOf=CN=tomcat,CN=Users,DC=shawmut,DC=com)
connectionName=CN=Administrator,CN=Users,DC=shawmut,DC=com
connectionPassword=[password]
roleSubtree=true
userSubtree=true/

hope this helps


Russ





-Original Message-
From: Matt Fury [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2003 1:03 PM
To: Tomcat Users List
Subject: Re: Tomcat and Active Directory / 2003

Hey Thanks for the reply.

Tried all those to no avail. :-/ I did see the Tomcat
realm how-to but I was wondering if there were issues
because it is Micro$oft we're trying to connect to and
its 2003. Who knows, their standard ldap may not be
standard.

-Matt


--- Yann Cébron [EMAIL PROTECTED] wrote:
 Two guesses:
 
 * Did you try using the IP-address instead or use
 the FQDN for
 connectionURL, maybe there's something wrong w/ DNS?
 
 * Try w/o MD5 and see if it works then.
 
roleSubtree=True
 
 typo - or shouldn't this be true
 
 I guess you already found the documentation here:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JNDIRealm
 
 HTH,
 Yann
 
  BTW: I am using 4.1.27 on Windows 2000 and we're
  trying to connect to a Windows 2003 AD. Has this
  changed at all?
 
  here is the error trace:
 
  Catalina.start: LifecycleException:  Exception
 opening
  directory server connecti
  on:  javax.naming.CommunicationException:
  localhost:389 [Root exception is java.
  net.ConnectException: Connection refused: connect]
  LifecycleException:  Exception opening directory
  server connection:  javax.namin
  g.CommunicationException: localhost:389 [Root
  exception is java.net.ConnectExcep
  tion: Connection refused: connect]
 
  It keeps saying localhost:389 and I clearly don't
 have
  it in the Realm. Here is my setup.
 
  Realm
 className=org.apache.catalina.realm.JNDIRealm
debug=99
connectionName=cn=TomcatRole,dc=vo,dc=net
connectionPassword=***
connectionURL=ldap://orlmsdc001:389;
digest=MD5
roleBase=dc=roles,dc=vo,dc=net
roleName=cn
roleSearch=(uniqueMember={0})
roleSubtree=True
userPassword=***
userPattern=cn={0},dc=vacationsonly,dc=net  /
 
 
 
  --- Matt Fury [EMAIL PROTECTED] wrote:
   Hi All,
  
   I've been trying for several weeks to compile
   information on Tomcat and Active Directory
 through
   LDAP. I can't quite get all the information I
 need
   and
   I am hoping someone has a link to what needs to
 be
   done. I want to use the Realms in Tomcat but I
 can't
   seem to connect properly. For some reason it
 seems
   to
   keep trying to connect to localhost even though
 its
   not specified.
  
   Also, does SSL NEED to be implemented in order
 to
   get
   this to work? I will be doing AD connectivity
   through
   LAN only.
  
   Thanks.
  
   -Matt
  
  
 

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

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


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


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


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



lost requests using mod_jk, tomcat 4.1.27

2003-10-22 Thread Erik Wright
Hello,

I have tomcat set up to serve requests via mod_jk and apache.

While testing using JMeter, I see strange behavior. If I make, say, 100 
requests at 1 second intervals (on separate connections), 96 complete 
successfully, and the other 4 never return.

In fact, the other 4 never make it to my servlet. If I shut down tomcat, 
apache finally returns HTTP 500s for each of the requests.

Does anyone have any ideas on how to track this down? I've spent several 
days on it already, and I've made no progress! One of the things I tried 
to do was enable debug logging for the ChannelSocket class (I tried 
creating a logging.properties file in $JAVA_HOME/lib) but couldn't even 
get that to work.

Thanks,

Erik

--
http://www.spectacle.ca/
The New Online Source for Live Music in Montreal
.::514.286.1699::.


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


Un-authorized page 403

2003-10-22 Thread Thai Nguyen
Hi there,

I search the archive and found that if I put these lines:

error-page
  error-code403/error-code
  location/to-a-correct-path/unauthorized.jsp/location
/error-page

into /path/to/jakarta/webapps/myapps/WEB-INF/web.xml
it will overwrite the Ugly default error page.
Yes, it works.

However, I found this error in my catalina.out log file:

SEVERE: Parse Error at line 72 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*).

The error only occurs once (when restart tomcat) but it's still an error.
Anyone know how to fix this error?

Thanks in advance

Thai Nguyen



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



Re: JDBC Connection question

2003-10-22 Thread Caroline Jen
Which server do you use?  Weblogic, Websphere, ...
support connection pooling.
--- Carlos Pereira [EMAIL PROTECTED] wrote:
  You can only run one transaction per connection.
  Also, your DBMS may support a limited number of
 threads per connection.
 (Wade Chandler)
 Ok. So, using one connection for the whole
 application is out of question. My other
 alternatives are connection pooling and using one
 connection per user.
 
 The server is supposed to have between 300/1000
 people online at a time. I'm sure my question is
 very basic, but i want to know: what does it mean to
 have 1000 concurrent connections to the database
 (lets forget the dbms connection limit, just
 performance)?
 
  Please use a connection pool.  For Instruction:
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
  and

http://www.mysql.com/articles/connection_pooling_with_connectorj.html
 (Caroline Jen)
 I read it all. Connection pooling looks like the
 solution for all my problems. But, i had to
 configure server.xml to put it working. What about
 when i have to deploy the application? And if the
 server is NOT Tomcat, will it support connection
 pooling? 
 
 Best regards,
 Carlos Pereira
 

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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



timeout on JK with IIS

2003-10-22 Thread TANAKA Yoshihiro
Hi.

I've got a timeout from JK with IIS when I POST.
It does not happen all the time, not at GET but POST
with JK1.2.4  1.2.5.
Can anyone help me with this problem?

Here are the logs:
a)iis_redirect.log
[Fri Oct 17 18:06:34 2003]  [jk_isapi_plugin.c (548)]:
jk_ws_service_t::read, ReadClient failed
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (882)]: ERROR: receiving data from client 
failed. Connection aborted or network problems
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (1303)]: ERROR: Client connection aborted 
or network problems
[Fri Oct 17 18:06:34 2003]  [jk_isapi_plugin.c (925)]: HttpExtensionProc service() 
returned OK
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (1529)]: Into jk_endpoint_t::done, 
closing connection 0
[Fri Oct 17 18:06:34 2003]  [jk_ajp_common.c (605)]: In 
jk_endpoint_t::ajp_close_endpoint

b)stderr.log
[ERROR] HandlerRequest - -Error decoding request  java.io.InterruptedIOException: 
Read timed outjava.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at java.io.BufferedInputStream.read(BufferedInputStream.java:275)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:597)
at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:300)
at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:465)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:343)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:479)

[WARN] ChannelSocket - -processCallbacks status 2


--
   TANAKA Yoshihiro  /   http://www.ytp.ne.jp/
 ---


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



does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-22 Thread [EMAIL PROTECTED]
hello,

i produced a site with netbeans (has integrated tomcat, as you surely 
know). now i wanted to test it with real-tomcat. i must say, that i'm 
a real beginner with this!

i downloaded the lastes tomcat-version (for windows xp!), installed it 
right as the installer did. called once localhost and i got the 
greeting-screen from tomcat (meant: installation was ok!).

but then the problems began. how to get my  site into tomcat. all the 
ways i tried failed. there was always the same problem: the 
/mywar/index.jsp was found, but the other files weren't: instead of 
/mywar/anydir/anyjsp.jsp it looked for in /anyjst.jsp!! so with 
the servlets: i coded /mywar/servlet/anyservlet and it looked for 
/servlet/anyservlet.

in netbeans all works fine.

questions: can i use tomcat just right out of the box or is this a fas 
too privimitive way to use this heavy program?
can i conde paths like /servlet/anyservlet or must i code 
servlet/..., should it be anyjsp.jsp rather than /anyjsp.jsp.??
must i install apache as well or is tomcat sufficient?

where should i look for a solution for my (for me: heavy) problem??

please help me to get on the way.

greetings from salzburg/austria/europe
hans horwath
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[OT] Re: linux : Limit of file descriptor

2003-10-22 Thread Justin L Spies
Quoting Randy Watler [EMAIL PROTECTED]:

 Francois,
 
 This may be a Red Herring, but I have to wonder if the usage of Posix 
 threads in the RedHat enterprise servers is causing problems somehow? 
 Are your other servers RedHat enterprise boxen or different in other 
 ways? What JVM are you using?
 
 Randy Watler
 Finali Corporation
 
 
 

Francois,
If you've solved this problem, please disregard this message.  I've marked 
this issue as off topic because it relates to Linux and not Tomcat.

lsof won't properly report the total number of opened file descriptors.  I was 
doing the same thing for a client who ran into this issue with file-max set to 
16384.  I was using lsof and wc to count the lines, however it reported 
something like 80,000.  

You sound pretty knowledgeable, so you may have seen this, however the best 
way to handle this is using the proc file system.  An explaination is 
available at http://www.ussg.iu.edu/hypermail/linux/kernel/0208.2/0145.html 

Can you post the contents of the following files:
/proc/sys/fs/file-max
/proc/sys/fs/file-nr
/proc/sys/fs/inode-nr
/proc/sys/fs/inode-state


Once you've pasted this information, we'll see if we can figure this out.

Sincerely,
Justin L. Spies

-
This mail sent through IMP: http://horde.org/imp/

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



RE: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-22 Thread Shapira, Yoav

Howdy,

i downloaded the lastes tomcat-version (for windows xp!), installed it
right as the installer did. called once localhost and i got the
greeting-screen from tomcat (meant: installation was ok!).

Good.

but then the problems began. how to get my  site into tomcat. all the
ways i tried failed. there was always the same problem: the
/mywar/index.jsp was found, but the other files weren't: instead of
/mywar/anydir/anyjsp.jsp it looked for in /anyjst.jsp!! so with
the servlets: i coded /mywar/servlet/anyservlet and it looked for
/servlet/anyservlet.

If you have a war file, simply copy it into tomcat's webapps directory.
Links in your servlets, JSPs, HTML pages should be appropriately
relative. Give us an example of a link that doesn't work: I bet it's a
link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or
better yet ../servlet/myservlet.

You should map all your servlets in web.xml.

questions: can i use tomcat just right out of the box or is this a
fas
too privimitive way to use this heavy program?

Yes, you can use it right out of the box: it's designed for that.

must i install apache as well or is tomcat sufficient?

You don't need Apache at this point: tomcat by itself is fine.

where should i look for a solution for my (for me: heavy) problem??

This is the place.

Yoav Shapira



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: Un-authorized page 403

2003-10-22 Thread Shapira, Yoav

Howdy,

SEVERE: Parse Error at line 72 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess
ion-
config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e
nv-
ref*,resource-ref*,security-constraint*,login-config?,security-role*,en
v-
entry*,ejb-ref*,ejb-local-ref*).

The error only occurs once (when restart tomcat) but it's still an
error.
Anyone know how to fix this error?

Not only is it still an error, but a very significant error at that.
That's why it's a SEVERE-level message ;)

You need to edit your web.xml so that its elements are in the order
specified in the error message above.  If you think your web.xml is
correct, validate it with a tool like XMLSpy or simply post it (all of
it) here.

Yoav Shapira



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: Un-authorized page 403

2003-10-22 Thread Thai Nguyen
Thanks so much Shapira,

The element I added in is error-page.
This element does not exist in the element's list from the error message.
I guess my question now is how do I add that element.

Thanks,

Thai Nguyen

 Howdy,

SEVERE: Parse Error at line 72 column 11: The content of element type
 web-app must match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess
 ion-
config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e
 nv-
ref*,resource-ref*,security-constraint*,login-config?,security-role*,en
 v-
entry*,ejb-ref*,ejb-local-ref*).

The error only occurs once (when restart tomcat) but it's still an
 error.
Anyone know how to fix this error?

 Not only is it still an error, but a very significant error at that.
 That's why it's a SEVERE-level message ;)

 You need to edit your web.xml so that its elements are in the order
 specified in the error message above.  If you think your web.xml is
 correct, validate it with a tool like XMLSpy or simply post it (all of
 it) here.

 Yoav Shapira



 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: Un-authorized page 403

2003-10-22 Thread Erik Wright
Look closer, it's listed in the error message you provided.

Cheers,

-erik

Thai Nguyen wrote:

Thanks so much Shapira,

The element I added in is error-page.
This element does not exist in the element's list from the error message.
I guess my question now is how do I add that element.
Thanks,

Thai Nguyen
 

Howdy,

   

SEVERE: Parse Error at line 72 column 11: The content of element type
web-app must match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sess
 

ion-
   

config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-e
 

nv-
   

ref*,resource-ref*,security-constraint*,login-config?,security-role*,en
 

v-
   

entry*,ejb-ref*,ejb-local-ref*).

The error only occurs once (when restart tomcat) but it's still an
 

error.
   

Anyone know how to fix this error?
 

Not only is it still an error, but a very significant error at that.
That's why it's a SEVERE-level message ;)
You need to edit your web.xml so that its elements are in the order
specified in the error message above.  If you think your web.xml is
correct, validate it with a tool like XMLSpy or simply post it (all of
it) here.
Yoav Shapira



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]


 



--
http://www.spectacle.ca/
The New Online Source for Live Music in Montreal
.::514.286.1699::.


RE: Un-authorized page 403

2003-10-22 Thread Shapira, Yoav

Howdy,
The error-page element (error-page*) does exist in the error message.
The message is telling you the DTD to which web.xml must comply.  As I
said, either validate your web.xml yourself or post it for us to
validate ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Thai Nguyen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 2:54 PM
To: [EMAIL PROTECTED]
Subject: RE: Un-authorized page 403

Thanks so much Shapira,

The element I added in is error-page.
This element does not exist in the element's list from the error
message.
I guess my question now is how do I add that element.

Thanks,

Thai Nguyen

 Howdy,

SEVERE: Parse Error at line 72 column 11: The content of element type
 web-app must match
(icon?,display-name?,description?,distributable?,context-
param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,se
ss
 ion-
config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource
-e
 nv-
ref*,resource-ref*,security-constraint*,login-config?,security-role*,
en
 v-
entry*,ejb-ref*,ejb-local-ref*).

The error only occurs once (when restart tomcat) but it's still an
 error.
Anyone know how to fix this error?

 Not only is it still an error, but a very significant error at that.
 That's why it's a SEVERE-level message ;)

 You need to edit your web.xml so that its elements are in the order
 specified in the error message above.  If you think your web.xml is
 correct, validate it with a tool like XMLSpy or simply post it (all
of
 it) here.

 Yoav Shapira



 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]




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: HTTP 403 - isapi_redirector

2003-10-22 Thread Dionne, Patrice
Ok, I fixed the problem.

I figured out that I was using Tomcat 4.1.16 in production and Tomcat 4.1.24 in 
preproduction. So I uninstalled tomcat 4.1.16 and installed tomcat 4.1.24 and 
everything was fine. 

But still, I don't know what was wrong with version 4.1.16... anyway it is fixed now.

So much wasted time


-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 17 octobre, 2003 14:02
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Sorry, out of my range of experience, if you figure it out, will you send
out the solution?


-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 3:36 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


No, the login.jsp page is not under a restricted folder and is not spécified
as a restricted ressource. 

I can access it directly without any authentification.

The login form is well configured in the web.xml because if I bypass IIS and
access directly a restricted ressource on tomcat (on port 8080) the login
form is displayed.


-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 16:29
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Is your form inside the secured folder?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 3:25 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


This is the environement:

IIS 5 
Tomcat 4.1.24 (listen on port 8080)
Win2k Avanced Server
Browser: IE 6 or Netscape 7.1 don't make any difference



-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 16:20
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


What version of IIS?

-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 4:19 PM
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


Do you get the form if you go directly to it through IIS, I mean
http://host/site/form.jsp 


-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 1:51 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


I'm not getting the form if I go via IIS on port 80 but if I try directly
via Tomcat on port 8080 I get it. So the set up (web.xml) is fine on tomcat.



-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 14:04
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


With form based authentication, are you getting the form?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 12:18 PM
To: Tomcat Users List
Subject: RE: HTTP 403 - isapi_redirector


Thanks James, I did try your solution but nothing changed



-Original Message-
From: Watkins, James [mailto:[EMAIL PROTECTED]
Sent: 16 octobre, 2003 12:06
To: 'Tomcat Users List'
Subject: RE: HTTP 403 - isapi_redirector


I ran into the same problem and switched to using a form based
authentication which seems to work fine. It seems to be some problem with
iis intercepting the login info?

-Original Message-
From: Dionne, Patrice [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: HTTP 403 - isapi_redirector


Hi all,

Environement:
IIS 5 (isapi_redirector.dll) (listen on port 80)
Tomcat 4.1.24 (listen on port 8080)
Win2k Avanced Server
Browser: IE 6 or Netscape 7.1

Here is my problem.

I get a HTTP Status 403 - Access to the requested resource has been denied
when I try to access a protected ressource(in web.xml) via IIS on port 80
which redirect to a Tomcat 4.1.24 on port 8080.

Not suprising because the ressource is secured into the web.xml. I use a
BASIC authentification. But the thing is that I never get the pop-up window
asking for my credentials (username/password). So, I never get the chance to
authentificate myself (username/password).

I'm able to surf any non-restricted ressources on the webapp without any
problem. So, the isapi_redirector is well configured.

I've tried to access a protected ressource on the webapp directly on port
8080 (bypassing IIS) and I received the pop-up window asking for my
credentials (username/password). So everything is fine with Tomcat.

I've set the log level to debug the isapi_redirector.dll and this is what
I get when I try to access a restricted ressource:

[Thu Oct 16 10:08:16 2003]  [jk_isapi_plugin.c (696)]: HttpFilterProc
started [Thu Oct 16 10:08:16 2003]  [jk_isapi_plugin.c (759)]: In
HttpFilterProc Virtual Host redirection of
/206.162.174.213/dpi/export/viewfiles.jsp
[Thu Oct 16 10:08:16 2003]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Thu Oct 16 10:08:16 2003]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/206.162.174.213/dpi/export/viewfiles.jsp'

[SOLVEDRE] : UNIX+Apache+Tomcat Situtation

2003-10-22 Thread earle . flynn
Daniel,
Thank you for your excellent response. :) By the time I got it though I was
pretty much resolved to the idea that it was not a UNIX permission issue at
all. As I had many hours(read sore shoulder) into throwing every UNIX
permission switch in the book. Btw, it an HP environment but this solution
could apply to any *NIX setup.

The error was actually occuring in the graphics library JFreeChart. When the
developer logged into the workstation physically at the console and then
started Tomcat the graphics libraries in JFreeChart were able to draw to
X11. There was a 'head'. But remote users like root or tomcat_user were
'headless'. Hence the graphics methods failed because they were unable to
draw to a 'window'.

The solution is to install PJA libraries from http://www.eteks.com/pja/en/
which remedy the need to draw to a window. Note, this issue is resolved by
installing JDK 1.4 too but this was not an option. The situation is possibly
better explained by this para from the PJA site;

When no X11 Display is available on a UNIX machine (also called headless
environment) or when GDI resources are low on Windows, it is impossible to
compute off-screen images with java.awt.Graphics methods under a JDK version
 1.4, even if your program doesn't need to display these images. Typically,
this situation happens for servlets returning dynamically generated images
like pies, charts or web counters.
With PJA, you don't need to change your Java programs that you expected to
run : setting java.awt system property to com.eteks.awt.PJAToolkit is the
only required modification to your program with Java 1.1 (see PJA FAQ and
com.eteks.awt.PJAToolkit class documentation for more information).

Regards,
Earle

-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 3:48 PM
To: Tomcat Users List
Subject: Re: UNIX+Apache+Tomcat Situtation


This really sounds like it is a unix permissions issue, but it could be 
a Security issue with java as well. I don't know as much about the java 
Security model, but I can tell you things to check for with unix 
permissions:

So if 'developer' is the owner of the tomcat directory, and your webapps 
and all files that are trying to be written are under that directory, it 
sounds like it works fine for you when 'developer' starts tomcat- so 
tomcat is run as the developer user, and since developer has rights to 
create files under that directory, it works fine.
On the other hand your tomcat user doesn't sound like it has rights.

I would suggest that you always run tomcat as the tomcat user, and make 
developer and root start it as the tomcat user.
That can be easily done with a startup script instead of calling 
$TOMCAT_HOME/bin/startup.sh directly or whatever it is.
I would make sure that the directories all have the tomcat user as the 
owner and group, and then add root and developer to that group.

What Unix is this? Linux? Solaris?
Here is the format to make tomcat run as the tomcat user with a 
/etc/rc.d/tomcat

I also have catalina.out automatically rotated every time I start tomcat.

#!/bin/sh
 ##

# Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 84 84
# description: A very fast and reliable J2EE Servlet Container.


timestamp=`date +%Y-%m-%d-%H%M%S`
echo timestamp= $timestamp

LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL
echo LD_ASSUME_KERNEL= $LD_ASSUME_KERNEL

JAVA_HOME=/usr/local/java
export JAVA_HOME
echo JAVA_HOME= $JAVA_HOME

CLASSPATH=/usr/local/java/jre/lib/core.jar:/usr/local/java/jre/lib/server.ja
r
export CLASSPATH
echo CLASSPATH= $CLASSPATH

TOMCAT_HOME=/usr/local/jakarta-tomcat
export TOMCAT_HOME
echo TOMCAT_HOME= $TOMCAT_HOME

#CATALINA_OPTS=-Xms196m -Xmx896m -Dbuild.compiler.emacs=true
#export CATALINA_OPTS
#echo CATALINA_OPTS= $CATALINA_OPTS

 case $1 in
 'start')
 su tomcat4 -c mv $TOMCAT_HOME/logs/catalina.out 
$TOMCAT_HOME/logs/catalina.$timestamp
 su tomcat4 -c $TOMCAT_HOME/bin/startup.sh
 sleep 10
 /usr/sbin/apachectl graceful
 ;;
 'stop')
 su tomcat4 -c $TOMCAT_HOME/bin/shutdown.sh
 ;;
 'status')
 ps auxw | fgrep tomcat | fgrep -v status | fgrep -v grep | fgrep -v 
tail
 ;;
 *)
 echo usage: $0 {start|stop|status}
 ;;
 esac
# END OF /etc/rc.d/tomcat

Daniel


[EMAIL PROTECTED] wrote:

Hello,
I have a situation where if a developer owns Tomcat 3 and stops/starts
server the apps on that server all j2ee web-apps run fine. If I as root or
'tomcat_user' or su to developer id stop/start Tomcat 3 then all j2ee
web-apps run except modules that produce .jpegs dynamically. In the latter
case Tomcat was setup so that the user who stop/started Tomcat owned all
file/directories.

My first response was to make all files/directories world
read,write,execute. It must be a UNIX permission thing right. Also I
umask'd
and source'd the UNIX personal env of each user to be world
read,write,execute on any 

RE: [SOLVEDRE] : UNIX+Apache+Tomcat Situtation

2003-10-22 Thread Shapira, Yoav

Howdy,
Just out of curiosity, why couldn't you move to JDK 1.4 (so you could
add
-Djava.awt.headless=true)?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 3:29 PM
To: [EMAIL PROTECTED]
Subject: [SOLVEDRE] : UNIX+Apache+Tomcat Situtation

Daniel,
Thank you for your excellent response. :) By the time I got it though I
was
pretty much resolved to the idea that it was not a UNIX permission
issue at
all. As I had many hours(read sore shoulder) into throwing every UNIX
permission switch in the book. Btw, it an HP environment but this
solution
could apply to any *NIX setup.

The error was actually occuring in the graphics library JFreeChart.
When
the
developer logged into the workstation physically at the console and
then
started Tomcat the graphics libraries in JFreeChart were able to draw
to
X11. There was a 'head'. But remote users like root or tomcat_user were
'headless'. Hence the graphics methods failed because they were unable
to
draw to a 'window'.

The solution is to install PJA libraries from
http://www.eteks.com/pja/en/
which remedy the need to draw to a window. Note, this issue is resolved
by
installing JDK 1.4 too but this was not an option. The situation is
possibly
better explained by this para from the PJA site;

When no X11 Display is available on a UNIX machine (also called
headless
environment) or when GDI resources are low on Windows, it is impossible
to
compute off-screen images with java.awt.Graphics methods under a JDK
version
 1.4, even if your program doesn't need to display these images.
Typically,
this situation happens for servlets returning dynamically generated
images
like pies, charts or web counters.
With PJA, you don't need to change your Java programs that you expected
to
run : setting java.awt system property to com.eteks.awt.PJAToolkit is
the
only required modification to your program with Java 1.1 (see PJA FAQ
and
com.eteks.awt.PJAToolkit class documentation for more information).

Regards,
Earle

-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 3:48 PM
To: Tomcat Users List
Subject: Re: UNIX+Apache+Tomcat Situtation


This really sounds like it is a unix permissions issue, but it could be
a Security issue with java as well. I don't know as much about the java
Security model, but I can tell you things to check for with unix
permissions:

So if 'developer' is the owner of the tomcat directory, and your
webapps
and all files that are trying to be written are under that directory,
it
sounds like it works fine for you when 'developer' starts tomcat- so
tomcat is run as the developer user, and since developer has rights to
create files under that directory, it works fine.
On the other hand your tomcat user doesn't sound like it has rights.

I would suggest that you always run tomcat as the tomcat user, and make
developer and root start it as the tomcat user.
That can be easily done with a startup script instead of calling
$TOMCAT_HOME/bin/startup.sh directly or whatever it is.
I would make sure that the directories all have the tomcat user as the
owner and group, and then add root and developer to that group.

What Unix is this? Linux? Solaris?
Here is the format to make tomcat run as the tomcat user with a
/etc/rc.d/tomcat

I also have catalina.out automatically rotated every time I start
tomcat.

#!/bin/sh
 ##

# Comments to support chkconfig on RedHat Linux
# chkconfig: 2345 84 84
# description: A very fast and reliable J2EE Servlet Container.


timestamp=`date +%Y-%m-%d-%H%M%S`
echo timestamp= $timestamp

LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL
echo LD_ASSUME_KERNEL= $LD_ASSUME_KERNEL

JAVA_HOME=/usr/local/java
export JAVA_HOME
echo JAVA_HOME= $JAVA_HOME

CLASSPATH=/usr/local/java/jre/lib/core.jar:/usr/local/java/jre/lib/serv
er.j
a
r
export CLASSPATH
echo CLASSPATH= $CLASSPATH

TOMCAT_HOME=/usr/local/jakarta-tomcat
export TOMCAT_HOME
echo TOMCAT_HOME= $TOMCAT_HOME

#CATALINA_OPTS=-Xms196m -Xmx896m -Dbuild.compiler.emacs=true
#export CATALINA_OPTS
#echo CATALINA_OPTS= $CATALINA_OPTS

 case $1 in
 'start')
 su tomcat4 -c mv $TOMCAT_HOME/logs/catalina.out
$TOMCAT_HOME/logs/catalina.$timestamp
 su tomcat4 -c $TOMCAT_HOME/bin/startup.sh
 sleep 10
 /usr/sbin/apachectl graceful
 ;;
 'stop')
 su tomcat4 -c $TOMCAT_HOME/bin/shutdown.sh
 ;;
 'status')
 ps auxw | fgrep tomcat | fgrep -v status | fgrep -v grep | fgrep
-v
tail
 ;;
 *)
 echo usage: $0 {start|stop|status}
 ;;
 esac
# END OF /etc/rc.d/tomcat

Daniel


[EMAIL PROTECTED] wrote:

Hello,
I have a situation where if a developer owns Tomcat 3 and stops/starts
server the apps on that server all j2ee web-apps run fine. If I as
root or
'tomcat_user' or su to developer id stop/start Tomcat 3 then all j2ee
web-apps run except modules that produce .jpegs 

RE: JDBC Connection question

2003-10-22 Thread Wade Chandler
Oracle 9iAS Supports DataSources with pooling as well.

Wade

-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2003 2:25 PM
To: Tomcat Users List
Subject: Re: JDBC Connection question


Which server do you use?  Weblogic, Websphere, ...
support connection pooling.
--- Carlos Pereira [EMAIL PROTECTED] wrote:
  You can only run one transaction per connection.
  Also, your DBMS may support a limited number of
 threads per connection.
 (Wade Chandler)
 Ok. So, using one connection for the whole
 application is out of question. My other
 alternatives are connection pooling and using one
 connection per user.
 
 The server is supposed to have between 300/1000
 people online at a time. I'm sure my question is
 very basic, but i want to know: what does it mean to
 have 1000 concurrent connections to the database
 (lets forget the dbms connection limit, just
 performance)?
 
  Please use a connection pool.  For Instruction:
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html
  and

http://www.mysql.com/articles/connection_pooling_with_connectorj.html
 (Caroline Jen)
 I read it all. Connection pooling looks like the
 solution for all my problems. But, i had to
 configure server.xml to put it working. What about
 when i have to deploy the application? And if the
 server is NOT Tomcat, will it support connection
 pooling?
 
 Best regards,
 Carlos Pereira
 

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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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




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



Re: [Off Topic] Ant OS conditionals

2003-10-22 Thread Mark W. Webb
Mark W. Webb wrote:

I have to compile some JNI stuff for tomcat, and the gcc compile is 
different for linux and solaris.  Is there a way I can set this up in 
ant?

thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
figured it outthanks.

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


[OT] log4j to file or db -- which will be faster

2003-10-22 Thread Prabhat Kumar (IT)

I know that this is too generic a question, but we have a requirement to log 
informational messages in our application about why certain actions were performed or 
not. We are considering using either a FileAppender or a JDBCAppender. Which one do 
you think will be a faster operation under load? I guess one way to find out would be 
to actually try it out, but was wondering if you guys had thoughts about it.

Thanks,

Prabhat.


RE: [OT] log4j to file or db -- which will be faster

2003-10-22 Thread Shapira, Yoav

Howdy,
I'd prefer the file usually, to avoid any transactional and
translational overhead associated with SQL calls.  Of course, the best
thing to do is for you to try it out and convince yourself.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:09 PM
To: [EMAIL PROTECTED]
Subject: [OT] log4j to file or db -- which will be faster


I know that this is too generic a question, but we have a requirement
to
log informational messages in our application about why certain actions
were performed or not. We are considering using either a FileAppender
or a
JDBCAppender. Which one do you think will be a faster operation under
load?
I guess one way to find out would be to actually try it out, but was
wondering if you guys had thoughts about it.

Thanks,

Prabhat.



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: [OT] log4j to file or db -- which will be faster

2003-10-22 Thread Prabhat Kumar (IT)
thanks,

would simple time calculations using Sytem.currentTimeMills() be a reliable way to 
calculate durations?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:23 PM
To: Tomcat Users List
Subject: RE: [OT] log4j to file or db -- which will be faster



Howdy,
I'd prefer the file usually, to avoid any transactional and
translational overhead associated with SQL calls.  Of course, the best
thing to do is for you to try it out and convince yourself.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Prabhat Kumar (IT) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 4:09 PM
To: [EMAIL PROTECTED]
Subject: [OT] log4j to file or db -- which will be faster


I know that this is too generic a question, but we have a requirement
to
log informational messages in our application about why certain actions
were performed or not. We are considering using either a FileAppender
or a
JDBCAppender. Which one do you think will be a faster operation under
load?
I guess one way to find out would be to actually try it out, but was
wondering if you guys had thoughts about it.

Thanks,

Prabhat.



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: does tomcat work without apache? ... a real beginner asks some basic!?

2003-10-22 Thread [EMAIL PROTECTED]
hello shapira - and greetings and thank to ann -,

thank you for your time spent on my problem.

here are more details:

1. the long line in server.xml, where i declared the context for sygenews:
Context className=org.apache.catalina.core.StandardContext 
cachingAllowed=true
   charsetMapperClass=org.apache.catalina.util.CharsetMapper 
cookies=true
   crossContext=true debug=0
   docBase=C:\Programme\Apache Group\Tomcat 4.1\webapps\sygenews   
   mapperClass=org.apache.catalina.core.StandardContextMapper
   path=/sygenews privileged=false reloadable=true 
swallowOutput=false
   useNaming=true 
wrapperClass=org.apache.catalina.core.StandardWrapper
/Context
the directory-name is sygenews, the war-file-name is sygenews.war, and i 
want it to place beneath webapps-dir in tomcat.

as i told you: with localhost:8080/sygenews the index.jsp was found, 
but: my /formates.css - link didn't work - wrong font appeared.
why could this be?

and the next problem (as you thought): the link 
/servlet/sygenews.index (/WEB-INF/classes/sygenews/index.class) was 
not found - it showed: localhost:8080/servlet/sygenews.index not available.

in netbeans i have a project: sygenews, there are the files in normal 
order: /*.jsp, /WEB-INF/classes/*.java, *.class. i right-clicked on 
document-root and chose: make war-file (or similar); the war-file was made.
in tomcat i installed it in the manager-mask (upload a war-file to 
install - out of my project-dir).
it installed ok, i clicked the new link and there it was... (as i 
described above).

in netbeans it worked - i copied already the server.xml-file from 
netbeans to tomcat, but the result was the same.

now to the path-question:
i coded every link as / i want to be sure, that the searching 
should begin on top to find everything (out of sub-dirs). is this so 
wrong? isn't it un-sure where i will go, if i write ../...?
and - sorry for repeating - in nb it works.

must i declare a special connector?
what is the right mapping of servlets in my web.xml? is this one ok:
...
servlet-classsygenews.news/servlet-class
...
url-pattern/servlet/sygenews.news/url-pattern
so did i in my project-web.xml (but somehow blind, by hand...).

bye
hans
Shapira, Yoav schrieb:

Howdy,

 

i downloaded the lastes tomcat-version (for windows xp!), installed it
right as the installer did. called once localhost and i got the
greeting-screen from tomcat (meant: installation was ok!).
   

Good.

 

but then the problems began. how to get my  site into tomcat. all the
ways i tried failed. there was always the same problem: the
/mywar/index.jsp was found, but the other files weren't: instead of
/mywar/anydir/anyjsp.jsp it looked for in /anyjst.jsp!! so with
the servlets: i coded /mywar/servlet/anyservlet and it looked for
/servlet/anyservlet.
   

If you have a war file, simply copy it into tomcat's webapps directory.
Links in your servlets, JSPs, HTML pages should be appropriately
relative. Give us an example of a link that doesn't work: I bet it's a
link to /servlet/myservlet as opposed to /mywar/servlet/myservlet or
better yet ../servlet/myservlet.
You should map all your servlets in web.xml.

 

questions: can i use tomcat just right out of the box or is this a
   

fas
 

too privimitive way to use this heavy program?
   

Yes, you can use it right out of the box: it's designed for that.

 

must i install apache as well or is tomcat sufficient?
   

You don't need Apache at this point: tomcat by itself is fine.

 

where should i look for a solution for my (for me: heavy) problem??
   

This is the place.

Yoav Shapira



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]
 



How to control text in error description in browser?

2003-10-22 Thread Alexandr Molochnikov
Hello,

Under certain conditions my servlet must send an error response to the
browser. I do this by sending ((HttpServletResponse) res).setError(503,
You goofed). When this message is displayed in the browser, this is
what gets shown:

In large font on the top of the browser page, the text appears: HTTP
Status 503 - You goofed.
Below it, in smaller font, the following is displayed:

Type Status report
Message You goofed
Description The requested service (You goofed) is not currently
available.

Apache Tomcat/4.1.27

As you can see, the description field is not very meaningful. I could
not find a method in HttpServletResponse that controls the description.

Does anyone know if (and how) the browser content can be controlled from
the servlet?

Thanks for any help.

Alex Molochnikov
Gestalt Corporation
www.gestalt.com

PS: No, I don't really say You goofed in the message text - it just
saves me typing :-)

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



IIS and Tomcat - can I proxy all requests to a specific app

2003-10-22 Thread Matt Raible
I've integrated Apache with Tomcat on numerous occasions, but never on IIS.
We have the following scenario:

1.  We want to have a domain name - i.e. www.myresort.com - that is serviced
by IIS.
2. We want to map any requests to www.myresort.com to Tomcat's /myresort
application.

Is this possible? I know it is with Apache, but I'm not sure about IIS. From
what I've seen from the documentation, IIS has to have some sort of
indicator, i.e. /jk/*

Thanks,

Matt


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



SESSIONS.ser - how do I get rid of it on OS X?

2003-10-22 Thread Matt Raible
I am running Tomcat 4.1.27 on OS X.  I haven't had SESSIONS.ser show up in a
while on my Windows and Linux boxes and (to my knowledge), I've set them up
the same ways as I have on Windows.  So my question is - how do I turn off
this session persistence on OS X.  Do I have to add custom stuff in
server.xml?  You'd think session persistence would be off by default and
you'd need to turn it on??

Thanks,

Matt


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



tomcat 3.1.3 - how to define java params?

2003-10-22 Thread Volker
Hi,

concerning tomcat 4.1 one can define JAVA_OPTS in order to pass
parameters like -green etc. to the jvm.
In tomcat 3.3.1 JAVA_OPTS obviously is not considered and cannot be
replaced with $TOMCAT_OPTS.

Can anyone please tell me if there is any possibility to define the java
parameters tomcat should be started with?

BTW: Is it correct that worker.inprocess.jvm_lib etc. only have to be
defined in case of using jni (which means that I need Apache 2.0)?


Thanks and regards
Volker




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



RE: tomcat 3.1.3 - how to define java params?

2003-10-22 Thread Larry Isaacs
In Tomcat 4.1.x, both CATALINA_OPTS and JAVA_OPTS do the same thing.
Settings placed in one would work the same if placed in the other.
Having the two allows you to be a little more organized by letting
you separate settings intended for the JVM from settings intended for
for the server.

In Tomcat 3.3.x, you only have TOMCAT_OPTS, but it does the same
thing as both of those above.

Cheers,
Larry

 -Original Message-
 From: Volker [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 5:50 PM
 To: [EMAIL PROTECTED]
 Subject: tomcat 3.1.3 - how to define java params?
 
 
 Hi,
 
 concerning tomcat 4.1 one can define JAVA_OPTS in order to pass
 parameters like -green etc. to the jvm.
 In tomcat 3.3.1 JAVA_OPTS obviously is not considered and cannot be
 replaced with $TOMCAT_OPTS.
 
 Can anyone please tell me if there is any possibility to 
 define the java
 parameters tomcat should be started with?
 
 BTW: Is it correct that worker.inprocess.jvm_lib etc. only have to be
 defined in case of using jni (which means that I need Apache 2.0)?
 
 
 Thanks and regards
 Volker
 
 
 
 
 -
 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]



jk or jk2 with Tomcat 4.1.27 : Does it Matter ?

2003-10-22 Thread Matthew Hall-Smith
We've been having some intermittent input stream reading problems with jk2
on Tomcat 4.1.27 with IIS5 and 5.1.

isapi_redirector2 seems to experience a timing or buffering problem with
large file uploads which manifest as corrupted servlet input stream.

We have since retreated back to isapi_redirector v1.0 (which we used happily
on Tomcat 4.0.x) and the problem has gone away.

My question : should we hang in with jk2 and hack a work around in an
attempt to solve timing issues or is it OK to be running isapi_redirector v1
with Tomcat 4.1.27

Matt Hall-Smith


Pauaware Information Architects


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



Tomcat mysteriously stops responding...

2003-10-22 Thread Sonny Sukumar

Hey guys,

I've had the persistent problem with Tomcat (using
Cocoon) over some months now where when I go to bed at
night my Tomcat/Cocoon server is functioning just fine
and I can access all web pages, both static and
dynamically generated (from a backend db).

But when I wake up and try to access the pages the
connection just times out and I get a totally blank
response.  This doesn't happen every single day, but
often enough to be annoying.  We're soon going live
with the site, so this happening **at all** is a scary
thought.  I can't seem to figure out what the problem
could be.  

I'm fairly sure it's Tomcat because restarting Tomcat
almost always solves the problem.  I've had this
problem through all my Tomcat upgrades (4.1.12 all the
way to 4.1.27 now) and my Cocoon upgrades (from 2.0.x
all the way until latest 2.1.2).

Has anybody else experienced this?  Any idea what it
could be?

Thanks!

Sonny 

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [OT] log4j to file or db -- which will be faster

2003-10-22 Thread Tim Funk
A file will be faster unless your file system is really crappy or you are 
writing to a nfs mounted or other remote filesystem. (Even then it will still 
probably faster).

IIRC, there is an ASyncronous appender which is a layer between your logging 
code and the real logger. What it does is queue up all writes so your 
application code can execute as quickly as possible. But it can only be 
configured via an XML file, not via properties files.

-Tim

Prabhat Kumar (IT) wrote:
I know that this is too generic a question, but we have a requirement to log informational messages in our application about why certain actions were performed or not. We are considering using either a FileAppender or a JDBCAppender. Which one do you think will be a faster operation under load? I guess one way to find out would be to actually try it out, but was wondering if you guys had thoughts about it.

Thanks,

Prabhat.



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


Re: How to control text in error description in browser?

2003-10-22 Thread Tim Funk
You can Use the error-page directive in web.xml

-Tim

Alexandr Molochnikov wrote:

Hello,

Under certain conditions my servlet must send an error response to the
browser. I do this by sending ((HttpServletResponse) res).setError(503,
You goofed). When this message is displayed in the browser, this is
what gets shown:
In large font on the top of the browser page, the text appears: HTTP
Status 503 - You goofed.
Below it, in smaller font, the following is displayed:
Type Status report
Message You goofed
Description The requested service (You goofed) is not currently
available.
Apache Tomcat/4.1.27

As you can see, the description field is not very meaningful. I could
not find a method in HttpServletResponse that controls the description.
Does anyone know if (and how) the browser content can be controlled from
the servlet?
Thanks for any help.

Alex Molochnikov
Gestalt Corporation
www.gestalt.com
PS: No, I don't really say You goofed in the message text - it just
saves me typing :-)
-
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]


Meaning of tomcat 3.3.1 output

2003-10-22 Thread Volker
Hi,

tomcat 3.3.1 seems to run correctly now with mod_jk on my server but I
wonder what follwing output of tomcat could mean or better speaking: is
this a message I have to pay attention to? If not: where can I supress
it?:

PoolTcpEndpoint: Endpoint
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored
exception: java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
PoolTcpEndpoint: Endpoint
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8009] ignored
exception: java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java,
Compiled Code)
at java.net.ServerSocket.implAccept(ServerSocket.java, Compiled
Code)
at java.net.ServerSocket.accept(ServerSocket.java, Compiled
Code)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java,
Compiled Code)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)

Thanks and best regards

Volker


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



Re: tomcat 3.1.3 - how to define java params?

2003-10-22 Thread Volker
Larry Isaacs schrieb:

 In Tomcat 4.1.x, both CATALINA_OPTS and JAVA_OPTS do the same thing.
 Settings placed in one would work the same if placed in the other.
 Having the two allows you to be a little more organized by letting
 you separate settings intended for the JVM from settings intended for
 for the server.

 In Tomcat 3.3.x, you only have TOMCAT_OPTS, but it does the same
 thing as both of those above.

 Cheers,
 Larry

Hi Larry,

thanks for your fast reply. Well I tried TOMCAT_OPTS but it did not work
with '-green - Xmx32m'. The JDK started in native mode.
But obviously I made something wrong and will check it out once more!


Best regards

Volker


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



RE: Tomcat mysteriously stops responding...

2003-10-22 Thread mike jackson
When this has happened to me it's usually been the database connection pool
that I'm using.  Or was using.  If it looks like you had a bunch of
connections prior to the restart and very few after then you've found your
culprit.  You database should be able to give you a connection count, but
the way to get it depends on the database so I can't help you there.

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



 -Original Message-
 From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 22, 2003 3:25 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat mysteriously stops responding...
 
 
 Hey guys,
 
 I've had the persistent problem with Tomcat (using
 Cocoon) over some months now where when I go to bed at
 night my Tomcat/Cocoon server is functioning just fine
 and I can access all web pages, both static and
 dynamically generated (from a backend db).
 
 But when I wake up and try to access the pages the
 connection just times out and I get a totally blank
 response.  This doesn't happen every single day, but
 often enough to be annoying.  We're soon going live
 with the site, so this happening **at all** is a scary
 thought.  I can't seem to figure out what the problem
 could be.
 
 I'm fairly sure it's Tomcat because restarting Tomcat
 almost always solves the problem.  I've had this
 problem through all my Tomcat upgrades (4.1.12 all the
 way to 4.1.27 now) and my Cocoon upgrades (from 2.0.x
 all the way until latest 2.1.2).
 
 Has anybody else experienced this?  Any idea what it
 could be?
 
 Thanks!
 
 Sonny
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: tomcat 3.1.3 - how to define java params?

2003-10-22 Thread mike jackson
You can also use:

THREAD_MODE=green java ..

I'm not sure 100% of the environment variable, but it's something along
those lines, look in the JVM release notes for your platform (I'm assuming
it's a Unix of some flavor, Winders would be different).

Also the - Xmx32m shouldn't have a space in it.

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



 -Original Message-
 From: Volker [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 22, 2003 3:28 PM
 To: Tomcat Users List
 Subject: Re: tomcat 3.1.3 - how to define java params?
 
 Larry Isaacs schrieb:
 
  In Tomcat 4.1.x, both CATALINA_OPTS and JAVA_OPTS do the same thing.
  Settings placed in one would work the same if placed in the other.
  Having the two allows you to be a little more organized by letting
  you separate settings intended for the JVM from settings intended for
  for the server.
 
  In Tomcat 3.3.x, you only have TOMCAT_OPTS, but it does the same
  thing as both of those above.
 
  Cheers,
  Larry
 
 Hi Larry,
 
 thanks for your fast reply. Well I tried TOMCAT_OPTS but it did not work
 with '-green - Xmx32m'. The JDK started in native mode.
 But obviously I made something wrong and will check it out once more!
 
 
 Best regards
 
 Volker
 
 
 -
 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, IIS : configuring IIS log output

2003-10-22 Thread Kent Boogaart
Hi all,

My first post here. I am trying to get IIS to output the details of requests
forwarded onto Tomcat rather than just the name of the ISAPI redirector DLL.
For example, if IIS receives a GET request http://host/folder/index.jsp; it
logs:

[date] [time] [c-ip] GET /jakarta/isapi_redirector2.dll - 200
Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)

I would prefer something like this in the log:

[date] [time] [c-ip] GET /folder/index.jsp - 200
Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)

This question has been asked before
(http://www.mail-archive.com/[EMAIL PROTECTED]/msg32127.html)
but I cannot find an answer anywhere. Can anyone point me in the right
direction?

Thanks,
Kent

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



RE: Tomcat mysteriously stops responding...

2003-10-22 Thread Sonny Sukumar

Interesting observation.  I think you might be onto
something, but let's explore it a bit further.

I'm using DBCP with a MySQL backend database.  I don't
really get why Tomcat would stop responding though
after several hours of idle time though.  You think
it's because after all those hours of idle time the #
of db connections is 0?  I thought the connection pool
could handle that and create a new connection when
needed.

I think I'm not understanding though...do enlighten
me. :-)

Thanks for your help,

Sonny

--- mike jackson [EMAIL PROTECTED] wrote:
 When this has happened to me it's usually been the
 database connection pool
 that I'm using.  Or was using.  If it looks like you
 had a bunch of
 connections prior to the restart and very few after
 then you've found your
 culprit.  You database should be able to give you a
 connection count, but
 the way to get it depends on the database so I can't
 help you there.
 
 --mikej
 -=--
 mike jackson
 [EMAIL PROTECTED]
 
 
 
  -Original Message-
  From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 22, 2003 3:25 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat mysteriously stops responding...
  
  
  Hey guys,
  
  I've had the persistent problem with Tomcat (using
  Cocoon) over some months now where when I go to
 bed at
  night my Tomcat/Cocoon server is functioning just
 fine
  and I can access all web pages, both static and
  dynamically generated (from a backend db).
  
  But when I wake up and try to access the pages the
  connection just times out and I get a totally
 blank
  response.  This doesn't happen every single day,
 but
  often enough to be annoying.  We're soon going
 live
  with the site, so this happening **at all** is a
 scary
  thought.  I can't seem to figure out what the
 problem
  could be.
  
  I'm fairly sure it's Tomcat because restarting
 Tomcat
  almost always solves the problem.  I've had this
  problem through all my Tomcat upgrades (4.1.12 all
 the
  way to 4.1.27 now) and my Cocoon upgrades (from
 2.0.x
  all the way until latest 2.1.2).
  
  Has anybody else experienced this?  Any idea what
 it
  could be?
  
  Thanks!
  
  Sonny
  
  __
  Do you Yahoo!?
  The New Yahoo! Shopping - with improved product
 search
  http://shopping.yahoo.com
  
 

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

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


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



  1   2   >