I can not replace a classloader using Loader tag.

2005-04-26 Thread Hideaki HIBINO
Hello,
(B
(BI am trying to replace the default classloader of Tomcat to a
(Bclassloader that I customized. I red the manual for customizing
(Bit (server configuration on Jakarta tomcat site) and wrote the
(Bfollowing configuration in context configuration file.
(B
(B!-- ${CATALINA_HOME}/conf/Catalina/localhost/myapp.xml --
(BContext path="/myapp" docBase="${catalina.home}/webapps/myapp"
(Bdebug="1" privileged="true"
(B  Loader className="org.apache.catalina.loader.WebappLoader" /
(B/Context
(B
(BBut, I cannot change into customized classloader, and I am
(Bgetting the following error now.
(B
(BWhats wrong with the configuration?
(BCould somebody help me, please?
(B
(B
(B
(B!-- ${CATALINA_HOME}/logs/localhost_log.2005-04-26.txt --
(B
(B2005-04-26 16:52:18
(BStandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
(Binit(): ruleChain: [org.apache.webapp.balancer.RuleChain:
(B[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
(BNews / Redirect URL: http://www.cnn.com],
(B[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
(Bname: paramName / Target param value: paramValue / Redirect URL:
(Bhttp://www.yahoo.com],
(B[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
(Bhttp://jakarta.apache.org]]
(B2005-04-26 16:52:18 StandardContext[/myapp]Marking servlet default as
(Bunavailable
(B2005-04-26 16:52:18 StandardContext[/myapp]Error loading WebappClassLoader
(B  delegate: false
(B  repositories:
(B/WEB-INF/classes/
(B-- Parent Classloader:
(BStandardClassLoader
(B  delegate: true
(B  repositories:
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/shared/classes/
(B-- Parent Classloader:
(BStandardClassLoader
(B  delegate: true
(B  repositories:
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/classes/
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/endorsed/xercesImpl.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/endorsed/xmlParserAPIs.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/ant.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/commons-collections.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/commons-dbcp-1.1.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/commons-el.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/commons-pool-1.1.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/jasper-compiler.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/jasper-runtime.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/jsp-api.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/naming-common.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/naming-factory.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/naming-java.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/naming-resources.jar
(B
(Bfile:/workA/csg/hibino/tomcat/jakarta-tomcat-5.0.25-new/common/lib/servlet-api.jar
(B-- Parent Classloader:
(B[EMAIL PROTECTED]
(B
(B
(B org.apache.catalina.servlets.DefaultServlet
(Bjava.lang.ClassNotFoundException:
(Borg.apache.catalina.servlets.DefaultServlet
(Bat
(Borg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
(Bat
(Borg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
(Bat
(Borg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:954)
(Bat
(Borg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
(Bat
(Borg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3991)
(Bat
(Borg.apache.catalina.core.StandardContext.start(StandardContext.java:4335)
(Bat
(Borg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
(Bat
(Borg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
(Bat
(Borg.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
(Bat
(Borg.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
(Bat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(Bat
(Bsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
(Bat
(Bsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
(Bat java.lang.reflect.Method.invoke(Method.java:324)
(Bat
(Borg.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
(Bat org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
(Bat 

[OT] RE: development environment

2005-04-26 Thread Peter Crowther
 From: Patrick Lacson [mailto:[EMAIL PROTECTED] 
 I'm curious to what everyone's dev environment looks like.  

Dev: Athlon XP2200, 1Gbyte RAM, 80G hardware-mirrored HDDs*, Win2K
server, dual 1280x1024 TFTs.  Netbeans (when I have to), Ant, JUnit,
vim, CVSNT, putty.  Coffee machine next door - an important piece of
most developers' environments.

Test: 8-CPU Xeon 900, 2G RAM, 18G mirrored HDDs, Gentoo Linux, headless.
Ant, JUnit, vi, cvs, ssh.  In a secured machine room.  We're hacking
with a virtual file system and Tomcat internals, and we wanted a machine
where we could do some serious thread and load testing.  This came off
ebay for about $3k.

- Peter

* Yes, it's a workstation.  No, that's not an excuse for a developer to
have the HDD as a single point of failure :-).  These HDDs are
deliberately from different batches and different sources, so that it's
less likely they'll fail at close to the same time.

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



RE: [OT] RE: development environment

2005-04-26 Thread Josh McDonald
At home:

P4 2.8HT, 1.25Gb, ~200gb in various drives, 1x17 LCD, 1x19 Trinitron @
1280x1024(colour palettes on the Sony), leaning required to watch the
Simpsons, close to beer supply in kitchen (small apartment). Nice view of
the Story Bridge. Lousy Dodo 1/2 meg ADSL :) Big mofo Sony stereo for mp3
goodness, and a tablet for photoshop.

At the office:

Celery (non D) 2.6, 512mb, 40gb, 17 Samsung LCD (12ms, but nice
nonetheless). Enough for work (and quake 3 on Fridays) but nothing to write
home about.

Various servers ranging from gutless old p2s, to the mighty Darwin (assloads
of ram, a couple of xeons, you can hear the fans spool up from the other
side of town)

IntelliJ, MySQL (lousy opensource zealots ;-)), CVS *shudder*

-Josh

--

Until a man is twenty-five, he still thinks, every so often, that under the
right circumstances he could be the baddest mother in the world.

Josh 'G-Funk' McDonald :: Pirion Systems, Brisbane

07 3257 0490 :: 0437 221 380 :: [EMAIL PROTECTED]

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 26 April 2005 6:20 PM
To: Tomcat Users List
Subject: [OT] RE: development environment

 From: Patrick Lacson [mailto:[EMAIL PROTECTED] 
 I'm curious to what everyone's dev environment looks like.  

Dev: Athlon XP2200, 1Gbyte RAM, 80G hardware-mirrored HDDs*, Win2K
server, dual 1280x1024 TFTs.  Netbeans (when I have to), Ant, JUnit,
vim, CVSNT, putty.  Coffee machine next door - an important piece of
most developers' environments.

Test: 8-CPU Xeon 900, 2G RAM, 18G mirrored HDDs, Gentoo Linux, headless.
Ant, JUnit, vi, cvs, ssh.  In a secured machine room.  We're hacking
with a virtual file system and Tomcat internals, and we wanted a machine
where we could do some serious thread and load testing.  This came off
ebay for about $3k.

- Peter

* Yes, it's a workstation.  No, that's not an excuse for a developer to
have the HDD as a single point of failure :-).  These HDDs are
deliberately from different batches and different sources, so that it's
less likely they'll fail at close to the same time.

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



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



Re: Virtual hosts

2005-04-26 Thread Pete Stevens
On Mon, 25 Apr 2005, Dola Woolfe wrote:

 Hi,

 Running TC5.5 as a stand-alone.
 I've been reading about the HOST element, and i see
 that it can make mysite.com and www.mysite.com go to
 the same place. I apologize if I put it in a
 simplistic way.

Here's a simple guide to virtual hosts  aliases for the simplest environment
where Tomcat serves all traffic

http://www.ex-parrot.com/~pete/tomcat-vhost.html

Yours,

Pete Stevens

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

 Many religions have a belief that if you do not belong to that religion, you
   will go to hell. The number of these religions is greater than one, and, as
someone cannot belong to more than one religion, all souls go to hell.

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



RE: TCPCluster problem on heavily loaded webapps

2005-04-26 Thread Francois JEANMOUGIN


Peter Rossbach :


 Hello Francois,
 
 I have implemented a new restart algo at the current Tomcat 5.5 cvs head.
 Compile it and test it. I hope then this strange failure is gone. :-)

Hello,

Thank you for your kind help, but the site is a production site, I really
can't try an unstable (or not validated) tomcat on such site. I will wait for
a green flag on this version to put it in production. Also the migration from
5.0 to 5.5 is not straight forward, it will require some regression tests on
our side.

So. I will keep this heavy site in asynchronous mode until the devs are ready
for the 5.5 migration.

Again thank you for your work and help,

François.

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



procrun and NT service

2005-04-26 Thread Alessandro Fredianelli
Setting the --StartMode parameter of procrun to java or exe seems to be
not working.
Any other special setting is needed in order to have these parameters work?
If i try to install my server application as nt service with procrun, it
starts and after the
startup process the service ends. From the command line it normally
starts and remain
active waiting for incoming connection.
Any idea?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem Binding Tomcat to Ports 80/443

2005-04-26 Thread Craig
Hey Tomcat Users!

I am having  a very desperate problem with Tomcat.  I have a demonstration
due later today, and the script I have been using to run tomcat (5.0.27)
on ports 80/443 doesn't seem to do the job -- though it had been
workingfor weeks up until a restart earlier today.  I'm getting these
kinds of errors in catalina.out when I try to start it on port 80/443:

Apr 26, 2005 1:23:55 AM org.apache.coyote.tomcat5.CoyoteConnector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException

...

Apr 26, 2005 1:24:04 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80

I don't have anything running on ports 80 or 443, as a netstat -ltun
shows:

# netstat -ltun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 127.0.0.1:8005  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:71440.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80090.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:873 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:71450.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:3306  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:587 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80800.0.0.0:*   LISTEN
tcp0  0 66.93.121.250:530.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:530.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80860.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:22  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:54320.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:953   0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:84430.0.0.0:*   LISTEN
udp0  0 0.0.0.0:32768   0.0.0.0:*
udp0  0 66.93.121.250:530.0.0.0:*
udp0  0 127.0.0.1:530.0.0.0:*


The connectors in my server.xml look like this:


!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 --
Connector port=8086
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true redirectPort=443 /

   !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
Connector port=443
   minProcessors=5 maxProcessors=75
   enableLookups=true disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocal=TLS
   keystoreFile=/home/tomcat/.keystore keystorepass=xx
   keystoreType=JKS /

I get the same problem using the Tomcat5.sh jsvc script modified for my
installation as I do when I try to run tomcat as root!

It's like something has mysterously taken over ports 80/443 and won't tell
me about it or give them back!

Any suggestions?


- Craig
Ne te quaesiveris extra.


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



problem with compilation of jsp

2005-04-26 Thread vishwam
hi 
i hhave installed new apache tomcat on my system, iam facing problem when 
executing jsp files
i have set 
classpath  as  C:\Java\jdk1.5.0\lib;C:\Program 
Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat 
5.0\common\lib

java_home as C:\Java\jdk1.5.0

catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
but iam getting the below error message
the root cause is
 
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
can any one help  solve this this problem please?




RE: Problem Binding Tomcat to Ports 80/443

2005-04-26 Thread Peter Crowther
 From: Craig [mailto:[EMAIL PROTECTED] 
 Apr 26, 2005 1:24:04 AM org.apache.coyote.http11.Http11Protocol init
 SEVERE: Error initializing endpoint
 java.net.BindException: Permission denied:80

Are you running the Tomcat process as root?  If not, you won't be able
to bind to ports 80 or 443 on most Unixes.

What has changed in your environment, if anything?  User logins?  Port
numbers?

- Peter

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



Re: procrun and NT service

2005-04-26 Thread Mladen Turk
Alessandro Fredianelli wrote:
Setting the --StartMode parameter of procrun to java or exe seems to be
not working.
Any other special setting is needed in order to have these parameters work?
--StartMode=java|jvm
It defines if the JNI or out of process java.exe will be used.
The same is for --StopMode
Perhaps you were thinking on --Startup=manual|auto params?

If i try to install my server application as nt service with procrun, it
starts and after the
startup process the service ends. From the command line it normally
starts and remain
active waiting for incoming connection.
Any idea?
Just post the command line you are using for installation.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem Binding Tomcat to Ports 80/443

2005-04-26 Thread Nikola Milutinovic
Craig wrote:
Hey Tomcat Users!
I am having  a very desperate problem with Tomcat.  I have a demonstration
due later today, and the script I have been using to run tomcat (5.0.27)
on ports 80/443 doesn't seem to do the job -- though it had been
workingfor weeks up until a restart earlier today.  I'm getting these
kinds of errors in catalina.out when I try to start it on port 80/443:
Apr 26, 2005 1:23:55 AM org.apache.coyote.tomcat5.CoyoteConnector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
...
Apr 26, 2005 1:24:04 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
I don't have anything running on ports 80 or 443, as a netstat -ltun
shows:
 

Then you're running TC as an unprivileged user (tomcat4 or tomcat5) and 
only superuser can bind to ports  1024. Or, as a long shot, maybe 
you've enabled security, but TC should be able to bind to 80/443 with 
default security setup.

Anyway, I suspect it is the unprivileged user issue. It can be resolved 
in three ways.

1. Run TC behind Apache, which would run on ports 80/443 and TC would be 
connected via mod_jk (or mod_jk2, if you're sentimental/more adapt to it)

2. Run TC as root, since it is a demonstration, that additional risk 
is not going to kill you, but it is definitely not for production.

3. Run TC via Jakarta-Commons Daemon and it's JSVC
Solution No2 is the fastest, try it out and if it works, you can calm 
down and play with the other two.

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


Re: procrun and NT service

2005-04-26 Thread Alessandro Fredianelli
@echo off
call setenv.bat
echo %CLASSPATH%
pause
set line=
set line=%line% --ClassPath=%CLASSPATH%
set line=%line% --Description=ClinicalIntegrationServer
set line=%line% --Install=c:\cis\xqueue\service.exe
set line=%line% --DisplayName=CIS
set line=%line% 
--JvmOptions=-Djava.security.policy=cis.policy;-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
set line=%line% --JvmMx=20M --JvmMs=20M

set line=%line% --Startup=auto
set line=%line% --User=.\Administrator
set line=%line% --Password=pwd
set line=%line% --LogPath=c:\cis\xqueue\log
set line=%line% --LogPrefix=service.log
set line=%line% --StdOutput=c:\cis\xqueue\log\out.log.txt
set line=%line% --StdError=c:\cis\xqueue\log\err.log.txt
set line=%line% --JavaHome=c:\java
set line=%line% --Jvm=C:\java\jre\bin\server\jvm.dll
set line=%line% --StartPath=c:\cis\xqueue
set line=%line% --StartMode=jvm
set line=%line% --StartClass=xqueue.server.WorkFlowManager
set line=%line% --StartParams=start
set line=%line% --StopPath=c:\cis\xqueue
set line=%line% --StopClass=xqueue.server.WorkFlowManager
set line=%line% --StopParams=stop
set line=%line% --StopMode=jvm
service //IS//CIS %line%
set line=
that's how i create the service.
If i set startmode=java in order to have the possibility to specify an 
account different than LocalSystem,
procrun doesent start.

With the settings showed my server starts and after starting process the 
service ends without any error.

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


Re: problem with compilation of jsp

2005-04-26 Thread Anto Paul
On 4/26/05, vishwam [EMAIL PROTECTED] wrote:
 hi
 i hhave installed new apache tomcat on my system, iam facing problem when 
 executing jsp files
 i have set
 classpath  as  C:\Java\jdk1.5.0\lib;C:\Program 
 Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat 
 5.0\common\lib
 
 java_home as C:\Java\jdk1.5.0
 
 catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
 but iam getting the below error message
 the root cause is
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 can any one help  solve this this problem please?
 
 

Try setting JAVA_HOME instead of java_home. I am not sure whether it
is case sensitive in windows. It is not a good idea to install Tomcat
in a directory with spaces in the name.
-- 
Anto Paul

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



Re: procrun and NT service

2005-04-26 Thread Mladen Turk
Alessandro Fredianelli wrote:
that's how i create the service.
If i set startmode=java in order to have the possibility to specify an 
account different than LocalSystem,
procrun doesent start.

Hmm, are you using the CVS HEAD or last released version?
Any log messages?
Also does you Administrator account has a 'Log On As Service'
privilege?
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: problem with compilation of jsp

2005-04-26 Thread Raghupathy,Gurumoorthy
Please look at the list. This is because Tomcat has been installed on
program files a directory with spaces ... 
Please install tomcat in a directory without space c:\Server\Tomcat and
you should be fine 

Regards
Guru


-Original Message-
From: vishwam [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: problem with compilation of jsp 


hi 
i hhave installed new apache tomcat on my system, iam facing problem when
executing jsp files
i have set 
classpath  as  C:\Java\jdk1.5.0\lib;C:\Program
Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib

java_home as C:\Java\jdk1.5.0

catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
but iam getting the below error message
the root cause is
 
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
can any one help  solve this this problem please?



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



Re: Problem Binding Tomcat to Ports 80/443

2005-04-26 Thread Parsons Technical Services
Check to see if Tomcat is already running. Also the config you posted has 
the port at 8086. And something is listening on 8086.

Do a reboot and look at your processes and netstat before doing anything 
else. Then take it from there.

Doug
- Original Message - 
From: Craig [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 6:18 AM
Subject: Problem Binding Tomcat to Ports 80/443


Hey Tomcat Users!
I am having  a very desperate problem with Tomcat.  I have a demonstration
due later today, and the script I have been using to run tomcat (5.0.27)
on ports 80/443 doesn't seem to do the job -- though it had been
workingfor weeks up until a restart earlier today.  I'm getting these
kinds of errors in catalina.out when I try to start it on port 80/443:
Apr 26, 2005 1:23:55 AM org.apache.coyote.tomcat5.CoyoteConnector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
...
Apr 26, 2005 1:24:04 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Permission denied:80
I don't have anything running on ports 80 or 443, as a netstat -ltun
shows:
# netstat -ltun
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 127.0.0.1:8005  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:71440.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80090.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:873 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:71450.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:3306  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:587 0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80800.0.0.0:*   LISTEN
tcp0  0 66.93.121.250:530.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:530.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:80860.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:22  0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:54320.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:25  0.0.0.0:*   LISTEN
tcp0  0 127.0.0.1:953   0.0.0.0:*   LISTEN
tcp0  0 0.0.0.0:84430.0.0.0:*   LISTEN
udp0  0 0.0.0.0:32768   0.0.0.0:*
udp0  0 66.93.121.250:530.0.0.0:*
udp0  0 127.0.0.1:530.0.0.0:*
The connectors in my server.xml look like this:
   !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 80 --
   Connector port=8086
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false acceptCount=100
  debug=0 connectionTimeout=2
  disableUploadTimeout=true redirectPort=443 /
  !-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --
   Connector port=443
  minProcessors=5 maxProcessors=75
  enableLookups=true disableUploadTimeout=true
  acceptCount=100 debug=0 scheme=https secure=true
  clientAuth=false sslProtocal=TLS
  keystoreFile=/home/tomcat/.keystore keystorepass=xx
  keystoreType=JKS /
I get the same problem using the Tomcat5.sh jsvc script modified for my
installation as I do when I try to run tomcat as root!
It's like something has mysterously taken over ports 80/443 and won't tell
me about it or give them back!
Any suggestions?
- Craig
Ne te quaesiveris extra.
-
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]


Tutorial

2005-04-26 Thread Eugene Poole
I'm looking for a Tomcat tutorial that works!  I want to teach myself, 
if possible.  Where can I find a tutorial that covers Apache, Tomcat, 
Java2 1.4.x, and a database (hopefully Oracle) running on Fedora Core 3?

Gene
[EMAIL PROTECTED]

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


Jk and IIS 6 slow (resent)

2005-04-26 Thread Michael Südkamp
Hello,

I posted this question already a few days ago. Maybe this time I have more
luck with an answer ;-)



We have a problem with the IIS6/JK-connection on some of our Windows 2003
webservers (IIS 6).
Each request waits inside the JK connector for about 15 seconds until it is
forwarded to Tomcat.

I replaced our JK DLL with the recent version I found (1.2.10) and have the
same problem.
I set the JK log level to DEBUG and here are the two lines where the pause
occurs (notice the timestamp difference).

[Fri Apr 22 10:43:53 2005] [1276:1484] [debug]
HttpFilterProc::jk_isapi_plugin.c (842): [/examples/jsp] is a servlet url -
should redirect to ajp13
[Fri Apr 22 10:44:08 2005] [1276:1084] [debug]
wc_get_worker_for_name::jk_worker.c (94): found a worker ajp13

The strange thing is that other W2003 webservers we set up the same way have
not this problem. We are even sure that the problem webservers had not had
this problem some weeks ago.

Best regards

Michael


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



RE: Tutorial

2005-04-26 Thread Raghupathy,Gurumoorthy
Nice one 

http://www.tusc.com.au/tutorial/html/


Apache/Tomcat: doc | pdf

http://www.one0.com/html/downloads.php  : Click on the doc / pdf link 

Regards
Guru 



-Original Message-
From: Eugene Poole [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2005 12:32
To: tomcat-user@jakarta.apache.org
Subject: Tutorial


I'm looking for a Tomcat tutorial that works!  I want to teach myself, 
if possible.  Where can I find a tutorial that covers Apache, Tomcat, 
Java2 1.4.x, and a database (hopefully Oracle) running on Fedora Core 3?

Gene
[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: Jk and IIS 6 slow (resent)

2005-04-26 Thread Mladen Turk
Michael Südkamp wrote:
The strange thing is that other W2003 webservers we set up the same way have
not this problem. We are even sure that the problem webservers had not had
this problem some weeks ago.
How about your dns? I wold suggest that you use IP addresses for
your host names.
Do you think that might be a problem?
Also do you have some AV software installed on that box?
Anyhow, some basic config is preferred if you wish to get any help.
With your post we can only guess ;)
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Unsubscribe me!!!!!!!!!!!!!!!!!!!!!!!

2005-04-26 Thread McClure, Timothy J\(GE Infrastructure\)
pLEASE UNSUBSCRIBE ME, NO MATTER WHAT i DO i KEEP GETTING THESE STUPID 
MESSAGES!!

-Original Message-
From: Anto Paul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 7:11 AM
To: Tomcat Users List
Subject: Re: problem with compilation of jsp


On 4/26/05, vishwam [EMAIL PROTECTED] wrote:
 hi
 i hhave installed new apache tomcat on my system, iam facing problem when 
 executing jsp files
 i have set
 classpath  as  C:\Java\jdk1.5.0\lib;C:\Program 
 Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat 
 5.0\common\lib
 
 java_home as C:\Java\jdk1.5.0
 
 catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
 but iam getting the below error message
 the root cause is
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 can any one help  solve this this problem please?
 
 

Try setting JAVA_HOME instead of java_home. I am not sure whether it
is case sensitive in windows. It is not a good idea to install Tomcat
in a directory with spaces in the name.
-- 
Anto 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: problem with compilation of jsp

2005-04-26 Thread vishwam
the problem has been solved by

copying the
tools.jar file from  $java_home/lib   to $catalina_home/common/lib/

thanks for the reply to all
- Original Message -
From: vishwam [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 4:02 PM
Subject: problem with compilation of jsp


hi
i hhave installed new apache tomcat on my system, iam facing problem when
executing jsp files
i have set
classpath  as  C:\Java\jdk1.5.0\lib;C:\Program
Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib

java_home as C:\Java\jdk1.5.0

catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
but iam getting the below error message
the root cause is

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
can any one help  solve this this problem please?





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



Re: procrun and NT service

2005-04-26 Thread Alessandro Fredianelli
Mladen Turk wrote:
Hmm, are you using the CVS HEAD or last released version?
Any log messages?
Also does you Administrator account has a 'Log On As Service'
privilege?

last released.
Using LocalSystem account.
this is the log.
[2005-04-26 13:00:37] [info] Service CIS name CIS
[2005-04-26 13:00:38] [info] Service CIS installed
[2005-04-26 13:00:38] [info] Procrun finished.
[2005-04-26 13:02:14] [info] Running Service...
[2005-04-26 13:02:15] [info] Starting service...
[2005-04-26 13:02:16] [info] Service started in 1265 ms.
[2005-04-26 13:02:18] [info] Run service finished.
[2005-04-26 13:02:18] [info] Procrun finished.
[2005-04-26 13:03:57] [1193 prunsrv.c] [debug] Procrun log initialized
[2005-04-26 13:03:57] [info] Running Service...
[2005-04-26 13:03:57] [1036 prunsrv.c] [debug] Inside ServiceMain...
[2005-04-26 13:03:57] [info] Starting service...
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[0] 
-Djava.security.policy=cis.policy
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[1] 
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[2] -Xrs
[2005-04-26 13:03:57] [408  javajni.c] [debug] Jvm Option[3] 
-Djava.class.path=c:\cis\xqueue\bin\jdbc.jar;c:\cis\xqueue\bin\router.jar;c:\cis\xqueue\bin\xengine.jar;c:\cis\xqueue\bin\xplorer.jar;c:\cis\xqueue\bin\fs2mom.jar;c:\cis\xqueue\bin\scheduler.jar;lib\aqapi.jar;lib\jms.jar;lib\nls_charset12.jar;lib\ojdbc14.jar;c:\cis\xqueue\bin\client.jar;c:\cis\xqueue\bin\utilities.jar;c:\cis\xqueue\bin\server.jar;c:\cis\xqueue\bin\logservice.jar;c:\cis\xqueue\lib\saxon8.jar;c:\cis\xqueue\lib\saxon8-jdom.jar;c:\cis\xqueue\lib\saxon8-sql.jar;c:\cis\xqueue
[2005-04-26 13:03:58] [408  javajni.c] [debug] Jvm Option[4] vfprintf
[2005-04-26 13:03:58] [494  javajni.c] [debug] argv[0] = start
[2005-04-26 13:03:59] [907  prunsrv.c] [debug] Java started 
xqueue/server/WorkFlowManager
[2005-04-26 13:03:59] [info] Service started in 1875 ms.
[2005-04-26 13:03:59] [1110 prunsrv.c] [debug] Waitning worker to finish...
[2005-04-26 13:04:01] [531  javajni.c] [debug] Java Worker thread finished
[2005-04-26 13:04:01] [1115 prunsrv.c] [debug] Worker finished.
[2005-04-26 13:04:01] [info] Run service finished.
[2005-04-26 13:04:01] [info] Procrun finished.


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


Re: Unsubscribe me!!!!!!!!!!!!!!!!!!!!!!!

2005-04-26 Thread Mark Leone
Why don't you tell us what you've tried, and maybe we can figure out 
what's going wrong.

McClure, Timothy J(GE Infrastructure) wrote:
pLEASE UNSUBSCRIBE ME, NO MATTER WHAT i DO i KEEP GETTING THESE STUPID 
MESSAGES!!
-Original Message-
From: Anto Paul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 7:11 AM
To: Tomcat Users List
Subject: Re: problem with compilation of jsp
On 4/26/05, vishwam [EMAIL PROTECTED] wrote:
 

hi
i hhave installed new apache tomcat on my system, iam facing problem when 
executing jsp files
i have set
classpath  as  C:\Java\jdk1.5.0\lib;C:\Program 
Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat 
5.0\common\lib
java_home as C:\Java\jdk1.5.0
catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
but iam getting the below error message
the root cause is
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
can any one help  solve this this problem please?
   

Try setting JAVA_HOME instead of java_home. I am not sure whether it
is case sensitive in windows. It is not a good idea to install Tomcat
in a directory with spaces in the name.
 

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


Re: Unsubscribe me!!!!!!!!!!!!!!!!!!!!!!!

2005-04-26 Thread Larry Meadors
At the bottom of EVERY EMAIL you get from this list, you'll find this:

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

It is even in english for your benefit. :-)

Try it.

If it does not work, read the response. It will tell you WHY it did not 
work.

Follow those instructions.

Larry


Defining DBCP resources in web.xml?

2005-04-26 Thread Josh McDonald
The heading says it all - can it be done? If so, how do I go about it? I'd
rather not have a dozen different references in the server.xml if I can
avoid it, tho it's looking like I'll have to :-(

 

Anyway, any pointers much appreciated.

-Josh

--

Until a man is twenty-five, he still thinks, every so often, that under the
right circumstances he could be the baddest mother in the world.

Josh 'G-Funk' McDonald :: Pirion Systems, Brisbane

07 3257 0490 :: 0437 221 380 :: [EMAIL PROTECTED]

 



ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hi,

It seems like ISAPI filter for IIS is a common hurdle for many people to get it 
working, and I'm no exception.
My environment is as following:

Tomcat 5.0.28
IIS 6.0
Win 2003 Server
ISAPI_REDIRECT (used isapi_redirect-1.2.10.exe to setup)

I've gone through documentation for IIS 6 and ISAPI_REDIRECT and got the 
ISAPI_FILTER in IIS to have a green arrow.  However, it doesn't forward the 
request correctly to Tomcat, with IIS logging Error 404 - File not Found 
error.  Tomcat is working fine on port 8080.

Could anyone give me a direction on what could possibly be wrong?


Thank you,


Tony


Re: Why 8080 and 8443 ..?

2005-04-26 Thread David Whitehurst
Chuck:
Could you elaborate on what those parameters would be? A port is just a 
number. I'm trying to understand the history, but I would appreciate 
your comments on the other things required to make Tomcat production 
ready on top of just changing the Coyote connector from 8080 to 80 and 
8443 to 443?

Thanks,
David L. Whitehurst
Caldarale, Charles R wrote:
-Original Message-
From: Parsons Technical Services
   

[mailto:[EMAIL PROTECTED] 
 

Subject: Re: Why 8080 and 8443 ..?
So there are two of the possible reasons that an upper port 
was chosen. 
   

Also, Tomcat is distributed in a more-or-less development configuration,
rather than a production one.  There are several parameters in addition
to the ports that should be changed before putting it into a production
environment.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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


Re: OT: Good taglib repository - looking for date hadling tags

2005-04-26 Thread Rahul Akolkar
One such repository:
http://jakarta.apache.org/taglibs/

-Rahul

On 4/26/05, Nikola Milutinovic [EMAIL PROTECTED] wrote:
 Hi all.
 
 This is not exactly a Tomcat question, but since there are so many of us
 developers (and admins) around, I thought I ask.
 
 Is there a good repository of free JSP tag libraries for some common
 things, like date printing/formatting, table display, etc?
 
 When I say, date printing, I mean, if I have java.util.Timestamp, or
 even better, java.sql.Timstamp, I'd like a tag that can print that as a
 date or just time or a full timestamp. For tables, I think I saw
 somewhere a tag that could print a collection as atable with alternating
 style for rows, allowing you to format it with CSS.
 
 What are you guys using when you need to print a date from a timestamp?
 
 Nix.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Why 8080 and 8443 ..?

2005-04-26 Thread Jason Bainbridge
On 4/26/05, David Whitehurst [EMAIL PROTECTED] wrote:
 Could you elaborate on what those parameters would be? A port is just a
 number. I'm trying to understand the history, but I would appreciate
 your comments on the other things required to make Tomcat production
 ready on top of just changing the Coyote connector from 8080 to 80 and
 8443 to 443?

There are lots of things you need to look at, just a few examples:

- what connectors you are going to useand what ones should be disabled
- Do you want to enable SSL and setup a redirect port?
-  What realms do you need?
- Do you need the Manager and Admin applications enabled? (Personally
I usually strip Tomcat down to the bare minimum for Production
implementations)
- Then there is performance tuning depending on the demands of your
application by modifying parameters like maxThreads, minSpareThreads,
maxSpareThreads,  acceptCount.

They are just a few off the top of my head, it's no different to
deploying the Apache webserver in Production you don't just take teh
default settings.

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

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



Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Thomas Nybro Bolding
From 

http://www.reynir.net/java/greinar/nr/52


If you are using IIS V6, which ships with Windows Server 2003, you must 
allow the Web Service Extension to operate. Earlier versions of IIS did 
not require this step. Using the IIS Internet Services Manager, click on 
the Web Services Extensions item in the left hand pane. In the right hand 
pane add a new Web Service Extension called, give it a name, and browse 
and set the required file for this extension to the isapi_redirect.dll and 
set the status to allowed. Then restart IIS.

Best regards Thomas






Tony Nakamura [EMAIL PROTECTED]
26-04-2005 14:47
Besvar venligst til Tomcat Users List

 
Til:tomcat-user@jakarta.apache.org
cc: 
Vedr.:  ISAPI_REDIRECT



Hi,

It seems like ISAPI filter for IIS is a common hurdle for many people to 
get it working, and I'm no exception.
My environment is as following:

Tomcat 5.0.28
IIS 6.0
Win 2003 Server
ISAPI_REDIRECT (used isapi_redirect-1.2.10.exe to setup)

I've gone through documentation for IIS 6 and ISAPI_REDIRECT and got the 
ISAPI_FILTER in IIS to have a green arrow.  However, it doesn't forward 
the request correctly to Tomcat, with IIS logging Error 404 - File not 
Found error.  Tomcat is working fine on port 8080.

Could anyone give me a direction on what could possibly be wrong?


Thank you,


Tony




FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, 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 vedhaeftet bilag efter vores overbevisning er fri 
for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori 
den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os 
ikke noget ansvar for tab og skade, som er opstaaet 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.
/FONT



out of memory error

2005-04-26 Thread Sergey Livanov
Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message out of
memory. When is this error appeared and what do we have to do to avoid this
type of error?


2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet jsp 
threw exception
java.lang.OutOfMemoryError

2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for servlet 
action threw exception
java.lang.OutOfMemoryError


-- 
regards,
 Sergey  mailto:[EMAIL PROTECTED]


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



Re: Why 8080 and 8443 ..?

2005-04-26 Thread David Goodenough
Changing the connector to 80 and 443 is difficult, as then you have to
run Tomcat as root (assuming you are running on Linux).  8080 and
8443 are simply non-privileged ports with numbers not a million
miles from 80 and 443 as I understand it.  If you want to remap them
and keep the non-root nature of Tomcat, use iptables to remap the
ports.

David

On Tuesday 26 April 2005 10:31, David Whitehurst wrote:
 Chuck:

 Could you elaborate on what those parameters would be? A port is just a
 number. I'm trying to understand the history, but I would appreciate
 your comments on the other things required to make Tomcat production
 ready on top of just changing the Coyote connector from 8080 to 80 and
 8443 to 443?

 Thanks,

 David L. Whitehurst

 Caldarale, Charles R wrote:
 -Original Message-
 From: Parsons Technical Services
 
 [mailto:[EMAIL PROTECTED]
 
 Subject: Re: Why 8080 and 8443 ..?
 
 So there are two of the possible reasons that an upper port
 was chosen.
 
 Also, Tomcat is distributed in a more-or-less development configuration,
 rather than a production one.  There are several parameters in addition
 to the ports that should be changed before putting it into a production
 environment.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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

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



Re: Tutorial

2005-04-26 Thread Eugene Poole
Thanks!  I could not locate www.tusc.com.au, but there is a Oracle site 
www.tusc.com.

Gene
[EMAIL PROTECTED]
Raghupathy,Gurumoorthy wrote:
Nice one 

http://www.tusc.com.au/tutorial/html/
Apache/Tomcat: doc | pdf
http://www.one0.com/html/downloads.php  : Click on the doc / pdf link 

Regards
Guru 

 


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


Re: Tutorial

2005-04-26 Thread Jorge Davila
Well.. the first thing to do is download all files.

In fedora core 3 there are some things that not run will the java
installation packed with the system. If posible, don't install java from
fc3's cd.

Install java, then tomcat.

In my opinion the best source of information for java is:

http://java.sun.com/docs
http://www.jdocentral.com

For tomcat:

If you has successfully installed Java install Tomcat and try

http://127.0.0.1:8080/tomcat-docs/

Additionally:

You can search information in:

http://db.apache.org/ojb/docu/index.html

About the Object/Relational Java Bridge.

Best regards,

Jorge Dvila.

El mar, 26-04-2005 a las 07:32 -0400, Eugene Poole escribi:
 I'm looking for a Tomcat tutorial that works!  I want to teach myself, 
 if possible.  Where can I find a tutorial that covers Apache, Tomcat, 
 Java2 1.4.x, and a database (hopefully Oracle) running on Fedora Core 3?
 
 Gene
 [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: how to host website on Tomcat 5.5.9

2005-04-26 Thread Hassan Schroeder
Ashok Anumandla wrote:
I am trying to host my son website on Tomcat 5.5.9 in my home machine, i 
did following steps ..

But unfortunately i am not able to make it working , when i try 
http://localhost:8080/anishanumandla, it is working fine, but when i try 
accessing www.anishanumandla.com it is not working, i am getting page 
not found error, 
1) Can you ping www.anishanumandla.com? I can't :-)  So you need
   to first make sure that name resolves correctly, and your system
   can be reached as that address.
2) You should also read the docs on the Host element -- you'll need
   an Alias element as well::
  prompt% host www.anishanumandla.com
  www.anishanumandla.com is an alias for anishanumandla.com.
  anishanumandla.com has address 24.6.220.179
3) You'll need to change your Connector port setting from 8080 to 80
That should get you started :-)
HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


RE: out of memory error

2005-04-26 Thread Mark Benussi
I hit this issue today, for a host of reasons.
You are getting this error because the ammount of memory allocated to the 
JVM running Tomcat has been taken up. This ould be for the following 
reasons:

You are doing some large database reads without using a methodology to read 
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there is a 
problem in the underlying system but what it actually means is you are 
keeping references to objects you no longer require).

Original Message Follows
From: Sergey Livanov [EMAIL PROTECTED]
Reply-To: Sergey Livanov [EMAIL PROTECTED]
To: Tomcat users tomcat-user@jakarta.apache.org
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300
Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message “out of
memory”. When is this error appeared and what do we have to do to avoid this
type of error?
2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet 
jsp threw exception
java.lang.OutOfMemoryError

2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
java.lang.OutOfMemoryError

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

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


RE: out of memory error

2005-04-26 Thread Dale, Matt

Or you simply don't have enough memory allocated to the JVM and you need to 
increase it.

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 15:41
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: RE: out of memory error


I hit this issue today, for a host of reasons.

You are getting this error because the ammount of memory allocated to the 
JVM running Tomcat has been taken up. This ould be for the following 
reasons:

You are doing some large database reads without using a methodology to read 
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there is a 
problem in the underlying system but what it actually means is you are 
keeping references to objects you no longer require).


Original Message Follows
From: Sergey Livanov [EMAIL PROTECTED]
Reply-To: Sergey Livanov [EMAIL PROTECTED]
To: Tomcat users tomcat-user@jakarta.apache.org
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300

Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message out of
memory. When is this error appeared and what do we have to do to avoid this
type of error?


2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet 
jsp threw exception
java.lang.OutOfMemoryError

2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
java.lang.OutOfMemoryError


--
regards,
  Sergey  mailto:[EMAIL PROTECTED]


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



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


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



Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hello Thomas,

Thank for the reply.  I failed to mention, but I've setup the Web Service
Entention to the isapi_redirect.dll and gave an allow permission.  I used
isapi_redirect-1.2.10.exe, so it should have setup all of the settings
correctly.  One other weird thing is that isapi_redirect.log does not have
any output.

Thank you,


Tony



- Original Message - 
From: Thomas Nybro Bolding [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 8:55 AM
Subject: Vedr.: ISAPI_REDIRECT


 From

 http://www.reynir.net/java/greinar/nr/52


 If you are using IIS V6, which ships with Windows Server 2003, you must
 allow the Web Service Extension to operate. Earlier versions of IIS did
 not require this step. Using the IIS Internet Services Manager, click on
 the Web Services Extensions item in the left hand pane. In the right hand
 pane add a new Web Service Extension called, give it a name, and browse
 and set the required file for this extension to the isapi_redirect.dll and
 set the status to allowed. Then restart IIS.

 Best regards Thomas






 Tony Nakamura [EMAIL PROTECTED]
 26-04-2005 14:47
 Besvar venligst til Tomcat Users List


 Til:tomcat-user@jakarta.apache.org
 cc:
 Vedr.:  ISAPI_REDIRECT



 Hi,

 It seems like ISAPI filter for IIS is a common hurdle for many people to
 get it working, and I'm no exception.
 My environment is as following:

 Tomcat 5.0.28
 IIS 6.0
 Win 2003 Server
 ISAPI_REDIRECT (used isapi_redirect-1.2.10.exe to setup)

 I've gone through documentation for IIS 6 and ISAPI_REDIRECT and got the
 ISAPI_FILTER in IIS to have a green arrow.  However, it doesn't forward
 the request correctly to Tomcat, with IIS logging Error 404 - File not
 Found error.  Tomcat is working fine on port 8080.

 Could anyone give me a direction on what could possibly be wrong?


 Thank you,


 Tony




 FONT SIZE=1 FACE=Arial___
 Vi goer opmaerksom paa, 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 vedhaeftet bilag efter vores overbevisning er
fri for virus og andre fejl, som kan paavirke computeren eller it-systemet,
hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi
paatager os ikke noget ansvar for tab og skade, som er opstaaet 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.
 /FONT





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



RE: out of memory error

2005-04-26 Thread Mark Benussi
: ) Yes Matt good point.
For future reference if anyone is seeing any disk full issues then they do 
not have a big enough hard disk...

Original Message Follows
From: Dale, Matt [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: out of memory error
Date: Tue, 26 Apr 2005 15:42:51 +0100
Or you simply don't have enough memory allocated to the JVM and you need to 
increase it.

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 15:41
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: RE: out of memory error
I hit this issue today, for a host of reasons.
You are getting this error because the ammount of memory allocated to the
JVM running Tomcat has been taken up. This ould be for the following
reasons:
You are doing some large database reads without using a methodology to read
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there is a
problem in the underlying system but what it actually means is you are
keeping references to objects you no longer require).
Original Message Follows
From: Sergey Livanov [EMAIL PROTECTED]
Reply-To: Sergey Livanov [EMAIL PROTECTED]
To: Tomcat users tomcat-user@jakarta.apache.org
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300
Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message out of
memory. When is this error appeared and what do we have to do to avoid this
type of error?
2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet
jsp threw exception
java.lang.OutOfMemoryError
2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.OutOfMemoryError
--
regards,
  Sergey  mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
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: out of memory error

2005-04-26 Thread Trond G. Ziarkowski
Speaking of disk space, I ran out of it today because my cron job to 
delete my log files didn't work. Ooopppsss ;)

Trond
Mark Benussi wrote:
: ) Yes Matt good point.
For future reference if anyone is seeing any disk full issues then 
they do not have a big enough hard disk...

Original Message Follows
From: Dale, Matt [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: out of memory error
Date: Tue, 26 Apr 2005 15:42:51 +0100
Or you simply don't have enough memory allocated to the JVM and you 
need to increase it.

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 15:41
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: RE: out of memory error
I hit this issue today, for a host of reasons.
You are getting this error because the ammount of memory allocated to the
JVM running Tomcat has been taken up. This ould be for the following
reasons:
You are doing some large database reads without using a methodology to 
read
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there 
is a
problem in the underlying system but what it actually means is you are
keeping references to objects you no longer require).

Original Message Follows
From: Sergey Livanov [EMAIL PROTECTED]
Reply-To: Sergey Livanov [EMAIL PROTECTED]
To: Tomcat users tomcat-user@jakarta.apache.org
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300
Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message out of
memory. When is this error appeared and what do we have to do to 
avoid this
type of error?

2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet
jsp threw exception
java.lang.OutOfMemoryError
2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.OutOfMemoryError
--
regards,
  Sergey  mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
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]


Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Thomas Nybro Bolding
Hi Tony,
my own experience with IIS 6.0 is rather limited as our production 
environment is Win2K, but I have seen several posts where people have put 
IIS 6.0 in IIS5.0 isolation mode?

Another possibility is that your configuration files are broken (have you 
configured the jk connector etc.) Try posting these as well.

/Thomas





Tony Nakamura [EMAIL PROTECTED]
26-04-2005 16:45
Besvar venligst til Tomcat Users List

 
Til:Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Vedr.:  Re: Vedr.: ISAPI_REDIRECT



Hello Thomas,

Thank for the reply.  I failed to mention, but I've setup the Web Service
Entention to the isapi_redirect.dll and gave an allow permission.  I 
used
isapi_redirect-1.2.10.exe, so it should have setup all of the settings
correctly.  One other weird thing is that isapi_redirect.log does not have
any output.

Thank you,


Tony



- Original Message - 
From: Thomas Nybro Bolding [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 8:55 AM
Subject: Vedr.: ISAPI_REDIRECT


 From

 http://www.reynir.net/java/greinar/nr/52


 If you are using IIS V6, which ships with Windows Server 2003, you must
 allow the Web Service Extension to operate. Earlier versions of IIS 
did
 not require this step. Using the IIS Internet Services Manager, click on
 the Web Services Extensions item in the left hand pane. In the right 
hand
 pane add a new Web Service Extension called, give it a name, and browse
 and set the required file for this extension to the isapi_redirect.dll 
and
 set the status to allowed. Then restart IIS.

 Best regards Thomas






 Tony Nakamura [EMAIL PROTECTED]
 26-04-2005 14:47
 Besvar venligst til Tomcat Users List


 Til:tomcat-user@jakarta.apache.org
 cc:
 Vedr.:  ISAPI_REDIRECT



 Hi,

 It seems like ISAPI filter for IIS is a common hurdle for many people to
 get it working, and I'm no exception.
 My environment is as following:

 Tomcat 5.0.28
 IIS 6.0
 Win 2003 Server
 ISAPI_REDIRECT (used isapi_redirect-1.2.10.exe to setup)

 I've gone through documentation for IIS 6 and ISAPI_REDIRECT and got the
 ISAPI_FILTER in IIS to have a green arrow.  However, it doesn't forward
 the request correctly to Tomcat, with IIS logging Error 404 - File not
 Found error.  Tomcat is working fine on port 8080.

 Could anyone give me a direction on what could possibly be wrong?


 Thank you,


 Tony




 FONT SIZE=1 FACE=Arial___
 Vi goer opmaerksom paa, 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 vedhaeftet bilag efter vores overbevisning 
er
fri for virus og andre fejl, som kan paavirke computeren eller 
it-systemet,
hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi
paatager os ikke noget ansvar for tab og skade, som er opstaaet 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.
 /FONT





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





What is max value for MaxThreads

2005-04-26 Thread Darek Czarkowski

How many threads can tomcat handle?
Assuming single tomcat hosting 5 different apps, no load balance, using
mod_jk and Apache.

I am wondering what would be the safe limit.

DarekC 



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



Re: Defining DBCP resources in web.xml?

2005-04-26 Thread Andrés Glez.
Do it better in the web app. META-INF/context.xml


- Original Message - 
From: Josh McDonald [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 2:37 PM
Subject: Defining DBCP resources in web.xml?


 The heading says it all - can it be done? If so, how do I go about it? I'd
 rather not have a dozen different references in the server.xml if I can
 avoid it, tho it's looking like I'll have to :-(



 Anyway, any pointers much appreciated.

 -Josh

 --

 Until a man is twenty-five, he still thinks, every so often, that under
the
 right circumstances he could be the baddest mother in the world.

 Josh 'G-Funk' McDonald :: Pirion Systems, Brisbane

 07 3257 0490 :: 0437 221 380 :: [EMAIL PROTECTED]






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



Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hi,

I uninstalled the exe version of isapi_redirect and decided to manually
configure them.
As a result, I got the green arrow, and I'm able to see output in the log
file given isapi_redirect runs
in debug mode.  The log looks like the following.  This log from when I'm
trying to run the IIS in 5.0 isolation mode.
There is no output in the log file when I set the log level to error, but
I still get 404 File Not Found error when I try to access
http://localhost/test/login.jsp


Thanks!


Tony


==
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1040): Using registry.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1044): Using log level 1.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1047): Using worker mount file
C:\tomcat5.0.28\conf\uriworkermap.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1049): Using uri select 0.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
/*jsp=main was added
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] build_worker_map::jk_worker.c
(196): creating worker main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] wc_create_worker::jk_worker.c
(120): about to create instance main of ajp13
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] wc_create_worker::jk_worker.c
(133): about to validate and init main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_validate::jk_ajp_common.c
(1721): worker main contact is localhost:8009
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1767): setting socket keepalive to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1806): setting socket timeout to -1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1810): setting connection recycle timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1814): setting cache timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1818): setting connect timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1822): setting reply timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1826): setting prepost timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1830): setting recovery opts to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1834): setting number of retries to 3
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1854): setting connection cache size to 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] build_worker_map::jk_worker.c
(208): removing old main worker
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
/localhost/test/login.jsp
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/localhost/test/login.jsp' from 1 maps
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/*jsp'
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (768): Found a general suffix match
main - *jsp
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (770): check if [/test/login.jsp] is
points to the web-inf directory
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (788): [/test/login.jsp] is a servlet
url - should redirect to main
=
- Original Message - 
From: Thomas Nybro Bolding [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 9:59 AM
Subject: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 Hi Tony,
 my own experience with IIS 6.0 is rather limited as our production
 environment is Win2K, but I have seen several posts where people have put
 IIS 6.0 in IIS5.0 isolation mode?

 Another possibility is that your configuration files are broken (have you
 configured the jk connector etc.) Try 

Re: What is max value for MaxThreads

2005-04-26 Thread andrew
Hi Darek,
This really depends on your operating system
We have MaxThreads set to 750 on our boxes running sarge.
You should however be aware that using that many threads in not
necessarily benifical as far as performance is concerned...
You should definitely do some performance testing.
We looked at using apache with mod_jk in front of our tomcats,
but this effectively halved the number of connections our servers
could handle per second, so in the end, we went back to using the
standard http connector from tomcat.
Andrew
Darek Czarkowski wrote:
How many threads can tomcat handle?
Assuming single tomcat hosting 5 different apps, no load balance, using
mod_jk and Apache.
I am wondering what would be the safe limit.
 


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


RE: What is max value for MaxThreads

2005-04-26 Thread Caldarale, Charles R
 From: Darek Czarkowski [mailto:[EMAIL PROTECTED] 
 Subject: What is max value for MaxThreads
 
 How many threads can tomcat handle?

There's no single answer to this.  The limit is a function of your
operating system and, to a lesser extent, your JVM heap parameters.

 - Chuck


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

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



Re: Defining DBCP resources in web.xml?

2005-04-26 Thread Geertjan Wielenga

Here's a pointer: http://www.netbeans.org/kb/41/using-netbeans/dbconn.html
-- Geertjan
Andrés Glez. wrote:
Do it better in the web app. META-INF/context.xml
- Original Message - 
From: Josh McDonald [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 2:37 PM
Subject: Defining DBCP resources in web.xml?

 

The heading says it all - can it be done? If so, how do I go about it? I'd
rather not have a dozen different references in the server.xml if I can
avoid it, tho it's looking like I'll have to :-(

Anyway, any pointers much appreciated.
-Josh
--
Until a man is twenty-five, he still thinks, every so often, that under
   

the
 

right circumstances he could be the baddest mother in the world.
Josh 'G-Funk' McDonald :: Pirion Systems, Brisbane
07 3257 0490 :: 0437 221 380 :: [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]


how to host website on Tomcat 5.5.9

2005-04-26 Thread Pedro Nevado
Instead of defining your context in server.xml, try to define it in a
document titled ROOT.xml. This document must be located in
conf/Catalina/www.anishanumandla.com/.
Also, I would change the appBase of your host to /Program Files/Apache
Software Foundation/Tomcat 5.5/webapps.
I hope this helps.

Pedro Nevado

-Mensaje original-
De: Ashok Anumandla [mailto:[EMAIL PROTECTED]
Enviado el: martes, 26 de abril de 2005 5:02
Para: tomcat-user@jakarta.apache.org
Asunto: how to host website on Tomcat 5.5.9


Hi All,

I am trying to host my son website on Tomcat 5.5.9 in my home machine, i
did following steps ..

- installed the JRE,JAVA, and Tomcat 5.5.9
- installed ant
- when i run ant, it created anishanumandla under tomcat webapps.
- configured following in server.xml
 Host name=www.anishanumandla.com appBase=/Program Files/Apache
Software Foundation/Tomcat 5.5/webapps/anishanumandla
 Context path= docBase=/Program Files/Apache Software
Foundation/Tomcat 5.5/webapps/anishanumandla  /
   /Host
- Configured web.xml for welcome file.
- Configured my linksys to fwd the any request from
www.anishanumandla.com to port number and 8080 port.

- Restarted the tomcat,

But unfortunately i am not able to make it working , when i try
http://localhost:8080/anishanumandla, it is working fine, but when i try
accessing www.anishanumandla.com it is not working, i am getting page
not found error, can somebody please tell me what i am doing wrong
here?? or if there is step by step document, can u please send me the
url,,,

the environmentment is Windows 2000...

Thanks in advance

Regards
Ashok



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



RE: Why 8080 and 8443 ..?

2005-04-26 Thread Caldarale, Charles R
 From: Michael Mehrle [mailto:[EMAIL PROTECTED] 
 Subject: Re: Why 8080 and 8443 ..?
 
 Which are ??? Please feel free to elaborate ;-)

As Jason mentioned, running Tomcat in production requires configuring
the desired connectors and the various internal and external resources,
and also stripping out the excess apps and other demo parameters.
Configuring appropriate security (not plain-text passwords) for the
manager and admin web apps, and using a non-default shutdown key are
also highly recommended.

Beyond that, at least these attributes (in various .xml files) may need
to be changed to reduce overhead or better fit a production environment:
autoDeploy
input
listings
output
classdebuginfo
development
keepgenerated
mappedfile
trimSpaces
suppressSmap

Several of the above apply to JSP compilation, so if you're doing
precompilation (desirable for production), your ANT scripts should
set/clear the corresponding parameters.

Be certain that the enableLookups attribute under any Connector
elements you're using hasn't been removed or set to true.  Also check
that the reloadable attribute hasn't been left at true in any of your
Context declarations.

 - Chuck


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

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



Re: Expression Languange not working for me

2005-04-26 Thread Franklin Phan
I am new at this.
Yes, I can correctly view the EL examples that came with Tomcat 5.0.
You are correct; it was a caching issue.  Resaving the file under a new 
timestamp solved the problem.
I also found that the web-app tag need only contain the version=2.4 attribute 
for EL to work.  I don't know what the other attributes are for, but...
Thank you very much.
Fredrik Liden wrote:
Are you able to correctly view the Expression Language examples that
comes with Tomcat 5.0?
If so look at those web.xml files to make sure you have the same web-app
attributes.
Right now it could be some caching that prevents you from seeing the
correct result.
Try creating a new jsp from scratch and do it again.
-Original Message-
From: Franklin Phan [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 25, 2005 6:34 PM
To: Tomcat Users List
Subject: Re: Expression Languange not working for me

It doesn't help.  I'm still getting the same result.
My current web.xml:
?xml version=1.0 encoding=ISO-8859-1?
web-app version=2.4
  xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 
/web-app

Fredrik Liden wrote:

Try this:
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 
/web-app
-Original Message-
From: Franklin Phan [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 6:24 PM
To: Tomcat Users List
Subject: Re: Expression Languange not working for me
This is what my web.xml file contains:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
/web-app
What do I change?

Fredrik Liden wrote:

Check your web.xml file to make sure you're using the 2.4 dtd and not
2.3 or lower.
Fredrik
-Original Message-
From: Franklin Phan [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 6:04 PM
To: tomcat-user@jakarta.apache.org
Subject: Expression Languange not working for me
I am running Tomcat 4.1.18 and 5.0.x.
I tried the following HTML and JSP using EL, and am not getting the
correct response from either Tomcat version.
I have the following HTML:
html
body
form action=TestBean.jsp
  Name: input type=text name=namebr
  input type=submit
/form
/body
/html

And the following JSP:
%@ page isELIgnored =false %
html
body
Request param name is: ${param.name} br
/body
/html

Regardless of what I type in the Name box in the HTML page, the
response is always:
Request param name is: ${param.name}
What is wrong?
Thanks.





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


Re: What is max value for MaxThreads

2005-04-26 Thread David Kaplowitz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

andrew wrote:


 You should definitely do some performance testing.

 We looked at using apache with mod_jk in front of our tomcats,
 but this effectively halved the number of connections our servers
 could handle per second, so in the end, we went back to using the
 standard http connector from tomcat.

Andrew,

This is o/t for this thread, but would you care to elaborate some on
your findings here? I'm here researching some performance issues in an
environment running mod_jk. I'd appreciate any information about what
your performance testing found.

Thanks,

Dave

- --
David Kaplowitz
UNIT Unix Systems group
Villanova University
610-519-6896
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCbmwU0nMoCk4O+jkRAsMRAJ9ZC/eE+IxlkB2X+XXsAmrFlC/DtwCdHVEx
zl2+9ixV3I8hmAvjRkSpwX4=
=z8JF
-END PGP SIGNATURE-


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



Re: how to host website on Tomcat 5.5.9

2005-04-26 Thread Ben Kim
- Configured my linksys to fwd the any request from
www.anishanumandla.com to port number and 8080 port.

accessing www.anishanumandla.com it is not working, i am getting page

Should you possibly check www.anishanumandla.com:8080 working? If so, I
guess you could use jk connector rather than using linksys to serve it
from port 80.

Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University


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



out of memory error

2005-04-26 Thread Pedro Nevado
This one of the remedies proposed. There is also a bug reported, and a patch
for it. Finally you can try swallowOutput=false in your context.xml.
Pedro Nevado


De: sysdba [EMAIL PROTECTED]
Enviado: viernes, 15 de abril de 2005 15:49
Para: Tomcat Users List
Asunto: Memory Leak Solved

We have struggled with a memory leak in 5.0.28/5.0.30 for months. There have
been many complaints about the necessity to restart Tomcat every couple days
due to Out of Memory errors, but no solutions that cured it. Well, the
suggestion to put the single line:
 Introspector.flushCaches();
in the destroy method of a servlet in a redeployable app finally solves it.
Our
Tomcat web server has now run for seven days without an OOM error. The
amount
of time spent with the Optimizeit profiler trying to locate a nonexistent
memory leak in the application code cannot be overestimated. This discovery
should be bold red lettered in the docs.

Gary Harris



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



Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread reynir
Hi,

Looks like the isapi_redirector is forwarding the request to the
localhost host of your tomcat setup. is it there ?
Check the access logs on the tomcat application. See if it's receiving
the request.

your error message, the 404, is it from tomcat (the blue one) or is it
from IIS ?

hope it helps,
- reynir

Tony Nakamura wrote:

Hi,

I uninstalled the exe version of isapi_redirect and decided to manually
configure them.
As a result, I got the green arrow, and I'm able to see output in the log
file given isapi_redirect runs
in debug mode.  The log looks like the following.  This log from when I'm
trying to run the IIS in 5.0 isolation mode.
There is no output in the log file when I set the log level to error, but
I still get 404 File Not Found error when I try to access
http://localhost/test/login.jsp


Thanks!


Tony


==
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1040): Using registry.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1044): Using log level 1.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1047): Using worker mount file
C:\tomcat5.0.28\conf\uriworkermap.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1049): Using uri select 0.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
/*jsp=main was added
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] build_worker_map::jk_worker.c
(196): creating worker main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] wc_create_worker::jk_worker.c
(120): about to create instance main of ajp13
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] wc_create_worker::jk_worker.c
(133): about to validate and init main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_validate::jk_ajp_common.c
(1721): worker main contact is localhost:8009
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1767): setting socket keepalive to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1806): setting socket timeout to -1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1810): setting connection recycle timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1814): setting cache timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1818): setting connect timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1822): setting reply timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1826): setting prepost timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1830): setting recovery opts to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1834): setting number of retries to 3
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1854): setting connection cache size to 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] build_worker_map::jk_worker.c
(208): removing old main worker
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
/localhost/test/login.jsp
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
'/localhost/test/login.jsp' from 1 maps
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (718): Attempting to map context URI
'/*jsp'
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
map_uri_to_worker::jk_uri_worker_map.c (768): Found a general suffix match
main - *jsp
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (770): check if [/test/login.jsp] is
points to the web-inf directory
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (788): [/test/login.jsp] is a servlet
url - should redirect to main
=
- Original Message - 
From: Thomas Nybro Bolding [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 9:59 AM
Subject: Vedr.: 

Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-26 Thread Tony Nakamura
Hi Reynir,

Yes, the tomcat is on localhost, and I'm trying to access directly from the
server right now.
I can access the site with: http://localhost:8080/test/login.jsp but not
without specifying 8080 port.
404 is from IIS log, and it seems to have changed from 404:03 to 404:02.

Just for kicks, I also tried to replace localhost with an ip address, but it
was the same result.


Thanks,


Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 11:48 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 Hi,

 Looks like the isapi_redirector is forwarding the request to the
 localhost host of your tomcat setup. is it there ?
 Check the access logs on the tomcat application. See if it's receiving
 the request.

 your error message, the 404, is it from tomcat (the blue one) or is it
 from IIS ?

 hope it helps,
 - reynir

 Tony Nakamura wrote:

 Hi,
 
 I uninstalled the exe version of isapi_redirect and decided to manually
 configure them.
 As a result, I got the green arrow, and I'm able to see output in the log
 file given isapi_redirect runs
 in debug mode.  The log looks like the following.  This log from when I'm
 trying to run the IIS in 5.0 isolation mode.
 There is no output in the log file when I set the log level to error,
but
 I still get 404 File Not Found error when I try to access
 http://localhost/test/login.jsp
 
 
 Thanks!
 
 
 Tony
 
 
 ==
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1040): Using registry.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1044): Using log level 1.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1045): Using extension uri /jakarta/isapi_redirect.dll.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1047): Using worker mount file
 C:\tomcat5.0.28\conf\uriworkermap.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
 (1049): Using uri select 0.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
 /*jsp=main was added
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
build_worker_map::jk_worker.c
 (196): creating worker main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
wc_create_worker::jk_worker.c
 (120): about to create instance main of ajp13
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
wc_create_worker::jk_worker.c
 (133): about to validate and init main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
ajp_validate::jk_ajp_common.c
 (1721): worker main contact is localhost:8009
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1767): setting socket keepalive to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1806): setting socket timeout to -1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1810): setting connection recycle timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1814): setting cache timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1818): setting connect timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1822): setting reply timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1826): setting prepost timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1830): setting recovery opts to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1834): setting number of retries to 3
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1854): setting connection cache size to 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
build_worker_map::jk_worker.c
 (208): removing old main worker
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 HttpFilterProc::jk_isapi_plugin.c (687): Filter started
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
 /localhost/test/login.jsp
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 map_uri_to_worker::jk_uri_worker_map.c (700): Attempting to map URI
 '/localhost/test/login.jsp' from 1 maps
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 

Re: apache + tomcat + JK connector configuration

2005-04-26 Thread anshul shrivastava

Hi all,

This is my first post to group. I've already asked this problem in popular 
forums, but can't resolve. Hope, someone of you'll help. Thank you, in advance, 
very much.

I'm using Tomcat Apache Tomcat/5.0.16 on jdk 1.5.0 ( port 8080 ). I've 
installed Apache2 ( port 80 ) using MSI installer on Windows 200 Professional. 
I want to use mod_jserv and connect Tomcat, Apache and database MySQL.

I read, it is better not to process .html requests by Tomcat, instead by 
Apache. Also, I want to run .jsp files from ~/wwwroot ( Apache is already 
working PHP files in ~/wwwroot ). Someone of you, said to forward, .jsp to 
Apache using .htaccess. Also, it can be done by Apache Module, how ? Please 
also tell me, where ( exact url ) can I download jk_connecter or mod_jserv ?
( I've already downloaded something! ).

Please help.
anshul shrivastava
( I'm very new to Java; swithcing to Java! from PHP )

What is the username/password for http://localhost:8080/admin/

What is catalina, by the way ? ( h'ven't seen it in previous versions ).




- Original Message - 
From: Delphine Lê [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Monday, April 18, 2005 6:26 PM
Subject: RE: apache + tomcat + JK connector configuration

Bob,
Thank you but Apache doesn't start if I add this line.
The Apache config I have is:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /examples worker1

It seems to works fine (see the logs in my very first message).
And also, I can see that it automatically creates a mod_jk.conf file in
$TOMCAT_HOME\conf\auto
Regards

-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED] 
Sent: vendredi 15 avril 2005 19:52
To: Tomcat Users List
Subject: Re: apache + tomcat + JK connector configuration
Delphine,
Have you added JkSet config.file ... to your apache config file?
Bob

On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote:
 I tried this, but it didn't help unfortunately
 Thank you
 
  Are you using load balance in your app?  If not, you probably don't
need
  this line:
 
  worker.worker1.lbfactor=50
 
  Try to use this configuration in the server.xml
 
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=6969 minProcessors=5 maxProcessors=75
  enableLookups=false acceptCount=10 debug=0/
 
  Hope this helps...
 
  -Original Message-
  From: Delphine Lê [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 13, 2005 6:41 PM
  To: tomcat-user@jakarta.apache.org
  Subject: RE: apache + tomcat + JK connector configuration
 
  thank you, but it's got them:
 
  # Define 1 real worker using ajp13
  worker.list=worker1
  # Set properties for worker1 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=6969
  worker.worker1.lbfactor=50
  worker.worker1.cachesize=10
  worker.worker1.cache_timeout=600
  worker.worker1.socket_keepalive=1
  worker.worker1.reclycle_timeout=300
 
  Post the workers.properties file.  You probably need to include
these
  lines in that file:
 
  worker.list=worker1
  worker.worker1.port=6969
 
  -Original Message-
  From: Delphine Lê [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 13, 2005 2:01 PM
  To: tomcat-user@jakarta.apache.org
  Subject: apache + tomcat + JK connector configuration
 
 
  Hello,
 
  Has anyone had any success in configuring Apache (2.0.53) with
Tomcat
  (4.1.29) in Windows XP, using a recent JK connector ?
 
  We have a server running with the JK2 connector and I'm trying to
  replace it with the latest JK connector (JK-1.2.10), the reason
being
  that JK2 is officially unsupported as of 15 Nov 2004 and we're
  experiencing a problem with truncated requests due to this
connector.
 
  In Apache, I configured a worker called worker1 and I send
everything
  from context /examples to this worker following
  http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.
 
  The configuration looks fine, since I can see in the following
lines in
  mod_jk.log:
 
  [Wed Apr 13 18:49:13 2005] [debug]
  uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
  /examples=worker1 was added
 
  [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c
(219):
  creating worker worker1
 
  [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c
(125):
  about to create instance worker1 of ajp13
 
  [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c
(138):
  about to validate and init worker1
 
  [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c
(1781):
  worker worker1 contact is 'localhost:6969'
 
  However, if I send a request, it doesn't get through and I get an
error
  message in the browser.
 
  The log shows:
 
  [Wed Apr 13 18:50:16 2005] [info]
  ajp_connect_to_endpoint::jk_ajp_common.c (877): Failed connecting
to
  tomcat. Tomcat is probably not started or is listening on the wrong
  host/port 

RE: apache + tomcat + JK connector configuration

2005-04-26 Thread Caldarale, Charles R
 From: anshul shrivastava [mailto:[EMAIL PROTECTED] 
 Subject: Re: apache + tomcat + JK connector configuration
 
 I'm using Tomcat Apache Tomcat/5.0.16

Why such an old level?  If you want to use the 5.0 branch, at least get
the current version.  Better yet, use 5.5.

 I read, it is better not to process .html requests by Tomcat, 

Although this was often true in the past, the performance of the current
Tomcat levels is such that it can handle static content quite
effectively.  Avoiding use of Apache httpd also eliminates a significant
amount of complexity.

 - Chuck


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

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



Tomcat 5.5.9: Following symLinks

2005-04-26 Thread Santosh Dawara
I would like to load classes required by my web applications via soft
links on Linux. I usually set DefaultContext allowLinking=true/
under the Host element in my server.xml. This worked well with
Tomcat 5.0. I moved my webapps to 5.5.9, I made similar modifications
to my 5.5 compliant server.xml to allowLinking. Tomcat does not seem
to find my classes any longer.

Could someone confirm if this functionality is still working under 5.5.9?
 
Regards,
Santosh

-- 
Santosh Dawara
([EMAIL PROTECTED])

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

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



Re: apache + tomcat + JK connector configuration

2005-04-26 Thread anshul shrivastava
Avoiding use of Apache httpd also eliminates a significant
amount of complexity.
httpd.conf is an important file.
I wanna use PHP/JSP/MySQL with Apache.
( surprised )
Please someone, send a useful reply !

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 11:11 PM
Subject: RE: apache + tomcat + JK connector configuration


 From: anshul shrivastava [mailto:[EMAIL PROTECTED] 
 Subject: Re: apache + tomcat + JK connector configuration
 
 I'm using Tomcat Apache Tomcat/5.0.16

Why such an old level?  If you want to use the 5.0 branch, at least get
the current version.  Better yet, use 5.5.

 I read, it is better not to process .html requests by Tomcat, 

Although this was often true in the past, the performance of the current
Tomcat levels is such that it can handle static content quite
effectively.  Avoiding use of Apache httpd also eliminates a significant
amount of complexity.

 - Chuck

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



Re: Tomcat SSI variables missing?

2005-04-26 Thread Mark Thomas
Fritz,
Ideally patches should be against CVS head to minimise the overhead for 
the developers. I will, of course, look at patches against any recent 
release but the older the release patches are created against, the 
longer it takes me to apply the patch.

Mark
Fritz Schneider wrote:
Mark,
Would it be more productive to patch bug 33106
(http://issues.apache.org/bugzilla/show_bug.cgi?id=33106)?
Fritz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Deployed Applications

2005-04-26 Thread Mark Thomas
deployOnStartup
and
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment
Mark
Robert Bateman wrote:
Under Tomcat 4.1.27 and 4.1.30, if I deploy an application via a .WAR
file to the server (via ANT and the manager) Tomcat knows about my
deployed application.  IF the server restarts for some reason, Tomcat
*still* know about the deployed application.
However, I've noticed that if I deploy the *same* .WAR file to Tomcat
5.0.28, 5.0.30 or 5.5.9; Tomcat deploys properly, but loses all
knowledge of the deployed application should Tomcat be restarted.  I've
discovered that I can invoke the manager application to reload the
deployed application...  But that is a pain if Tomcat is restarted
multiple times in a row (we had a storm and lost power 4 times today.)
I have my context for the web application set to reload - but TC 5x
doesn't appear to be reloading correctly.  Am I missing something?
Bob
-
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: difference between tomcat 5.0 and tomcat 5.5

2005-04-26 Thread Mark Thomas
Posting multiple copies of the same message and posting the same message 
to both the tomcat-user and the tomcat-dev lists is a sure-fire way to 
make sure your message is ignored by most, if not all, members of this list.

Please read http://jakarta.apache.org/site/mail.html for guidance.
Mark
Remo rahman wrote:
can any one plz provide me with information regarding
diference between tomcat 5.0 and tomcat 5.5
some of the differences that i have noted are
1)no entry of context in server.xml-
so where this entry should be made
2)no logger component in server.xml
and also related to tomcat manager application
what should be the entry when we are Deploying directory or WAR file
located on server in
1)Context Path 
2)XML Configuration file URL
i will be very thankful if any one can help me

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


Newbie Question: conext.xml

2005-04-26 Thread Bob Bronson
Hello everyone,
I'm very new to Tomcat so pardon me if this is an easy question.
I *have* read the relevant documentation (several times) and that 
really just made matters worse. Sometimes the documentation seems a bit 
incomplete. I've tried several things the documentation says should 
work without success. Probably it's my lack of understanding.

As an aside, speaking of incomplete documentation, if you go to:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html; you 
will see there is a section entitled, Automatic Application 
Deployment. The third bullet point has a link to Default Context. 
This link does not work in the downloaded version of TC's documentation 
although it works fine in the online version. I guess somebody forgot 
something.

--
Let me explain what I want to do. I'm hoping someone could tell me 
where I'm going wrong, in a polite way. :)

I'm trying to use TC 5.5.9 on Win 2k.
I want the document base directory (the Context's docBase) for my 
default web application to be something other than ROOT. Please don't 
ask, why?, this is a simplification of a different but equivalent 
problem.

When I start TC, CATALINA_BASE is set to C:\MyConfigs. Here is what 
the initial underlying directory structure looks like:

C:\MyConfig\
 +-conf\
 |   +-context.xml
 |   +-server.xml
 |   +-web.xml
 +-Sites\
 |   +-Test 1\
 |   |   +-site\
 |   |   |   +-public_html\
 |   |   |   |   +-ROOTXXX\
 |   |   |   |   |   +-index.html

I want my docBase to be ROOTXXX instead of ROOT (again, this is 
an over-simplification but illustrates the problem).

Here is my server.xml from the conf directory above:
Server port=10035 shutdown=SHUTDOWN debug=0
 Service name=Catalina
   Connector port=80 /
   Engine name=ENGINE_1 defaultHost=localhost
 Host name=localhost appBase=Sites\Test 1\site\public_html /
   /Engine
 /Service
/Server
Here is my context.xml from the conf directory above:
Context path= docBase=ROOTXXX /
In the TC docs for Context 
(http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html), 
it lists four bullet points that describe different places you can put 
the context.xml file. I tried to follow each of these bullet points. 
For each bullet point I first used a context file named context.xml 
and then I tried ROOT.xml. Here's what I saw:

Bullet 1: $CATALINA_HOME/conf/context.xml
-
I placed context.xml in the conf directory. This is consistent with 
the directory structure shown above. Tomcat seemed to start just fine 
but when I browse to the default context (http://localhost) I get a 
blank page. I then renamed context.xml to ROOT.xml. This had no 
effect. It still didn't work. According to the TC docs, it should work, 
right?

Bullet 2: 
$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default
-
I placed context.xml in the directory conf/ENGINE_1/localhost and 
renamed context.xml to context.xml.default, as per the 
documentation. This didn't work. I received a blank page again. I then 
renamed context.xml.default to ROOT.xml and it worked! Hmmm, why 
did it work? At least it's what I wanted. But why didn't 
context.xml.default work? The TC docs say it should.

Bullet 3: $CATALINA_HOME/conf/[enginename]/[hostname]/
--
I didn't really understand this option since it didn't tell me what to 
name the file, so I skipped this option.

Bullet 4: /META-INF/context.xml
---
Another failure. I named the file context.xml and then I tried 
ROOT.xml. Neither worked, despite the TC documentation claims.

So, I'm kind of at a loss. I was successful with Bullet 2 but only when 
I renamed context.xml to ROOT.xml. None of the other attempts 
worked, despite what the TC documentation said. Maybe there's another 
doc I need to read. I don't know. It's just so confusing. Can someone 
tell me why only #2 worked and then only when I named the file 
ROOT.xml? Why didn't the Bullets 1  4 work and what does #3 even mean? 
It's very frustrating.

Thanks for looking at this.
Bob 


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


Re: Tutorial

2005-04-26 Thread venkats
Gene:
Try http://cymulacrum.net/writings/tomcat5/book1.html
I found it to be excellent.
Venki
On Tue, 26 Apr 2005 07:32:23 -0400
 Eugene Poole [EMAIL PROTECTED] wrote:
I'm looking for a Tomcat tutorial that works!  I want to 
teach myself, if possible.  Where can I find a tutorial 
that covers Apache, Tomcat, Java2 1.4.x, and a database 
(hopefully Oracle) running on Fedora Core 3?

Gene
[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: apache + tomcat + JK connector configuration

2005-04-26 Thread Ted Christensen
Anshul,
The mod_jk binaries I'm using I got at 
http://apache.intissite.com/jakarta/tomcat-connectors/jk/binaries/;, 
pick you flavor.
This page was about the most help documentation 
http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html; for me.

This won't solve the error for you, but I'm running into almost the 
exact same problem trying to get Apache 2.0.53, and Tomcat 4.1 under 
Solaris 8 working.
I am using JK instead of JK2.
If your are able to run the demos for Tomcat when you goto port 8080, 
then Tomcat is up and running.
The apache module modifications I did are:
At the end of the load modules section add:

LoadModule  jk_module  modules/mod_jk.so
You'll need to adjust the modules/ to be correct for your installation, 
I found it easy enough to simply copy the mod_jk.so file to the apache 
modules folder.
There were also instructions to add AddModule jk_module to the 
httpd.conf file, but  everytime I did, it barked on startup so I've left 
it out.
The other mods to httpd.conf are to enable the connector, in a section 
of the file that is not  part of a VirtualHost declaration.
I modified the JkLogLevel and file so I could attempt to see what's 
happening with that, which I think you've done as well.

JkWorkersFile /usr/local/apache2/conf/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk_log
#JkLogFile /var/log/httpd/mod_jk.log
#JkLogLevel info
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
In the VitualHost declarations, I've added:
DocumentRoot /usr/local/apache2/htdocs
ServerName myservername.domain.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/jsp/*.jsp ajp13
jkMount /*.jsp ajp13
I think from your previous emails you're using worker1, so just change 
the 'ajp13' entries to 'worker1'

And at that point when I try to run a simple 'testit.jsp' from the 
VirtualHost site, I can find in the /usr/local/apache2/logs/mod_jk_log 
file the following errors.  I also posted a request last week about the 
same and got no response.
 snip ---
[Sat Apr 23 20:06:02 2005]  [jk_uri_worker_map.c (486)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Sat Apr 23 20:06:02 2005]  [jk_uri_worker_map.c (500)]: Attempting to 
map URI '/testit.jsp'
[Sat Apr 23 20:06:02 2005]  [jk_uri_worker_map.c (580)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp
[Sat Apr 23 20:06:02 2005]  [mod_jk.c (1709)]: Into handler 
r-proxyreq=0 r-handler=jakarta-servlet r-notes=2259208 worker=ajp13
[Sat Apr 23 20:06:02 2005]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name ajp13
[Sat Apr 23 20:06:02 2005]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (1546)]: Into 
jk_worker_t::get_endpoint
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (1208)]: Into 
jk_endpoint_t::service
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (295)]: Into 
ajp_marshal_into_msgb
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (463)]: 
ajp_marshal_into_msgb - Done
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (188)]: Into jk_open_socket
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (195)]: jk_open_socket, try to 
connect socket = 16
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (204)]: jk_open_socket, after 
connect ret = -1
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 128
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (676)]: Error connecting to 
tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 128
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (955)]: Error connecting to 
the Tomcat process.
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (1309)]: sending request to 
tomcat failed in send loop. err=0
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (188)]: Into jk_open_socket
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (195)]: jk_open_socket, try to 
connect socket = 16
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (204)]: jk_open_socket, after 
connect ret = -1
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 128
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (676)]: Error connecting to 
tomcat. Tomcat is probably not started or is listenning on the wrong 
port. Failed errno = 128
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (955)]: Error connecting to 
the Tomcat process.
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c (1309)]: sending request to 
tomcat failed in send loop. err=1
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (188)]: Into jk_open_socket
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (195)]: jk_open_socket, try to 
connect socket = 16
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (204)]: jk_open_socket, after 
connect ret = -1
[Sat Apr 23 20:06:02 2005]  [jk_connect.c (233)]: jk_open_socket, 
connect() failed errno = 128
[Sat Apr 23 20:06:02 2005]  [jk_ajp_common.c 

SSL

2005-04-26 Thread jejones
Tomcat Users,
I have followed the How-To for Jakarta Tomcat SSL and continue to have 
some wierdness going on...

Our current SSL cert expired and we get a warning dialog box each time 
we try to connect to this server about the expiration.. naturally.

I generated a new cert request utilizing keytool, sent that to verisign, 
they returned the cert. Then I created a new keystore file, first 
importing a chaincert, then importing the new cert.  When I stop the 
server, move the keystore file in place, start the server up, I continue 
to get an expiration notice upon https request to the host.  In a 
troubleshooting effort, I moved the keystore file, stop/started the 
server and *still* get the expired notice upon https request... The 
server.xml file' SSL config points to the directory for which I have 
located the keystore file too.

Any ideas what may be happening here?
-jrj

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


Embedded Tomcat - adding Connectors on the fly

2005-04-26 Thread Sander A. Smith
I have a copy of Tomcat embedded inside my application, and it runs 
great. During the processing, I'd like to open another port to service 
requests on. The documentation on the Embedded object states:

After normal operations have begun, you can add and remove 
Connectors, Engines, Hosts, and Contexts on the fly.

Great, that's exactly what I want to do. However, I'm finding that if 
I try to add a new Connector to my Embedded object, I still can't 
connect on that port. Here's my code:


  CoyoteConnector connector = (CoyoteConnector)embedded.createConnector
((InetAddress)null,
   
 newPort, 
   
 false); 

  // not sure why/if these are necessary
  // I don't call these when I set up the initial port to listen on
  connector.initialize();
  connector.start();

  embedded.addConnector(connector);

I after running this code I call embedded.findConnectors(), my new 
connector shows up in the isAvailable state. However, I can't connect 
on the new port.

Any ideas on what could be going wrong? I'm running Tomcat 5.0.28.

Sander Smith

-- 
Sander A. Smith
President

Sericon Technology Inc.
71 Marquette Ave.
Toronto, Ontario M6A 1X8
(416)781-3988

www.sericontech.com

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



RE: Newbie Question: conext.xml

2005-04-26 Thread Fritz Schneider
Bob,

Welcome, fellow newbie! I struggled with this one also. It turns out that
the context element for a root directory MUST be nested inside the host
element in server.xml. The relevant documentation reads:

You may define as many Context elements as you wish. Each such Context MUST
have a unique context path, which is defined by the path attribute. In
addition, you MUST define a Context with a context path equal to a
zero-length string. This Context becomes the default web application for
this virtual host, and is used to process all requests that do not match any
other Context's context path.

Fritz

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 12:14 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie Question: conext.xml

Hello everyone,

[snip...]
Let me explain what I want to do. I'm hoping someone could tell me 
where I'm going wrong, in a polite way. :)

I'm trying to use TC 5.5.9 on Win 2k.

I want the document base directory (the Context's docBase) for my 
default web application to be something other than ROOT. Please don't 
ask, why?, this is a simplification of a different but equivalent 
problem.

[snip...]


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



Re: SSL

2005-04-26 Thread midnightjava
Just a shot in teh dark, but could the client be caching the cert?
 
 From: [EMAIL PROTECTED]
 Date: 2005/04/26 Tue PM 04:18:21 EDT
 To: tomcat-user@jakarta.apache.org
 Subject: SSL
 
 Tomcat Users,
 
 I have followed the How-To for Jakarta Tomcat SSL and continue to have 
 some wierdness going on...
 
 Our current SSL cert expired and we get a warning dialog box each time 
 we try to connect to this server about the expiration.. naturally.
 
 I generated a new cert request utilizing keytool, sent that to verisign, 
 they returned the cert. Then I created a new keystore file, first 
 importing a chaincert, then importing the new cert.  When I stop the 
 server, move the keystore file in place, start the server up, I continue 
 to get an expiration notice upon https request to the host.  In a 
 troubleshooting effort, I moved the keystore file, stop/started the 
 server and *still* get the expired notice upon https request... The 
 server.xml file' SSL config points to the directory for which I have 
 located the keystore file too.
 
 Any ideas what may be happening here?
 
 -jrj
 
 
 
 -
 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: AW: All threads (250) are currently busy

2005-04-26 Thread Paul Grimwood
This post has gone quiet, yet this is still a major problem for us in out 
live environment. Does anyone know the reason/solution (please see 
original post)? If so, please be more expansive than saying 'if you set it 
up right, it will work'.

cheers

Paul






Patty O'Reilly [EMAIL PROTECTED]
21/04/2005 11:50
Please respond to Tomcat Users List

 
To: Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Subject:Re: AW: All threads (250) are currently busy


Can you share your apache connector config?

On Wed, 20 Apr 2005, Zsolt Koppany wrote:

 Date: Wed, 20 Apr 2005 11:08:33 +0200
 From: Zsolt Koppany [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: AW: All threads (250) are currently busy

 We had the same problem, but after configuring the apache connector
 correctly the problem disappeared.

 Zsolt

  -Ursprüngliche Nachricht-
  Von: Paul Grimwood [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 20. April 2005 06:07
  An: tomcat-user@jakarta.apache.org
  Betreff: All threads (250) are currently busy
 
  Tomcat hangs intermittently (1 to 10 days) with the following message 
in
  catalina.out
 
  20/04/2005 13:48:09 org.apache.tomcat.util.threads.ThreadPool logFull
  SEVERE: All threads (250) are currently busy, waiting. Increase 
maxThreads
  (250) or check the servlet status
 
 
  We are running tomcat 5.5.7 on jdk1.5.0_02 under Redhat Linux Fedora 
Core
  2 against an Oracle9 DB.
 
  I have seen various posts to this with suggestions including setting 
Linux
  threads with LD_ASSUME_KERNEL (tried but problem still exists) and 
setting
  connection timeout in server.xml from 0 to 6 (but ours is set at 
2
  already). And we have already upgraded to latest Tomcat and JRE to no
  avail. Despite reviewing the mailing list over the past 18 to 24 
months, i
  am none the wiser.
 
  The problem started around the time we deployed the code onto a new 
server
  running a later Linux version but this could be a red herring and I
  suspect it is a database connection issue. Has anyone got any ideas?
 
  -
  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: SSL

2005-04-26 Thread jejones
I exited and restarted the browser each time.. so I doubt it.  -also had 
another person try.. browser is the latest Mozilla.

-jrj
[EMAIL PROTECTED] wrote:
Just a shot in teh dark, but could the client be caching the cert?
 

From: [EMAIL PROTECTED]
Date: 2005/04/26 Tue PM 04:18:21 EDT
To: tomcat-user@jakarta.apache.org
Subject: SSL
Tomcat Users,
I have followed the How-To for Jakarta Tomcat SSL and continue to have 
some wierdness going on...

Our current SSL cert expired and we get a warning dialog box each time 
we try to connect to this server about the expiration.. naturally.

I generated a new cert request utilizing keytool, sent that to verisign, 
they returned the cert. Then I created a new keystore file, first 
importing a chaincert, then importing the new cert.  When I stop the 
server, move the keystore file in place, start the server up, I continue 
to get an expiration notice upon https request to the host.  In a 
troubleshooting effort, I moved the keystore file, stop/started the 
server and *still* get the expired notice upon https request... The 
server.xml file' SSL config points to the directory for which I have 
located the keystore file too.

Any ideas what may be happening here?
-jrj

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

2005-04-26 Thread jejones
I am wondering if the cert gets rolled into a .jar file, and the old 
keystore stomps on my new cert upon server startup?

-jrj
[EMAIL PROTECTED] wrote:
Tomcat Users,
I have followed the How-To for Jakarta Tomcat SSL and continue to have 
some wierdness going on...

Our current SSL cert expired and we get a warning dialog box each time 
we try to connect to this server about the expiration.. naturally.

I generated a new cert request utilizing keytool, sent that to 
verisign, they returned the cert. Then I created a new keystore file, 
first importing a chaincert, then importing the new cert.  When I stop 
the server, move the keystore file in place, start the server up, I 
continue to get an expiration notice upon https request to the host.  
In a troubleshooting effort, I moved the keystore file, stop/started 
the server and *still* get the expired notice upon https request... 
The server.xml file' SSL config points to the directory for which I 
have located the keystore file too.

Any ideas what may be happening here?
-jrj

-
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: Newbie Question: conext.xml

2005-04-26 Thread Bob Bronson
Hello Fritz,
Thank you for the welcome. I have comments below
- Original Message - 
From: Fritz Schneider [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org; 'Bob 
Bronson' [EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 3:22 PM
Subject: RE: Newbie Question: conext.xml


Bob,
Welcome, fellow newbie! I struggled with this one also. It turns out 
that
the context element for a root directory MUST be nested inside the 
host
element in server.xml. The relevant documentation reads:

I don't think this is right. First, here's another quote form the TC 
docs:
In addition to nesting Context elements inside a Host element, you can 
also store them... then there are 4 bullet points listed which I 
refered to in my original posting.

The TC goes on to say: Please note that for tomcat 5, unlike tomcat 
4.x, it is NOT recommended to place Context elements directly in the 
server.xml file.

So, it looks like it should NOT be in the server.xml. And, I was 
actually able to get it working without putting it in server.xml.



You may define as many Context elements as you wish. Each such 
Context MUST
have a unique context path, which is defined by the path attribute. 
In
addition, you MUST define a Context with a context path equal to a
zero-length string. This Context becomes the default web application 
for
this virtual host, and is used to process all requests that do not 
match any
other Context's context path.

yes, I knowthis quote preceeds the four bullet points. I must have 
read this a dozen times.


Fritz
-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 12:14 PM
To: tomcat-user@jakarta.apache.org
Subject: Newbie Question: conext.xml
Hello everyone,
[snip...]
Let me explain what I want to do. I'm hoping someone could tell me
where I'm going wrong, in a polite way. :)
I'm trying to use TC 5.5.9 on Win 2k.
I want the document base directory (the Context's docBase) for 
my
default web application to be something other than ROOT. Please don't
ask, why?, this is a simplification of a different but equivalent
problem.

[snip...]
-
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: SSL

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I generated a new cert request utilizing keytool, sent that to verisign,
 they returned the cert. Then I created a new keystore file, first
 importing a chaincert, then importing the new cert.  When I stop the
 server, move the keystore file in place, start the server up, I continue
 to get an expiration notice upon https request to the host.  In a
 troubleshooting effort, I moved the keystore file, stop/started the
 server and *still* get the expired notice upon https request... The
 server.xml file' SSL config points to the directory for which I have
 located the keystore file too.

Are you specifying the location of the keystore with a keystoreFile
parameter in your HTTPS connector? If not you might be dealing with
the wrong .keystore by default I think it stores it in the home
directory of the user that created it so it might be pointing to the
wrong one. Try using the keystoreFile if you aren't already.

Plus I don't think you can do it the way you did by creating the CSR
in your old .keystore and then importing it into the new one, the cert
Verisign returned needs to match up with the CSR if I understand it
correctly.

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

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



Re: Newbie Question: conext.xml

2005-04-26 Thread Hassan Schroeder
Fritz Schneider wrote:
Welcome, fellow newbie! I struggled with this one also. It turns out that
the context element for a root directory MUST be nested inside the host
element in server.xml. 
No, no, no. That's simply not true. I have multiple installations
of 5.5.x systems running and not one has a Context element inside
the server.xml.
The dead simplest approach is to put ROOT.xml as
  $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml
Within that ROOT.xml file you can specify the docbase as ROOT
or WhAtTheHeyEver or any appropriate arbitrary path...
The name of the file is a Tomcat convention; the docbase *path*
you specify is entirely up to you.

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED] 

I want the document base directory (the Context's docBase) for my 
default web application to be something other than ROOT. Please don't 
ask, why?, this is a simplification of a different but equivalent 
problem.

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: AW: All threads (250) are currently busy

2005-04-26 Thread Jason Bainbridge
On 4/26/05, Paul Grimwood [EMAIL PROTECTED] wrote:
 This post has gone quiet, yet this is still a major problem for us in out
 live environment. Does anyone know the reason/solution (please see
 original post)? If so, please be more expansive than saying 'if you set it
 up right, it will work'.

Have their been any application changes in the same time period of
moving servers? Something that might not be releasing threads? You are
obviously hitting the maxThreads parameter in your connector but why
remains a mystery...

Also you shouldn't need to define the AJP connector if you are running
standalone, also what does your HTTPS connector look like? Are you
using HTTPS? If not try removing the redirectPort parameter from your
HTTP connector but I don't think that is affecting your current
problem.

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

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



Re: SSL

2005-04-26 Thread jejones
Actually, I did not start with the old cert. I generated a completely 
new cert, started with the chaincert, then imported the new cert that 
verisign sent back.

This is the connector tect:
Factory 
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactoryclientAuth=false 
protocol=TLS keystorefile=/usr/local/qmetrix/.keystore keystorePass=

Here are the steps I used to generate the cert:
keytool -genkey -keyalg RSA -alias tomcat keystore 
//export/home/jjones//.keystore
then
keytool -certreq -keyalg RSA -alias tomcat keystoreexport/home/jjones//.keystore 
-file filename

then once we receive the cert back from VERISIGN...

http://www.thawte.com/certs/trustmap.html
Import the Chain Certificate into you keystore
keytool -import -alias root -keystore your_keystore_filename -trustcacerts -file filename_of_the_chain_certificate   

And finally import your new Certificate (It must be in X509 format):
   
keytool -import -alias tomcat -keystore your_keystore_filename -trustcacerts -file your_certificate_filename 

Then I moved the keystore from my home directory to the connector 
defined location. In this case, does keytool built the path from my home 
directory in the keystore file?

Jeff
Jason Bainbridge wrote:
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 

I generated a new cert request utilizing keytool, sent that to verisign,
they returned the cert. Then I created a new keystore file, first
importing a chaincert, then importing the new cert.  When I stop the
server, move the keystore file in place, start the server up, I continue
to get an expiration notice upon https request to the host.  In a
troubleshooting effort, I moved the keystore file, stop/started the
server and *still* get the expired notice upon https request... The
server.xml file' SSL config points to the directory for which I have
located the keystore file too.
   

Are you specifying the location of the keystore with a keystoreFile
parameter in your HTTPS connector? If not you might be dealing with
the wrong .keystore by default I think it stores it in the home
directory of the user that created it so it might be pointing to the
wrong one. Try using the keystoreFile if you aren't already.
Plus I don't think you can do it the way you did by creating the CSR
in your old .keystore and then importing it into the new one, the cert
Verisign returned needs to match up with the CSR if I understand it
correctly.
Regards,
 


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


Re: SSL

2005-04-26 Thread jejones
Sorry, the thawrt sting is in there by error and some extra forward 
slashes..

[EMAIL PROTECTED] wrote:
Actually, I did not start with the old cert. I generated a completely 
new cert, started with the chaincert, then imported the new cert that 
verisign sent back.

This is the connector tect:
Factory 
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactoryclientAuth=false 
protocol=TLS keystorefile=/usr/local/qmetrix/.keystore keystorePass=

Here are the steps I used to generate the cert:
keytool -genkey -keyalg RSA -alias tomcat keystore 
//export/home/jjones//.keystore

then
keytool -certreq -keyalg RSA -alias tomcat 
keystoreexport/home/jjones//.keystore -file filename


then once we receive the cert back from VERISIGN...

http://www.thawte.com/certs/trustmap.html
Import the Chain Certificate into you keystore
keytool -import -alias root -keystore your_keystore_filename 
-trustcacerts -file 
filename_of_the_chain_certificate   

And finally import your new Certificate (It must be in X509 format):
   
keytool -import -alias tomcat -keystore your_keystore_filename 
-trustcacerts -file your_certificate_filename

Then I moved the keystore from my home directory to the connector 
defined location. In this case, does keytool built the path from my 
home directory in the keystore file?

Jeff
Jason Bainbridge wrote:
On 4/26/05, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

 

I generated a new cert request utilizing keytool, sent that to 
verisign,
they returned the cert. Then I created a new keystore file, first
importing a chaincert, then importing the new cert.  When I stop the
server, move the keystore file in place, start the server up, I 
continue
to get an expiration notice upon https request to the host.  In a
troubleshooting effort, I moved the keystore file, stop/started the
server and *still* get the expired notice upon https request... The
server.xml file' SSL config points to the directory for which I have
located the keystore file too.
  

Are you specifying the location of the keystore with a keystoreFile
parameter in your HTTPS connector? If not you might be dealing with
the wrong .keystore by default I think it stores it in the home
directory of the user that created it so it might be pointing to the
wrong one. Try using the keystoreFile if you aren't already.
Plus I don't think you can do it the way you did by creating the CSR
in your old .keystore and then importing it into the new one, the cert
Verisign returned needs to match up with the CSR if I understand it
correctly.
Regards,
 


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

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Actually, I did not start with the old cert. I generated a completely
 new cert, started with the chaincert, then imported the new cert that
 verisign sent back.
 
 This is the connector tect:
 
 Factory
 className=org.apache.coyote.tomcat4.CoyoteServerSocketFactoryclientAuth=false
 protocol=TLS keystorefile=/usr/local/qmetrix/.keystore keystorePass=

Is that a copy and paste? If so you're going to first want to make
sure there are no sharp instruments around and then change
keystorefile to keystoreFile as it's case sensitive, then restart
Tomcat. With it lower case like that it will still look in the default
location and would expain the behaviour you are seeing.

However if that isn't the case then we have some more digging to do.

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

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



Re: SSL

2005-04-26 Thread jejones
Finially, some progress; but not exactly what I wanted... I made the F 
uppercase, stopped/started the server; now it's refusing connections. 
This is from the log file:

Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
SEVERE: Endpoint [SSL: 
ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=443]] ignored 
exception: java.net.SocketException: SSL handshake 
errorjavax.net.ssl.SSLException: No available certificate corresponds to 
the SSL cipher suites which are enabled.
java.net.SocketException: SSL handshake errorjavax.net.ssl.SSLException: 
No available certificate corresponds to the SSL cipher suites which are 
enabled.
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocketFactory.java:152)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:371)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:553)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
   at java.lang.Thread.run(Thread.java:534)
Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
WARNING: Reinitializing ServerSocket

Thoughts?
Jeff
Jason Bainbridge wrote:
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 

Actually, I did not start with the old cert. I generated a completely
new cert, started with the chaincert, then imported the new cert that
verisign sent back.
This is the connector tect:
Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactoryclientAuth=false
protocol=TLS keystorefile=/usr/local/qmetrix/.keystore keystorePass=
   

Is that a copy and paste? If so you're going to first want to make
sure there are no sharp instruments around and then change
keystorefile to keystoreFile as it's case sensitive, then restart
Tomcat. With it lower case like that it will still look in the default
location and would expain the behaviour you are seeing.
However if that isn't the case then we have some more digging to do.
Regards,
 


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


Re: SSL

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Finially, some progress; but not exactly what I wanted... I made the F
 uppercase, stopped/started the server; now it's refusing connections.
 This is from the log file:
 
 Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 SEVERE: Endpoint [SSL:

when doing these steps:

Import the Chain Certificate into you keystore

keytool -import -alias root -keystore your_keystore_filename
-trustcacerts -file filename_of_the_chain_certificate

And finally import your new Certificate (It must be in X509 format):

keytool -import -alias tomcat -keystore your_keystore_filename
-trustcacerts -file your_certificate_filename

Did you specify the full path names? I would backup the .keystore and
then try again by specifying full path names to make sure.

Sounds like you have an incomplete .keystore being used. 


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

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



Re: Newbie Question: conext.xml

2005-04-26 Thread Bob Bronson
Hassan,
I know you are 100% correct...
But using the $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml 
approach is only one of 4 documented approaches (and the only approach 
I was able to get working).

Why don't the other three work? And why can't I name the file 
context.xml, as the documentation indicates.

- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Cc: 'Bob Bronson' [EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 3:46 PM
Subject: Re: Newbie Question: conext.xml


Fritz Schneider wrote:
Welcome, fellow newbie! I struggled with this one also. It turns out 
that
the context element for a root directory MUST be nested inside the 
host
element in server.xml.
No, no, no. That's simply not true. I have multiple installations
of 5.5.x systems running and not one has a Context element inside
the server.xml.
The dead simplest approach is to put ROOT.xml as
  $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml
Within that ROOT.xml file you can specify the docbase as ROOT
or WhAtTheHeyEver or any appropriate arbitrary path...
The name of the file is a Tomcat convention; the docbase *path*
you specify is entirely up to you.

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED]

I want the document base directory (the Context's docBase) for 
my default web application to be something other than ROOT. Please 
don't ask, why?, this is a simplification of a different but 
equivalent problem.

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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

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


Re: Newbie Question: conext.xml

2005-04-26 Thread Hassan Schroeder
Bob Bronson wrote:
But using the $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml 
approach is only one of 4 documented approaches (and the only approach I 
was able to get working).

Why don't the other three work? 
Well, I'm absolutely certain that this:
 4: {appbase}/{docbase}/META-INF/context.xml
:: works just fine -- I use that approach sometimes.
Both of these:
 1: $CATALINA_HOME/conf/context.xml
 2: $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default
:: I've never tried, so I'd have to fiddle around a bit. But since
the other two work fine, and to me represent the optimal approach to
managing my webapps, I'm not overly motivated :-)
As always, YMMV!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: SSL

2005-04-26 Thread jejones
Is there a way to look at the contents of the keystore file?
-jrj
Jason Bainbridge wrote:
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 

Finially, some progress; but not exactly what I wanted... I made the F
uppercase, stopped/started the server; now it's refusing connections.
This is from the log file:
Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint [SSL:
   

when doing these steps:
Import the Chain Certificate into you keystore
keytool -import -alias root -keystore your_keystore_filename
-trustcacerts -file filename_of_the_chain_certificate
And finally import your new Certificate (It must be in X509 format):
keytool -import -alias tomcat -keystore your_keystore_filename
-trustcacerts -file your_certificate_filename
Did you specify the full path names? I would backup the .keystore and
then try again by specifying full path names to make sure.
Sounds like you have an incomplete .keystore being used. 

 


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


Tomcat creating new sessions between Servlet-JSP request dispatch under load

2005-04-26 Thread Riyad Kalla
The subject is sort of a brain dump of what is going on, let me
explain what is happening:

Setup:
ControllerServlet loads page content from DB and stores it in the
session under a well known key, then it uses a requestDispatcher to
send control to the appropriate JSP to render the content. So it looks
something like this:

ControllerServlet (Load DB content, Store in Session) - (REQUEST
DISPATCH) - JSP page (render results)


Server Hardware:
Quad 2.4ghz XEON
2GB Ram
Gentoo Linux (all stable), 2.6.9 Kernel
Tomcat 5.0.28/JDK 1.4.2_08
(AND also tested on)
Tomcat 5.5.9/JDK1.5.2_02


Description of Problem:
When we recieve 8 or more concurrent requests, what happens is when
the JSP page goes to display the DB content that was loaded for it by
the ControllerServlet, the content variable is actually null and the
page throws a NPE. As we up the requests (15 concurrent, 20
concurrent, all the way to 40 concurrent) the number of failed clients
hovers around 1/2, sometimes more, sometimes less. It is seemingly
random which ones fail and how many, but there are definately pages
failing.

The strangest part of all this is that I thought something might be
occuring with the Sessions, because the last lines of code in the
ControllerServlet look like this:
-
session.setAttribute(Constants.DTO_PAGE, pageDTO);
requestDispatcher.forward(request, response);
-

and the first line of the JSP page looks like this:
---
PageDTO pageDTO = (PageDTO)session.getAttribute(Constants.DTO_PAGE);
NPE thrown here from pageDTO being null sometimes
---

so what I did was print out the session.hashCode() value in the
ControllerServlet right before the requestDispatch call, and then I
printed it out in the JSP page on the condition that pageDTO was null,
and oddly (I think) enough, in every case where pageDTO was null, the
hashCode of the session I printed out from the JSP page, was a totally
new Session that had no matching hashCode value printed out from the
ControllerServlet.

So it *seems* that under heavy load Tomcat is creating entirely new
Sessions for the client between the ControllerServlet and then the
dispatch to the JSP page, so by the time the JSP page loads, the old
Session that had it's DB information in it, has been toasted for some
reason.

What confuses me the most, is that I'm using a requestDispatcher to do
this transfer, not a sendRedirect, so I don't understand how or why a
new Session would be created, there is no chance for the client to
turn around and re-request information as I understand the
requestDispatcher's behavior.

Any ideas or comments on how I can approach debugging this issue?
There is limited code to analyze for bugs as this seems to magically
happen between the last lines of Servlet and first lines of the JSP
page, but i might be missing some fundamental design of Web apps, I'd
appreciate any suggestions.

Best,
Riyad

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



Finding xalan and xerces on Linux

2005-04-26 Thread David B. Saul
Installed TC 5.5.7 on Windows 
Created page using JSTL ( jstl.jar and standard.jar )

Did not need to add xalan or xerces especially since they are now included
in Java 1.5.

Deployed to Linux
Used same versions of all components ( TC, JSTL, JAVA-JDK  JRE)

I had to add the xalan and xerces in the ./WEB-INF/lib directory.

Did I miss something or do I have to do this?

Yes - I set JAVA_HOME, JRE_HOME, CATALINA_HOME and ???_HOME :)


Any help would be appreciated


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



Re: Finding xalan and xerces on Linux

2005-04-26 Thread Riyad Kalla
Silly question, but are you sure you were using JDK 1.5.0+ on your
Linux install? Tomcat might have picked up a different version of it,
or even GCJ.

-Riyad

On 4/26/05, David B. Saul [EMAIL PROTECTED] wrote:
 Installed TC 5.5.7 on Windows
 Created page using JSTL ( jstl.jar and standard.jar )
 
 Did not need to add xalan or xerces especially since they are now included
 in Java 1.5.
 
 Deployed to Linux
 Used same versions of all components ( TC, JSTL, JAVA-JDK  JRE)
 
 I had to add the xalan and xerces in the ./WEB-INF/lib directory.
 
 Did I miss something or do I have to do this?
 
 Yes - I set JAVA_HOME, JRE_HOME, CATALINA_HOME and ???_HOME :)
 
 Any help would be appreciated
 
 -
 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]



(Fwd) Session attributes disappear between .jsp pages

2005-04-26 Thread Greg Vilardi
For the record, I figured this out. Our webapp was automatically reloading 
every 15 seconds, and that was killing our non serializable objects out of the 
sessions. 

Now, does anyone know why a single .jar file that is __NOT__ changing, might 
cause a context reload to occur? The jar is provided by a third-party API and 
contains some older version of the org.apache.xerces.* classes and 
org.apache.xml.* too. Could that be causing us problems? Note that this .jar 
does not cause problems in our other webapps, where it is used identically. 
Setting debug to 4 doesn't help, and the catalina.out shows lots of lines like 
this:
 Apr 25, 2005 2:15:47 PM org.apache.catalina.loader.WebappClassLoader modified
INFO: Additional JARs have been added : 'achexxml-2_0.jar'
Apr 25, 2005 2:15:47 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started
Apr 25, 2005 2:15:57 PM org.apache.catalina.loader.WebappClassLoader modified
INFO: Additional JARs have been added : 'achexxml-2_0.jar'
Apr 25, 2005 2:15:57 PM org.apache.catalina.core.StandardContext reload

Hopefully this question is better formed than the last one.

Thanks for any help you can offer...

-Greg
--- Forwarded message follows ---
Send reply to:  Tomcat Users List tomcat-user@jakarta.apache.org
From:   Greg Vilardi [EMAIL PROTECTED]
Organization:   Recurrent Software Solutions, Inc.
To: tomcat-user@jakarta.apache.org
Date sent:  Thu, 21 Apr 2005 18:03:55 -0400
Subject:Session attributes disappear between .jsp pages 
Send reply to:  [EMAIL PROTECTED]
Priority:   normal

[ Double-click this line for list subscription options ] 

Hi. I've got an odd problem that I'm hoping that someone can help to diagnose.

 A new application that we're building is losing attributes of a session 
between SOME of its pages. This behavior occurs about 85% of the time. 
Sometimes all of our session will transmit and most times about half of the
objects get through. The objects that always come through are strings and some
numbers. The bits that occasionally get through are our database connector
object, our menu bar class and a couple of other ints. The kicker is that the
entire session is created by a java object called from a jsp (login) and it
ALWAYS propagates to the next page correctly. The transition between the second
and third page, whether it is a redrect or a link causes, the problem. We've
reduced the page that this occurs on to something that just enumerates the
session and has a link to itself. I'm including the page source at the end of
the message.

We're running Tomcat 5.0.28 through Apache (Apache/2.0.52 (Unix) mod_ssl/2.0.52
OpenSSL/0.9.6m mod_jk/1.2.6 Server at devlinux.recurrentsoft.com Port 443) on
Debian unstable patched two days ago.

The other thing that has me chasing my tail is that we have a much more complex
system using the same core library with massive sessions and similar objects
that work fine on the same system. For those of you who are still reading,
(thank you!) the sequence of events is that we start by keying the URI for
login.jsp into the browser. We then login to the database, and a session is
created and populated. When we finish logging in, the system sends a redirect
that brings us to bbs.jsp (below).  When we arrive the session has all
attributes we expect. Clicking on the middle link at the bottom of the page
causes the problem.

Any insight that you may be able to offer would _really_ be appreciated. My
brain is currently trying to claw its way out of my skull to escape impending
madness.

 -Greg

- begin bbs.jsp
%@ page buffer=50kb
 language=java 

import=com.recurrentsoft.util.*,com.recurrentsoft.biz.*,com.recurrents
oft.hbiz.*,com.recurrentsoft.hutil.*,java.util.*,java.io.* %
html
body
%
Enumeration en = session.getAttributeNames();
while (en.hasMoreElements()) {
String sName = (String)en.nextElement();
%
%=sName% = %=session.getAttribute(sName)%br
%
}
session.setAttribute(BeenInBBS,yes);
//session.removeAttribute(UserID);
//session.removeAttribute(Pass);
//session.removeAttribute(SecurityLevel);
session.removeAttribute(Intl);
//session.removeAttribute(Properties);
session.removeAttribute(BizObj);
session.removeAttribute(MenuBar);
%
a href=bbsmaint.jspbbsmaint.jsp/a
a href=bbs.jspbbs.jsp/a
a href=tempsysadm.jsptempsysadm.jsp/a
/body
/html
--- end bbs.jsp-- 
Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED]
Project Manager / Lead Software Engineer   Fax: (631)752-3397
Recurrent Software Solutions, Inc.   http://www.recurrentsoft.com
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 


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

--- End of forwarded 

Re: SSL

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Is there a way to look at the contents of the keystore file?
 
 -jrj

keytool -list -v -keystore /path/to/.keystore  allcerts.txt

Should do it if I got the syntax right...

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

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



RE: (Fwd) Session attributes disappear between .jsp pages

2005-04-26 Thread Caldarale, Charles R
 From: Greg Vilardi [mailto:[EMAIL PROTECTED] 
 Subject: (Fwd) Session attributes disappear between .jsp pages 
 
 For the record, I figured this out. Our webapp was 
 automatically reloading every 15 seconds

Only guessing, but:

Is the reloadable attribute in this webapp's Context element enabled?

Is there possibly a timestamp on some file or jar entry that's in the
future?

 - Chuck


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

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



Re: Tomcat creating new sessions between Servlet-JSP request dispatch under load

2005-04-26 Thread Andre Van Klaveren
Riyad,

You should not be using the Session object to store your DTO for
display.  Especially if you are forwarding the request to a JSP.  The
Session object should only be used to store data that is required to
remain in server memory between client requests.  I would place your
DTO in the Request object instead.  That alone will probably solve
your problem.

Now, assuming you continue to use the Session object, you should
synchronize on the Session object before attempting to add your DTO
object to it.  That will prevent multiple requests from stepping on
each other while trying to add their DTOs to the Session.

I haven't looked at Tomcat's code to see how they implemented the
hashCode method of the Session object but it's not the best way to
determine if two Sessions are equal in your case.  The hash code may
depend on the contents of the Session object.  I would print out the
session ID instead.  This will truely tell you if you have two
different sessions.  From what you describe I find it hard to beleive
that you there is a second session creeping into the picture within
the same request.


-- 
Virtually,
Andre Van Klaveren
SCP

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



RE: Finding xalan and xerces on Linux

2005-04-26 Thread David B. Saul
Yes - 1.5 was installed before TC.

-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 3:28 PM
To: Tomcat Users List
Subject: Re: Finding xalan and xerces on Linux


Silly question, but are you sure you were using JDK 1.5.0+ on your Linux
install? Tomcat might have picked up a different version of it, or even GCJ.

-Riyad

On 4/26/05, David B. Saul [EMAIL PROTECTED] wrote:
 Installed TC 5.5.7 on Windows
 Created page using JSTL ( jstl.jar and standard.jar )
 
 Did not need to add xalan or xerces especially since they are now 
 included in Java 1.5.
 
 Deployed to Linux
 Used same versions of all components ( TC, JSTL, JAVA-JDK  JRE)
 
 I had to add the xalan and xerces in the ./WEB-INF/lib directory.
 
 Did I miss something or do I have to do this?
 
 Yes - I set JAVA_HOME, JRE_HOME, CATALINA_HOME and ???_HOME :)
 
 Any help would be appreciated
 
 -
 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]



Problems declaring same servlet-class with diff names

2005-04-26 Thread Meghana Joglekar
Hi,

We are trying to integrate 2 products, both running on tomcat. They
both use same servlet class but refer to using different
servlet-name. here is a snippet from web.xml
--
servlet
servlet-namecontrol/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value
/WEB-INF/struts/struts-config_guide.xml
/param-value
/init-param
load-on-startup300/load-on-startup
/servlet
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.collage.xml/param-value
/init-param
init-param
param-namedetail/param-name
param-value2/param-value
/init-param
 load-on-startup20/load-on-startup
/servlet

and there are mappings called '/control/*' and '/action/*' for both of
them respectively. But the reference loaded at later point of time
does not servlet instance for that class and all requests result in
'Invalid path requested' errors. e.g In above case 'control' servlet
is to be loaded after 'action' and all '/control/*' requests fail.
Is the configuration correct? If it is is this known bug and is there
any fix/workaround?
Any suggestion, advice is appreciated.

Thanks in advance,
Meghana.

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



Re: difference between tomcat 5.0 and tomcat 5.5

2005-04-26 Thread Patrick Lacson
I just want to let everyone know that I'm ignoring this post.



On 4/26/05, Mark Thomas [EMAIL PROTECTED] wrote:
 Posting multiple copies of the same message and posting the same message
 to both the tomcat-user and the tomcat-dev lists is a sure-fire way to
 make sure your message is ignored by most, if not all, members of this list.
 
 Please read http://jakarta.apache.org/site/mail.html for guidance.
 
 Mark
 
 
 Remo rahman wrote:
  can any one plz provide me with information regarding
  diference between tomcat 5.0 and tomcat 5.5
  some of the differences that i have noted are
  1)no entry of context in server.xml-
  so where this entry should be made
  2)no logger component in server.xml
 
  and also related to tomcat manager application
  what should be the entry when we are Deploying directory or WAR file
  located on server in
  1)Context Path
  2)XML Configuration file URL
  i will be very thankful if any one can help me
 
  -
  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]
 
 


-- 
Patrick

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



HTTP/POST request body dump

2005-04-26 Thread Tuan, Frank
Hi,

Can I configure Tomcat to dump the body of HTTP/POST requests into some kind of 
request log?  I would like to dump all of the request body of a SOAP web 
service that I'm working on.  I'm using Tomcat 5.0.28.

Thanks in advance,
Frank

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



Re: HTTP/POST request body dump

2005-04-26 Thread Tim Funk
Nope.
-Tim
Tuan, Frank wrote:
Hi,
Can I configure Tomcat to dump the body of HTTP/POST requests into some kind of request log?  I would like to dump all of the request body of a SOAP web service that I'm working on.  I'm using Tomcat 5.0.28.

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


configuration tips / tomcat 4.1 / mod_jk2

2005-04-26 Thread mbneto
Hi,

I am trying to understand what options should I configure in my
tomcat/mod_jk2 enviroment in order to host jsp-enabled sites.

I use apache 2 with virtual hosts.

any tips would be great.

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



remote restart of tomcat 5.5.x

2005-04-26 Thread quentin . compson
i would like to be able to remote restart tomcat (maybe eventually through ant)
but i can find no doc on how to do it.

env:
windows
5.5.x
apache modjk
no ssh on windows (yet)

--
yes i see that the doc is here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/windows-service-howto.html

but it also says:  This section of the documentation applies to procrun 1.0,
and is now obsolete.   so where do i find out how to do it?

thx.



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



Getting Log4JLogger errors when attempting to start web app

2005-04-26 Thread Franklin Phan
I have not been able to start my web app.  I am using Tomcat 5.0.?.  Everytime I go to 
the URL, I get The requested resource (/xyz) is not available error.
I go to look in the launcher.server.log file and see the following:
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigListener
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a66c87 for 
org.apache.commons.logging.impl.Log4JLogger
.
.
.
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1a66c87 for org.apache.commons.logging.impl.Log4JLogger
.
.
.
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
.
.
.

Now, in the WEB-INF\lib\ folder, there is a log4j.jar, which contains org/apache/log4j/Logger.class.
In the TOMCAT_HOME\commons\lib\ folder, there is a commons-logging-api.jar, dated May 30, 2003; but it does not contain Log4JLogger although it does contain Jdk14Logger.class (both under 
org.apache.commons.logging.impl).

Is this commons-logging-api.jar too old?  Where can I get the necessary 
org.apache.commons.logging.impl.Log4JLogger.class?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  1   2   >