how to tell available connections within connection pool

2005-07-28 Thread Raymond Fung
Dear all,

It seems this question has been asked from time to time, but still no
one can give a concrete answer. Is it really impossible to query Tomcat
for the available connection threads inside the connection pool ? How
can I ensure my application will not have connection leaks ?

Regards,
Raymond Fung.


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



error-page not working for error-code 503?

2005-05-19 Thread Raymond
Hi,
I have these in my tomcat server's global web.xml file:

 404
 /http404.jsp


 503
 /maintenance.html

It works for the 404 but not the 503 error code. What's wrong with it?
I want to redirect users to a "maintenance in progress" page when I "stop" 
any webapp with the tomcat manager. But it always gives me the default 
tomcat HTTP status page when I request a stopped webapp.

Please help. Thanks.
Raymond 

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


error-page not working for error-code 503?

2005-05-19 Thread Raymond
- Original Message - 
From: "Raymond" <[EMAIL PROTECTED]>
To: "Tomcat Users" 
Sent: Wednesday, May 18, 2005 9:54 PM
Subject: error-page not working for error-code 503?


Hi,
I have these in my tomcat server's global web.xml file:

 404
 /http404.jsp


 503
 /maintenance.html

It works for the 404 but not the 503 error code. What's wrong with it?
I want to redirect users to a "maintenance in progress" page when I "stop" 
any webapp with the tomcat manager. But it always gives me the default 
tomcat HTTP status page when I request a stopped webapp.

Please help. Thanks.
Raymond 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


error-page not working for error-code 503?

2005-05-18 Thread Raymond
Hi,
I have these in my tomcat server's global web.xml file:

 404
 /http404.jsp


 503
 /maintenance.html

It works for the 404 but not the 503 error code. What's wrong with it?
I want to redirect users to a "maintenance in progress" page when I "stop" 
any webapp with the tomcat manager. But it always gives me the default 
tomcat HTTP status page when I request a stopped webapp.

Please help. Thanks.
Raymond 

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


Logging in servlet/jsp not working via java.uil.logging.Logger.global - BUG?

2005-04-25 Thread Eric Raymond
If you have a servlet/jsp which uses java.util.logging. Logger.global
and use the global logger, the output seems to go nowhere.

For example the following jsp page only logs "printed".

<%
  java.util.logging.Logger.global.severe("not printed");
  java.util.logging.Logger.getLogger("foo").severe("printed");
%>


FYI, this is with Tomcat 5.5.9 using the default settings.  As you can
imagine, this is a little disturbing!


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



Wrong date / calendar after server has been running for long time

2005-03-12 Thread Raymond
Hi,

We are using Tomcat 5.0.28 running a Tapestry website for our company. A weird 
bug occurred and I am not sure if it's Java or Tomcat bug.

Logging (new Date()).toString() or Calendar.getInstance().getTime().toString() 
normally returns the correct clock value at the timezone of our server (HKT or 
GMT+8). But when the server has continuously run say 2 days the log message 
showed that the toString() values of all Date objects changed to UTC and the 
time values are all offset by -8 hours.

This caused very serious problem for our production application because we very 
much depends on the server clock to do various automatic scheduled jobs and 
logging user behaviours at different times.

When the server has been restarted everything gets back to normal until pehaps 
2 days later when it'd suddenly go wild again. I tried to set the default 
TimeZone but it seems to produce other unexpected effects in complicated ways 
such as affecting some date-sensitive 3rd party components (which we cannot 
make changes to) breaking many datetime dependent operations in them.

I never encountered similar errors with non-web Java apps so I suspect this is 
more likely a Tomcat bug. But please correct me if I am wrong.

Thanks a lot for help.
Raymond

RE: easy debugging

2004-07-28 Thread STOCKHOLM, Raymond
The best advise I can give you is to use a proper logging API :
Log4J is great :
http://logging.apache.org/log4j/docs/
http://logging.apache.org/log4j/docs/download.html

Just put your log4j.properties file in the classpath of your webapp (WEB-INF/classes),
and log4j will automatically use this configuration.
Note : 
1. log4j.appender.FILE.File=C:/log4j.log  : this is the file where your log will be.
2. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender : you should see the same 
log in your tomcat window.

Here is an example of log4j.properties :

log4j.rootLogger=DEBUG, CONSOLE, FILE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
# CONSOLE uses PatternLayout.
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
# The conversion pattern uses format specifiers. You might want to
# change the pattern an watch the output format change.
log4j.appender.CONSOLE.layout.ConversionPattern=%-4r %-5p [%t] %37c %3x - %m%n
# File Appender
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.File=C:/log4j.log
log4j.appender.FILE.MaxFileSize=1KB
log4j.appender.FILE.MaxBackupIndex=1
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=%-4r %-5p [%t] %37c %3x - %m%n
 


-Message d'origine-
De : Vamsee Kanakala [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 28 juillet 2004 14:44
À : Tomcat Users List
Objet : easy debugging


Hello list users,

I'm using Tomcat on win2k. There is a window which is always open 
when Tomcat runs. It shows messages like "INFO:" etc. Is there a way I 
can write to this window from inside a servlet? I'm just looking for an 
easy way to debug my servlets.

TIA,
Vamsee.

-- 
Because joy is one's fuel - Ayn Rand


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



detecting the shutdown of tomcat in a servlet

2004-07-28 Thread STOCKHOLM, Raymond
In my tomcat 4.1.30n, I have a webapp in which a deamon Thread (started automatically) 
is scheduled to send automatic mails every morning.

I would like to make a clean stop of my deamon when tomcat shutdowns.

How can I detect that tomcat is shuting down ?


Raymond Stockholm
Aubay Luxembourg
51, Rue de Strasbourg
L-2561 LUXEMBOURG
Tel : +352 29 92 50 31


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



RE: TC 5.0.27 startup problem

2004-07-22 Thread STOCKHOLM, Raymond
You definitively have a process using 8080 :
either a tomcat process, still running, or another program (oracle,...)
Check all your current process, or simply reboot.


-Message d'origine-
De : Paul Wallace [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 23 juillet 2004 08:40
À : Tomcat Users List
Objet : TC 5.0.27 startup problem


Hi,
A seemingly simple one, but not for I! I am trying to setup the
above version of TC on Win XP. My JAVA_HOME is set as an environment
variable, and in the top of my startup.bat I am setting CATALINA_HOME:

"rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $
rem

---
set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%"

When running this file from the command prompt I get:

"23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
j
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)"

I immediately looked at what was using port 8080 (nothing to my
knowledge) and this was confirmed. I ran netstat which confirmed that
port 8080 was not in use.
TC appears to have started, but http://localhost:8080 (with
numerous stacktraces (above)) is showing a 404. Am I illegally setting
CATALINA_HOME?

Thanks

Paul.





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


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



RE: TOMCAT OUT OF MEMORY - HELP

2004-07-19 Thread STOCKHOLM, Raymond
Are you sure the options are used :
check with a JSP : info.jsp
<%@ page language="java" %>

Information

<%
long totalMemory = Runtime.getRuntime().totalMemory();
long freeMemory = Runtime.getRuntime().freeMemory();
long maxMemory = Runtime.getRuntime().maxMemory();
%>
TOTAL MEMORY=<%= totalMemory %>
FREE MEMORY =<%= freeMemory %>
MAX MEMORY  =<%= maxMemory %>




-Message d'origine-
De : Marco [mailto:[EMAIL PROTECTED]
Envoyé : mardi 20 juillet 2004 08:11
À : Tomcat Users List
Objet : Re: TOMCAT OUT OF MEMORY - HELP


Well ... I red the archives and I set the java options to -Xms512m and 
-Xmx1536m"  but the problem persists
I use j2sdk1.4.2_02

Shapira, Yoav wrote:

>Hi,
>Search the archives, read the FAQ...
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>  
>
>>-Original Message-
>>From: Marco [mailto:[EMAIL PROTECTED]
>>Sent: Monday, July 19, 2004 1:07 PM
>>To: Tomcat Users List
>>Subject: TOMCAT OUT OF MEMORY - HELP
>>
>>Hi
>>
>>We installed Tomcat 4.1.27 on our server (windows 2000 advanced
>>
>>
>server).
>  
>
>>Tomcat is installed as a Windows service and we setted it to use a
>>maximum memory of 1,5 GB and a start memory of 256 MB.
>>At present we deployed seven applications in the webapps folder.
>>All seems to work correctly, but periodically (and too often) we get an
>>Out of Memory exception.
>>Controlling the Windows processes, we found out that Tomcat uses about
>>300 MB of memory when it goes in out of memory.
>>
>>Can anyone tell us something more about the memory usage of Tomcat or,
>>more simply, help us ?
>>
>>Thanks in advance.
>>
>>
>>
>
>
>
>This e-mail, including any attachments, is a confidential business communication, and 
>may contain information that is confidential, proprietary and/or privileged.  This 
>e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
>saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
>intended recipient, please immediately delete this e-mail from your computer system 
>and notify the sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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



RE: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread STOCKHOLM, Raymond
What JVM are you using ?
I had some similar problems with java 1.4.1_01 on Windows,
when to many files were opened.
Solved with 1.4.1_05.

-Message d'origine-
De : Morus Walter [mailto:[EMAIL PROTECTED]
Envoyé : mardi 13 juillet 2004 11:19
À : Tomcat Users List
Cc : [EMAIL PROTECTED]
Objet : Re: tomcat doesn't create directories under 'work' but does
create .java/.class files


Hi,

First of all apologies to everyone for sending my last message thrice.
Wasn't intentional and I'll do my best not to repeat that...


> File destDir = null;
> 
> if (absoluteLibPath != null) {
> destDir = new File(absoluteLibPath);
> } else {
> copyJars = true;
> destDir = new File(workDir, libPath);
> destDir.mkdirs();
> }
> 
I compiled tomcat from sources and added some debugging messages.
What I found is, that tomcat takes the else-branch which should create
the directory.
I changed this to
   } else {
copyJars = true;
System.err.println("WorkDir: " + workDir + "; libPath: " + libPath);
destDir = new File(workDir, libPath);
System.err.println("no absoluteLibPath; dest Dir: " + destDir);
destDir.mkdirs();
if ( !destDir.exists() ) {
System.err.println("destDir " + destDir + " does not exist");
destDir.getParentFile().mkdirs();
destDir.mkdirs();
if ( !destDir.exists() ) {
System.err.println("destDir " + destDir + " does not exist");
}
else {
System.err.println("destDir " + destDir + " does exist");
}
}
}
and it works. After the first destDir.mkdirs() destDir does not exist,
the second (two) mkdirs calls create it.

So this really seems to be some bug in javas File.mkdirs implementation
(or in the underlying libc/linux filesystem).

I'm not sure what's the best thing to do in this situation, but I'll file
a bug report for tomcat suggesting to add
if ( !destDir.exists() ) {
destDir.getParentFile().mkdirs();
destDir.mkdirs();
}
with an apropriate comment as a workaround...

Morus

-
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: Doc upload corruption w/JK2 connector?

2004-07-12 Thread STOCKHOLM, Raymond
Did you try Jakarta Commons FileUpload ?
http://jakarta.apache.org/commons/fileupload/

My config is windows 2000, java 1.4.1_05, tomcat 4.1.30,
No problems...

-Message d'origine-
De : Bob Ross [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 juillet 2004 10:19
À : [EMAIL PROTECTED]
Objet : Doc upload corruption w/JK2 connector?


Hello,

   Has anyone out there experienced upload corruption using the following 
setup?

1) IIS 5.0
2) JK 2.0.4 (binary)
3) Tomcat 4.1.30 (or 4.1.18) (W2K binary)
4) Generic doc upload servlet (I've tested many).

I'm noticing that files greater than ~1MB have extraneous bytes thrown into 
the filestream.

-Bob

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


-
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.25/Apache 1.3.31 mod_jk windows

2004-07-07 Thread Raymond Blum
Hi
 I am trying to get the mod_jk.dll to work under Windows (XP) with the 
current Tomcat and Apache 1.3 releases.  I have download mod_jk.ddl 
version 1.3.27, although the notes on the ftp site reference version 
1.2.28, X.27 is all that is there.

 I have the LoadModule directive in my httpd.conf file, followed by the 
AddModule. 

The only message I get are these, in apache's error log...
Wed Jul 07 16:00:32 2004] [error] Cannot remove module mod_jk.c: not 
found in module list
[Wed Jul 07 16:00:32 2004] [warn] module mod_jk.c is already added, skipping

There is no mod_jk.log file being created at the indicated location (as 
coded in httpd.conf)

There are workers (or something) listening at port 8009, as verified by 
telnet to that port.

Problem is, none of my Jk_Mount directives seem to be in effect, i.e.
localhost/jsp-examples
gets a 404 and my error.log shows that access was attempted for 
${WEBROOT}/jsp-examples

All of the doc on the jakarta site is out of date or scanty on Windows 
references.

Does anyone have this working with these versions?
I have attached my workers.properties and httpd.conf files
Thanls In Advance
---Raymond

#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/> for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.  
#
# After this file is processed, the server will look for and process
# C:/Program Files/Apache Group/Apache/conf/srm.conf and then C:/Program Files/Apache 
Group/Apache/conf/access.conf
# unless you have overridden these with ResourceConfig and/or
# AccessConfig directives here.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default' server,
# which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/usr/local/apache" will be interpreted by the
# server as "/usr/local/apache/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which Apache.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths, however, to avoid
# confusion.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerType is either inetd, or standalone.  Inetd mode is only supported on
# Unix platforms.
#
ServerType standalone

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
ServerRoot "C:/Program Files/Apache Group/Apache"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile logs/httpd.pid

#
# ScoreBoardFile: File used to store internal server process information.
# Not all architectures require this.  But if yours does (you'll know because
# this file will be  created when you run Apache) then you *must* ensure that
# no two invocations of Apache share the same scoreboard file.
#
ScoreBoardFile logs/apache_runtime_status

#
# In the standard configuration, the server will process httpd.conf (this 
# file, specified by the -f command line option), srm.conf, and access.conf 
# in that order.  The latter two files are now distributed empty, as it is 
# recommended that all directives be kept in a single file for simplicity.  
# The commented-out values below are the built-in defaults.  You can have the 
# server ignore these files altogether by using "/dev/null" (for Unix) or
# "nul" (for Win32) for the arguments to the di

RE: Tomcat process memory growth

2004-06-30 Thread STOCKHOLM, Raymond
It seems your web application has a memory leak :
Use a Profiler to check the memory usage in your application.



-Message d'origine-
De : Surendra Kumar [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 30 juin 2004 14:35
À : Tomcat Users List
Objet : Tomcat process memory growth


Hi
I am using Tomcat 4.1.29 and JDK 1.4.2_04 in my application.  The total memory of 
the process ( VM + Real Memory)
keeps on increasing.  The heap size of VM is not increasing ( verified by printing 
the free memory) , but the total memory 
used by the process increasing.

Any ideas on how to fix it ?

Thanks
Surendra

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



RE: NEWBIE: flexible declaration of a database URL

2004-06-18 Thread STOCKHOLM, Raymond
Use tomcat's pooling mecanism : 
in $TOMCAT/conf/server.xml, in your application Context, declare a Resource :








factory
org.apache.commons.dbcp.BasicDataSourceFactory


maxActive
100


maxIdle
3


maxWait
100



username
sa



password
sa



driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver(your 
driver)



url
your.url.with.correct.driver




validationQuery
select getdate()






You can, in your servlet, access the datasource  :
try {
Context ctx = new InitialContext();
this.dataSource = (DataSource) ctx.lookup("java:comp/env/jdbc/YOUR_DATABASE");
} catch (NamingException e) {
log.error("Constructor throws NamingException " + e.getMessage());
}


And then get a connection from it :
Connection conn = dataSource.getConnection();




-Message d'origine-
De : frederik gens [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 18 juin 2004 11:20
À : [EMAIL PROTECTED]
Objet : NEWBIE: flexible declaration of a database URL


Hello,
 
I'm currently developing a JSP/Servlet/JDBC application with Tomcat. In several 
classes called by servlets, I declare the URL which identify the database in order to 
open the connection. 
 
My question is: what is the best way to declare this URL only once, for example in a 
file, or in an environment variable. Therefore, the classes always call this variable. 
Changing the place of the database just requires to change the URL in one place.
 
Thanks in advance!
Frederik


-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

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



RE: question

2004-06-16 Thread STOCKHOLM, Raymond
Hi,

You need to have the correct package in /classes :

If CreaServizio.class is the package org.company
you should have :
matrici/web/
-many jsp files
-WEB-INF/
--web.xml
--classes/org/company/CreaServizio.class



-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 16 juin 2004 16:39
À : tomcat-user
Objet : question


Question, please.

I have a web application... named matrici/web


so i have a tree like this

matrici/web/
-many jsp files
-WEB-INF/
--web.xml
--classes/
--lib/

my application is under $CATALINA_HOME/webapps/ROOT

I put my extern class, CreaServizio.class in WEB-INF/classes/ is it right?
do i have to create a package for that class?
or do i have to use an explicit import instruction?

It returns me an error
 cannot resolve symbol symbol  : variable CreaServizio

CreaServizio is a class

Angelo



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


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



RE: How can I access a file located in WEB-INF

2004-06-16 Thread STOCKHOLM, Raymond
Thanks

-Message d'origine-
De : Tim Funk [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 16 juin 2004 13:24
À : Tomcat Users List
Objet : Re: How can I access a file located in WEB-INF


FAQ
http://jakarta.apache.org/tomcat/faq/misc.html#getResourceAsStream

-Tim

STOCKHOLM, Raymond wrote:

> Hi,
> 
> I need to access a file located in the directory WEB-INF of my web application.
> In fact, in WEB-INF/conf.
> How can I open this file in one of my servlet ?
>  

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


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



How can I access a file located in WEB-INF

2004-06-16 Thread STOCKHOLM, Raymond
Hi,

I need to access a file located in the directory WEB-INF of my web application.
In fact, in WEB-INF/conf.
How can I open this file in one of my servlet ?

Any advise is welcome.

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



RE: Is tomcat a suitable server for our application ?

2004-06-15 Thread STOCKHOLM, Raymond
Depends on your web application :-)

First guess would be yes :
you've got plenty of memory (don't forget to allocate it to tomcat),
and nice processors.

Second guess :
Think about how much memory each user session needs (then multiple
it by 3000 to see if you have enough),
and then try to evaluate how much processor work your application requires.
The best way to check this would be to use JMeter for test load,
and a profiler (such as OptimzeIt) on the server to check memory usage.





-Message d'origine-
De : Mondkar, Paresh [mailto:[EMAIL PROTECTED]
Envoyé : mardi 15 juin 2004 07:43
À : [EMAIL PROTECTED]
Objet : Is tomcat a suitable server for our application ?


> Hi,
>   We are planning to host a web application which is estimated to have
> around 3000 concurrent users. We are using SQL Server 2000 as database and
> Struts 1.1 framework.
> 
>   Our production server (i.e. web server. We're having a different
> database server.) has the foll. configuration:
> 4GB Ram
> Xenon P4 processors - 2 nos.
> Windows 2000 Professional OS
> 72 GB HDD
> 
>   Do you think that Tomcat is a suitable web server for our
> application?
> 
> Thanks & Regards,
> Paresh Mondkar.
> 

Confidential:  This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited.  If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.

-
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 response from Tomcat 5 with IIS

2004-06-09 Thread STOCKHOLM, Raymond
It seems the problem is local to your web application.

Create a test JSP in your web app, and try accessing it.
If it isn't responding, maybe all the available Thread for your web app are used,
maybe you have a dead lock somewhere...

I think that the number of threads available is specific to your Connector :

   

try increasing it... (default is min=5 max=75)
  

-Message d'origine-
DeÂ: George [mailto:[EMAIL PROTECTED]
EnvoyÃÂ: mercredi 9 juin 2004 02:33
ÃÂ: Tomcat Users List
ObjetÂ: RE: No response from Tomcat 5 with IIS


Thank you very much Raymond.
However all memories you pointed out are enough.
CPU load is almost zero.
During this problem is happenning, I create another small
test application and run. And I could get the result that
"Tomcat is running properly".
What's happen???
I think only my original application just hung up.
No error messages. No warnnings. No logs.
To recover this problem, is to reboot Tomcat.

Any suggestion would be appreciated.

George

--- "STOCKHOLM, Raymond" <[EMAIL PROTECTED]> wrote:
Maybe you are running low in memory, and the GC is
> taking all the process.
> check :
>   long totalMemory =
> Runtime.getRuntime().totalMemory();
>   long freeMemory =
> Runtime.getRuntime().freeMemory();
>   long maxMemory = Runtime.getRuntime().maxMemory();
>   log.info("totalMemory="+totalMemory);
>   log.info("freeMemory ="+freeMemory);
>   log.info("maxMemory  ="+maxMemory);
> 
> -Message d'origine-
> Deæ: George [mailto:[EMAIL PROTECTED]
> Envoyèæ: mardi 8 juin 2004 17:31
> ãã : [EMAIL PROTECTED]
> Objetæ: Re: No response from Tomcat 5 with IIS
> 
> 
> Hello! all.
> Please give me any advice since this issue is top
> urgent
> for me.
> Any suggenstion would be appreciated for me.
> Thank you very much.
> George
> 
> --- Reply from George <[EMAIL PROTECTED]>:
> > Hi!
> > I'm having following problem.
> > 
> > 
> > Tomcat 5.0.24 running on Windows 2000 server and
> IIS
> > 5,
> > JK2 2.0.4
> > The server is put under hardware load balancer
> > "BIG-IP" by
> > F5 inc.
> > 
> > 
> > Sometime when the system load is high (about 10 to
> > 20
> > users are using the aplication), tomcat does not
> > respond
> > suddenly.
> > No event log has written.
> > 
> > Is there anyone who can teach me any tunr arround?
> > 
> > Please help me!
> > 
> > George
> > 
> > 
> > __
> > Do You Yahoo!?
> > http://bb.yahoo.co.jp/
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> __
> Do You Yahoo!?
> http://bb.yahoo.co.jp/
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
http://bb.yahoo.co.jp/


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



RE: No response from Tomcat 5 with IIS

2004-06-08 Thread STOCKHOLM, Raymond
Maybe you are running low in memory, and the GC is taking all the process.
check :
long totalMemory = Runtime.getRuntime().totalMemory();
long freeMemory = Runtime.getRuntime().freeMemory();
long maxMemory = Runtime.getRuntime().maxMemory();
log.info("totalMemory="+totalMemory);
log.info("freeMemory ="+freeMemory);
log.info("maxMemory  ="+maxMemory);

-Message d'origine-
DeÂ: George [mailto:[EMAIL PROTECTED]
EnvoyÃÂ: mardi 8 juin 2004 17:31
ÃÂ: [EMAIL PROTECTED]
ObjetÂ: Re: No response from Tomcat 5 with IIS


Hello! all.
Please give me any advice since this issue is top urgent
for me.
Any suggenstion would be appreciated for me.
Thank you very much.
George

--- Reply from George <[EMAIL PROTECTED]>:
> Hi!
> I'm having following problem.
> 
> 
> Tomcat 5.0.24 running on Windows 2000 server and IIS
> 5,
> JK2 2.0.4
> The server is put under hardware load balancer
> "BIG-IP" by
> F5 inc.
> 
> 
> Sometime when the system load is high (about 10 to
> 20
> users are using the aplication), tomcat does not
> respond
> suddenly.
> No event log has written.
> 
> Is there anyone who can teach me any tunr arround?
> 
> Please help me!
> 
> George
> 
> 
> __
> Do You Yahoo!?
> http://bb.yahoo.co.jp/
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 

__
Do You Yahoo!?
http://bb.yahoo.co.jp/


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



RE: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
I put the tld file in $MYAPPLICATION/WEB-INF/tld/form-tags.tld

My application is delivered as a war (which tomcat expands),
and contains $MYAPPLICATION/WEB-INF/tld/form-tags.tld

(I don't have any other jar, except the war)

-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 09:19
À : Tomcat Users List
Objet : Re: Where to put tld files for jarred custom taglibs?


Where did you put the tld file in your jar file? Did you also put the jar
into a war file?

- Original Message -
From: "STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 2004 12:44 PM
Subject: RE: Where to put tld files for jarred custom taglibs?


> web.xml :
> 
>form-tags
>/WEB-INF/tld/form-tags.tld
> 
> JSP :
> <%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %>
>
>
> I declared as above, and it worked for me, don't ask me why :-)
>
>
> -Message d'origine-
> De : Keith Hankin [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 1 juin 2004 09:01
> À : Tomcat Users List
> Objet : Re: Where to put tld files for jarred custom taglibs?
>
>
> I locate it as follows: <%@ taglib
uri="http://website.com/mypkg/mytags.tld";
> prefix="mypref" %>
> , then in my web.xml have the following:
> 
> 
> http://website.com/mypkg/mytags.tld
> 
> 
>      /mytags.tld
> 
> 
>
> I also try specifying taglib-location as /META-INF/mytags.tld,
> /WEB-INF/mytags.tld, etc.
>
> - Original Message -
> From: "STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, June 01, 2004 12:09 PM
> Subject: RE: Where to put tld files for jarred custom taglibs?
>
>
> > How did you locate your tld in your JSP ?
> >
> > something like this ?
> > <%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %>
> >
> > -Message d'origine-
> > De : Keith Hankin [mailto:[EMAIL PROTECTED]
> > Envoyé : mardi 1 juin 2004 08:31
> > À : [EMAIL PROTECTED]
> > Objet : Where to put tld files for jarred custom taglibs?
> >
> >
> > I have created a custom taglib, extending TagSupport. I have packaged
the
> > class files into a jar. I have also added the tld file to this jar. I
then
> > place this jar file in my war file under WEB-INF/lib. However, no matter
> > where I place the tld file in the jar, it seems that Tomcat is unable to
> > find it. I have read the documentation, which is as clear as mud on this
> > issue.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


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



RE: Where to put tld files for jarred custom taglibs?

2004-06-01 Thread STOCKHOLM, Raymond
web.xml :

   form-tags
   /WEB-INF/tld/form-tags.tld

JSP :
<%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %>


I declared as above, and it worked for me, don't ask me why :-)
 

-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 09:01
À : Tomcat Users List
Objet : Re: Where to put tld files for jarred custom taglibs?


I locate it as follows: <%@ taglib uri="http://website.com/mypkg/mytags.tld";
prefix="mypref" %>
, then in my web.xml have the following:


http://website.com/mypkg/mytags.tld


 /mytags.tld



I also try specifying taglib-location as /META-INF/mytags.tld,
/WEB-INF/mytags.tld, etc.

- Original Message -
From: "STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 2004 12:09 PM
Subject: RE: Where to put tld files for jarred custom taglibs?


> How did you locate your tld in your JSP ?
>
> something like this ?
> <%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %>
>
> -Message d'origine-
> De : Keith Hankin [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 1 juin 2004 08:31
> À : [EMAIL PROTECTED]
> Objet : Where to put tld files for jarred custom taglibs?
>
>
> I have created a custom taglib, extending TagSupport. I have packaged the
> class files into a jar. I have also added the tld file to this jar. I then
> place this jar file in my war file under WEB-INF/lib. However, no matter
> where I place the tld file in the jar, it seems that Tomcat is unable to
> find it. I have read the documentation, which is as clear as mud on this
> issue.
>
>
>
> -
> 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: Where to put tld files for jarred custom taglibs?

2004-05-31 Thread STOCKHOLM, Raymond
How did you locate your tld in your JSP ?

something like this ?
<%@ taglib uri="/WEB-INF/tld/form-tags.tld" prefix="ftags" %>

-Message d'origine-
De : Keith Hankin [mailto:[EMAIL PROTECTED]
Envoyé : mardi 1 juin 2004 08:31
À : [EMAIL PROTECTED]
Objet : Where to put tld files for jarred custom taglibs?


I have created a custom taglib, extending TagSupport. I have packaged the
class files into a jar. I have also added the tld file to this jar. I then
place this jar file in my war file under WEB-INF/lib. However, no matter
where I place the tld file in the jar, it seems that Tomcat is unable to
find it. I have read the documentation, which is as clear as mud on this
issue.



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


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



Re: Tomcat 5 JK2 and IIS 5

2004-05-10 Thread Raymond Blum
Thanks, the installer ran beautifully but I still get the message "The 
Handle Is Invalid" in the browser and a 500 status in the web server 
log for the GET request for /jakarta/isap_redirector2.dll

This was good to try as I am now pretty sure that it is not some 
misconfiguration on my part but something in my IIS or Windows 
environment that is to blame.

---Raymond

On May 9, 2004, at 7:48 PM, Shane Linley wrote:

Well to tell the complete truth, at my site here we used this open 
source
JK2 IIS installer to do all the nitty gritty for us!

http://www.shiftomat.com/opensource/

It doesn't use the latest version of JK2, but I don't see why a simple 
dll
upgrade shouldn't fix that :)

This is the easiest way I've seen to install JK2... Otherwise I know 
of no
other way to help you at the moment...

shane..

-----Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 JK2 and IIS 5
Yes, I am running the ajp connectors at 8009, the 8018 is where Tomcat
is listening for HTTP requests instead of the default of 8080  I do
have the entry you describe below
---Raymond
On May 7, 2004, at 3:59 AM, Shane Linley wrote:

From memory, Tomcat runs the default ajp13 connector off of port 8009
not
8080 which is the default HTTP connector port. You worker2.properties
file
should specify to use port 8009 for your ajp13 connector and not 8018.
In your server.xml file look for an entry similar to:



to see what port your ajp13 connector is listening on.

Regards,
Shane.
-----Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 12:00 PM
To: Tomcat Users List
Subject: Tomcat 5 JK2 and IIS 5
Hi
   I am struggling to get IIS 5.0 to pass off JSP and servlet context
requests to tomcat 5.0.19 under Windows 2000.I have downloaded and
installed what I believe to be a usable copy of isapi_redirector2,dll
and have configured the virtual directory Jakarta under one of the web
servers in my IIS server.
Tomcat is running at 8018, not 8080

I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine
I map /servlet-examples/* to tomcat in workers2.properties and then I
try the following
XXX.XXX.XXX.XXX/servlet-examples
which yields the response
The servlet container is temporary unavailable or being upgraded
(I have found that this message seems to come from mod_jk and it only
is received in response to one of my mapped server paths, so I assume
that the URI mapping is being successfully interpreted and that the
problem is in my Tomcat and/or workers configuration)
I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I
assume that tomcat is there and listening.
Any tips greatly appreciated!  I have searched the archives and 
googled
this a dozen ways.
---Raymond

-
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: Tomcat 5 JK2 and IIS 5

2004-05-09 Thread Raymond Blum
Thanks,  I will try it, The install2iis,.js that Jakarta puts out bombs 
trying to find the web server root dir.

---Raymond
On May 9, 2004, at 7:48 PM, Shane Linley wrote:
Well to tell the complete truth, at my site here we used this open 
source
JK2 IIS installer to do all the nitty gritty for us!

http://www.shiftomat.com/opensource/

It doesn't use the latest version of JK2, but I don't see why a simple 
dll
upgrade shouldn't fix that :)

This is the easiest way I've seen to install JK2... Otherwise I know 
of no
other way to help you at the moment...

shane..

-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 JK2 and IIS 5
Yes, I am running the ajp connectors at 8009, the 8018 is where Tomcat
is listening for HTTP requests instead of the default of 8080  I do
have the entry you describe below
---Raymond
On May 7, 2004, at 3:59 AM, Shane Linley wrote:

From memory, Tomcat runs the default ajp13 connector off of port 8009
not
8080 which is the default HTTP connector port. You worker2.properties
file
should specify to use port 8009 for your ajp13 connector and not 8018.
In your server.xml file look for an entry similar to:



to see what port your ajp13 connector is listening on.

Regards,
Shane.
-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 12:00 PM
To: Tomcat Users List
Subject: Tomcat 5 JK2 and IIS 5
Hi
   I am struggling to get IIS 5.0 to pass off JSP and servlet context
requests to tomcat 5.0.19 under Windows 2000.I have downloaded and
installed what I believe to be a usable copy of isapi_redirector2,dll
and have configured the virtual directory Jakarta under one of the web
servers in my IIS server.
Tomcat is running at 8018, not 8080

I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine
I map /servlet-examples/* to tomcat in workers2.properties and then I
try the following
XXX.XXX.XXX.XXX/servlet-examples
which yields the response
The servlet container is temporary unavailable or being upgraded
(I have found that this message seems to come from mod_jk and it only
is received in response to one of my mapped server paths, so I assume
that the URI mapping is being successfully interpreted and that the
problem is in my Tomcat and/or workers configuration)
I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I
assume that tomcat is there and listening.
Any tips greatly appreciated!  I have searched the archives and 
googled
this a dozen ways.
---Raymond

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


Tomcat and JK2 config help needed

2004-05-07 Thread Raymond Blum
I have been trying to get the isapi_redirector2.dll working, but  
without much luck.  As the docs are pretty poor, I have gone through  
several people's accounts of their configs but no luck.  So, I am  
posting the config and environment with the hope that someone sees a  
problem or can point me at a good path to investigate.

**ENVIRONMENT
My server is Win2K
Webserver is IIS 5
Tomcat 5.0.19 running as a service
I have tried the binary for the latest JK2 (2.0.4) and the prior  
version, same results.

***PROBLEM
When I access jsp-examples directly from tomcat (i.e. specifying the  
tomcat http port), it works fine.
When I try to access it via XXX.XXX.XXX.XXX/jsp-examples  I get the  
message
"The Handle is Invalid"

**OTHER ERROR INFO
There are no messages in the Event log and the only messages I have  
ever seen in the jk2.log is the message "Initializing log file  
c:/tomcat/logs/iis_jk2.log"
The web server logs indicate a status code of 500 on a request to the  
redirector DLL.
Nothing in the Tomcat logs.
The work/jk2.shm file is created

**CONFIG
I have set up a virtual directory named "jakarta", it points to  
c:\tomcat\bin\win32\i386  exec permission was specified when creating  
it
I have set up an ISAPI filter on the web server it points to the  
redirector DLL in the dir  c:\tomcat\bin\win32\i386
my c:\tomcat\conf/jk2.conf file is all comments ("#")
my c:\tomcat\conf\workers2.properties file (until the "")
[logger.file:0]
level=DEBUG
file=c:/tomcat/logs/iis_jk2.log

[shm:]
info=shared mem file
file=c:\tomcat\work\jk2.shm
size=100
#[ajp13:localhost:8009]
#info=ajp13
#channel=channel.socket:localhost:8009
[channel.socket:127.0.0.1:8009]
info=Ajp13 worker
tomcatId=localhost:8009
[uri:/servlets-examples/*]
info=Tomcat 5 servlet examples
[uri:/jsp-examples/*]
info=Tomcat 5 JSP examples
## END OF PROPERTIES FILE ##
My relevant registry settings...
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation]

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

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi  
Redirector\2.0]
"serverRoot"="C:\\tomcat"
"extensionUri"="/jakarta/isapi_redirector2.dll"
"workersFile"="C:\\tomcat\\conf\\workers2.properties"
"logLevel"="DEBUG"

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\5.0]
"InstallPath"="c:\\tomcat"
"Version"="5.0.19"
[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service  
Manager]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service  
Manager\Tomcat5]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service  
Manager\Tomcat5\Parameters]
"Arguments"="java"
"Description"="Apache Tomcat 5.0.19 Server -  
http://jakarta.apache.org/tomcat/";
"DisplayName"="Apache Tomcat"
"ImagePath"="c:\\tomcat\\bin\\bootstrap.jar"
"Java"="java"
"StartupClass"="org.apache.catalina.startup.Bootstrap;main;start"
"ShutdownClass"="org.apache.catalina.startup.Bootstrap;main;stop"
"Startup"="manual"
"JavaOptions"=hex(7): 
2d,00,44,00,63,00,61,00,74,00,61,00,6c,00,69,00,6e,00,61,\
   
00,2e,00,68,00,6f,00,6d,00,65,00,3d,00,22,00,63,00,3a,00,5c,00,74,00,6f, 
00,\
   
6d,00,63,00,61,00,74,00,22,00,00,00,2d,00,44,00,6a,00,61,00,76,00,61,00, 
2e,\
   
00,65,00,6e,00,64,00,6f,00,72,00,73,00,65,00,64,00,2e,00,64,00,69,00,72, 
00,\
   
73,00,3d,00,22,00,63,00,3a,00,5c,00,74,00,6f,00,6d,00,63,00,61,00,74,00, 
5c,\
   
00,63,00,6f,00,6d,00,6d,00,6f,00,6e,00,5c,00,65,00,6e,00,64,00,6f,00,72, 
00,\
  73,00,65,00,64,00,22,00,00,00,2d,00,58,00,72,00,73,00,00,00,00,00
"WorkingPath"="c:\\tomcat"
"StdOutputFile"="c:\\tomcat\\logs\\stdout.log"
"StdErrorFile"="c:\\tomcat\\logs\\stderr.log"
## END OF REG FILE ###

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


Re: Tomcat 5 JK2 and IIS 5

2004-05-07 Thread Raymond Blum
Yes, I am running the ajp connectors at 8009, the 8018 is where Tomcat 
is listening for HTTP requests instead of the default of 8080  I do 
have the entry you describe below
---Raymond

On May 7, 2004, at 3:59 AM, Shane Linley wrote:

From memory, Tomcat runs the default ajp13 connector off of port 8009 
not
8080 which is the default HTTP connector port. You worker2.properties 
file
should specify to use port 8009 for your ajp13 connector and not 8018.

In your server.xml file look for an entry similar to:



to see what port your ajp13 connector is listening on.

Regards,
Shane.
-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 12:00 PM
To: Tomcat Users List
Subject: Tomcat 5 JK2 and IIS 5
Hi
   I am struggling to get IIS 5.0 to pass off JSP and servlet context
requests to tomcat 5.0.19 under Windows 2000.I have downloaded and
installed what I believe to be a usable copy of isapi_redirector2,dll
and have configured the virtual directory Jakarta under one of the web
servers in my IIS server.
Tomcat is running at 8018, not 8080

I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine
I map /servlet-examples/* to tomcat in workers2.properties and then I
try the following
XXX.XXX.XXX.XXX/servlet-examples
which yields the response
The servlet container is temporary unavailable or being upgraded
(I have found that this message seems to come from mod_jk and it only
is received in response to one of my mapped server paths, so I assume
that the URI mapping is being successfully interpreted and that the
problem is in my Tomcat and/or workers configuration)
I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I
assume that tomcat is there and listening.
Any tips greatly appreciated!  I have searched the archives and googled
this a dozen ways.
---Raymond
-
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]


install4iis.js can not find WEB SERVER ROOT dir

2004-05-07 Thread Raymond Blum
Hi
   I have a Windows 2K box with IIS 5 and Tomcat 5.0.19.  Downloaded 
the newest connectors, 2.0.4 and am trying to use the install4iis.js 
file.

I get the following msg

"Unable to find Web Server ROOT direcrory." (sic)

I used the -h but none of the command line options seem to be meant to 
address this.

Any help greatly appreciated
---Raymond

Tomcat 5 JK2 and IIS 5

2004-05-06 Thread Raymond Blum
Hi
  I am struggling to get IIS 5.0 to pass off JSP and servlet context 
requests to tomcat 5.0.19 under Windows 2000.I have downloaded and 
installed what I believe to be a usable copy of isapi_redirector2,dll 
and have configured the virtual directory Jakarta under one of the web 
servers in my IIS server.

Tomcat is running at 8018, not 8080

I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine
I map /servlet-examples/* to tomcat in workers2.properties and then I 
try the following
XXX.XXX.XXX.XXX/servlet-examples

which yields the response
The servlet container is temporary unavailable or being upgraded
(I have found that this message seems to come from mod_jk and it only 
is received in response to one of my mapped server paths, so I assume 
that the URI mapping is being successfully interpreted and that the 
problem is in my Tomcat and/or workers configuration)

I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I 
assume that tomcat is there and listening.

Any tips greatly appreciated!  I have searched the archives and googled 
this a dozen ways.
---Raymond

RE: How to limit time for Connector threads?

2004-05-05 Thread STOCKHOLM, Raymond
Maybe you should increase the number of threads in your connector.

check attribut maxProcessors in your server.xml
In this example, I set it to 500 instead of 75 (default value)



-Message d'origine-
De : rlipi [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 6 mai 2004 08:40
À : 'Tomcat Users List'
Objet : How to limit time for Connector threads?


Hallo,
is it possible in any way to limit time for threads that realize user
requests?

Sometimes (once a day in average), the Tomcat 5.0.19 server doesn't
answers. The reason is in error message "All threads are currently
busy". Probably there is a bug in the web application. Some kind of
synchronization death lock, I think. 
But localization of this bug is very hard. So, termination (and release
of all resources) of long time threads can be a work around.

Thank you for any suggestions,
Lipi.




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


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



RE: Can servlet generate a Web page first, then continue to run ?

2004-05-05 Thread STOCKHOLM, Raymond
If you explicitely close your writer (the outputstream) in your servlet, the client 
will receive your page,
and your servlet will be able to continue to work :

protected void processRequest(HttpServletRequest request,  HttpServletResponse 
response)
throws ServletException , IOException {
PrintWriter out = response.getWriter();
out.println("Page to display to client");
out.close();
// Do some work in your servlet...

}

-Message d'origine-
DeÂ: lixiaoquan [mailto:[EMAIL PROTECTED]
EnvoyÃÂ: mercredi 5 mai 2004 12:02
ÃÂ: [EMAIL PROTECTED]
ObjetÂ: Can servlet generate a Web page first, then continue to run ?


hi,

I want to show a page immediately after the visiters' Form Submitting ,then do some 
logical processing at backgroud(this will assume a long time, so it may bother the 
visitor).  I surpose to do these in one servlet.

How can I do this?

Thanks
 
stan


RE: Tomcat server stopping immediately after starting.

2004-05-05 Thread STOCKHOLM, Raymond
I had this problem when tomcat's http connector tried to use port 8080,
while Oracle was already using it.
Otherwise, to have more messages, start tomcat in debug :
replace "start" by "debug" in startup.bat
(line 41 : call "%EXECUTABLE%" debug %CMD_LINE_ARGS%)

-Message d'origine-
De : Reddy, Ravindranath (Cognizant) [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 5 mai 2004 10:09
À : [EMAIL PROTECTED]
Objet : Tomcat server stopping immediately after starting.


Hi
I have installed tomcat4.1 newly..
When I started the server either using starup.bat / Catalina.bat,
The server starting and immediately shuttingdown automatically..

I have set the Catalina_home and tomcat_home env var's upto the tomcat4.1 folder..

Please do the needful. If I missed something

Thanks & regards
Ravindra

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



RE: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.

2004-05-04 Thread STOCKHOLM, Raymond
Thanks for your reply.

I am examining thoroughly the different xml files used by tomcat,
but haven't found anything wrong yet.
I'll keep searching...


-Message d'origine-
De : Benjamin Armintor [mailto:[EMAIL PROTECTED]
Envoyé : mardi 4 mai 2004 15:20
À : Tomcat Users List
Objet : RE: Strange message : [Fatal Error] :2:1: Content is not allowed
in prolog.


This usually means that there's character content before the root
element in a document SAX is trying to parse.  Make sure you haven't
accidentally deleted any comment delimiting characters as you modified
files.

Benjamin J. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 04, 2004 2:03 AM
To: Tomcat Users List
Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in
prolog.


I am having this strange message when starting my tomcat : Apache
Tomcat/4.1.30 [Fatal Error] :2:1: Content is not allowed in prolog.

Everything else works fine.

I read that it was related to a SAXParseException,
and it seems to be related to tomcat itself,
and not any of my webapps (I removed them and I still have the message).

I have been customizing server.xml, web.xml, but they seem OK.

Does anybody knows what it means.

-
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: Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.

2004-05-04 Thread STOCKHOLM, Raymond
Thanks for the tip Doug,
I will try to do like this,
and I guess I will eventually find out what's wrong.

Raymond

-Message d'origine-
De : Parsons Technical Services [mailto:[EMAIL PROTECTED]
Envoyé : mardi 4 mai 2004 09:19
À : Tomcat Users List
Objet : Re: Strange message : [Fatal Error] :2:1: Content is not allowed
in prolog.


Raymond,

I don't know the meaning, sorry. But:

If I were in your shoes I would replace the server.xml and web.xml with
default. And I would do it one at a time. If it fixes it then add your
changes a section at a time and continue until you find it.

Also a trick is to use a xml viewer like Internet Explorer to colorize the
file and help you pick up on any format errors.

Doug
www.parsonstechnical.com


- Original Message - 
From: "STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 04, 2004 3:03 AM
Subject: Strange message : [Fatal Error] :2:1: Content is not allowed in
prolog.


I am having this strange message when starting my tomcat :
Apache Tomcat/4.1.30
[Fatal Error] :2:1: Content is not allowed in prolog.

Everything else works fine.

I read that it was related to a SAXParseException,
and it seems to be related to tomcat itself,
and not any of my webapps (I removed them and I still have the message).

I have been customizing server.xml, web.xml, but they seem OK.

Does anybody knows what it means.

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



Strange message : [Fatal Error] :2:1: Content is not allowed in prolog.

2004-05-04 Thread STOCKHOLM, Raymond
I am having this strange message when starting my tomcat :
Apache Tomcat/4.1.30
[Fatal Error] :2:1: Content is not allowed in prolog.

Everything else works fine.

I read that it was related to a SAXParseException,
and it seems to be related to tomcat itself,
and not any of my webapps (I removed them and I still have the message).

I have been customizing server.xml, web.xml, but they seem OK.

Does anybody knows what it means.

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



Re: Tomcat 5 admin application "403"

2004-04-06 Thread Raymond Blum
D-UH!

Thanks!  I had been using the "tomcat" role.

On Apr 6, 2004, at 10:07 PM, Parsons Technical Services wrote:

Raymond,

You have user names and passwords defined. Now for each of these did 
you
also define the role?

For a user to access the administration page the role of admin must be 
added
for that person.
One thing, is if you did add roles, is to check the syntax. Try 
setting up a
user with only the role of admin.

Are you using the .xml file or a database?

Doug
www.parsonstechnical.com
- Original Message -----
From: "Raymond Blum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 06, 2004 9:59 PM
Subject: Tomcat 5 admin application "403"

Hi
   I've installed Tomcat 5.0.19 on MacOSX 10.3 and all is well 
EXCEPT...
(of course)
When I try to get to the admin application, the login page comes up
fine. If I enter a username and password NOT defined in
conf/tomcat-users.xml I get an "invalid username..." page (as I 
should)
BUT when I enter a valid user and password I get a "403" (forbidden)
page with the description
"Access to the specified resource (Access to the requested resource 
has
been denied) has been forbidden."

I've checked permissions in Unix, Googled like crazy and looked in
catalina.out for any error msgs.  An admin log file is not being
created in logs/
Any help GREATLY appreciated
TIA
---Raymond


-
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 admin application "403"

2004-04-06 Thread Raymond Blum
Hi
  I've installed Tomcat 5.0.19 on MacOSX 10.3 and all is well EXCEPT... 
(of course)
When I try to get to the admin application, the login page comes up 
fine. If I enter a username and password NOT defined in 
conf/tomcat-users.xml I get an "invalid username..." page (as I should)
BUT when I enter a valid user and password I get a "403" (forbidden) 
page with the description
"Access to the specified resource (Access to the requested resource has 
been denied) has been forbidden."

I've checked permissions in Unix, Googled like crazy and looked in 
catalina.out for any error msgs.  An admin log file is not being 
created in logs/

Any help GREATLY appreciated
TIA
---Raymond

RE: Tomcat Site slow and stops responding after certain number of threads

2004-04-02 Thread STOCKHOLM, Raymond
Are you sure the JVM has enough memory ?

long totalMemory = Runtime.getRuntime().totalMemory();
long freeMemory = Runtime.getRuntime().freeMemory();
long maxMemory = Runtime.getRuntime().maxMemory();
log.info("totalMemory="+totalMemory);
log.info("freeMemory ="+freeMemory);
log.info("maxMemory  ="+maxMemory);


-Message d'origine-
De : s prasad [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 2 avril 2004 15:12
À : [EMAIL PROTECTED]
Objet : Re: Tomcat Site slow and stops responding after certain number
of threads


We have 4 gigs of memory on the box, although the entire machine peaks at 
around 2 Gigs we have other sites on the same server running same code that 
are perfectly alright. But, when the thread count on a site increases beyond 
the magic number of 107, its slow responding and then a little later it 
stops responding.

Prasad

>From: Peter Lin <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: Tomcat Users List <[EMAIL PROTECTED]>
>Subject: Re: Tomcat Site slow and stops responding after certain number of 
>threads
>Date: Thu, 1 Apr 2004 20:37:30 -0800 (PST)
>
>
>windows by default allocates 1mb of memory per thread.
>107 threads shouldn't cause any problems, unless your
>system only has 128mb of ram. From first hand
>experience, once the allocated memory reach half the
>physical ram, windows starts to disk cache. Once that
>happens, GC performance gets worse. In fact in .NET
>1.0, disk caching causes heap fragmentation and memory
>leaks. If disk cache is kicking in, the performance
>issues may be the result of heap fragmentation, which
>kills GC performance.
>
>peter lin
>
>
>--- sp k <[EMAIL PROTECTED]> wrote:
> > We have a Tomcat site which becomes terribly slow
> > and then stops responding
> > after the thread count in windows task manager
> > reaches 107 threads. We are
> > using Tomcat 4.1.27 on windows 2000 machine.  Our
> > load tests could never
> > emulate this behavior that occurs under real load.
> > When the site crashes the
> > memory consumption of the site is less than the
> > initial max heap size set
> > for it.
> >
> > Did any one ever face similar issues, we are baffled
> > as to why 107 threads?
> > Is related to the connector threads or JVM's garbage
> > collection?
> >
> > Does anyone have any idea why the site would crash
> > at the same thread level?
> >
> > Thanks,
> > Prasad
> >
> >
>_
> > Get rid of annoying pop-up ads with the new MSN
> > Toolbar - FREE!
> > http://toolbar.msn.com/go/onm00200414ave/direct/01/
> >
> >
> >
>-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
>
>__
>Do you Yahoo!?
>Yahoo! Small Business $15K Web Design Giveaway
>http://promotions.yahoo.com/design_giveaway/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Get rid of annoying pop-up ads with the new MSN Toolbar - FREE! 
http://toolbar.msn.com/go/onm00200414ave/direct/01/


-
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: JVM memory allocation

2004-04-01 Thread STOCKHOLM, Raymond
If tomcat is installed as a service you MUST set the parameters for CATALINA in the 
service :
CATALINA_OPTS=-server -Xms300m -Xmx300m -XX:NewRatio=2 -Xconcurrentio

Try a script such as this one (change whatever you need : java_home, catalina_home...) 
to  install your service.
This script is for tomcat 4.1.*, but I guess it should work for 5.0.*
With thus script, you should see 9 JVM options (0 to 8)

set JAVA_HOME=C:\j2sdk1.4.1_05

set CATALINA_HOME=G:\TOMCAT4.1.18

set CATALINA_OPTS=-server -Xms300m -Xmx300m -XX:NewRatio=2 -Xconcurrentio

set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll 
set PARAMETERS=%PARAMETERS% 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME%
set PARAMETERS=%PARAMETERS% -Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed
set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false
set PARAMETERS=%PARAMETERS% %CATALINA_OPTS%
set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start
set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop
set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log
set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log

%CATALINA_HOME%\bin\tomcat -install "Apache Tomcat 4.1" %PARAMETERS%

-Message d'origine-
De : Li Li [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 1 avril 2004 09:59
À : [EMAIL PROTECTED]
Objet : JVM memory allocation


Hi All,

I have some problems with my server.
I'm using Tomcat 5.0.18 with IIS 5.0 with isapi_redirector2.dll, J2SDK 1.4.2.
My server is running on Windows 2000 Server.
It has 2 processors and 2GB of memory.

My server, crashes very frequently.
At that time, Tomcat and IIS service is still running,  and the memory usage is around 
20%, but the CPU usage consistently remain at 50% for about 1min, the browser will 
returned "Page Not Found" error when trying to access. Then I must restart my server. 
I even cannot just restart the "Apache Tomcat" and "W3svc" service, since one of them 
cannot be stopped. Can somebody figure out for me what caused this?


My JVM max Memory allocation for this server is about 128 MB, total memory is about 
64M, sometime the free memory drop to 20K. I try to allocate more memory to JVM. I try 
to set it in system variable, in catalina.bat (set JAVA_OPTS=-Xms256 -Xmx512), and in 
workers2.properties, and even in Registry. But non of them work for me. Can anybody 
tell me how to increase the memory for JVM.

Actually, after I install Tomcat 5.0.18 as Service, it has written one record to 
Registry under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tomcat5", but 
just have two items, "Enum and Security", so I add one item "Parameters", which 
includes "JVM Library", "JVM Option Count", "JVM Option Number 0 ~ 4", ... So I can 
set "-Xms256M", and "-Xmx256M". But it doesn't work either, the total memory for JVM 
is still around 64M.

Another thing is the default name under 
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\" is "Tomcat5", which is 
inconsistant with the name in Service Monitor - "Apache Tomcat". Is this correct? And 
the CATALINA_HOME is "c:\Tomcat 5.0", which has a space inside. Does this will affect 
the result?


Regards,


Li Li





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.616 / Virus Database: 395 - Release Date: 3/10/2004

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



RE: How does Tomcat work?

2004-03-22 Thread STOCKHOLM, Raymond
go and check the documentation online : 
(tomcat 4.1) http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
or
(tomcat 5.0) http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

An excellent book : O'Reilly', Tomcat The Definitive Guide


-Message d'origine-
De : Bernd Kauling [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 12:52
À : [EMAIL PROTECTED]
Objet : How does Tomcat work?


Hello list,

i am a 18 year old student from germany, who 
needs some information about the tomcat server.
How does it work? 
Do you have some background information i may can use?

I would be pleased, for every little hint on this topic.

thanks :)


regards: Bernd


-
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: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
org.apache.jetspeed.portal.portlets.* is located in jetspeed.jar
In your webapp, you need jetspeed.jar in WEB-INF/lib, 
along with the various jars used by jetspeed (quite a lot...)

Are the errors you get displayed in the jetspeed.log file ?

Note : 
Jetspeed is delivered as a war (jetspeed.war)
that you only need to put in your $TOMCAT/webapps.
Did you manage to access the default jetspeed home page ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:15
À : Tomcat Users List
Objet : Re: Jetspeed classpath?


Sorry, here they are:
HelloWorldPortlet.java:5: package org.apache.jetspeed.portal.portlets 
does not exist
import org.apache.jetspeed.portal.portlets.AbstractInstancePortlet;
   ^
HelloWorldPortlet.java:9: package org.apache.ecs does not exist
import org.apache.ecs.ConcreteElement;
  ^
HelloWorldPortlet.java:11: package org.apache.ecs does not exist
import org.apache.ecs.StringElement;
  ^
HelloWorldPortlet.java:15: cannot find symbol
symbol: class AbstractInstancePortlet
public class HelloWorldPortlet extends AbstractInstancePortlet
   ^
HelloWorldPortlet.java:19: cannot find symbol
symbol  : class ConcreteElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
public ConcreteElement getContent (RunData runData)
   ^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : class StringElement
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
return (new StringElement ("Hello World! #" + getID()));
^
HelloWorldPortlet.java:23: cannot find symbol
symbol  : method getID()
location: class com.bluesunrise.jportal.portal.portlets.HelloWorldPortlet
return (new StringElement ("Hello World! #" + getID()));
  ^
7 errors

STOCKHOLM, Raymond wrote:

>>can't find blah
>>
>>
>Can you be more specific?
>
>-Message d'origine-
>De : Vi [mailto:[EMAIL PROTECTED]
>Envoyé : lundi 22 mars 2004 11:03
>À : Tomcat Users List
>Objet : Re: Jetspeed classpath?
>
>
>:)) Yes, I have jdk
>Errors are like, can't find blah, and so on
>STOCKHOLM, Raymond wrote:
>
>  
>
>>You need the JDK (not just the JRE) to compile your jsp/portlets.
>>
>>What errors do you get ?
>>
>>-Message d'origine-
>>De : Vi [mailto:[EMAIL PROTECTED]
>>Envoyé : lundi 22 mars 2004 10:58
>>À : Tomcat Users List
>>Objet : Jetspeed classpath?
>>
>>
>>Hello, I have tomcat and jetspeed. I have added all jar files which are 
>>in $CATALINA_HOME to $CLASSPATH.
>>( find $CATALINA_HOME -name "*.jar"  )
>>And I still can't compile portlets. I can compile servlets thow.
>>Anyone?
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> 
>>
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


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


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



RE: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
>can't find blah
Can you be more specific?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 11:03
À : Tomcat Users List
Objet : Re: Jetspeed classpath?


:)) Yes, I have jdk
Errors are like, can't find blah, and so on
STOCKHOLM, Raymond wrote:

>You need the JDK (not just the JRE) to compile your jsp/portlets.
>
>What errors do you get ?
>
>-Message d'origine-
>De : Vi [mailto:[EMAIL PROTECTED]
>Envoyé : lundi 22 mars 2004 10:58
>À : Tomcat Users List
>Objet : Jetspeed classpath?
>
>
>Hello, I have tomcat and jetspeed. I have added all jar files which are 
>in $CATALINA_HOME to $CLASSPATH.
>( find $CATALINA_HOME -name "*.jar"  )
>And I still can't compile portlets. I can compile servlets thow.
>Anyone?
>
>-
>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: Jetspeed classpath?

2004-03-22 Thread STOCKHOLM, Raymond
You need the JDK (not just the JRE) to compile your jsp/portlets.

What errors do you get ?

-Message d'origine-
De : Vi [mailto:[EMAIL PROTECTED]
Envoyé : lundi 22 mars 2004 10:58
À : Tomcat Users List
Objet : Jetspeed classpath?


Hello, I have tomcat and jetspeed. I have added all jar files which are 
in $CATALINA_HOME to $CLASSPATH.
( find $CATALINA_HOME -name "*.jar"  )
And I still can't compile portlets. I can compile servlets thow.
Anyone?

-
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: Config file mania

2004-03-11 Thread STOCKHOLM, Raymond
In my webapps, I use log4j, and I don't specify anything
such as 
 
   log4jPath
   logging.conf
   java.lang.String
 
in web.xml

I only put a log4j.properties file in
$tomcat/webapps/MYAPPLICATION/WEB-INF/classes
and of course log4j.jar in 
$tomcat/webapps/MYAPPLICATION/WEB-INF/lib

And it works !

Example of log4j.properties
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=DEBUG, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

You shoud see the logs in the console starting tomcat

-Message d'origine-
De : Michael Forster [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 11 mars 2004 11:40
À : Tomcat Users List
Objet : RE: Config file mania


No change
Still the cant find error

Mike.

> -Original Message-
> From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
> Sent: 11 March 2004 10:33
> To: Tomcat Users List
> Subject: RE: Config file mania
>
>
> Usually, the log4j.properties is looked for in your classpath.
> try :
> $tomcat\webapps\ROOT\WEB-INF\classes
>
> -Message d'origine-
> De : Michael Forster [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 11 mars 2004 11:28
> À : Tomcat-User
> Objet : Config file mania
>
>
> Ok, I am losing hair rapidly here,
>
> if I have an entry of
>
> 
>   log4jPath
>   logging.conf
>   java.lang.String
> 
>
> in my web.xml file where will it look for the logging.conf file.
> I have put
> a copy in every directory I can think of and it still says it
> can't find the
> file.
>
> the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\  directory.
> I have put a copy of logging.conf currently in
> \dev
> \dev\tomcat
> \dev\tomcat\conf
> \dev\tomcat\conf\Catalina
> \dev\tomcat\conf\Catalina\localhost
> \dev\tomcat\conf\Catalina\localhost\myapp\
> \dev\tomcat\webapps
> \dev\tomcat\webapps\ROOT
> \dev\tomcat\webapps\ROOT\WEB-INF
>
>
> Mike.
>
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
> O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
> G e+ h++ r+++ y+++
> --END GEEK CODE BLOCK--
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004
>
>
> -
> 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]
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004


-
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: Config file mania

2004-03-11 Thread STOCKHOLM, Raymond
Usually, the log4j.properties is looked for in your classpath.
try :
$tomcat\webapps\ROOT\WEB-INF\classes

-Message d'origine-
De : Michael Forster [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 11 mars 2004 11:28
À : Tomcat-User
Objet : Config file mania


Ok, I am losing hair rapidly here,

if I have an entry of


  log4jPath
  logging.conf
  java.lang.String


in my web.xml file where will it look for the logging.conf file. I have put
a copy in every directory I can think of and it still says it can't find the
file.

the web.xml is in the \dev\tomcat\webapps\ROOT\WEB-INF\  directory.
I have put a copy of logging.conf currently in
\dev
\dev\tomcat
\dev\tomcat\conf
\dev\tomcat\conf\Catalina
\dev\tomcat\conf\Catalina\localhost
\dev\tomcat\conf\Catalina\localhost\myapp\
\dev\tomcat\webapps
\dev\tomcat\webapps\ROOT
\dev\tomcat\webapps\ROOT\WEB-INF


Mike.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d- s:+ a C UL P+ L+++ E--- W+++ N+++ o+ K w
O-- M- V- PS+ PE+ Y+ PGP t+++ 5+++ X- R+++ tv++ h++ DI D++
G e+ h++ r+++ y+++
--END GEEK CODE BLOCK--
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.619 / Virus Database: 398 - Release Date: 10/03/2004


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


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



RE: tomcat service

2004-03-10 Thread STOCKHOLM, Raymond
You need the JDK (not just the JRE) to compile your JSP : (javac.exe in your path)


-Message d'origine-
De : Jérôme REYNAUD [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 10 mars 2004 13:57
À : 'Tomcat Users List'
Objet : tomcat service 



 Hi
  
 I want to install Tomcat as a service on a Win2k machine .
 The following  command line :  

%CATALINA_HOME%\bin\tomcat.exe -install "Jakarta Tomcat" 
%JAVA_HOME%\jre\bin\server\jvm.dll
 -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar
 -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs 
-start org.apache.catalina.startup.Bootstrap -params start 
-stop org.apache.catalina.startup.Bootstrap -params stop
 -out %CATALINA_HOME%\logs\stdout.log 
-err %CATALINA_HOME%\logs\stderr.log

 install the service succesfully, but i get the error 
  org.apache.jasper.JasperException: Unable to compile class for JSP 
An error occurred at line: -1 in the jsp file: null 
Generated servlet error: [javac] Compiling 1 source file 
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130) 
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93) 


If i stop the service and launch tomcat with the startup.bat ,it' s OK

Any Idea 

Thanks 

Jerome

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



RE: Internationalization problem

2004-03-02 Thread STOCKHOLM, Raymond
é is "é" in UTF-8.
It means that your browser is returning UTF-8, and your servlet/JSP
is expecting ISO-8859-1.
Check how your JSP is configured to handle the character set.
To use UTF-8 in your JSP :
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
and make sure that the charset in your JSP/HTML is defined as UTF-8 : 



-Message d'origine-
De : Jonathan Abramsohn [mailto:[EMAIL PROTECTED]
Envoyé : mardi 2 mars 2004 11:48
À : Tomcat Users List
Objet : Internationalization problem



I have problem with French special characters, like e with "accent" (é),
When I get this character from user input, tomcat gets it as: é.
Although I didn't check this in other languages I presume the same problems should 
also occur in German and Spanish and probably other languages.
I'm working with tomcat 4.0.1 on Linux RH 9.0
Anyone knows how to solve this?



-
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: Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
Thank's for the explanation.

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoyé : lundi 1 mars 2004 15:31
À : Tomcat Users List
Objet : RE: Configuring tomcat logs



Hi,

>Does anybody know if it is possible to configure tomcat
>to have a "RollingFileAppender" (as in log4j)
>for its log files ?
>I had a "no space left on device" due to too many logs in $TOMCAT/logs

Tomcat's logs are rotated nightly as you've probably noticed by now.
The catalina.out log is simply a trap for System.out/System.err and is
not rotated regularly by tomcat.  You can set swallowOutput=true on your
contexts to direct System.out/System.err output from them to the context
logs which are rotated, or you can use a 3rd program like cronlog to
rotate your logs.

Tomcat does not support all the configuration options of log4j's
RollingFileAppenders.  It is the server administrator's responsibility
to ensure enough space for logs: this is true for any server-side
program.

Yoav Shapira



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


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


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



Configuring tomcat logs

2004-03-01 Thread STOCKHOLM, Raymond
Does anybody know if it is possible to configure tomcat 
to have a "RollingFileAppender" (as in log4j)
for its log files ?
I had a "no space left on device" due to too many logs in $TOMCAT/logs

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



RE: Tomcat 3.3.1 vs Tomcat 4.1.29

2004-02-18 Thread STOCKHOLM, Raymond
Check your JAVA_HOME env variable,
and please tell us WHAT happens.

To have more information when starting tomcat,
change startup.bat to replace "start" by "debug" on line 41 :
(call "%EXECUTABLE%" debug %CMD_LINE_ARGS%)

when prompt, type "run",
you should have more information...

-Message d'origine-
De : CLEMENT Eric [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 18 février 2004 15:00
À : [EMAIL PROTECTED]
Objet : Tomcat 3.3.1 vs Tomcat 4.1.29 


Hello,
I've just downloaded and installed both release of Tomcat.
In the same environment(ie 6, Win XP and jsdk 1.4), Tomcat 3.3.1 is running,
Tomcat 4.1.29 doesn't (Tomcat 5.0.18 neither)
can anyone help me?

Eric Clément
230 Rue Marcelin Berthelot
ZI Toulon Est - La Garde - BP 68
83079 Toulon cedex 09 - France

Tél: 04-94-08-75-85
Fax: 04-94-08-09-38

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: another newbie question?

2004-02-12 Thread STOCKHOLM, Raymond
If you don't set enough memory, you will have some day "OutOfMemoryException",
that's sure, 
or you Garbage Collector will work as mad, and your application will stall.

-Message d'origine-
De : Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 12 février 2004 18:10
À : 'Tomcat Users List'
Objet : RE: another newbie question?


In my opnion, isn´t so necessary to set a inicial memory value to
JVM, because it will take more memory as needed.

> --
> De:   Shapira, Yoav[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  quinta-feira, 12 de fevereiro de 2004 12:59
> Para: Tomcat Users List
> Assunto:  RE: another newbie question?
> 
> 
> Howdy,
> Use the -Xmx java runtime option, set via the JAVA_OPTS environment
> variable as defined in $CATALINA_HOME/bin/catalina.sh.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, February 12, 2004 10:55 AM
> >To: [EMAIL PROTECTED]
> >Subject: another newbie question?
> >
> >hello
> >
> >sombody could tell mee how to increase memory off the jvm?
> >
> >got only 7mg left after aplication deployed
> >
> >tanks
> >
> >[EMAIL PROTECTED]
> >administrateur http://entre-nous.qc.tc
> >
> >_
> >MSN Search, le moteur de recherche qui pense comme vous !
> >http://fr.ca.search.msn.com/
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: tomcat 5.0.16 running out of resources

2004-02-09 Thread STOCKHOLM, Raymond
set your JAVA_OPTS accordingly to your needs in your startup.*

If you need 750 Mbytes, try this :
set JAVA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2

-Message d'origine-
De : Jake Alley [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 8 février 2004 15:23
À : [EMAIL PROTECTED]
Objet : tomcat 5.0.16 running out of resources


Hi, I'm running Tomcat 5.0.16 and I'm getting the following error 
peiiodically:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError

It happens when certain jsp forms are compiled.  Is there a way to increase 
the amount of system resources?  Sometimes the server just stops working and 
leaves no log traces as well.  Could these be related?  This is with code 
that worked fine in version 4.

Thanks.

_
Optimize your Internet experience to the max with the new MSN Premium 
Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/


-
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: Http Client / Tomcat

2004-02-05 Thread STOCKHOLM, Raymond
try the excellent http://jakarta.apache.org/commons/httpclient/
from jakarta of course

-Message d'origine-
De : Srinivas Vemula [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 5 février 2004 11:00
À : [EMAIL PROTECTED]
Objet : Http Client / Tomcat


Hi,
   
We have a stand alone java client talking to tomcat using 
HttpConnections. Does any one know of a HttpClient API which we can use 
to authenticate against Tomcat?? We are using tomcat realm security..

Thank you all for your time
srini

-- 
Srinivas Vemula  +91 40 23547826- Ext 201
Associate Consultant +91 40 23541447 (Fax)
Mensamind+91 98497-42720 (Mobile)
Hyderabad
India
http://www.mensamind.com

DISCLAIMER
The information contained in this e-mail is confidential and intended for the named 
recipient(s) only. If you are not an intended recipient of this email you must not 
copy, distribute or take any further action in reliance on it. You should delete it 
and notify the sender immediately.



-
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: Vedr.: RE: VM settings in windows service

2004-02-05 Thread STOCKHOLM, Raymond
>You do NOT have to reinstall Tomcat.
Fine by me, 
but how can you change the CATALINA_OPTS used by your service,
if you do not reinstall the windows service ?
Environment variables are not used by the service.


-Message d'origine-
De : Thomas Nybro Bolding [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 5 février 2004 09:07
À : Tomcat Users List
Objet : Vedr.: RE: VM settings in windows service


You do NOT have to reinstall Tomcat.

It appears to be case sensitive so use -Xmx256m

/Thomas





"STOCKHOLM, Raymond" <[EMAIL PROTECTED]>
04-02-2004 18:12
Besvar venligst til "Tomcat Users List"

 
Til:"Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Vedr.:  RE: VM settings in windows service

You must re-install your tomcat service with the options you want.
To make sure your options are properly set, use regedit to check them :
HKEY_LOCAL_MACHINE
 SYSTEM
 CurrentControlSet
 Services
 Apache 
Tomcat xxx
  Parameters
look for JVM Option Number x

Try this script (after adapting your parameters) to install your service.

set JAVA_HOME=C:\j2sdk1.4.1_05
set CATALINA_HOME=C:\SOFTWARE\TOMCAT_4.1.18
set CATALINA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2 -Xconcurrentio

set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll 
set PARAMETERS=%PARAMETERS% 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME%
set PARAMETERS=%PARAMETERS% 
-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed
set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false
set PARAMETERS=%PARAMETERS% %CATALINA_OPTS%
set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start
set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop
set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log
set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log

%CATALINA_HOME%\bin\tomcat -install "Apache Tomcat 4.1" %PARAMETERS%


-Message d'origine-
De : Tino Schöllhorn [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 4 février 2004 17:51
À : [EMAIL PROTECTED]
Objet : VM settings in windows service


Hi,

I am using Tomcat 5.0.18 on Windows 2000 as a service and I want to 
change the memory-setting of the VM the Tomcat-Service-Manager uses. I 
already changed the "Java Options" in the Tomcat Configuration tool, but 
when I look at the status page of tomcat it tells me that the MAX-Memory 
is 64MB instead of my 256M which I want.

I used the -X option to achieve this: -Xmx256M

What can I do that the service accepts these settings?

Tino



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





___
Vi gør opmærksom på, at denne e-mail kan indeholde fortrolig information. Hvis du ved 
en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen 
ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden 
at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhæftet bilag efter vores overbevisning er fri for virus 
og andre fejl, som kan påvirke computeren eller it-systemet, hvori den modtages og 
læses, åbnes den på modtagerens eget ansvar. Vi påtager os ikke noget ansvar for tab 
og skade, som er opstået i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.



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



RE: VM settings in windows service

2004-02-04 Thread STOCKHOLM, Raymond
You must re-install your tomcat service with the options you want.
To make sure your options are properly set, use regedit to check them :
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
Apache Tomcat xxx
Parameters
look for JVM Option Number x

Try this script (after adapting your parameters) to install your service.

set JAVA_HOME=C:\j2sdk1.4.1_05
set CATALINA_HOME=C:\SOFTWARE\TOMCAT_4.1.18
set CATALINA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2 -Xconcurrentio

set PARAMETERS=%JAVA_HOME%\jre\bin\server\jvm.dll 
set PARAMETERS=%PARAMETERS% 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
set PARAMETERS=%PARAMETERS% -Dcatalina.home=%CATALINA_HOME%
set PARAMETERS=%PARAMETERS% -Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed
set PARAMETERS=%PARAMETERS% -Dsun.io.useCanonCaches=false
set PARAMETERS=%PARAMETERS% %CATALINA_OPTS%
set PARAMETERS=%PARAMETERS% -start org.apache.catalina.startup.Bootstrap -params start
set PARAMETERS=%PARAMETERS% -stop org.apache.catalina.startup.Bootstrap -params stop
set PARAMETERS=%PARAMETERS% -out %CATALINA_HOME%\logs\stdout.log
set PARAMETERS=%PARAMETERS% -err %CATALINA_HOME%\logs\stderr.log

%CATALINA_HOME%\bin\tomcat -install "Apache Tomcat 4.1" %PARAMETERS%


-Message d'origine-
De : Tino Schöllhorn [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 4 février 2004 17:51
À : [EMAIL PROTECTED]
Objet : VM settings in windows service


Hi,

I am using Tomcat 5.0.18 on Windows 2000 as a service and I want to 
change the memory-setting of the VM the Tomcat-Service-Manager uses. I 
already changed the "Java Options" in the Tomcat Configuration tool, but 
when I look at the status page of tomcat it tells me that the MAX-Memory 
is 64MB instead of my 256M which I want.

I used the -X option to achieve this: -Xmx256M

What can I do that the service accepts these settings?

Tino



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


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



RE: Tomcat stops taking connections

2004-02-04 Thread STOCKHOLM, Raymond
Try increasing maxThreads="150" to something corresponding to your max load.
I had the same problem under tomcat 4.1.18, and increasing maxThreads 
from 75 to 400 resolved my problem : 
my average number of users connected=300.


-Message d'origine-
De : Lars Both [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 4 février 2004 16:24
À : [EMAIL PROTECTED]
Objet : Tomcat stops taking connections



Hi All!

I have this problem. I run Tomcat and it seems to be stable, but after a 
while under 'heavy' load it stops taking connections - actually 
connections aren't refused they just don't return. And it won't take any 
more connections until it has been restarted.

Tomcat version is 5.0.18, it is running under Redhat, the Connector is the 
default:



Tomcat does not crash. A thread i started from within some class is still 
running (maybe this is independed), also tomcat still accepts connections 
on the server-port:



Although i honestly dont know what this is for...

Sorry for this lousy description, hope there were enough information so 
that anybody got an idea of my problem..

Lars

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


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



RE: tomcat problem

2004-01-29 Thread STOCKHOLM, Raymond
try boosting the memory available for tomcat 
for instance add in startup.* :
set JAVA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2

and check the number of processors available : increase maxProcessors



-Message d'origine-
De : Alejandro Pérez Nava [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 29 janvier 2004 09:36
À : [EMAIL PROTECTED]
Objet : tomcat problem


Hello i have a problem.
i have the next configuration:
win2000 apache tomcat sql server, when i switch on the server the
application is very fast but 4 or 5 hours affter the application is slow and
two days after is very slow... then i switch off and switch on the server
and the application is very fast but 4 or 5 hours affter the application is
slow and two days after is very slow

thakns
Alejandro Pérez Nava.

Dir. Dep. Desarrollo.

CanaryWeb, S.L.

Tlf 922 210339



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



Deactivating StandardManager persistence of sessions

2004-01-28 Thread STOCKHOLM, Raymond
Whenever I stop Tomcat (4.1.18), it tries to persist all the sessions currently active.
I am not interrested in this feature,
and since many of the objects stored in the session are not Serializable,
I get a lot of error messages in localhost_log.-mm-dd.txt.

Does anybody know how to deactivate the persistence of sessions done by the 
StandardManager ?


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



RE: problems with javascript utf-8 with tomcat 4.1.29

2004-01-22 Thread STOCKHOLM, Raymond
Thanks for the tip.
I have tried CATALINA_OPTS=-Dfile.encoding=UTF-8,
I see, when executing my JSP, that the "file.encoding" is properly set,
I even see my logs as UTF-8 now,
but I still have my problem (javascript files interpreted as ISO-8859-1 instead of 
UTF-8)
with my menus stored in the javascript file (A@ appearsinstead of é).

What is strange is that I have put the javascript file in one of my apache (2.0.47)
directories, so that the browser downloads it from apache,
but I still have the problem.

It seems like tomcat is informing the browser that all the related files to my html 
page
are in ISO-8859-1 instead of UTF-8.

Is there a way to configure tomcat to send specific mime types (in my case 
text/javascript)
in specific charset (UTF-8)

Maybe this problem is related to the browser (Mozilla), since I don't have
the problem with IE 5.5, but with tomcat 4.0.27, 
I don't have the problem (javascript interpreted as ISO-8859-1 instead of UTF-8).

Any other guess ?



-Message d'origine-
De : Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 21 janvier 2004 18:00
À : 'Tomcat Users List'
Objet : RE: problems with javascript utf-8 with tomcat 4.1.29


Check or change your file.encoding variable to the encoding format
that you want.

> --
> De:   Alain Baucant[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  quarta-feira, 21 de janeiro de 2004 12:27
> Para: Tomcat Users List
> Assunto:  Re: problems with javascript utf-8 with tomcat 4.1.29
> 
> Good question.
> 
> Don't lose hope and try again in esperanto ;^)
> 
> STOCKHOLM, Raymond wrote:
> 
> > Since I have upgraded to tomcat 4.1.29 (from 4.1.27), my javascript
> pages containing UTF-8 characters
> > are interpreted as ISO-8859-1 in Mozilla and OPera, but not IE 5.5
> > My JSP pages are properly declared UTF-8 :
> > <%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
> > My HTML page also: 
> > 
> > So is my javascript file :
> >  charset="UTF-8">
> > The javascript files are used to contain the translations of the menus,
> > now I have "A@" instead of "é" in my menus...
> > Any ideas ?
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> *-
> *  Alain Baucant  -  [EMAIL PROTECTED]
> *-
> *  Aubay Luxembourg  (OFFIS / Aubay-SI)
> *
> *  Phone: +352 29 92 50 (40)
> *  Fax: +352 29 92 51
> *  Mobile: +352 021 35 12 81
> *
> *  51, place de Strasbourg
> *  L-2561 LUXEMBOURG
> *
> *  http://www.aubay.lu
> *-
> 
> 
> -
> 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]



problems with javascript utf-8 with tomcat 4.1.29

2004-01-20 Thread STOCKHOLM, Raymond
Since I have upgraded to tomcat 4.1.29 (from 4.1.27), my javascript pages containing 
UTF-8 characters
are interpreted as ISO-8859-1 in Mozilla and OPera, but not IE 5.5
My JSP pages are properly declared UTF-8 :
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"  %>
My HTML page also: 

So is my javascript file :

The javascript files are used to contain the translations of the menus,
now I have "A@" instead of "é" in my menus...
Any ideas ?

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



mod_jk2 binary

2003-11-21 Thread raymond
I have been running an Apache 1.3 server connected with Tomcat 3.2.3 using
mod_jk on RedHat 7.1. I am in the process of upgrading the server to use
Suse 9 and would like to upgrade to Apache 2. I have 2 questions. First, is
it possible to integrate Apache 2 with Tomcat 3? Also, where can I get a
linux binary for mod_jk2?

Any help would be appreciated,
Raymond J. Zeigler
Systems Programmer
Integrated Support Systems, Inc.





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



RE: Session Affinity

2003-09-26 Thread Ho, Raymond
Yes I did. After your email I checked again. 
But this time, I found the problem. The jvmRoute
was misspelled; it had "jmvRoute". This is
misspelled in the original server.xml file.
I corrected the spelling and it works fine now.

Thanks for your help.

Ray

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 26, 2003 3:02 PM
To: Tomcat Users List
Subject: Re: Session Affinity


did you set up jvmRoute in server.xml ?

Filip
- Original Message -
From: "Ho, Raymond" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 26, 2003 11:57 AM
Subject: Session Affinity


Hi,

I am trying to load balance between 2 Tomcat servers. But I cannot get
"session affinity" to work. The first time I get a page from the browser, I
would receive a page from one server. Then when I refresh (reload from
browser) the page, I would get a page from the other tomcat server. I have
checked the session id's from the 2 pages and they are different. If I
understand correctly, with session affinity, when I reload a page shouldn't
I get the page from the same server with the same session?

My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2.
For each tomcat instance, I have modified server.xml to have an unique
jvmRoute; "tn1" for one server and "tn2" for the other. These match the
tomcatId in the workers2.properties file.

The workers2.properties is

# only at beginnin. In production uncomment it out
[logger]
level=DEBUG

[config:]
file=${serverRoot}/workers2.properties
debug=0
debugEnv=0

[shm:]
file=${serverRoot}/logs/shm.file
size=1048576
debug=0
disabled=0

[lb:lb]
info=Default load balancer.
debug=0

# Example socket channel, override port and host.
[channel.socket:neptune:8009] info=Ajp13 forwarding over socket tomcatId=tn1
lb_factor=1 debug=0

[channel.socket:neptune:8109]
info=Ajp13 forwarding over socket
tomcatId=tn2
lb_factor=1
debug=0

[status:]
info=Status worker, display runtime informations

# Uri mapping
[uri:/*]
debug=0

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:


Is there something that I have missed or misunderstood? Any help would be
appreciated.

Regards,
Ray



IMPORTANT NOTICE:  The information in this email (and any attachments
hereto) is confidential and may be protected by legal privileges and work
product immunities. If you are not the intended recipient, you must not use
or disseminate the information. Receipt by anyone other than the intended
recipient is not a waiver of any attorney-client or work product privilege.
If you have received this email in error, please immediately notify me by
"Reply" command and permanently delete the original and any copies or
printouts thereof. Although this email and any attachments are believed to
be free of any virus or other defect that might affect any computer system
into which it is received and opened, it is the responsibility of the
recipient to ensure that it is virus free and no responsibility is accepted
by Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way from
its use.


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


IMPORTANT NOTICE:  The information in this email (and any attachments
hereto) is confidential and may be protected by legal privileges and work
product immunities. If you are not the intended recipient, you must not use
or disseminate the information. Receipt by anyone other than the intended
recipient is not a waiver of any attorney-client or work product privilege.
If you have received this email in error, please immediately notify me by
"Reply" command and permanently delete the original and any copies or
printouts thereof. Although this email and any attachments are believed to
be free of any virus or other defect that might affect any computer system
into which it is received and opened, it is the responsibility of the
recipient to ensure that it is virus free and no responsibility is accepted
by Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way from
its use. 

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



Session Affinity

2003-09-26 Thread Ho, Raymond
Hi,

I am trying to load balance between 2 Tomcat servers. But I cannot get
"session
affinity" to work. The first time I get a page from the browser, I would
receive a 
page from one server. Then when I refresh (reload from browser) the page, I
would
get a page from the other tomcat server. I have checked the session id's
from the
2 pages and they are different. If I understand correctly, with session
affinity, when
I reload a page shouldn't I get the page from the same server with the same
session?

My configuration is Solaris 2.9, Apache 2.0.47, Tomcat 4.1.27 and JK2 2.0.2.
For each tomcat instance, I have modified server.xml to have an unique
jvmRoute;
"tn1" for one server and "tn2" for the other. These match the tomcatId in
the
workers2.properties file.

The workers2.properties is

# only at beginnin. In production uncomment it out
[logger]
level=DEBUG

[config:]
file=${serverRoot}/workers2.properties
debug=0
debugEnv=0

[shm:]
file=${serverRoot}/logs/shm.file
size=1048576
debug=0
disabled=0

[lb:lb]
info=Default load balancer.
debug=0

# Example socket channel, override port and host.
[channel.socket:neptune:8009]
info=Ajp13 forwarding over socket
tomcatId=tn1
lb_factor=1
debug=0

[channel.socket:neptune:8109]
info=Ajp13 forwarding over socket
tomcatId=tn2
lb_factor=1
debug=0

[status:]
info=Status worker, display runtime informations

# Uri mapping
[uri:/*]
debug=0

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:


Is there something that I have missed or misunderstood? Any help would be
appreciated.

Regards,
Ray



IMPORTANT NOTICE:  The information in this email (and any attachments
hereto) is confidential and may be protected by legal privileges and work
product immunities. If you are not the intended recipient, you must not use
or disseminate the information. Receipt by anyone other than the intended
recipient is not a waiver of any attorney-client or work product privilege.
If you have received this email in error, please immediately notify me by
"Reply" command and permanently delete the original and any copies or
printouts thereof. Although this email and any attachments are believed to
be free of any virus or other defect that might affect any computer system
into which it is received and opened, it is the responsibility of the
recipient to ensure that it is virus free and no responsibility is accepted
by Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way from
its use. 


Example of using JMX within Tomcat for application configuration?

2003-01-24 Thread Will Raymond
Hello Everyone,

I'd like to create two MBeans within Tomcat to manage to
sets of resources within my web-based application.  The
first set of resources represent the logging levels I want
my app to respond to.  The second set of resources represent
app specific parameters.

Ideally, I'd like to create a MBean with an
external application that Tomcat could import on
initial startup.  

I currently have an install program that
sets various parameters required for my web-app to
function correctly.  I persist these parameters by
splatting them out to a XML file and store it within the TC
classpath hierarchy (to be read the first time the
web-app is run).  

Is there a way to create a MBean analogue of this XML file and store it (and its 
descriptor)
somewhere that TC/MX4J can automatically load when it first runs?

Are there any examples of creating a 'user' level MBean
and managing it from within a webapp?  All the Tomcat
code seems to be rather heavyweight and not oriented
towards pre-initializing and post-persisting application
level configuration information.

Thanks,

Will



server.xml, EmployeeRecordHome/EmployeeRecord

2002-10-14 Thread Raymond Barlow

Hi all!

I've just been looking around the server.xml file, and noticed the following:

  


So I decided to find out why it is in there. I've looked through the TomCat docs 
(4.0), and trawled newsgroups and mailing list archives, but cannot find out why this 
is in there, or if it can be used.

Could someone please explain to me what this is for? Is it possible to run EJBs with 
just TomCat without having to jimmy around with JBOSS or the like?

I'm using TomCat 4.0.

Regards,
Raymond Barlow


Connecting Apache with remote Tomcat

2002-10-14 Thread raymond

I have a jk connector that allows our Apache (version 1.3.22) web server on
Linux to forward requests to a tomcat (version 4.0.1) instance running on a
Windows 2000 server. Each time the tomcat server is cycled the Apache
server also requires cycling. I read in the docs that the newer version of
the mod_jk connector overcomes this requirement. I downloaded the latest
version of mod_jk.so for linux and saw no difference. Can you shed some
more light on how to overcome this problem? Does it require jk2 to work
properly?

Thanks for any help you can pass along.

Raymond J. Zeigler
Integrated Support System, Inc.
Clemson, SC




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




Force download through a jsp

2002-05-06 Thread RAYMOND Romain


Hello,

I try to download a text file through a jsp mapped to the correct url.
my problem is that the content file is shown and not downloaded.
I use " <%@page contentType="text/plain"%> ".


Thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




TC + JDO

2002-04-16 Thread RAYMOND Romain


Hello,

is someone using JDO (Castor implementation) within Tomcat.
I am looking a the Castor framework but i do not find examples about
using it with TC ... Docs or links will be appreciated.

Thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: TC hidding console

2002-04-12 Thread RAYMOND Romain


yeah, thanks
javaw was my good gift of the afternoon.

Peter Romianowski a écrit :
> 
> or simply use javaw instead of java (you would have to look into catalina.bat or .sh
> in order to change that)
> 
> > -Original Message-
> > From: Andy Eastham [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 12, 2002 2:09 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: RE: TC hidding console
> >
> >
> > There is a /b option in the start command that prevents a new window being
> > created.  You could try hacking the startup scripts to use this.  I haven't
> > tried this though.
> >
> > Andy
> >
> > > -Original Message-
> > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > Sent: 12 April 2002 12:50
> > > To: Tomcat Users List
> > > Subject: Re: TC hidding console
> > >
> > >
> > >
> > > Because it is to give a demo embended on a CD and I would not like
> > > to make all my debugs appear ...
> > >
> > > Barney Hamish a écrit :
> > > >
> > > > Why don't you just run Tomcat as a service. Then you'll never see the
> > > > console.
> > > >
> > > > -Original Message-
> > > > From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, April 12, 2002 1:45 PM
> > > > To: Tomcat Users List
> > > > Subject: TC hidding console
> > > >
> > > > Hello,
> > > >
> > > > is there a way under Windows2000 to hide TC console when starting up ?
> > > >
> > > > thanks.
> > > >
> > > > --
> > > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > > >
> > > > --
> > > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > > For additional commands: <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: TC hidding console

2002-04-12 Thread RAYMOND Romain


Because it is to give a demo embended on a CD and I would not like
to make all my debugs appear ...

Barney Hamish a écrit :
> 
> Why don't you just run Tomcat as a service. Then you'll never see the
> console.
> 
> -Original Message-
> From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 1:45 PM
> To: Tomcat Users List
> Subject: TC hidding console
> 
> Hello,
> 
> is there a way under Windows2000 to hide TC console when starting up ?
> 
> thanks.
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




TC hidding console

2002-04-12 Thread RAYMOND Romain


Hello,

is there a way under Windows2000 to hide TC console when starting up ?


thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: war Deployement ?

2002-04-10 Thread RAYMOND Romain


I have seen it is possible with TC 4.1 (in JWDSP )to add a mywebapp.xml
file in the webapp directory.
This file is merged to the server configuration file ... so ti permits
to do required initializations.

But is there a way with TC 4.0.3 ?

> 
> Hello,
> 
> I package my web app as a war file. Probelm is that I'd like to do all
> initialization
> in my war file. But my server configuration file (server.xml) need to
> intialize the weapp
> RDBM driver : "
> 
>   type="javax.sql.DataSource"/>
> 
> 
>usersa
> 
>password
> driverClassName
> 
>org.hsqldb.jdbcDriver
> driverName
> 
> jdbc:hsqldb:D:/mywebapp/src/docroot/WEB-INF/databases/myDB
> 
> ".
> 
> So is there informations about how to package those servers
> configurations informations
> into a war to deploy my webapp without modifying server.xml ?
> 
> thanks.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




war Deployement ?

2002-04-10 Thread RAYMOND Romain


Hello,

I package my web app as a war file. Probelm is that I'd like to do all
initialization
in my war file. But my server configuration file (server.xml) need to
intialize the weapp
RDBM driver : "

 


usersa

password
driverClassName

org.hsqldb.jdbcDriver
driverName

jdbc:hsqldb:D:/mywebapp/src/docroot/WEB-INF/databases/myDB

".

So is there informations about how to package those servers
configurations informations
into a war to deploy my webapp without modifying server.xml ?


thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Libraries problem

2002-04-02 Thread RAYMOND Romain


Yeah,
thanks a lot Mr. Kjome.

Jacob Kjome a écrit :
> 
> Hi Raymond,
> 
> Supposedly having the XML parser in the webapp itself is against the Sun
> classloading spec.  The spec was beginning to be implemented in 4.0.2 (in
> fact, if you look at 4.0.2-b2, you still get the 4.0.1 behavior).  4.0.3 is
> pretty much an exact copy of 4.0.2 except with a security fix.  4.0.4 betas
> are starting to get the classloading issues right (before you would see a
> lot of ClassNotFoundExceptions even if the lib was in the proper directory
> in Tomcat outside the webapp).
> 
> Here's the official bug on this behavior:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374 (note that it is
> fixed, btw)
> 
> Much of this has to do with the fact that j2sdk.4.0 now contains an XML
> parser by default.  You may have noticed the new lite builds without most
> of the libraries since 1.4.0 already includes them.
> 
> Jake
> 
> At 09:03 AM 4/2/2002 +0200, you wrote:
> 
> >Hello,
> >
> >I use TC 4.0.3, my web app used XML parser and transformer (throught the
> >XML Jakarta project FOP).
> >Before I was using TC 4.0.1, with this version my application was
> >working with all libraries (jar files)
> >used to run it who were inside my WEB-INF/lib.
> >I do not understand why now I am with TC 4.0.3, I have to put a
> >transformer jar (xalan) in my TC/common/lib
> >repository ?
> >
> >Any indications or documentation about this libraries incluson problem ?
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Libraries problem

2002-04-01 Thread RAYMOND Romain


Hello,

I use TC 4.0.3, my web app used XML parser and transformer (throught the
XML Jakarta project FOP).
Before I was using TC 4.0.1, with this version my application was
working with all libraries (jar files)
used to run it who were inside my WEB-INF/lib.
I do not understand why now I am with TC 4.0.3, I have to put a
transformer jar (xalan) in my TC/common/lib 
repository ?

Any indications or documentation about this libraries incluson problem ?

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




?Different process/jvm for each webapp?

2002-03-21 Thread tomcat raymond


> tomcat and webapps
is every "webapp"/application in tomcat run in its own jvm/address space/process?
i see a number of webapplications, accessing a different application scoped variable 
with
the same name.
regards all,
vj



-
Do You Yahoo!?
Get personalised at My Yahoo!.


JSTL taglib forEach

2002-03-14 Thread RAYMOND Romain

hello,

Sorry I know it isn't the exact mailing list for my question ...
I am trying to use jakrata taglib JSTL, particulary forEach taglib.
I look at the given examples and I don't understand how to initialize
collection on which the forEach applies.

Collection declared before in the JSP are not accessible
ex : "
<@  import URI and prefix for JSTL
<%
Collection bob = getMyColl();
%>
"
and in the forEach JSTL I use the coll bob which is correctly
initialized but that
I can't access within the forEach tag

thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: security

2002-03-12 Thread RAYMOND Romain

> 
> Oui, le francais etait bienvenu.
> 
> Mais pour ma question de proteger l'url '/myservlet?action=1'
> et pas l'url '/myservlet?action=2',

est ce que tu as essaye en jouant sur le web.xml avec les tags
 et
/myservlet?action=1
?

je sais pas si ca peut marcher mais cest ce qui decoule de la doc
sinon y a l option des filtres ...
 


> 
> j'ai essaye dans Tomcat/examples/jsp/security/protected, et je ne suis arrive
> a proteger qu'une servlet,
> sans pouvoir differencier les protections suivant les parametres.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: security

2002-03-12 Thread RAYMOND Romain

> 
> Hello,
> 
> I would like to use tomcat security, but I don't understand what is the
> j_security_check url called
> when sending login/password form. Does someone knows about it ?

> Furthermore, is it possible to protect the url '/myservlet?action=1'
> and not the url '/myservlet?action=2'

sorry I had forgotten the second question about URL protection ...
yes it is possible see the Tomcat/examples/jsp/security/protected
which may explain this


> 
> Thanks
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: security

2002-03-12 Thread RAYMOND Romain


j_security_check est un mecanisme natif de l'API servlet.
il suffit donc de de creer un formulaire HTML ou l'action =
j_security_check par exemple 
suivant les specs : "


 Identifiant 

 Mot de passe 


"

ce formulaire est automatiquement "mappé" avec les directives fournies a
Tomcat
(cf Tomcat-users.xml et l'exemple de jsp fourni avec Tomcat dans les
repertoires security/protected)
...

voilou j espere que c etait a peu pres clair
et que le frenchy language etait bienvenue ...

> 
> Hello,
> 
> I would like to use tomcat security, but I don't understand what is the
> j_security_check url called
> when sending login/password form. Does someone knows about it ?
> Furthermore, is it possible to protect the url '/myservlet?action=1'
> and not the url '/myservlet?action=2'
> 
> Thanks
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: How to set Entry Point

2002-03-11 Thread RAYMOND Romain

> 
> On 3/12/2002 1:17 AM, Gurmeet wrote:
> > Thanks for response but this does not help me.
> >
> > What I want to do is that all requests to my application be routed through a
> > particular JSP wherein I will exercise access control mechanism.
> 

You could look to " filters " which are only avalaible with servelt 2.3
(TC 4)

> http://www.tuxedo.org/~esr/faqs/smart-questions.html
> 
> As for your actual problem, you'll probably need to redesign your application
> to use what's known as MVC architecture.  If your application hasn't been
> designed with central dispatcher, I can't see how web.xml can help.
> 
> Emir.
> 
> >
> > Regards
> > Gurmeet
> >
> > -Original Message-
> > From: Emir Alikadic [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 12, 2002 11:40 AM
> > To: Tomcat Users List
> > Subject: Re: How to set Entry Point
> >
> >
> > On 3/12/2002 12:53 AM, Gurmeet wrote:
> >> Hi all,
> >>
> >> I am new Tomcat user. pls help me how can I define a particular JSP page
> > to
> >> be the entry point for my application.
> >>
> >> Please tell me what all I need to specify in my web.xml.
> >>
> >> Regards
> >> Gurmeet
> >
> > 
> >index.jsp
> >index.wml
> >index.html
> > 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: RealmJDBC question

2002-03-08 Thread RAYMOND Romain

yeah thanks it is a good idea which is an ideal solution for my
application

Christian Froehler a écrit :
> 
> RAYMOND Romain wrote:
> > Hello,
> >
> > I would like to implement RealmJDBC to get userrole from my DB,
> > but I have to find the role (and so the associated table's row) from
> > foreign keys
> > depending on others parameters than user login row ...
> >
> > is it clear, and anybody has links or docs about this ?
> >
> > thanks
> 
> Just another suggestion:
> 
> If your RDBMS supports it, you could use a view. For example, in
> postgresql this should work:
> 
> CREATE VIEW jdbcrealm_user_role
> AS SELECT user_login, role_name
> FROM t_user, t_role, t_user_role
> WHERE t_user.user_id = t_user_role.user_id
> AND t_role_role_id = t_role.role_id;
> 
> This view delivers a simplified view of a more complex user/role
> database structure to jdbcrealm.
> 
> You have to grant the select right to the rdbms-user tomcat uses.
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: RealmJDBC question

2002-03-08 Thread RAYMOND Romain

Thanks and have a good day

Barney Hamish a écrit :
> 
> The queries tomcat uses are hardcoded. Given the way JDBC Realms are
> implemented on Tomcat you've only got two choices:
> 
> 1. Modify the existing org.apache.tomcat.request.JDBCRealm to use the query
> you want it to use.
> 
> 2. Write your own request interceptor from scratch.
> 
> Have a look at the source for org.apache.tomcat.request.JDBCRealm it
> shouldn't be hard to get it do what you want.
> Good luck
> Hamish
> 
> -Original Message-
> From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 9:57 AM
> To: [EMAIL PROTECTED]
> Subject: RealmJDBC question
> 
> Hello,
> 
> I would like to implement RealmJDBC to get userrole from my DB,
> but I have to find the role (and so the associated table's row) from
> foreign keys
> depending on others parameters than user login row ...
> 
> is it clear, and anybody has links or docs about this ?
> 
> thanks
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RealmJDBC question

2002-03-08 Thread RAYMOND Romain

Hello,

I would like to implement RealmJDBC to get userrole from my DB,
but I have to find the role (and so the associated table's row) from
foreign keys
depending on others parameters than user login row ...

is it clear, and anybody has links or docs about this ?

thanks

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: getSession take too mush time.

2002-01-10 Thread Raymond Lee
In my case, the other calls  to request.getSession() after the first run of this 
function 
is fast, I do not notice any slow down in my logon process after a first user logged 
on.

Raymond

-Original Message-
From: Katsuyuki Michishita [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:49 PM
To: Tomcat Users List
Subject: Re: getSession take too mush time.


Thank you for Reply:) The first time is bit slow.. true.
How about "after the session is time out, or on other users' request?"
As long as Servlet is loaded on VM, and called once, it is pretty fast?


-kats

- Original Message -
From: "Raymond Lee" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, January 11, 2002 3:18 PM
Subject: RE: getSession take too mush time.


> But only first time call to request.getSession() takes a little bit long
time.
> After that, it is pretty fast :)
>
> Raymond
>
> -Original Message-
> From: Katsuyuki Michishita [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 11, 2002 11:33 AM
> To: Tomcat Users List
> Subject: Re: getSession take too mush time.
>
>
> Is there any solution for not taking too much time like this?
> -Kats
> - Original Message -
> From: "Katsuyuki Michishita" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 11, 2002 12:00 PM
> Subject: getSession take too mush time.
>
>
> > request.getSession() take 5 second to execute the code.
> > one of person answer me following:
> > "is it tomcat? then it's because sessionids are computed by
SecureRandom.
> > First
> > number takes about 5 seconds, thats normal"
> >
> > So this is happen only first time of execution?
> > I do not have to worry this a day later?
> >
> > thank you
> >
> > -Kats
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


RE: getSession take too mush time.

2002-01-10 Thread Raymond Lee
But only first time call to request.getSession() takes a little bit long time. 
After that, it is pretty fast :)

Raymond

-Original Message-
From: Katsuyuki Michishita [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 11:33 AM
To: Tomcat Users List
Subject: Re: getSession take too mush time.


Is there any solution for not taking too much time like this?
-Kats
- Original Message - 
From: "Katsuyuki Michishita" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 11, 2002 12:00 PM
Subject: getSession take too mush time.


> request.getSession() take 5 second to execute the code.
> one of person answer me following:
> "is it tomcat? then it's because sessionids are computed by SecureRandom.
> First
> number takes about 5 seconds, thats normal"
> 
> So this is happen only first time of execution?
> I do not have to worry this a day later?
> 
> thank you
> 
> -Kats
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


Configuring Tomcat 3.2.3 to access Oracle 8i backend

2001-11-27 Thread Raymond Reid

Hello,
I currently have Apache 1.3.2 configured together with Tomcat 3.2.3
running on windows NT 4.0 Service pack 5, and when I remotely access
html pages that
execute simple JSP's (hello world looping 10 times etc...) everything
works fine.  On a second computer I have Oracle 8i running on Linux Red
Hat 6.2, and have
been successful accessing the database from NT using sqlplus.

My question is what modifications do I have to make to Apache/Tomcat to
obtain access to the Oracle database via JSP, and what drivers do I
need?

I've searched the Web, and referenced several books, but I just can't
find the information that I need.

Thank you,
Raymond Reid


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Thread pool problem in Tomcat 3.3 in Windows NT 4.0

2001-11-16 Thread Raymond Lee

Hi Larry,

Thanks for your help. Does the same bug exist in Tomcat 4.0.1? 

Cheers,
Raymond

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 10:29 PM
To: 'Tomcat Users List'
Subject: RE: Thread pool problem in Tomcat 3.3 in Windows NT 4.0


There is a bug in ThreadPool that causes it to overwrite the
settings installed by the Ajp13Connector.  This is fixed in
the nightly version of Tomcat 3.3.1 which can be found at:

<http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3/>

Cheers,
Larry

> -Original Message-----
> From: Raymond Lee [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 2001 2:43 AM
> To: [EMAIL PROTECTED]
> Subject: Thread pool problem in Tomcat 3.3 in Windows NT 4.0
> 
> 
> Hi,
> 
> I have used Tomcat 3.3 with Apache 1.3.12 as my development 
> servlet engine and 
> I have a query about thread pool of Ajp13Connector in Tomcat 3.3.
> 
> I define the following setting in server.xml and I expect 
> there should be at least 100
> threads created in startup of tomcat 3.3.
> 
>port="8009" 
>   maxThreads="500" 
>   maxSpareThreads="200" 
>   minSpareThreads="100" 
>   pools="true"/>
> 
> However, I found there are only 25 threads instead of 100 
> threads created in the java virtual
> machine used by Tomcat 3.3.  I browsed so many documents 
> about Tomcat 3.3 and even
> many forums but I was unable to find any relevent information 
> about this problem. 
> 
> In Tomcat 3.2, the way to define thread pool is different 
> from that of Tomcat 3.3.
> 
> Is the following setting valid in Tomcat 3.3?
> 
> Connector className="org.apache.tomcat.service.PoolTcpConnector">
>  value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> 
> 
> 
>     
> 
> 
> This setting can make the java virtual machine to create at 
> least 50 threads. (I confirmed this with Task
> Manager)
> 
> Does anyone know how to fix this?
> 
> Thanks,
> 
> Raymond Lee
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


Thread pool problem in Tomcat 3.3 in Windows NT 4.0

2001-11-15 Thread Raymond Lee

Hi,

I have used Tomcat 3.3 with Apache 1.3.12 as my development servlet engine and 
I have a query about thread pool of Ajp13Connector in Tomcat 3.3.

I define the following setting in server.xml and I expect there should be at least 100
threads created in startup of tomcat 3.3.



However, I found there are only 25 threads instead of 100 threads created in the java 
virtual
machine used by Tomcat 3.3.  I browsed so many documents about Tomcat 3.3 and even
many forums but I was unable to find any relevent information about this problem. 

In Tomcat 3.2, the way to define thread pool is different from that of Tomcat 3.3.

Is the following setting valid in Tomcat 3.3?

Connector className="org.apache.tomcat.service.PoolTcpConnector">


  




This setting can make the java virtual machine to create at least 50 threads. (I 
confirmed this with Task
Manager)

Does anyone know how to fix this?

Thanks,

Raymond Lee



Can I configure Tomcat to accept HTTP requests from remote machines?

2001-09-13 Thread Raymond Reid

Can I configure Tomcat to accept http requests from remote IP addresses
without running another web server at the same time? I
currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
configuring Tomcat, I can enter http://localhost8080
into the location field in my browser and see the welcome page.  But
when I try to access the same page from a
different computer using the IP address of the machine I have Tomcat
running on, the page won't come up.

Do I need to be running Apache with Tomcat to access pages remotely?  If
someone could please point me in the right
direction, I would really appreciate it.

Thanks,
Ray




Configuring apache/tomcat with mod_jk on different hosts

2001-07-10 Thread Raymond

Hello

If apache and tomcat are running on 2 different hosts, how do I perform the
configuration if I'm using mod_jk ? For e.g. should I place the
workers.properties file on apache side or tomcat side ? For mod_jserv I know
that I can use ApJServDefaultHost and ApJServDefaultPort directives.

Thanks & Regards
Raymond





compile error on sco

2001-05-15 Thread Raymond Orchison

Hi,

I have installed jaxp-1.0.1 in /usr/local/jaxp-1.0.1. I have set
CLASSPATH=/usr/local/jaxp-1.0.1 in my /etc/profile file. When I type
./build.sh in the tomcat directory I get the following:

Buildfile: build.xml

BUILD FAILED

No JAXP compliant XML parser found. See http://java.sun.com/xml for the
reference implementation.
--- Nested Exception ---
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
at org.apache.tools.ant.Main.runBuild(Main.java)
at org.apache.tools.ant.Main.main(Main.java)

Total time: 0 seconds

Can anyone help with this, I really need to get this compiled under SCO
Openserver.

Thanks

Raymond
http://www.it-systems.co.za




tomcat for sco

2001-05-08 Thread Raymond Orchison

Hi,

I know I've aldready enquired about this, but it's really urgent and I need
help. Is anyone able to tell me where I can get the binaries for tomcat for
SCO Openserver 5.0.6 or how I can get it compiled on SCO?

Thank you

Raymond Orchison




tomcat on sco

2001-05-06 Thread Raymond Orchison

Hi,

I have a UNIX system running SCO OpenServer 5.0.6. Can anyone help me with
info on how to compile tomcat together with all the neccessary apps? Does
anyone know where I can find the binaries for SCO?

Thanks
Raymond




ApJServSecretKey DISABLED problem

2000-11-28 Thread BOYLE, Raymond, FM

My setup is:
 
Tomcat 3.1
Apache 1.3.12
JDK 1.2.2
- all running on SunOS 5.6
 
I've also built the mod_jserv.so.
 
I can see from previous mails from the archives that numerous people have
had the same problem with trying to get Tomcat and Apache working but never
a clear resolution.
 
I have put the "ApJServSecretKey DISABLED" in the tomcat conf file that is
included by the Apache conf but I still get the message saying:
 
"You must specify a secret key or disable this feature. etc etc"
 
Does a jserv.properties file have any part to play in the process.
 
Regards,
Ray Boyle
 
 



This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.