How to remove charset from tomcat response?

2005-08-30 Thread Dmitry
Hello Tomcat,

I am trying to return an XML with content-type text/xml
Without any charset specified in header.

I set [EMAIL PROTECTED] contentType=text/xml% in my jsp, expecting header
Content-Type: text/xml

But despite the page directive given I have header
Content-Type: text/xml;charset=ISO-8859-1

Is it possible to avoid charset=... clause?
Tomcat 5.5.9 on Windows.

  

-- 
Best regards,
 Dmitry  mailto:[EMAIL PROTECTED]


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



Building Mod_jk for HP-UX fails

2005-08-30 Thread Ivo Van Den Maagdenberg
Hi,

An HP-UX 11.11 build for mod_jk seems to be missing from
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/
I have attempted to compile mod_jk 1.2.14-1 myself. Apache 1.3.29 is my
target. 

After the jk/native/common directory is built, make does seems not pass
through the jk/native/apache-1.3 directory properly. I would appreciate
some help in getting make this to work.

First 25 lines of Makefile:

## configure should make the Makefile out of this file.

srcdir=.
top_srcdir=..

APXS=/usr/local/apache/bin/apxs
OS=
JAVA_HOME=
CP=/usr/bin/cp
APACHE_DIR=/usr/local/apache
MKDIR=/usr/bin/mkdir
DESTDIR=/usr/local/apache
LIBTOOL=$(SHELL) $(top_builddir)/libtool
CP=/usr/bin/cp
CC=/usr/local/bin/gcc

top_builddir=..

OEXT=.lo
libexecdir=${APACHE_DIR}/libexec
JK_DIR := ..
BUILD_DIR = ${JK_DIR}/../build/jk/apache13

APACHE_FILES = Makefile.tmpl Makefile.libdir libjk.module

Make output below:

Making all in apache-1.3
Make: line 23: syntax error.  Stop.
*** Error exit code 1




___

Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het 
Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke 
informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch 
te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder 
vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of 
te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen 
enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud 
van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk 
gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt 
als gevolg van een onnauwkeurigheid of fout in deze e-mail. --- English 
Translation: This e-mail and all attached files are official documents of 
Antwerp Port Authority and may contain confidential or personal information. If 
you have received this e-mail in error, you are asked to inform the sender by 
e-mail or telephone immediately, and to remove it from your system without 
reading or reproducing it or passing it on to other parties. Antwerp Port 
Authority is in no way responsible for any errors or inaccuracies in the 
contents of this e-mail, nor can it be held liable for any direct or indirect 
loss, damage or inconvenience arising from any such errors or inaccuracies. 
[GHA#Disclaimer]


build procedure to configure tomcat files

2005-08-30 Thread Ittay Dror

Hi,

Getting my application to run requires me to change all sorts of configuration 
files. Specifically server.xml.


In order to install on a preinstalled tomcat, I need to modify this file. In 
order to simplify this, I want to automate this (so a script will do it, rather 
than manually).


Of course I can copy the file to my cvs, modify it and then overwrite the 
original file wity my copy (by cp from the installation to tomcat directory). 
However, this means that if the origianl server.xml changes from the time I 
copied it (user changes, newer versions of tomcat), they are lost.


I was wondering how people are tackeling this. For me, the best thing would be 
to have a CLI tool where I can tell it to modify the XML by adding nodes inside 
existing ones (e.g., 'xml_modify add -n Server.GlobalNamingResources -f 
resource.xml'. where resouce.xml has a definition of a Resource). I can use 
'patch' of course, but it looks to me it will break easily, and will be tricky 
to maintain (grab a server.xml, modify, diff, put the result as server.xml.patch)


Thanx,
Ittay

--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



RE: build procedure to configure tomcat files

2005-08-30 Thread Guy Katz
for your base server.xml configuration i would suggest using CVS.
it further customizations are needed (for example per client) you can write a 
command line wrapper over tomcat mbeans, or direct XML manipulation, or use 
third party install tools which usually have built-in support for the 
modification of XML files as a part of the build process. 

-Original Message-
From: Ittay Dror [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 30, 2005 10:34 AM
To: Tomcat Users List
Subject: build procedure to configure tomcat files


Hi,

Getting my application to run requires me to change all sorts of configuration 
files. Specifically server.xml.

In order to install on a preinstalled tomcat, I need to modify this file. In 
order to simplify this, I want to automate this (so a script will do it, rather 
than manually).

Of course I can copy the file to my cvs, modify it and then overwrite the 
original file wity my copy (by cp from the installation to tomcat directory). 
However, this means that if the origianl server.xml changes from the time I 
copied it (user changes, newer versions of tomcat), they are lost.

I was wondering how people are tackeling this. For me, the best thing would be 
to have a CLI tool where I can tell it to modify the XML by adding nodes inside 
existing ones (e.g., 'xml_modify add -n Server.GlobalNamingResources -f 
resource.xml'. where resouce.xml has a definition of a Resource). I can use 
'patch' of course, but it looks to me it will break easily, and will be tricky 
to maintain (grab a server.xml, modify, diff, put the result as 
server.xml.patch)

Thanx,
Ittay

-- 
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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


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



Error starting modern compiler, (Unknown Source) errors

2005-08-30 Thread rueh hänä
Hi folks!

My Tomcat server seems to be working. I can access the websites without any
problems. But i have suspicious entries the logs for each jsp site. 
I think, there is one problem, on which the remaining problems depend, but i
dont know it really. What could be the reason of this problem?
I doublechecked the permissions, they are ok.

I run  tomcat5-5.0.30-5jpp_6fc and apache 2.0.54 on a Fedora Core 4 Server.
They work together. 

Here is the log entry. it doesnt say much to me:

2005-08-29 13:30:44 ApplicationDispatcher[] Servlet.service() for servlet
jsp threw exception
Error starting modern compiler
   at org.apache.tools.ant.taskdefs.compilers.Javac13.execute() (Unknown
Source)
   at org.apache.tools.ant.taskdefs.Javac.compile() (Unknown Source)
   at org.apache.tools.ant.taskdefs.Javac.execute() (Unknown Source)
   at org.apache.jasper.compiler.Compiler.generateClass(java.lang.String[])
(Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean, boolean) (Unknown
Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean) (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile() (Unknown Source)
   at org.apache.jasper.JspCompilationContext.compile() (Unknown Source)
   at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
   at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationDispatcher.doInclude(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationDispatcher.include(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.jasper.runtime.JspRuntimeLibrary.include(javax.servlet.ServletRequest,
javax.servlet.ServletResponse, java.lang.String,
javax.servlet.jsp.JspWriter, boolean) (Unknown Source)
   at org.apache.jasper.runtime.PageContextImpl.include(java.lang.String)
(Unknown Source)
   at ch.ten.taglibs.site.PageTag.getPageInfo(java.lang.String,
java.io.File) (Unknown Source)
   at ch.ten.taglibs.site.PageTag.generateTreeByPath(java.lang.String,
java.io.File) (Unknown Source)
   at ch.ten.taglibs.site.PageTag.generateTreeByPath(java.lang.String,
java.io.File) (Unknown Source)
   at ch.ten.taglibs.site.PageTag.doStartTag() (Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
(/usr/lib/libgcj.so.6.0.0)
   at org.apache.tools.ant.taskdefs.compilers.Javac13.execute() (Unknown
Source)
   at org.apache.tools.ant.taskdefs.Javac.compile() (Unknown Source)
   at org.apache.tools.ant.taskdefs.Javac.execute() (Unknown Source)
   at org.apache.jasper.compiler.Compiler.generateClass(java.lang.String[])
(Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean, boolean) (Unknown
Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean) (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile() (Unknown Source)
   at org.apache.jasper.JspCompilationContext.compile() (Unknown Source)
   at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (Unknown Source)
   at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
   at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at

problems setting up jaas

2005-08-30 Thread Ittay Dror
I'm using Tomcat 5.5 and want to setup JAAS based authentication. I'm using 
jbosssx for the LoginModule implementations.


The jboss implementation is activated when I try to login, but throws a 
NameNotFoundException:
javax.security.auth.login.LoginException: javax.naming.NameNotFoundException: 
Name QrmDS is not bound in this Context


Thanx for your help,
Ittay

my server.xml is:

GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

 Resource name=QrmDS auth=Container type=javax.sql.DataSource
   maxActive=30 maxIdle=5 maxWait=15
   username=qrm password=qrm_99 
driverClassName=com.mysql.jdbc.Driver

   url=jdbc:mysql://localhost:3306/qrm
zeroDateTimeBehavior=convertToNull useServerPrepStmts=false
autoReconnect=true failOverReadOnly=false
/


  /GlobalNamingResources

 !-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

Realm className=org.apache.catalina.realm.JAASRealm debug=99
   appName=qrm
userClassNames=org.jboss.security.SimplePrincipal
roleClassNames=org.jboss.security.SimpleGroup
/


and this is my jaas.config:
qrm
{
org.jboss.security.auth.spi.DatabaseServerLoginModule required 
debug=true
dsJndiName=java:/QrmDS
principalsQuery=select user_password from qrm_users where user_name=?
rolesQuery=select qrm_roles.role_name, 'Roles' from 
qrm_users,qrm_roles,qrm_users_roles where user_name=? and qrm_users.id = 
qrm_users_roles.user_id and qrm_roles.id = qrm_users_roles.role_id

unauthenticatedIdentity=guest;
};

client-login {
org.jboss.security.ClientLoginModule required;
};

--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



can i use javax.management.timer.Timer?

2005-08-30 Thread Ittay Dror

Hi,

If javax.management.timer.Timer can be used inside tomcat, can you please give 
an example of how?


Thanx,
Ittay

--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



RE: can i use javax.management.timer.Timer?

2005-08-30 Thread Guy Katz
yes you can use it.
its plain JMX so check out how to use it regardless of tomcat (standalone mode) 
and do the same thing in tomcat but by using tomcat's mbean server.


-Original Message-
From: Ittay Dror [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 30, 2005 2:00 PM
To: Tomcat Users List
Subject: can i use javax.management.timer.Timer?


Hi,

If javax.management.timer.Timer can be used inside tomcat, can you please give 
an example of how?

Thanx,
Ittay

-- 
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



can't set up log4j in my webapp

2005-08-30 Thread Ittay Dror

Hi,

I've added log4j.properties in webapps/ROOT/WEB-INF/classes, but the thing is 
that when log4j initializes it looks for log4j.xml which it finds in some jar 
that is under webapps/ROOT/WEB-INF/lib (jxp).


I can set the log4j.configuration system property when launching Tomcat, but 
this will override Tomcat's log4j.properties. I know I can use a global 
log4j.properties file, but I'd like to avoid that (I want everything to be self 
contained as much as possible)


Thank you for your help,
Ittay

--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Tomcat5 and apache2 dont want to cooperate please help!!

2005-08-30 Thread yel
Dear list subscriber,
im now working on this since two weeks and i just can progress with it so i 
really need some urgent help on this issue
what i intent to do is to use tomcate behinde apache as a servlet container and 
i tried many howto out there on the web but none of them was  the right one for 
me :s
so i appologize for your help:
here is information about my System , Configs  and Logs tahnks in advance:

Yel

My System :
/usr/share/tomcat/conf # uname -a
Linux suseleo 2.6.11.4-21.2-default #1 Thu Apr 21 09:37:56 UTC 2005 i686 i686 
i386 GNU/Linux
Suse 9.1

JRE:
/usr/share/tomcat/conf # java -version
java version 1.4.2_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

SDK:
JAVA_HOME:   /opt/IBMJava2-142

Packages I'am using:
JK connector: apache2-jakarta-tomcat-connectors-5.0.19-13.i586.rpm
Tomcat Servlets Container: jakarta-tomcat-5.0.19-13.i586.rpm

My Configs:

Workers.properties:
---
workers.CATALINA_HOME=/usr/share/tomcat
workers.java_home=$(JAVA_HOME)
ps=/
worker.list=dom4
worker.dom4.type=ajp13
worker.dom4.host=localhost
worker.dom4.port=8009
worker.dom4.lbfactor=50
worker.dom4.cachesize=10
worker.dom4.cache_timeout=600
worker.dom4.socket_keepalive=1
worker.dom4.reclycle_timeout=300


Jk2.properties:

is empty i did uncomment nothing :
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config  is working
# shm.file=${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:

# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
---

My mod_jk.conf (which i include in Apache2:
-
# Load mod_jk module

# Update this path to match your modules location
LoadModulejk_module  /usr/lib/apache2/mod_jk.so

# Declare the module for IfModule directive (remove this line on Apache 2.x)
##apache2   AddModule mod_jk.c
# Where to find workers.properties

# Update this path to match your conf directory location (put 
workers.properties next to httpd.conf)
JkWorkersFile /usr/share/tomcat/conf/workers.properties

# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next 
to access_log)
JkLogFile /usr/share/tomcat/logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLeveldebug

# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T

# Send everything for context /examples to worker named worker1 (ajp13)
 JkMount  /examples/* dom4
-

My Server.xml: (only list uncommented lines)
--
Server port=8005 shutdown=SHUTDOWN debug=0

Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

!-- Global JNDI resources --
  GlobalNamingResources

 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer value=30/

 !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams
/GlobalNamingResources

Service name=Catalina

!-- Define 

RE: can i use javax.management.timer.Timer?

2005-08-30 Thread Mark Benussi
Am I allowed to ask what it is and how it differs from java.util.Timer? Just
like to educate myself from time to time...

-Original Message-
From: Guy Katz [mailto:[EMAIL PROTECTED] 
Sent: 30 August 2005 12:12
To: Tomcat Users List
Subject: RE: can i use javax.management.timer.Timer?

yes you can use it.
its plain JMX so check out how to use it regardless of tomcat (standalone
mode) and do the same thing in tomcat but by using tomcat's mbean server.


-Original Message-
From: Ittay Dror [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 30, 2005 2:00 PM
To: Tomcat Users List
Subject: can i use javax.management.timer.Timer?


Hi,

If javax.management.timer.Timer can be used inside tomcat, can you please
give 
an example of how?

Thanx,
Ittay

-- 
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Java Server Faces

2005-08-30 Thread Sue Roe
I don't know if this is the correct User Group.

Has anyone done any development with Java Server Faces to create richer UI
experiences? Is it any good?

TIA
Sue



***Disclaimer***

The contents of this Email may be privileged and are confidential. If you are 
not the intended recipient, any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its 
subsidiaries are unable to guarantee the security of Email content outside of 
our own computer systems.

This footnote also confirms that this Email message has been checked by 
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus 
software, you are solely responsible for ensuring that any Email or attachment 
you receive is virus free. We disclaim any liability for any damage you suffer 
as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW


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



RE: Java Server Faces (UNCLASSIFIED)

2005-08-30 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

Sue,

You might want to try this users group[EMAIL PROTECTED]
Personally, I haven't done much with JSFs but certainly it is worth looking
into.

Fadi 

-Original Message-
From: Sue Roe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 30, 2005 9:06 AM
To: 'Tomcat Users List'
Subject: Java Server Faces

I don't know if this is the correct User Group.

Has anyone done any development with Java Server Faces to create richer UI
experiences? Is it any good?

TIA
Sue




***Disclaimer***

The contents of this Email may be privileged and are confidential. If you
are not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited and may
be unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its
subsidiaries are unable to guarantee the security of Email content outside
of our own computer systems.

This footnote also confirms that this Email message has been checked by
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus
software, you are solely responsible for ensuring that any Email or
attachment you receive is virus free. We disclaim any liability for any
damage you suffer as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Classification:  UNCLASSIFIED 
Caveats: NONE


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



Re: Java Server Faces

2005-08-30 Thread Wendy Smoak

From: Sue Roe [EMAIL PROTECTED]


I don't know if this is the correct User Group.

Has anyone done any development with Java Server Faces to create richer UI
experiences? Is it any good?


Try the Apache MyFaces user list - MyFaces is an implementation of the JSF 
specification and there's an active community developing and using it: 
http://myfaces.apache.org/mailinglists.html


--
Wendy Smoak 




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



Re: Java Server Faces

2005-08-30 Thread Joe Plautz
Where I work we've been using JSF for a large project and it has been 
working well. Although, it can be a bit heavy on the session usage.


The official Sun group can be found here.

http://forum.java.sun.com/forum.jspa?forumID=427

Most of the reference implementation developers answer questions there 
and are usually very quick. Plus they will try their best to answer 
questions on all implementations.


Sue Roe wrote:

I don't know if this is the correct User Group.

Has anyone done any development with Java Server Faces to create richer UI
experiences? Is it any good?

TIA
Sue



***Disclaimer***

The contents of this Email may be privileged and are confidential. If you are 
not the intended recipient, any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its 
subsidiaries are unable to guarantee the security of Email content outside of 
our own computer systems.

This footnote also confirms that this Email message has been checked by 
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus 
software, you are solely responsible for ensuring that any Email or attachment 
you receive is virus free. We disclaim any liability for any damage you suffer 
as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW


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



With tomcat 5 redirects to a secure port fails

2005-08-30 Thread Julie Moore
I have been looking al over for an explanation to what I am seeing. If I
hit my site with https I get my secure page displayed if I hit it with
http it is set up to redirect to https. The problem is the redirect is
trying to use the internal IP address in the URL
(https://10.0.0.4/login.jsp) not the URL with the www. defined. 

We had this set up in tomcat 4 and the external users who where
redirected were able to get the secure page from http://www.; but now
this does not work.

I have looked at all the Tomcat 5 SSL sites that have come up on a
number of searches but I do not see this problem addressed.

Julie

-Original Message-
From: Julie Moore [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 29, 2005 1:50 PM
To: tomcat-user@jakarta.apache.org
Subject: With tomcat 5 redirects to a secure port the connection fails

 

I have updated a site from tomcat 4 to tomcat 5 and my link that used to
redirect to a secure site now fails. I see the webpage tying to connect
with my internal IP address instead of the external URL that the request
came in one. If I connect to https://www.x.com and hit the link to the
secure page my page displays correctly. But if I hit it from
http://www.x.com http://www.x.com/  the secure page does not display.

 

The page that displays has not changed. It has a relative link to the
webapp that I want to have as secure.

 

I have the server.xml connectors defined:

 

Connector port=80 minThreads=150 maxSpareThreads=75
minSpareThreads=25

   enableLookups=true redirectPort=443

   acceptCount=100 debug=0 connectionTimeout=2

   disableUploadTimeout=true /

 

 

!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --



 

   Connector port=443 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25
maxSpareThreads=75

   enableLookups=false disableUploadTimeout=true

   acceptCount=100 scheme=https secure=true

   clientAuth=false sslProtocol=TLS
keystoreFile=c:\tomcat\conf\keystore.ks /

 

and the following in  the web.xml of my application I wish to have
available only as secure:

 

security-constraint
  web-resource-collection
 web-resource-nameEntire Application/web-resource-name
 url-pattern/*/url-pattern
  /web-resource-collection
  user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint
 
 
What have I missed?
Jmoore
 
 
 

 

 

 


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



Intel Dual Core tech with Tomcat 5.5.9 (windows JVM)

2005-08-30 Thread Acácio Furtado Costa
We intended to use the new DUAL CORE technology by Intel (and AMD with other 
name) to running WEB applications (j2ee) with Tomcat 5.5 9 in cluster.  
  
To larger trust in the solution, We go through the list to verify somebody 
already adopted this Processor type with tomcat and windows (XP or 2003)  
and to prove really the windows system (task manager)  appear multi cpu´s (dual 
core with hiper threading) and tell us something about performance and 
compatibility.  
  
Regards
 

Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A




Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-08-30 Thread Zsolt
Hi,

When I start a long running servlet I want to give the user some feedback
about the progress, thus I just print some characters to the browser from
the servlet. It works fine when I go directly tomcat but when I go through
apache and tomcat connector I see the characters in the browser only when
the servlet is ready (that might take 20-30 minutes).

Here is a part of the servlet:

...
PrintWriter out = response.getWriter();
...
out.flush();
response.flushBuffer();
...

How can I force a flush via connector?

I use jdk-1.5.0.4 under Linux with tomcat-5.0.28 and JK-1.2.14.

Zsolt


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



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

2005-08-30 Thread Longson, Robert
Check out http://www.unix.org.ua/orelly/java-ent/servlet/ch06_03.htm

Best regards

Robert

-Original Message-
From: Zsolt [mailto:[EMAIL PROTECTED]
Sent: 30 August 2005 15:46
To: Tomcat Users List
Subject: Servlet lush problems via JK-1.2.14 and TC_5.0.28


Hi,

When I start a long running servlet I want to give the user some feedback
about the progress, thus I just print some characters to the browser from
the servlet. It works fine when I go directly tomcat but when I go through
apache and tomcat connector I see the characters in the browser only when
the servlet is ready (that might take 20-30 minutes).

Here is a part of the servlet:

...
PrintWriter out = response.getWriter();
...
out.flush();
response.flushBuffer();
...

How can I force a flush via connector?

I use jdk-1.5.0.4 under Linux with tomcat-5.0.28 and JK-1.2.14.

Zsolt


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

 
The information contained in this message is intended only for the recipient, 
and may be a confidential attorney-client communication or may otherwise be 
privileged and confidential and protected from disclosure. If the reader of 
this message is not the intended recipient, or an employee or agent responsible 
for delivering this message to the intended recipient, please be aware that any 
dissemination or copying of this communication is strictly prohibited. If you 
have received this communication in error, please immediately notify us by 
replying to the message and deleting it from your computer. 

 

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



Re: Getting LOGON_USER from the header

2005-08-30 Thread Robert Jose

Thanks David, that worked perfectly.  I appreciate your help.

Rob

- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:16 PM
Subject: Re: Getting LOGON_USER from the header


By default, tomcat ignores the REMOTE_USER header from Apache or IIS in 
favor if it's own authentication.  To get tomcat to accept the IIS 
authentication info, add  this attribute to the Connector/ element in 
server.xml:


tomcatAuthentication=false

--David

Robert Jose wrote:


Thanks for the response Gurumoorthy, but I get null for a result.

Rob J.

- Original Message - From: Gurumoorthy 
[EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 2:40 PM
Subject: Re: Getting LOGON_USER from the header



request.getRemoteUser()
- Original Message - From: Robert Jose [EMAIL PROTECTED]
To: Tomcat User tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 10:44 PM
Subject: Getting LOGON_USER from the header


Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 
using the isapi redirect dll.  This seems to be working well and 
configured correctly.


Now I am trying to get the LOGON_USER from the header.  I want the 
windows id of the user that is hitting my web page.  I am developing 
an Intranet site and want to do seamless login based on who the user 
logged into their windows machine.  I know I can do this by using the 
command request.ServerVariables(LOGON_USER) in ASP.  I also was 
able to get request.getHeader(LOGON_USER) to work with IIS 5.1 and 
JRun 4 (using the dll they provide).


Does anyone know how I can get this information using Tomcat?  I 
would be greatly appreciative.


Thanks
Rob J.

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






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





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




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



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

2005-08-30 Thread Zsolt
Thank you Robert, but I have to support also IE.

zsolt

-Original Message-
From: Longson, Robert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 30, 2005 4:51 PM
To: Tomcat Users List
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

Check out http://www.unix.org.ua/orelly/java-ent/servlet/ch06_03.htm

Best regards

Robert

-Original Message-
From: Zsolt [mailto:[EMAIL PROTECTED]
Sent: 30 August 2005 15:46
To: Tomcat Users List
Subject: Servlet lush problems via JK-1.2.14 and TC_5.0.28


Hi,

When I start a long running servlet I want to give the user some feedback
about the progress, thus I just print some characters to the browser from
the servlet. It works fine when I go directly tomcat but when I go through
apache and tomcat connector I see the characters in the browser only when
the servlet is ready (that might take 20-30 minutes).

Here is a part of the servlet:

...
PrintWriter out = response.getWriter();
...
out.flush();
response.flushBuffer();
...

How can I force a flush via connector?

I use jdk-1.5.0.4 under Linux with tomcat-5.0.28 and JK-1.2.14.

Zsolt


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



The information contained in this message is intended only for the
recipient, and may be a confidential attorney-client communication or may
otherwise be privileged and confidential and protected from disclosure. If
the reader of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended recipient,
please be aware that any dissemination or copying of this communication is
strictly prohibited. If you have received this communication in error,
please immediately notify us by replying to the message and deleting it
from your computer.



-
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 5.0.28 - CPU spikes after heap memory reaches 700MB

2005-08-30 Thread Bhaskar Mulpuri
We are using tomcat 5.0.28 with apache 2.0 using the jk2 (AJP/1.3)
connector. Apache and tomcat are on different servers, Sun V120's running
Solaris 9. Tomcat server has 3 GB RAM and tomcat JVM is set to 1268Mb
(-Xms1268m -Xmx1268m). The version of mod_jk on the apache web server is
1.2.14.

Jk2 connector is configured as follows

Connector port=3060 maxThreads=200 mainSpareThreads=20
maxSpareThreads=75 enableLookups=false redirectPort=8443 debug=0
protocol=AJP/1.3 /

When the heap memory for the tomcat process reaches 700 Mb (as shown by
solaris top command), for a few requests, the CPU spikes to 90-95 %. This
initially happens for a few requests then gradually progresses to a majority
of the requests. Interestingly, while top command lists the heap usage as
700 Mb, the tomcat manager app shows the amount of free memory between
800-1100 Mb. By this, I am assuming that GC runs periodically, but may not
be releasing it to the O/S. This is the reason why Solaris top command lists
the heap usage as 700 Mb. The heap usage listed by the top command always
increases.  When the CPU spikes up, GC does not seem to be running, since
the only thread that is taking up this CPU is the one processing the request
(as noticed from the prstat -L command). The page that is being displayed is
a jsp page and the size could be around 500 K. The request involves
communication from tomcat to a java process on the same server using sockets
and XML data is transferred and copied to cells on the page. This operation
normally takes up 3-5 % of CPU.

I have noticed that the connections between apache and tomcat are around 19
when this happens. Also once created, the connections persist till tomcat is
restarted. I am not sure if this is good or bad and if this playing any
role. Normally I would think that having the connections open helps since
the sockets do not have to be opened when a request comes in. But I am also
concerned if this is taking up resources on the server.

I have taken a signal dump when the CPU spikes and it shows the 19 threads
reading from a socket and the other 9 threads in a wait condition. 

I have run this under JProbe and it shows the thread processing the request
under normal conditions. It is difficult to reproduce this since we have to
wait till the heap reaches 700 Mb and the application is a custom app
(Workplace) provided by a vendor (FileNet) and I have not been successful in
simulating this with JMeter.

Any ideas on how to find out what is happening when the CPU spikes to 90 %
and why this is happening?

Thanks,
Bhaskar Mulpuri

 



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



No Host matches server name localhost error

2005-08-30 Thread Brian Moseley


i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
of  and a default host named localhost. when i request the webapp's 
root resource (http://localhost:8080/), i get a 400 error with the 
message No Host matches server name localhost.


as you can see from my very minimal server.xml, i do in fact have a Host 
named localhost and have specified it as the default host for the 
engine. so, i must admit to being confused as to why i'm receiving that 
particular error message. :) i have turned on debug logging to verify 
that the context is being loaded, but i have yet to step through a 
request with a debugger. any ideas?


server.xml:

Server port=8005 shutdown=SHUTDOWN
  Service name=Catalina
Connector port=8080 enableLookups=false/
Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps autoDeploy=false/
/Engine
  /Service
/Server

context.xml (in conf/Catalina/localhost/):

Context path= docBase=cosmo reloadable=true
  Environment name=cosmo/version value=0.2-4
   type=java.lang.String override=false/
  Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
   type=java.lang.String override=false/
  Environment name=cosmo/repository/username
   value=cosmo_repository
   type=java.lang.String override=false/
  Environment name=cosmo/repository/password
   value=
   type=java.lang.String override=false/
  Resource name=jcr/cosmo
type=javax.jcr.Repository

factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
configFilePath=etc/repository.xml
repHomeDir=data/repository/
  Resource name=jdbc/cosmo
type=javax.sql.DataSource
maxActive=5
maxIdle=3
maxWait=1
username=sa
parameter=
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:data/db/userdb/
  Resource name=mail/cosmo
type=javax.mail.Session
mail.transport.protocol=smtp/
mail.smtp.host=localhost/
mail.smtps.host=localhost/
mail.smtp.starttls.enable=false/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs prefix=access. suffix=.log
 pattern=combined resolveHosts=false/
/Context

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



Re: No Host matches server name localhost error

2005-08-30 Thread Paul Austin
Try renaming the context.xml to ROOT.xml, I normally get the 400 error
if it can't find the context for a particular path. For some reason
Tomcat tends to ignore the path on the context.

Paul

On Tue, 2005-08-30 at 09:50 -0700, Brian Moseley wrote:

 i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
 of  and a default host named localhost. when i request the webapp's 
 root resource (http://localhost:8080/), i get a 400 error with the 
 message No Host matches server name localhost.
 
 as you can see from my very minimal server.xml, i do in fact have a Host 
 named localhost and have specified it as the default host for the 
 engine. so, i must admit to being confused as to why i'm receiving that 
 particular error message. :) i have turned on debug logging to verify 
 that the context is being loaded, but i have yet to step through a 
 request with a debugger. any ideas?
 
 server.xml:
 
 Server port=8005 shutdown=SHUTDOWN
Service name=Catalina
  Connector port=8080 enableLookups=false/
  Engine name=Catalina defaultHost=localhost
Host name=localhost appBase=webapps autoDeploy=false/
  /Engine
/Service
 /Server
 
 context.xml (in conf/Catalina/localhost/):
 
 Context path= docBase=cosmo reloadable=true
Environment name=cosmo/version value=0.2-4
 type=java.lang.String override=false/
Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
 type=java.lang.String override=false/
Environment name=cosmo/repository/username
 value=cosmo_repository
 type=java.lang.String override=false/
Environment name=cosmo/repository/password
 value=
 type=java.lang.String override=false/
Resource name=jcr/cosmo
  type=javax.jcr.Repository
  
 factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
  configFilePath=etc/repository.xml
  repHomeDir=data/repository/
Resource name=jdbc/cosmo
  type=javax.sql.DataSource
  maxActive=5
  maxIdle=3
  maxWait=1
  username=sa
  parameter=
  driverClassName=org.hsqldb.jdbcDriver
  url=jdbc:hsqldb:file:data/db/userdb/
Resource name=mail/cosmo
  type=javax.mail.Session
  mail.transport.protocol=smtp/
  mail.smtp.host=localhost/
  mail.smtps.host=localhost/
  mail.smtp.starttls.enable=false/
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=../logs prefix=access. suffix=.log
   pattern=combined resolveHosts=false/
 /Context
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: No Host matches server name localhost error

2005-08-30 Thread Brian Cook



The error your getting is more likely saying that you computer can not 
resolve localhost as domain name.  If so it would have nothing to do 
with your server config.  Try using the loop back IP(127.0.0.1).  If 
this is happening on a windows box you may want to run a check for 
viruses or spyware.  If it is Linux make sure you have a listing for 
localhost in your /etc/hosts file.



Brian Moseley wrote:


i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
of  and a default host named localhost. when i request the webapp's 
root resource (http://localhost:8080/), i get a 400 error with the 
message No Host matches server name localhost.


as you can see from my very minimal server.xml, i do in fact have a Host 
named localhost and have specified it as the default host for the 
engine. so, i must admit to being confused as to why i'm receiving that 
particular error message. :) i have turned on debug logging to verify 
that the context is being loaded, but i have yet to step through a 
request with a debugger. any ideas?


server.xml:

Server port=8005 shutdown=SHUTDOWN
  Service name=Catalina
Connector port=8080 enableLookups=false/
Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps autoDeploy=false/
/Engine
  /Service
/Server

context.xml (in conf/Catalina/localhost/):

Context path= docBase=cosmo reloadable=true
  Environment name=cosmo/version value=0.2-4
   type=java.lang.String override=false/
  Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
   type=java.lang.String override=false/
  Environment name=cosmo/repository/username
   value=cosmo_repository
   type=java.lang.String override=false/
  Environment name=cosmo/repository/password
   value=
   type=java.lang.String override=false/
  Resource name=jcr/cosmo
type=javax.jcr.Repository

factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
configFilePath=etc/repository.xml
repHomeDir=data/repository/
  Resource name=jdbc/cosmo
type=javax.sql.DataSource
maxActive=5
maxIdle=3
maxWait=1
username=sa
parameter=
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:data/db/userdb/
  Resource name=mail/cosmo
type=javax.mail.Session
mail.transport.protocol=smtp/
mail.smtp.host=localhost/
mail.smtps.host=localhost/
mail.smtp.starttls.enable=false/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs prefix=access. suffix=.log
 pattern=combined resolveHosts=false/
/Context

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





--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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

Database Pooling

2005-08-30 Thread Scott Purcell
Hello,

To start off with, I hand rolled a database pooling class to handle database 
pooling for a ecommerce site I am writing. The application is web-based so of 
course I am using Tomcat 5.5 and all was going well. But in my implementation, 
I occasionally get errors when the connection has not been used for a long 
period of time. Basically mysql or tomcat may be taking themselves out of 
service and I get some java.net errors through Tomcat.

Anyway, I got frustrated and began to look through some on-line docs in regards 
to Tomcat and DatabasePooling.

Which leads me to my question:
Is pooling build-in to Tomcat 5.5?
If so, how simple is this to implement (I have read here: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html but 
I an not familiar with JNDI.
And if it does it take care of shutting down the pool when the server gets 
reloaded or gets unloaded?

Currently my pooling solution is huge, with threads to monitor if they are 
closed, etc. I figure there has to be a better implementation, or solution for 
myself in this regards

Could anyone please help out with some sample, or explanation of how this all 
fits together.

I have created business objects, so I just need to call the database from 
business objects, not directly from tomcat.

Thanks,
Scott




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



Re: No Host matches server name localhost error

2005-08-30 Thread Parsons Technical Services
Per the 5.5 doc you can't do it that way. You can only specify the path as a 
blank string when the context element is in the server.xml.


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Look at the path attribute.

Doug


- Original Message - 
From: Brian Moseley [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 12:50 PM
Subject: No Host matches server name localhost error




i'm using tomcat 5.5.9 with a single webapp deployed with a context path 
of  and a default host named localhost. when i request the webapp's 
root resource (http://localhost:8080/), i get a 400 error with the message 
No Host matches server name localhost.


as you can see from my very minimal server.xml, i do in fact have a Host 
named localhost and have specified it as the default host for the engine. 
so, i must admit to being confused as to why i'm receiving that particular 
error message. :) i have turned on debug logging to verify that the 
context is being loaded, but i have yet to step through a request with a 
debugger. any ideas?


server.xml:

Server port=8005 shutdown=SHUTDOWN
  Service name=Catalina
Connector port=8080 enableLookups=false/
Engine name=Catalina defaultHost=localhost
  Host name=localhost appBase=webapps autoDeploy=false/
/Engine
  /Service
/Server

context.xml (in conf/Catalina/localhost/):

Context path= docBase=cosmo reloadable=true
  Environment name=cosmo/version value=0.2-4
   type=java.lang.String override=false/
  Environment name=cosmo/serverAdmin value=[EMAIL PROTECTED]
   type=java.lang.String override=false/
  Environment name=cosmo/repository/username
   value=cosmo_repository
   type=java.lang.String override=false/
  Environment name=cosmo/repository/password
   value=
   type=java.lang.String override=false/
  Resource name=jcr/cosmo
type=javax.jcr.Repository

factory=org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
configFilePath=etc/repository.xml
repHomeDir=data/repository/
  Resource name=jdbc/cosmo
type=javax.sql.DataSource
maxActive=5
maxIdle=3
maxWait=1
username=sa
parameter=
driverClassName=org.hsqldb.jdbcDriver
url=jdbc:hsqldb:file:data/db/userdb/
  Resource name=mail/cosmo
type=javax.mail.Session
mail.transport.protocol=smtp/
mail.smtp.host=localhost/
mail.smtps.host=localhost/
mail.smtp.starttls.enable=false/
  Valve className=org.apache.catalina.valves.AccessLogValve
 directory=../logs prefix=access. suffix=.log
 pattern=combined resolveHosts=false/
/Context

-
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: Database Pooling

2005-08-30 Thread Caldarale, Charles R
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Subject: Database Pooling 
 
 If so, how simple is this to implement (I have read here: 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resource
 s-howto.html but I an not familiar with JNDI.

Try reading the next section of the doc as well:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples
-howto.html

That should have most of the info you need.

 - Chuck


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

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



Re: Database Pooling

2005-08-30 Thread Parsons Technical Services

MySQL shuts down the connections after 8 hours. Ran into this myself.

Yes, Tomcat has pooling built in.
Yes, it handles all aspects of the pool.

Try this link to start with:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html

It is directed more to the database pooling. There is also lots of entries 
in the archives.


Some people have no problem setting it up but there are a few that run into 
some configuration issues that seem to baffle them.


Some tips:
Watch the naming that both case and spelling match.
Put the drivers in common/lib
Use the latest drivers.
Make sure you have only one copy of the drivers.

Doug

- Original Message - 
From: Scott Purcell [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 1:08 PM
Subject: Database Pooling


Hello,

To start off with, I hand rolled a database pooling class to handle database 
pooling for a ecommerce site I am writing. The application is web-based so 
of course I am using Tomcat 5.5 and all was going well. But in my 
implementation, I occasionally get errors when the connection has not been 
used for a long period of time. Basically mysql or tomcat may be taking 
themselves out of service and I get some java.net errors through Tomcat.


Anyway, I got frustrated and began to look through some on-line docs in 
regards to Tomcat and DatabasePooling.


Which leads me to my question:
Is pooling build-in to Tomcat 5.5?
If so, how simple is this to implement (I have read here: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html 
but I an not familiar with JNDI.
And if it does it take care of shutting down the pool when the server gets 
reloaded or gets unloaded?


Currently my pooling solution is huge, with threads to monitor if they are 
closed, etc. I figure there has to be a better implementation, or solution 
for myself in this regards


Could anyone please help out with some sample, or explanation of how this 
all fits together.


I have created business objects, so I just need to call the database from 
business objects, not directly from tomcat.


Thanks,
Scott




-
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 failed to stop

2005-08-30 Thread Berendsen, Andreas (Telco Support)
Using Tomcat4 over Red Hat Linux
 
We have a dual server configured with Tomcat4 in fail-over environment.
For some reason the lock file from /var/lock/subsys disapeared from both
servers and then we are unable to stop (service stop) tomcat.
Which log files can I analyze to discover why and when the lock file was
deleted?
 
Regards, 
Andreas 

 


installing admin webapp

2005-08-30 Thread Peter Kennard

Is there a link - howto etc on how to install and configure the admin webapp.
I have looked at Faqs for v 5.5.9, googled for it, etc.

There is no howto-install .. RUNNING etc in the webapp .zip file.

Is this list the right place to ask such a question?

PK


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



RE: tomcat 5.0.28 - CPU spikes after heap memory reaches 700MB

2005-08-30 Thread Caldarale, Charles R
 From: Bhaskar Mulpuri [mailto:[EMAIL PROTECTED] 
 Subject: tomcat 5.0.28 - CPU spikes after heap memory reaches 700MB
 
 When the heap memory for the tomcat process reaches 700 Mb 
 (as shown by solaris top command), for a few requests, the 
 CPU spikes to 90-95 %.

Is it possible that the application is getting an OOME, catching it, and
simply retrying the request?  This would account for the high CPU
utilization, and GC won't do much if nothing's changed since the last
attempt.  Since OOME covers a variety of resource exhaustions besides
the primary Java heap, you might well be running out of file handles,
filling up the permanent generation, hitting max threads (unlikely), or
???

 - Chuck


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

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



Re: installing admin webapp

2005-08-30 Thread Wendy Smoak

From: Peter Kennard [EMAIL PROTECTED]


Is there a link - howto etc on how to install and configure the admin
webapp.
I have looked at Faqs for v 5.5.9, googled for it, etc.

There is no howto-install .. RUNNING etc in the webapp .zip file.


The 'admin' zip file is structured to overlay the Tomcat install and put the
files in the right place.

Unzip it in the same place you unzipped the Tomcat 5.5.9 .zip file.
(Alternately, unzip it somewhere else and copy the files into your Tomcat
install directory, being careful to start at the right place so it will
overlay properly.)

--
Wendy Smoak


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



RE: installing admin webapp

2005-08-30 Thread Caldarale, Charles R
 From: Peter Kennard [mailto:[EMAIL PROTECTED] 
 Subject: installing admin webapp
 
 Is there a link - howto etc on how to install and configure 
 the admin webapp.

Installation borders on the trivial: download, unzip.  The only
configuration necessary is creating the admin role and associated
userid/password in the conf/tomcat-users.xml file.

 - Chuck


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

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



Re: How to remove charset from tomcat response?

2005-08-30 Thread Mark Thomas

Dmitry wrote:

Hello Tomcat,

I am trying to return an XML with content-type text/xml
Without any charset specified in header.

I set [EMAIL PROTECTED] contentType=text/xml% in my jsp, expecting header
Content-Type: text/xml

But despite the page directive given I have header
Content-Type: text/xml;charset=ISO-8859-1

Is it possible to avoid charset=... clause?
Tomcat 5.5.9 on Windows.


If you use JSPs, there will always be a charset as per section JSP.4.2 
of the JSP 2.0 spec.


Mark


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



RE: tomcat 5.0.28 - CPU spikes after heap memory reaches 700MB

2005-08-30 Thread Bhaskar Mulpuri
The heap memory is still listed at 700 Mb when the CPU spikes up. We have
also set the max memory at 2GB for the tomcat JVM process, but we see the
same behavior.

I have not seen any error messages in the logs either. So I have not been
looking at it from the OOME perspective. Also, we checked with the vendor
and they have not mentioned this.

Thanks,
Bhaskar Mulpuri


-
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: No Host matches server name localhost error

2005-08-30 Thread Brian Moseley

Parsons Technical Services wrote:
Per the 5.5 doc you can't do it that way. You can only specify the path 
as a blank string when the context element is in the server.xml.


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

Look at the path attribute.


aha! man, if only somebody had written a 5.0 - 5.5 migration guide :)

thanks for the pointer. after moving my context definition into 
server.xml, requests are serviced successfully (well, not under ssl, but 
that's another message).


i wonder what the motivation was for making it such that i can't 
configure the root context in its own file? seems a bit shortsighted, 
but maybe there was a good reason?


thanks for the suggestions all.

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



RE: No Host matches server name localhost error

2005-08-30 Thread Caldarale, Charles R
 From: Brian Moseley [mailto:[EMAIL PROTECTED] 
 Subject: Re: No Host matches server name localhost error
 
 thanks for the pointer. after moving my context definition into 
 server.xml

Bad move.  This is specifically discouraged in 5.5.

 i wonder what the motivation was for making it such that i can't 
 configure the root context in its own file?

As far as I know, you can - just put your default context in
webapps/ROOT, and its associated Context element in
webapps/ROOT/META-INF/context.xml.

 - Chuck


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

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



RE: No Host matches server name localhost error

2005-08-30 Thread Paul Austin
On Tue, 2005-08-30 at 13:25 -0500, Caldarale, Charles R wrote:
  From: Brian Moseley [mailto:[EMAIL PROTECTED] 
  Subject: Re: No Host matches server name localhost error
  
  thanks for the pointer. after moving my context definition into 
  server.xml
 
 Bad move.  This is specifically discouraged in 5.5.

It seems that Tomcat 5.5 discourages you from putting contexts in the
server.xml, and that is something that is a good idea as it's easier to
manage them when they are outside. But the context path is only
supported when you put it in the server.xml so you can't deploy the wars
to any other path other than the name of the context file so deploying
to /apps/admin.

I know there is the special ROOT.xml for the root context but that
doesn't solve the sub path issue which no one seems to know the answer
to.

 
  i wonder what the motivation was for making it such that i can't 
  configure the root context in its own file?
 
 As far as I know, you can - just put your default context in
 webapps/ROOT, and its associated Context element in
 webapps/ROOT/META-INF/context.xml.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



configuring BasicAuthenticator

2005-08-30 Thread ferrante
Is there a way that I can set the error page URL and number of  
retries allowed for the BasicAuthenticator?


Thanks

---rdf

--
Richard D. Ferrante
Assoc Principal Software Engineer
Millennium Pharmaceuticals
40 Landsdowne St.
Cambridge, Ma. 02139
[EMAIL PROTECTED]
Phone: 617-679-7466
Fax: 617-577-3555





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.



ssl connections hanging

2005-08-30 Thread Brian Moseley
in my continuing quest to migrate my server app from 5.0.28 to 5.5.9, i 
now face a problem with ssl: secure connections hang for variable 
amounts of time, and then the server drops them.


curl reports Unknown SSL protocol error in connection to localhost:8443.

my connectors are defined as such:

Connector port=8080 enableLookups=false/
Connector port=8443 enableLookups=false secure=true
   scheme=https clientAuth=want
   keystorePass=osafcosmo/

i generated a brand new keystore containing a self-signed cert with this 
command, specifying osafcosmo for both the keystore password and key 
password:


keytool -genkey -alias osafcosmo -keyalg RSA

i tried turning on debug logging for org.apache.catalina, but there was 
no additional log output.


any ideas?

thanks!

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



RE: No Host matches server name localhost error

2005-08-30 Thread Caldarale, Charles R
 From: Paul Austin [mailto:[EMAIL PROTECTED] 
 Subject: RE: No Host matches server name localhost error
 
 But the context path is only supported when you put it 
 in the server.xml so you can't deploy the wars to any 
 other path other than the name of the context file so 
 deploying to /apps/admin.

I believe the usual mechanism for handling this is a trivial ROOT webapp
that forwards to the true default application.

 - Chuck


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

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



Re: No Host matches server name localhost error

2005-08-30 Thread Brian Moseley

Paul Austin wrote:


It seems that Tomcat 5.5 discourages you from putting contexts in the
server.xml, and that is something that is a good idea as it's easier to
manage them when they are outside. But the context path is only
supported when you put it in the server.xml so you can't deploy the wars
to any other path other than the name of the context file so deploying
to /apps/admin.


right. ideally i'd not put the context definition in server.xml. but 
deploying my webapp at the root path is more important to me (i'm 
operating in a pretty specific context and don't have to worry much 
about additional webapps being deployed into the container).


i saw the suggestion for adding a ROOT webapp that forwards to the true 
webapp, but that seems silly. hopefully the folks who made this design 
decision can speak up and explain it.



I know there is the special ROOT.xml for the root context but that
doesn't solve the sub path issue which no one seems to know the answer
to.


i don't recall seeing any references to a ROOT.xml. i tried renaming my 
context xml file to ROOT.xml (within conf/Catalina/localhost of course) 
but it did not seem to have been processed (requests to / gave that same 
400 error).


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



Re: No Host matches server name localhost error

2005-08-30 Thread Brian Moseley

Brian Moseley wrote:

i don't recall seeing any references to a ROOT.xml. i tried renaming my 
context xml file to ROOT.xml (within conf/Catalina/localhost of course) 
but it did not seem to have been processed (requests to / gave that same 
400 error).


and gosh, what a misleading error message - No Host matches server name 
localhost is obviously not true. maybe the message can be changed to 
more accurately convey that no context can be found for the request uri?


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



RE: ssl connections hanging

2005-08-30 Thread Julie Moore

I usually put the sslProtocol=TSL' entry in my connector and have to
had any problems.

Julie
-Original Message-
From: Brian Moseley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 30, 2005 1:38 PM
To: Tomcat Users List
Subject: ssl connections hanging

in my continuing quest to migrate my server app from 5.0.28 to 5.5.9, i 
now face a problem with ssl: secure connections hang for variable 
amounts of time, and then the server drops them.

curl reports Unknown SSL protocol error in connection to
localhost:8443.

my connectors are defined as such:

 Connector port=8080 enableLookups=false/
 Connector port=8443 enableLookups=false secure=true
scheme=https clientAuth=want
keystorePass=osafcosmo/

i generated a brand new keystore containing a self-signed cert with this

command, specifying osafcosmo for both the keystore password and key 
password:

 keytool -genkey -alias osafcosmo -keyalg RSA

i tried turning on debug logging for org.apache.catalina, but there was 
no additional log output.

any ideas?

thanks!

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


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



Re: Getting LOGON_USER from the header

2005-08-30 Thread Robert Jose
Well, I was partially correct.  It works perfectly when getting the remote 
user in a jsp page.  What I really want to do is get the remote user in a 
filter.  Basically, I have a filter set up to see if the user is logged in. 
If they are not, I want to get their remote user and check it to see if I 
can log them in seamlessly.  I would prefer not to have to get the remote 
user in the jsp page and then submit a page, just to have the user not exist 
and have to come back to the page.


Does anyone know how to get the remote user or LOGON_USER in the filter?

Thanks
Rob
- Original Message - 
From: Robert Jose [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 7:53 AM
Subject: Re: Getting LOGON_USER from the header



Thanks David, that worked perfectly.  I appreciate your help.

Rob

- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:16 PM
Subject: Re: Getting LOGON_USER from the header


By default, tomcat ignores the REMOTE_USER header from Apache or IIS in 
favor if it's own authentication.  To get tomcat to accept the IIS 
authentication info, add  this attribute to the Connector/ element in 
server.xml:


tomcatAuthentication=false

--David

Robert Jose wrote:


Thanks for the response Gurumoorthy, but I get null for a result.

Rob J.

- Original Message - From: Gurumoorthy 
[EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 2:40 PM
Subject: Re: Getting LOGON_USER from the header



request.getRemoteUser()
- Original Message - From: Robert Jose [EMAIL PROTECTED]
To: Tomcat User tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 10:44 PM
Subject: Getting LOGON_USER from the header


Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using 
the isapi redirect dll.  This seems to be working well and configured 
correctly.


Now I am trying to get the LOGON_USER from the header.  I want the 
windows id of the user that is hitting my web page.  I am developing an 
Intranet site and want to do seamless login based on who the user 
logged into their windows machine.  I know I can do this by using the 
command request.ServerVariables(LOGON_USER) in ASP.  I also was able 
to get request.getHeader(LOGON_USER) to work with IIS 5.1 and JRun 4 
(using the dll they provide).


Does anyone know how I can get this information using Tomcat?  I would 
be greatly appreciative.


Thanks
Rob J.




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



Re: ssl connections hanging

2005-08-30 Thread Brian Moseley

Julie Moore wrote:

I usually put the sslProtocol=TSL' entry in my connector and have to
had any problems.


wow, you're right. i thought that TLS was the default, but i guess there 
is no default. all is good now. thanks for the catch!


lesson learned since yesterday afternoon: read every word of the new doc 
carefully even when you think it all looks the same as the old doc :)


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



Tomcat 5 + SSL - Overriding default certificate authentication

2005-08-30 Thread Chandan Gupta
 Hi,
 Need to override the default certificate authentication to provide some own 
validation. Need to embed some new extensions in the certificate and 
validate them
 Got the following information but having problems doing what is explained
1. Write new SSLImplementation subclassing 
org.apache.tomcat.util.net.SSLImplementation
2. Specify SSLImplementation=com.MySSLImplementation in connector for port 
8443 in server.xml
 However i get a class not found error = 
org.apache.tomcat.util.net.SSLImplementation
 Any guidelines?
  Regards,
Chandan
 P.S. : I got tomcat to load my sslimplementation - was as simple a matter 
as placing my jar in server\lib - sorry for being dumb. Still posting this 
in case there is an elegant simpler way.


Re: No Host matches server name localhost error

2005-08-30 Thread Thomas Corte

Hi,

Parsons Technical Services wrote:

Per the 5.5 doc you can't do it that way. You can only specify the path 
as a blank string when the context element is in the server.xml.


To reiterate: so the only 2 ways to define the *default web app* for the 
host are either


- to define the context in server.xml (which is inconvenient because it
  may e.g. contain JNDI resource definitions that have to be updated
  whenever META-INF/context.xml within the war changes)

or

- to name the war file for the default webapp ROOT.war
  (which is somewhat crappy, too, since it e.g. leaves no hint
  at what the war is about if someone just looks at the webapps drawer)


If the above is true, I wonder why the path attribute of the context 
defined in META-INF/context.xml isn't simply considered in *any* case?

Shouldn't this be considered a tomcat bug?

--
Thomas Corte
[EMAIL PROTECTED]

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



Re: installing admin webapp

2005-08-30 Thread Peter Kennard

Thanks for reply !

I did this at the suggestion of someone on a sysadmin list I'm on,
(Nowhere do any docs actually say this :)

I also added the admin rolename type to the user peterk in the

config/tomcat-users.xml file such that it now looks like this

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=peterk password=*** roles=admin,tomcat,manager/
/tomcat-users

And restarted the server using the windows services UI.

However after doing this when accesing the link for admin I got the you 
must install  message


*

However I just accessed it again and it worked :O
It apears restarting the server using the windows services UI somehow did 
not cause it to refresh the config properly (??)  (I rebooted the machine 
for another reason between previously accesing admin failing and the last 
success)


I also noticed that if you put a comment in the tomcat-users.xml file the 
comment is not preserved when the server restarts.  It apparently reads the 
file (disgards the comments) and then writes out the file upon restart.


-- Since I wish to promote OSS and Apache there really should be a complete
and explicit even though tiny and trivial howto install this text file
included in the admin download since it will likely be the first thing
any new user confronts when installing it :)

Thanks
PK

At 01:42 PM 8/30/2005, you wrote:

From: Peter Kennard [EMAIL PROTECTED]


Is there a link - howto etc on how to install and configure the admin
webapp.
I have looked at Faqs for v 5.5.9, googled for it, etc.

There is no howto-install .. RUNNING etc in the webapp .zip file.


The 'admin' zip file is structured to overlay the Tomcat install and put the
files in the right place.

Unzip it in the same place you unzipped the Tomcat 5.5.9 .zip file.
(Alternately, unzip it somewhere else and copy the files into your Tomcat
install directory, being careful to start at the right place so it will
overlay properly.)

--
Wendy Smoak


-
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: installing admin webapp

2005-08-30 Thread Peter Kennard
Thanks - For the sake of marketing this trivial install should be 
explicitly stated in a very obvious how to install information included 
with the package.  Especially since it is something that if done improperly 
(from a POV of not knowing) could affect security.


One of the biggest objections I hear from clients who might use OSS is that 
it is too hard for people to get started with it.  A new user is a 
valuable user when trying to propagate a standard.


I would write up such a thing if I knew how to get it in there ;^

Thanks!
PK

At 01:43 PM 8/30/2005, you wrote:

 From: Peter Kennard [mailto:[EMAIL PROTECTED]
 Subject: installing admin webapp

 Is there a link - howto etc on how to install and configure
 the admin webapp.

Installation borders on the trivial: download, unzip.  The only
configuration necessary is creating the admin role and associated
userid/password in the conf/tomcat-users.xml file.

 - Chuck


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

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




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



Re: installing admin webapp

2005-08-30 Thread Peter Kennard
BTW the other potential for my failure may be that somewhere in the chain 
between Tomcat and the browser the error message page was cached.  The link 
to the admin webapp may itself may not have the headers set to prevent the 
error message from caching ???


I'm only trying to help other's first time experiences be smooth and get 
them off to a good start :)


PK

At 04:58 PM 8/30/2005, you wrote:

Thanks for reply !

I did this at the suggestion of someone on a sysadmin list I'm on,
(Nowhere do any docs actually say this :)

I also added the admin rolename type to the user peterk in the

config/tomcat-users.xml file such that it now looks like this

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=peterk password=*** roles=admin,tomcat,manager/
/tomcat-users

And restarted the server using the windows services UI.

However after doing this when accesing the link for admin I got the you 
must install  message


*

However I just accessed it again and it worked :O
It apears restarting the server using the windows services UI somehow did 
not cause it to refresh the config properly (??)  (I rebooted the machine 
for another reason between previously accesing admin failing and the last 
success)


I also noticed that if you put a comment in the tomcat-users.xml file the 
comment is not preserved when the server restarts.  It apparently reads 
the file (disgards the comments) and then writes out the file upon restart.


-- Since I wish to promote OSS and Apache there really should be a complete
and explicit even though tiny and trivial howto install this text file
included in the admin download since it will likely be the first thing
any new user confronts when installing it :)

Thanks
PK

At 01:42 PM 8/30/2005, you wrote:

From: Peter Kennard [EMAIL PROTECTED]


Is there a link - howto etc on how to install and configure the admin
webapp.
I have looked at Faqs for v 5.5.9, googled for it, etc.

There is no howto-install .. RUNNING etc in the webapp .zip file.


The 'admin' zip file is structured to overlay the Tomcat install and put the
files in the right place.

Unzip it in the same place you unzipped the Tomcat 5.5.9 .zip file.
(Alternately, unzip it somewhere else and copy the files into your Tomcat
install directory, being careful to start at the right place so it will
overlay properly.)

--
Wendy Smoak


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




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





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



Re: installing admin webapp

2005-08-30 Thread Wendy Smoak

From: Peter Kennard [EMAIL PROTECTED]


I would write up such a thing if I knew how to get it in there ;^


Since it sounds like you want it to be a text file included in the admin app 
zip file, you might try writing it up and opening an enhancement ticket 
against Tomcat 5.5.  Attach your suggested README file to the ticket.


Meanwhile, the answer is now part of the list archives, so the next person 
who happens along should be able to find it.


--
Wendy Smoak 



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



Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Chad Lester
Is Tomcat more stable on Linux or Windows 2003? What are the pros/cons
of using it on each platform? 

 

Thank you in advance for your help and advice,

Chad

 

 

 



Overriding default trustmanager in Tomcat

2005-08-30 Thread Chandan Gupta
Hi
 I think this problem would have been well discussed. I tried looking this 
up in the forums but couldnt find an answer
 Im using Tomcat 5.0.28 and JRE 1.5 and trying to override default 
TrustManager with my own. I have written the following SSLImplementation.
 The problem here is that even when the getAcceptedIssuers is being called 
the checkClientTrusted method is not being called Im returning null from 
getAcceptedIssuers so that it accepts all issuers.
What Im doing wrong
 
public class MYSSLImplementation extends JSSEImplementation
{

MyServerSocketFactory myServerSocketFactory;
static boolean usingMyServerSocketFactory = false;
static final String SSLSocketClass = javax.net.ssl.SSLSocket;
public MySSLImplementation() throws ClassNotFoundException {
super();
System.out.println(This class has been called. Yippy!);
// TODO Auto-generated method stub
Class.forName(SSLSocketClass);
if( JdkCompat.isJava14() )
{
myServerSocketFactory = new MyServerSocketFactory();
usingMyServerSocketFactory = true;
}
// TODO Auto-generated constructor stub
}

public String getImplementationName() {
// TODO Auto-generated method stub

return super.getImplementationName();
}

public ServerSocketFactory getServerSocketFactory() {

if (usingControlIDServerSocketFactory)
return ctrlIDServerSocketFactory;
else
return super.getServerSocketFactory();
}

public SSLSupport getSSLSupport(Socket arg0) {
return super.getSSLSupport(arg0);
}

}

Here is my ServerSocketFactory

 ublic class MyServerSocketFactory extends JSSE14SocketFactory{
public MyServerSocketFactory()
{
super();
}

/**
* Gets the intialized trust managers.
*/
protected TrustManager[] getTrustManagers(String keystoreType, String 
algorithm)
throws Exception {

X509TrustManager tm = new MyX509TrustManager();
TrustManager tms[] = {tm};
System.out.println(Getting trust managers);
System.out.println(Keystore type: + keystoreType);
System.out.println(Algorithm:+ algorithm);

 return tms;
}

 and finally here is my TrustManager 

class MyX509TrustManager implements X509TrustManager {

X509TrustManager sunX509TrustManager;

public void checkClientTrusted(X509Certificate[] chain, String authType)
throws CertificateException {
System.out.println(-DummyTrustManager:checkClientTrusted());
for (int c = 0; c  chain.length; c++) {
X509Certificate cert = chain[c];
System.out.println( Client certificate  + (c + 1) + :);
System.out.println( Subject DN:  + cert.getSubjectDN());
System.out
.println( Signature Algorithm:  + cert.getSigAlgName());
System.out.println( Valid from:  + cert.getNotBefore());
System.out.println( Valid until:  + cert.getNotAfter());
System.out.println( Issuer:  + cert.getIssuerDN());

}
}

public void checkServerTrusted(X509Certificate[] chain, String authType)
throws CertificateException {
System.out.println(-DummyTrustManager:checkServerTrusted());
}

public X509Certificate[] getAcceptedIssuers() {
System.out.println(-DummyTrustManager:getAcceptedIssuers());
throw new RuntimeException(Problematic area);
//return null;
}

}


Re: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Brian Cook


Wow this seem likely to start flame war.  Since it is written in Java 
there is really not much of a difference.  The only thing that comes to 
mind is that you have to reboot windows every time you need to make a 
change to the CLASSPATH, JAVA_HOME, or TOMCAT_HOME variables which can 
be a pain.


I will also throw in that it is my personal option(NOTE: For any 
extremists on the list I said my option.  Not an absolute fact.  Just 
one guys experience) that you spend a lot less time maintaining Linux.


This is mainly because Linux is so modular that you can uninstall 
everything but the parts you want.  So the only things I have to keep up 
with and patch are the Kernel, MySQL, Apache, and Tomcat.  No GUI, no 
extra services, etc.


Chad Lester wrote:

Is Tomcat more stable on Linux or Windows 2003? What are the pros/cons
of using it on each platform? 

 


Thank you in advance for your help and advice,

Chad

 


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

RE: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Caldarale, Charles R
 From: Brian Cook [mailto:[EMAIL PROTECTED] 
 Subject: Re: Does Tomcat run better on Linux or Windows?
 
 The only thing that comes to mind is that you have to 
 reboot windows every time you need to make a change to 
 the CLASSPATH, JAVA_HOME, or TOMCAT_HOME variables 

That's simply not true. Opening up a new instance of the command prompt
will pick up any modified or added environment variables.  (But don't
construe this statement as an endorsement of Windows over Linux, by any
means.)

 - Chuck


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

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



Re: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Scott Reynolds
I've been running Tomcat on both Linux and Windows for a couple years now and
other than the differences in installation and maintenance, haven't noticed any
differences as far as stability is concerned.

Scott

--- Chad Lester [EMAIL PROTECTED] wrote:

 Is Tomcat more stable on Linux or Windows 2003? What are the pros/cons
 of using it on each platform? 
 
  
 
 Thank you in advance for your help and advice,
 
 Chad
 
  
 
  
 
  
 
 


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



IIS connector problem

2005-08-30 Thread Michael Dillon
I'm using Tomcat 5.5.9 and IIS 6 on a Windows 2003 machine.
 
Isapi_redirect.dll (version 1.2.14) seems to work if use a full url such
as this:
 
http://localhost/jsp-examples/index.html
 
All the various jsp examples work.
 
However, if I don't fully specify a document, such as
http://localhost/jsp-examples, I get a 404 error.  If I use
http://localhost:8080/jsp-examples things work.
 
I have [uri:/jsp-examples/*] in my workers2.properties, and I thought
that should ensure that pages would be passed to Tomcat for handling.
Unless Tomcat isn't finding (or using) my configuration file...?
 
Other (probably related) symptoms:
 
I'm not getting any information into the isapi_redirect.log file.  The
folder where it should be exists, and its pointer is in the registry,
but nothing is getting there...  
 
No shm.file is being created in the work folder.

Also, I'm not seeing any isapi_redirect.dll entries in the IIS
logfiles (which should be there if IIS is passing data onwards?).  If
this wasn't a clean installation, I'd think something else was handling
jsp requests.
 
I've been trying to see if there's a detail I've missed, but sifting
through the different howto's (for older versions) has been challenging.
 
Thanks in advance,
 
Mike
 
P.S. I installed the connector using the exe installation
(isapi_redirect-1.2.14.exe)

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



Re: installing admin webapp

2005-08-30 Thread Peter Kennard

Will do - where is the procedure for opening an enhancement ticket outlined?
Thanks.

At 05:37 PM 8/30/2005, you wrote:

From: Peter Kennard [EMAIL PROTECTED]


I would write up such a thing if I knew how to get it in there ;^


Since it sounds like you want it to be a text file included in the admin 
app zip file, you might try writing it up and opening an enhancement 
ticket against Tomcat 5.5.  Attach your suggested README file to the ticket.


Meanwhile, the answer is now part of the list archives, so the next person 
who happens along should be able to find it.


--
Wendy Smoak




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



Re: No Host matches server name localhost error

2005-08-30 Thread Parsons Technical Services
First, let me clarify that I am only a user of Tomcat and was simply 
pointing out the part of the documentation.


Now as for the issue, I am not sure that it is a bug but just a feature. 
Unless you can show where it does not meet the servlet specs then it will 
not be considered a bug.


I am not sure why this is causing such a problem. The only time a default 
context will ever be used is if the browser is using an IP instead of a URL 
or if you have a DNS entry that points to your IP with no matching 
application.


So unless you are using only the IP or are directing multiple unmatched URLs 
at the server there is no issue. If you are, then knowing what the war is 
about is only a small piece of the puzzle that exist in the setup.


Just my understanding of the setup. Feel free to enlighten me if you think I 
am off base.


Every aspect of a program is considered a feature. No matter how good or bad 
one may think it is. It only become a bug when it breaks a rule. Either the 
programmers rule, a system rule or a specification rule.


If a feature that was considered bad by some could be classed as a bug, then 
90% of the code written in the world would be bugs because somewhere there 
is someone who doesn't like it.


Doug

- Original Message - 
From: Thomas Corte [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, August 30, 2005 4:28 PM
Subject: Re: No Host matches server name localhost error



Hi,

Parsons Technical Services wrote:

Per the 5.5 doc you can't do it that way. You can only specify the path 
as a blank string when the context element is in the server.xml.


To reiterate: so the only 2 ways to define the *default web app* for the 
host are either


- to define the context in server.xml (which is inconvenient because it
  may e.g. contain JNDI resource definitions that have to be updated
  whenever META-INF/context.xml within the war changes)

or

- to name the war file for the default webapp ROOT.war
  (which is somewhat crappy, too, since it e.g. leaves no hint
  at what the war is about if someone just looks at the webapps drawer)


If the above is true, I wonder why the path attribute of the context 
defined in META-INF/context.xml isn't simply considered in *any* case?

Shouldn't this be considered a tomcat bug?

--
Thomas Corte
[EMAIL PROTECTED]

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







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



RE: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Rob Hills
Hi All,

On 30 Aug 2005 at 18:12, Caldarale, Charles R wrote:

  From: Brian Cook [mailto:[EMAIL PROTECTED] 
  Subject: Re: Does Tomcat run better on Linux or Windows?
  
  The only thing that comes to mind is that you have to 
  reboot windows every time you need to make a change to 
  the CLASSPATH, JAVA_HOME, or TOMCAT_HOME variables 
 
 That's simply not true. Opening up a new instance of the command prompt
 will pick up any modified or added environment variables.  (But don't
 construe this statement as an endorsement of Windows over Linux, by any
 means.)

That is correct, but many of us run Tomcat as a Service.  I've not yet 
been able to find a way of changing environment variables in Windows 
and have the OS pick up the changes and pass them to a service (no 
matter how often you stop and start the service) without rebooting.

Cheers,

Rob Hills
MBBS, Grad Dip Com Stud, MACS
Senior Consultant
Netpaver Web Solutions
Tel:(08) 9485 2555
Mob:(0412) 904 357
Fax:(08) 9485 2555



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



Re: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Jason Bainbridge
On 8/30/05, Rob Hills [EMAIL PROTECTED] wrote:
 Hi All,
 
 On 30 Aug 2005 at 18:12, Caldarale, Charles R wrote:
 
   From: Brian Cook [mailto:[EMAIL PROTECTED]
   Subject: Re: Does Tomcat run better on Linux or Windows?
  
   The only thing that comes to mind is that you have to
   reboot windows every time you need to make a change to
   the CLASSPATH, JAVA_HOME, or TOMCAT_HOME variables
 
  That's simply not true. Opening up a new instance of the command prompt
  will pick up any modified or added environment variables.  (But don't
  construe this statement as an endorsement of Windows over Linux, by any
  means.)
 
 That is correct, but many of us run Tomcat as a Service.  I've not yet
 been able to find a way of changing environment variables in Windows
 and have the OS pick up the changes and pass them to a service (no
 matter how often you stop and start the service) without rebooting.

Usually closing the Windows Services applet and reopening it does the
trick, I've found Windows picks up the environment variables at the
time a program is started so usually closing whatever program and
reopening it works.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Problem with file upload corruption.

2005-08-30 Thread Richard Mixon (qwest)
Sorry to kick this up. I know it’s a slightly obscure topic, and I'm
hoping it may have rolled by someone knowledgable.

I just tried using the Jakarta Commons File Upload instead of the
Oreilly MultiPartRequest. I get the same results.

No matter what kind of file I try uploading - it treats it as text: from
a Windows machine all occurrences of 0x0D0A are converted to 0x0A. So
contrary to the RFC saying it is a binary file upload, it appears to be
doing a text upload - or I am really missing out on something.

Thank you - Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 29, 2005 7:03 PM
To: tomcat-user@jakarta.apache.org
Subject: Problem with file upload corruption.

We have a JSP/servlet combo that uses the OReilly MultiPartRequest to
upload a users HTML template for our application. Invariably they end up
with some unusual characters in their template - sometimes from pasting
in text from MS Word or other similar application.

For some reason a single character (e.g. x092 a right single quotation
mark) is turned into multiple special characters after it is uploaded.
When we download it  we use
  response.setContentType(application/octet-stream);
and the mangled file downloads fine (i.e. without change)

Here is an example - the right single quotation marka backward single
quote comes right after the paragraph tag (p).

BEFORE upload
html
...
p’Some text.
/html

AFTER upload
html
...
p�Some text.
/html

I have read the file upload RFC 1867 until I'm blue in the face, and
Googled on and off the servlet.com site. There were reported binary
upload problems using the warp connector to connect Tomcat 4.0 and
Apache. But we are using Tomcat 4.1.18.

Any ideas or suggestion are appreciated.

Thank you - Richard



mail2web - Check your email from the web at http://mail2web.com/ .





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



RE: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Caldarale, Charles R
 From: Rob Hills [mailto:[EMAIL PROTECTED] 
 Subject: RE: Does Tomcat run better on Linux or Windows?
 
 I've not yet been able to find a way of changing environment 
 variables in Windows and have the OS pick up the changes and 
 pass them to a service (no matter how often you stop and start 
 the service) without rebooting.

As far as I know, when run as a service, Tomcat itself does not actually
use any environment variables (although your app or config files might).
You normally change the service settings either by editing the registry
or running the service manager (tomcat5w.exe).

 - Chuck


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

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



Re: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Larry Meadors
Eeek, this is almost like a which is better: vi or emacs? thread...

Having used tomcat in both environments, here is my $0.02 on the topic:

 - Linux
  + more secure out of the box
  + simpler for more complex configurations
  + simpler for upgrades
  + usually more uptime
  + more controlled environment

 - Windows
  + simpler for simple configurations
  + easier to setup

YMMV,
Larry


On 8/30/05, Chad Lester [EMAIL PROTECTED] wrote:
 Is Tomcat more stable on Linux or Windows 2003? What are the pros/cons
 of using it on each platform?
 
 
 
 Thank you in advance for your help and advice,
 
 Chad
 
 
 
 
 
 
 
 


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



RE: installing admin webapp

2005-08-30 Thread Caldarale, Charles R
 From: Peter Kennard [mailto:[EMAIL PROTECTED] 
 Subject: Re: installing admin webapp
 
 Will do - where is the procedure for opening an enhancement 
 ticket outlined?

Tomcat development uses Bugzilla for both bug reports and enhancement
requests (although the latter isn't obvious - you have to read the pages
at the Get Involved, Overview link).  Once you register for Bugzilla
access, go to the Tomcat 5 Enter bug page:
http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%205
and use the Severity drop down list to indicate enhancement.

 - Chuck


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

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



RE: Problem with file upload corruption.

2005-08-30 Thread Richard Mixon (qwest)
OK, my goof. In my frustration and hurry I did not read the RFC well
enough. After re-reading the RFC yet one more time, it finally became
clear. In case it helps anyone else, I'm posting what I learned here. 

Basically the browser is allowed/expected to set the encoding type.
Under section 3.3 of RFC 1867:

  3.3 use of multipart/form-data

 ... Each part should be labelled with an appropriate
 content-type if the media type is known (e.g., inferred from the
file
 extension or operating system typing information) or as
 application/octet-stream. 
 ...

I kept expecting there to be some way to designate the file as either
binary (don't change a thing, just upload it) or text (handle CRLF's and
character set translation) - much like one does with an FTP tranfer.

So I guess the best answer to my original dilema is to write a utility
method/filter that inspects the uploaded HTML file for invalid
characters and notifies the user if any are found.

Hope this helps someone else - Richard

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 30, 2005 7:26 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Problem with file upload corruption.

Sorry to kick this up. I know it’s a slightly obscure topic, and I'm
hoping it may have rolled by someone knowledgable.

I just tried using the Jakarta Commons File Upload instead of the
Oreilly MultiPartRequest. I get the same results.

No matter what kind of file I try uploading - it treats it as text: from
a Windows machine all occurrences of 0x0D0A are converted to 0x0A. So
contrary to the RFC saying it is a binary file upload, it appears to be
doing a text upload - or I am really missing out on something.

Thank you - Richard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 7:03 PM
To: tomcat-user@jakarta.apache.org
Subject: Problem with file upload corruption.

We have a JSP/servlet combo that uses the OReilly MultiPartRequest to
upload a users HTML template for our application. Invariably they end up
with some unusual characters in their template - sometimes from pasting
in text from MS Word or other similar application.

For some reason a single character (e.g. x092 a right single quotation
mark) is turned into multiple special characters after it is uploaded.
When we download it  we use
  response.setContentType(application/octet-stream);
and the mangled file downloads fine (i.e. without change)

Here is an example - the right single quotation marka backward single
quote comes right after the paragraph tag (p).

BEFORE upload
html
...
p’Some text.
/html

AFTER upload
html
...
p�Some text.
/html

I have read the file upload RFC 1867 until I'm blue in the face, and
Googled on and off the servlet.com site. There were reported binary
upload problems using the warp connector to connect Tomcat 4.0 and
Apache. But we are using Tomcat 4.1.18.

Any ideas or suggestion are appreciated.

Thank you - Richard



mail2web - Check your email from the web at http://mail2web.com/ .





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



Re: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Michael Kleinhenz

 Is Tomcat more stable on Linux or Windows 2003? What are the pros/cons
 of using it on each platform? 

If you're planning for a high-performance high-load system, don't use
Windows 2003 Standard Edition. It has serious limitations in the TCP/IP
stack. I wasn't able to open more than ~3500 concurrent network
connections to a database cluster. The common error was no buffer space
available.

Linux on the same machine works fine. Would be interesting if Win 2003
EE or DCE has the same limitation.

The real pain was not the limitation itself, but that is _not_
documented. The error message is listed as a common error that occurs in
many different situations. Great.

-- Michael


-- 
Michael Kleinhenz
tarent GmbH . Bahnhofstr. 13 . 53123 Bonn
fon +49 (228) / 52 67 5-0 . fax +49 (228) / 52 67 5-25

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



how to Upload file

2005-08-30 Thread Bhargav Patel
how to write upload file program using jsp ?

by default program copy file to some temporary folder on server.

how to get the path of that temporary folder ?

***Confidentiality Notice***

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