Re: Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-06 Thread Mladen Turk

Charles Lim wrote:

Hi, (reposted to provide more meaningful subject)
I got the error shown below when i run startup.bat. Seems to have 2 main
error here:
1. Tomcat not able to find the library that allows optimal performance in
production environment.


This not an error. It's an [info] that you are not using
tcnative-1.dll


2. There is a Permission Denied while trying to initialize endpoint.

Currently using:
Microsoft Vista
jdk1.6.0_10 (tried jdk1.5.16 also does not work)
tomcat 6.0.18

What I have tried:
* has disabled the firewall
* start the DOS session as administrator
* change the port number 8080 in server.xml to 8383.



There has to be some security permission missing.
Run the cmd.exe, type
> netstat -ab -p tcp
and see if the ports are used.

Regards
--
^(TM)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-06 Thread Charles Lim
Below is the result after running netstat...both port 8080 and 8383 do not
seem to be used.

C:\Programs2\apache-tomcat-6.0.18\bin>netstat -ab -p tcp

Active Connections

  Proto  Local Address  Foreign AddressState
  TCP0.0.0.0:135Charles-PC:0   LISTENING
  RpcSs
 [svchost.exe]
  TCP0.0.0.0:2868   Charles-PC:0   LISTENING
 [NJEEVES.EXE]
  TCP0.0.0.0:49152  Charles-PC:0   LISTENING
 [wininit.exe]
  TCP0.0.0.0:49153  Charles-PC:0   LISTENING
  Eventlog
 [svchost.exe]
  TCP0.0.0.0:49154  Charles-PC:0   LISTENING
 [lsass.exe]
  TCP0.0.0.0:49155  Charles-PC:0   LISTENING
  Schedule
 [svchost.exe]
  TCP121.7.111.75:139   Charles-PC:0   LISTENING

 Can not obtain ownership information

x: Windows Sockets initialization failed: 5
  TCP121.7.111.75:55032 wf-in-f189:https   ESTABLISHED
 [iexplore.exe]
  TCP121.7.111.75:55295 cf-in-f18:httpsESTABLISHED
 [iexplore.exe]
  TCP121.7.111.75:55296 cf-in-f18:httpsESTABLISHED
 [iexplore.exe]
  TCP127.0.0.1:2868 Charles-PC:55285   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55286   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55287   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55289   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55290   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55291   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55293   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55294   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55298   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55300   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55301   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55302   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55303   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55304   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55305   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55306   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55307   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55308   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55309   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55310   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55311   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55312   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55313   TIME_WAIT
  TCP127.0.0.1:2868 Charles-PC:55314   TIME_WAIT
  TCP127.0.0.1:27015Charles-PC:0   LISTENING
 [AppleMobileDeviceService.exe]
  TCP127.0.0.1:27015Charles-PC:54555   ESTABLISHED
 [AppleMobileDeviceService.exe]
  TCP127.0.0.1:54554Charles-PC:0   LISTENING
 [javaw.exe]
  TCP127.0.0.1:54555Charles-PC:27015   ESTABLISHED
 [iTunesHelper.exe]

C:\Programs2\apache-tomcat-6.0.18\bin>

On Wed, Aug 6, 2008 at 3:20 PM, Mladen Turk <[EMAIL PROTECTED]> wrote:

> Charles Lim wrote:
>
>> Hi, (reposted to provide more meaningful subject)
>> I got the error shown below when i run startup.bat. Seems to have 2 main
>> error here:
>> 1. Tomcat not able to find the library that allows optimal performance in
>> production environment.
>>
>
> This not an error. It's an [info] that you are not using
> tcnative-1.dll
>
> 2. There is a Permission Denied while trying to initialize endpoint.
>>
>> Currently using:
>> Microsoft Vista
>> jdk1.6.0_10 (tried jdk1.5.16 also does not work)
>> tomcat 6.0.18
>>
>> What I have tried:
>> * has disabled the firewall
>> * start the DOS session as administrator
>> * change the port number 8080 in server.xml to 8383.
>>
>>
> There has to be some security permission missing.
> Run the cmd.exe, type
> > netstat -ab -p tcp
> and see if the ports are used.
>
> Regards
> --
> ^(TM)
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-06 Thread Mladen Turk

Charles Lim wrote:

Below is the result after running netstat...both port 8080 and 8383 do not
seem to be used.

C:\Programs2\apache-tomcat-6.0.18\bin>netstat -ab -p tcp

Active Connections



Seems the ports are not used.
So you should try some simple program
Download openssl.exe from
http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.14/binaries/win32/

> openssl.exe -nocert -accept 8080

If that's not fine you have some security problems.

Regards
--
^(TM)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-06 Thread Mark Thomas

Zemian Deng wrote:

Hello list,

When I try the following it works with tomcat-6.0.14, but failed on
tomcat-6.0.18

$ mkdir -p /tmp/mybase/conf
$ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
$ export CATALINA_BASE=/tmp/mybase
$ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
Using CATALINA_BASE:   /tmp/mytomcatbase
Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Exception in thread "main" java.lang.NoClassDefFoundError:

Is this a bug?


It would help if you provided more of the stack trace.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to stop getting emails from Tomcat in my inbox but to remain subscribed

2008-08-06 Thread Mark Thomas

suman wrote:

Hi,
I get lots of emails from tomcat-apace mailing list and it's difficult to
live  with them. I preferred a digest version everday/perweek.
Is it possible to stop getting emails  but to remain subscribed in
tomcat-apache mailing list?


Subscribe to the digest list.
http://tomcat.apache.org/lists.html

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat-users.xml user and role elements?

2008-08-06 Thread Mark Thomas

firtzel wrote:

Trying to get things rolling here... does anyone have an answer to this one?


This is open source so if you want to know how things work you do always 
have the option of looking at the source yourself.


The file you want (for 5.5.x0 is:
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/realm/MemoryRuleSet.java?view=markup

This is a set of rules for commons digester but is pretty simple so you 
should be able to answer your questions.


Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat does not shutdown properly and kill -3 does not work!

2008-08-06 Thread Maduranga Kannangara
Hi,

A friend of mine said it was not due to ActiveMQ that Tomcat does not
shutdown properly, however I added a kill command to shutdown.sh script
which is NOT good at all, I understand.

In MAC (10.5) kill -3 seems working, but its a blind path which gets me
nowhere. I do not get a trace of the threads. Its a wrong path I am
following. What I need simply is a clean shutdown on Tomcat :-)

Environment:
Tomcat: 5.5.20
JVM: 1.5.0_09-b01
OS: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)

Please help! :-)

Thanks again
Maduranga




On 5/8/08 10:59, "Maduranga Kannangara" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> There is an issue with my Tomcat instance where I have to kill it using ­9
> all the time.
> 
> This is my application environment:
> An active-mq queue is used inside my application war.
> Tomcat version: 5.x
> OS: Redhat Linux
> 
> However I was unable to get trace using kill ­3 as I saw in some of the
> threads in this mailing list.
> 
> How can I ensure proper shutdown of Tomcat?
> 
> Thanks in advance!
> Maduranga
> 


-- 
Koodos - stylish brads, smart prices
http://www.koodos.com



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-06 Thread Mark Thomas

Len Popp wrote:

I agree that a false positive from Avast shouldn't be ignored, but I
think the correct solution is for someone @apache.org to contact Avast
and ask them to either explain what the problem is or remove Tomcat
from their virus definitions.


Done. Waiting for their response...

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-06 Thread Charles Lim
I try to run, but it says -nocert and -accept commands are invalid:

C:\Downloads\test program>openssl -nocert -accept 8080
openssl:Error: '-nocert' is an invalid command.

Standard commands
asn1parse  ca cipherscrlcrl2pkcs7
dgst   dh dhparamdsadsaparam
ec ecparamencengine errstr
gendh  gendsa genrsa nseq   ocsp
passwd pkcs12 pkcs7  pkcs8  prime
rand   reqrsarsautl s_client
s_server   s_time sess_idsmime  speed
spkac  verify versionx509

Message Digest commands (see the `dgst' command for more details)
md2md4md5rmd160 sha
sha1

Cipher commands (see the `enc' command for more details)
aes-128-cbcaes-128-ecbaes-192-cbcaes-192-ecbaes-256-cbc
aes-256-ecbbase64 bf bf-cbc bf-cfb
bf-ecb bf-ofb cast   cast-cbc   cast5-cbc
cast5-cfb  cast5-ecb  cast5-ofb  desdes-cbc
des-cfbdes-ecbdes-ededes-ede-cbcdes-ede-cfb
des-ede-ofbdes-ede3   des-ede3-cbc   des-ede3-cfb   des-ede3-ofb
des-ofbdes3   desx   idea   idea-cbc
idea-cfb   idea-ecb   idea-ofb   rc2rc2-40-cbc
rc2-64-cbc rc2-cbcrc2-cfbrc2-ecbrc2-ofb
rc4rc4-40


C:\Downloads\test program>



On 8/6/08, Mladen Turk <[EMAIL PROTECTED]> wrote:
>
> Charles Lim wrote:
>
>> Below is the result after running netstat...both port 8080 and 8383 do not
>> seem to be used.
>>
>> C:\Programs2\apache-tomcat-6.0.18\bin>netstat -ab -p tcp
>>
>> Active Connections
>>
>>
> Seems the ports are not used.
> So you should try some simple program
> Download openssl.exe from
>
> http://www.apache.org/dist/tomcat/tomcat-connectors/native/1.1.14/binaries/win32/
>
> > openssl.exe -nocert -accept 8080
>
> If that's not fine you have some security problems.
>
> Regards
> --
> ^(TM)
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-06 Thread Mladen Turk

Charles Lim wrote:

I try to run, but it says -nocert and -accept commands are invalid:

C:\Downloads\test program>openssl -nocert -accept 8080
openssl:Error: '-nocert' is an invalid command.



Sorry, its
openssl s_server -nocert -accept 8080

Regards
--
^(TM)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.18 startup Permission Denied Error:listen failed initializing endpoint

2008-08-06 Thread Charles Lim
Below is the result. Seems like the port is ok.


C:\Users\Charles\Downloads\java\apache>openssl s_server -nocert -accept 8080
Loading 'screen' into random state - done
Using default temp DH parameters
Using default temp ECDH parameters
ACCEPT


On Wed, Aug 6, 2008 at 5:54 PM, Mladen Turk <[EMAIL PROTECTED]> wrote:

> Charles Lim wrote:
>
>> I try to run, but it says -nocert and -accept commands are invalid:
>>
>> C:\Downloads\test program>openssl -nocert -accept 8080
>> openssl:Error: '-nocert' is an invalid command.
>>
>>
> Sorry, its
> openssl s_server -nocert -accept 8080
>
>
> Regards
> --
> ^(TM)
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Tomcat does not shutdown properly and kill -3 does not work!

2008-08-06 Thread Peter Crowther
> From: Maduranga Kannangara [mailto:[EMAIL PROTECTED]
> What I need simply is a clean shutdown on Tomcat :-)

Yes.  In order to *get* that clean shutdown, you need to find out what's 
preventing it :-).

One common problem is that something in your webapp has created a thread and 
not marked it as a daemon thread 
(http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#setDaemon(boolean)
 - yes, I know that's probably for the wrong Java version, but the problem 
still stands).  The JVM won't exit while that thread's still alive, so the 
notion of trying to shut down Tomcat then getting a thread dump after that 
point is a very good one.

Hmm.  You're on a 1.5 JDK on Linux.  That means you should be able to use 
jstack to get a thread dump - might be worth a try.  I don't think we can help 
you much more on this list until we have some idea of what's keeping the JVM 
running!

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-06 Thread Johnny Kewl


- Original Message - 
From: "Len Popp" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Wednesday, August 06, 2008 2:09 AM
Subject: Re: Avast Antivirus and apache-tomcat-6.0.18.exe



2008/8/5 Johnny Kewl <[EMAIL PROTECTED]>:


- Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, August 05, 2008 11:09 PM
Subject: Re: Avast Antivirus and apache-tomcat-6.0.18.exe



Mark Thomas wrote:


Ангелин Лалев wrote:


Apparently the address is from Bulgarian mirror, where I am
automatically redirected when i load the
http://tomcat.apache.org/download-60.cgi.
The md5 sum is from there too.

If the alert is reproducable on binaries from other mirrors that still
don't mean it's a virus.
I had false warnings with Avast before.


Indeed. That is what I am trying to establish.


I am as sure as I can be that this is a false positive.

Mark


Hi Mark, I think so to, I scanned the zips, scanned native binaries...
conclude either something has snuck onto the MS build machine, or Avast 
is
getting it wrong... I believe the later because it doesnt actually 
identify

the virus, Win32 gen seems to be a generic warning with no description...
But all this doesnt really matter... one cant recommend users ignore it,
Avast is popular... and its just the kind of thing competition will 
thrive

on... its negative marketing for TC.
It will probably go away with a slight mod to the build and I think it 
has

to be marked as urgent and the instant the next build is ready, its
replaced.
I would actually remove it... just the Win32 service... the zip is fine.
Regards
JK


I agree that a false positive from Avast shouldn't be ignored, but I
think the correct solution is for someone @apache.org to contact Avast
and ask them to either explain what the problem is or remove Tomcat
from their virus definitions.

Sometimes the problem is caused by the installer program. There have
been cases where the anti-virus guys mistakenly extract a signature
from the installer program rather than the from the malware itself,
which causes false positives on other programs using the same
installer. Just a guess, but it seems likely here because Tomcat uses
the popular open-source Nullsoft installer.


Its picking it up in a temp file, and I think they going to say that its a 
flook, it just so happens that the temp file is generating a virus 
signature, my guess.
They probably cant do anything about it... and even if they did, it assumes 
people actually download updates on Avast...
I think theres a momentum problem in this approach, all be it the right 
one... just unlucky.

I dont see it in other installer versions which I imagine all use null soft.
Its damn interesting though... looking forward to what Avast says...
---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat as a proxy via a proxy

2008-08-06 Thread Tim Funk

IIRC, HttpClient has its own configuration for setting the proxy.

http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HostConfiguration.html
http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpState.html#setProxyCredentials(org.apache.commons.httpclient.auth.AuthScope,%20org.apache.commons.httpclient.Credentials)

-Tim

Steve Cameron wrote:

Hello

I want to make use of a proxy jsp that takes a POST request and sends it on
another server, receives the request and passes it back to the browser.

The jsp is making use of the org.apache.commons.httpclient.HttpClient class.

However my Tomcat instance cannot retrieve the request from the second
server as it must send the request via a Proxy which requires
authentication.

I have tried adding the following options to the JAVA_OPTS in the
catalina.bat file.

-Dhttp.proxyHost= -Dhttp.proxyPort=8080 -DproxyUser=xxx
-DproxyPassword=xx



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: #of Site can be run on single Tomcat Instance?

2008-08-06 Thread Tim Funk

There is no real limitation (except for memory)

You might be out of permgen space.

Try: JAVA_OPTS=-XX:MaxPermSize=128m

-Tim

Tomcat User6 wrote:


I am running around 10 different site on single Tomcat Instnace i.e. 6.0. I
am facing some unexpected errors while running some of the sites. Everytime
I restart the Tomcat, the same error is throwing by individual site.

This is the error..

java.lang.NoClassDefFoundError:
com/opensymphony/xwork2/util/profiling/UtilTimerStack

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:425)

I have Struts2 integrated in all sites. everytime this error appears on
different-different sites.

Is there any limitation of #of sites can be run on tomcat or so.?



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Avast Antivirus and apache-tomcat-6.0.18.exe

2008-08-06 Thread Johnny Kewl


- Original Message - 
From: "Ангелин Лалев" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Wednesday, August 06, 2008 7:01 AM
Subject: Re: Re: Avast Antivirus and apache-tomcat-6.0.18.exe



Thanks for the fast replies!
I'm going to proceed with installation.
Maybe Avast guys should be notified, but that must be done from someone
regular with the project.


I think its probably better, especially if this is for customers to use the 
zip version...


Unzip it to location...

run

service.bat install

Your clients wont start wondering about you ;)

Or you can tell em... Obama said its ok ;)

There is another way...

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat does not shutdown properly and kill -3 does not work!

2008-08-06 Thread Maduranga Kannangara
Thanks a lot Peter! I got a thread dump using "jstack 704" (PID was 704)
I think I need a little more of your help to find out where exactly going
wrong. Below is my dump and thanks a lot for your time.

MadurangaMAC:bin Maduranga$ jstack 704
Attaching to process ID 704, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 1.5.0_13-119
Thread [EMAIL PROTECTED]: (state = BLOCKED)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
 - org.apache.jk.common.ChannelSocket.accept(org.apache.jk.core.MsgContext)
@bci=20, line=306 (Interpreted frame)
 - org.apache.jk.common.ChannelSocket.acceptConnections() @bci=72, line=666
(Interpreted frame)
 - 
org.apache.jk.common.ChannelSocket$SocketAcceptor.runIt(java.lang.Object[])
@bci=4, line=876 (Interpreted frame)
 - org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() @bci=167,
line=689 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
 - 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(java.lang.Object
[]) @bci=23, line=62 (Interpreted frame)
 - org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() @bci=167,
line=689 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.util.TimerThread.mainLoop() @bci=201, line=509 (Interpreted frame)
 - java.util.TimerThread.run() @bci=1, line=462 (Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
 - org.quartz.core.QuartzSchedulerThread.run() @bci=870, line=420
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - org.quartz.simpl.SimpleThreadPool$WorkerThread.run() @bci=44, line=523
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.ref.ReferenceQueue.remove(long) @bci=44, line=116 (Interpreted
frame)
 - java.lang.ref.ReferenceQueue.remove() @bci=2, line=132 (Interpreted
frame)
 - java.lang.ref.Finalizer$FinalizerThread.run() @bci=3, line=159
(Interpreted frame)


Thread [EMAIL PROTECTED]: (state = BLOCKED)
 - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
 - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame)
 - java.lang.ref.Reference$ReferenceHandler.run() @bci=46, line=116
(Interpreted frame)


Thanks again
Muds


On 6/8/08 11:27, "Peter Crowther" <[EMAIL PROTECTED]> wrote:

>> From: Maduranga Kannangara [mailto:[EMAIL PROTECTED]
>> What I need simply is a clean shutdown on Tomcat :-)
> 
> Yes.  In order to *get* that clean shutdown, you need to find out what's
> preventing it :-).
> 
> One common problem is that something in your webapp has created a thread and
> not marked it as a daemon thread
> (http://java.sun.com/j2se/1.4.2/doc

cant run servlets

2008-08-06 Thread Swechha Rao
Hi,

 

I have just downloaded apache tomcat 6.0.18.zip. I have unzipped it and
given the classpath for servlet-api and jsp-api.

I can run the example servlet and jsp pages.

I created a new folder with servlets and jsp in it and placed it in the
webapps folder. But I cannot run the servlet pages.

 

Please provide me a solution for this.

 

Swechha.



Re: List remote files in Servlet

2008-08-06 Thread André Warnier

Nathan Thatcher wrote:

Turns out that was the issue. I set tomcat to run as a local user and
now it works. Thanks for the help.




Tomcat is running on a windows machine under the SYSTEM account so I
assume that it has the permissions. Is there a way to check if this is
the problem?

Under Windows, the LocalSystem account *specifically* has no network 
access rights (you cam still make TCP/IP connections and so, but you 
cannot access Windows network resources).
To be perfectly ok, you would need to set up a Domain user that has the 
appropriate rights, and start Tomcat as that user.
Don't forget to create this user with a password that does not need to 
be changed regularly, or you might have problems starting Tomcat after a 
while.


André


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: cant run servlets

2008-08-06 Thread Mikolaj Rydzewski

Swechha Rao wrote:

Please provide me a solution for this.
  

http://tomcat.apache.org/tomcat-6.0-doc/appdev/

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Permission Denied

2008-08-06 Thread Martin Gainty

download and install tcnative libraries
http://tomcat.apache.org/native-doc

HTH
Martin
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Wed, 6 Aug 2008 12:10:52 +0800
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> Subject: Permission Denied
> 
> Hi,
> I got the error shown below when i run startup.bat. Seems to have 2 main
> error here:
> 1. Tomcat not able to find the library that allows optimal performance in
> production environment.
> 2. There is a Permission Denied while trying to initialize endpoint.
> 
> Currently using:
> Microsoft Vista
> jdk1.6.0_10 (tried jdk1.5.16 also does not work)
> 
> What I have tried:
> * has disabled the firewall
> * start the DOS session as administrator
> * change the port number 8080 in server.xml to 8383.
> 
> Run out of ideas on how to solve it...so any help will be much appreciated.
> 
> Regards,
> yclim
> 
> 
> 
> 
> 
> 06-Aug-08 PM 12:02 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performanc
> e in production environments was not found on the java.library.path:
> C:\Program
> Files\Java\jre1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows
> ;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows
> ;C:\Windows\System32\Wbem;C:\PROGRA~1\COMMON~1\ULEADS~1\MPEG;C:\Program
> Files\No
> rman\Npm\Bin;C:\Program Files\jEdit;C:\Program Files\QuickTime\QTSystem\
> 06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.net.SocketException: Permission denied: listen failed
> at java.net.PlainSocketImpl.socketListen(Native Method)
> at java.net.PlainSocketImpl.listen(Unknown Source)
> at java.net.ServerSocket.bind(Unknown Source)
> at java.net.ServerSocket.(Unknown Source)
> at java.net.ServerSocket.(Unknown Source)
> at
> org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(De
> faultServerSocketFactory.java:50)
> at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)
> at
> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
> at
> org.apache.catalina.connector.Connector.initialize(Connector.java:105
> 8)
> at
> org.apache.catalina.core.StandardService.initialize(StandardService.j
> ava:677)
> at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
> a:795)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
> 06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
> SEVERE: Catalina.start
> LifecycleException:  Protocol handler initialization failed:
> java.net.SocketExce
> ption: Permission denied: listen failed
> at
> org.apache.catalina.connector.Connector.initialize(Connector.java:106
> 0)
> at
> org.apache.catalina.core.StandardService.initialize(StandardService.j
> ava:677)
> at
> org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
> a:795)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
> at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
> 06-Aug-08 PM 12:02 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 904 ms
> 06-Aug-08 PM 12:02 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 06-Aug-08 PM 12:02 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
> 06-Aug-08 PM 12:02 org.apache.coyote.http11.Http11Protocol start
> SEVERE: Error starting endpoint
> java.net.SocketException: Permission denied: listen failed
> at java.net.Pl

Re: cant run servlets

2008-08-06 Thread Warren Killian
Hi Swechha,

I don't exactly know of a solution to your problem.  I'd need more
information.  But I think that you do not have to set an explicit $CLASSPATH
to include the servlet-api and jsp-api jar files.  Tomcat automatically
includes the jars in [Tomcat]/common/lib without you needing to specifically
set any $CLASSPATH.  Hope this helps.

On Wed, Aug 6, 2008 at 7:09 AM, Swechha Rao <[EMAIL PROTECTED]>wrote:

> Hi,
>
>
>
> I have just downloaded apache tomcat 6.0.18.zip. I have unzipped it and
> given the classpath for servlet-api and jsp-api.
>
> I can run the example servlet and jsp pages.
>
> I created a new folder with servlets and jsp in it and placed it in the
> webapps folder. But I cannot run the servlet pages.
>
>
>
> Please provide me a solution for this.
>
>
>
> Swechha.
>
>


Re: Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-06 Thread Zemian Deng
Hi Mark, I am away from a computer now. But the steps I gave to
reproduce out of default download is only 4 steps!!!

You can't see error using that?

I guess I can check the log for the stacktrace later. The error on
console did not give more than what I paste. And since the errror
seems like it can't even start the server, I doubt more info from log.
But I will check later.
-Z



On 8/6/08, Mark Thomas <[EMAIL PROTECTED]> wrote:
> Zemian Deng wrote:
>> Hello list,
>>
>> When I try the following it works with tomcat-6.0.14, but failed on
>> tomcat-6.0.18
>>
>> $ mkdir -p /tmp/mybase/conf
>> $ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
>> $ export CATALINA_BASE=/tmp/mybase
>> $ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
>> Using CATALINA_BASE:   /tmp/mytomcatbase
>> Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
>> Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
>> Using JRE_HOME:
>> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>
>> Is this a bug?
>
> It would help if you provided more of the stack trace.
>
> Mark
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Refresh the cache

2008-08-06 Thread Gordon, Jack
Is there a way to refresh the cache without stopping the service?

Jack W. Gordon Jr
Server Administrator
Information Technology
Oklahoma State University
Stillwater, Oklahoma 74078
405-744-4540



issues starting Tomcat 6.0.18 when CATALINA_BASE does not match CATALINA_HOME

2008-08-06 Thread AFaller
Hi All -

I have a very basic tomcat setup that generally worked right out of the 
"box".  To make upgrades simplier, I move my webapps and conf files out of 
CATALINE_BASE and specifically set my own CATALINA_HOME env variable.  In 
the past, to upgrade tomcat, I simply changed my CATALINA_HOME variable 
and restarted.  Now, when attempting to start tomcat using 6.0.18, all I 
get is the following in my log:

Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

And thats it.  I have confirmed tomcat starts just fine when BASE matches 
HOME.   I experimented with copying catalina.sh from 6.0.16 into 6.0.18's 
bin directory, and the server then starts as expected.  However, I can't 
seem to find what in catalina.sh is causing this issue.  Can anyone help?

Thanks in advance,

Al Faller

Upgrade

2008-08-06 Thread Ed Abukhdeir
How to upgrade from tomcat 5.5 to tomcat 6.0 and keep existing
configuration?

 

Thanks



The information transmitted is intended only for the person(s) or entity to 
which it is addressed 
and may contain confidential and or privileged material and should be treated 
as a confidential 
AAA Auto Club South communication. If the reader of this message is not the 
intended recipient, you 
are hereby notified that your access is unauthorized, and any review, 
dissemination, distribution, or 
copying of this message including any attachments is strictly prohibited.



Re: cant run servlets

2008-08-06 Thread T . K . Thiyagarajan
what about web.xml file?
have u entered ur 'servlet' and 'servlet mapping'  properly?
check that.


On Wed, Aug 6, 2008 at 4:39 PM, Swechha Rao <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
>
> I have just downloaded apache tomcat 6.0.18.zip. I have unzipped it and
> given the classpath for servlet-api and jsp-api.
>
> I can run the example servlet and jsp pages.
>
> I created a new folder with servlets and jsp in it and placed it in the
> webapps folder. But I cannot run the servlet pages.
>
>
>
> Please provide me a solution for this.
>
>
>
> Swechha.
>
>



-- 
With Regards
T.K.Thiyagarajan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh the cache

2008-08-06 Thread Mark Thomas

Gordon, Jack wrote:

Is there a way to refresh the cache without stopping the service?


What cache?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: issues starting Tomcat 6.0.18 when CATALINA_BASE does not match CATALINA_HOME

2008-08-06 Thread Mark Thomas

[EMAIL PROTECTED] wrote:

And thats it.  I have confirmed tomcat starts just fine when BASE matches 
HOME.   I experimented with copying catalina.sh from 6.0.16 into 6.0.18's 
bin directory, and the server then starts as expected.  However, I can't 
seem to find what in catalina.sh is causing this issue.  Can anyone help?


Maybe this change:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/bin/catalina.sh?r1=600664&r2=652629&diff_format=h

Rainer found this during his testing of 6.0.17 and it wasn't fixed before 
6.0.18 was tagged.


It is worth adding this to Bugzilla so it doesn't get lost.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: #of Site can be run on single Tomcat Instance?

2008-08-06 Thread Tomcat User6

It should not be an struts error, as this error appears like a whack-a-mole
in all sites. All sites are built on same Framework. Sometime the particular
site works fine but after restarting a tomcat instance the same site which
was working fine, starts giving an error and other sites which has same
framework still working fine.

Do you have any idea why this is happening.?



Tomcat User6 wrote:
> 
> 
> I am running around 10 different site on single Tomcat Instnace i.e. 6.0.
> I am facing some unexpected errors while running some of the sites.
> Everytime I restart the Tomcat, the same error is throwing by individual
> site.
> 
> This is the error..
> 
> java.lang.NoClassDefFoundError:
> com/opensymphony/xwork2/util/profiling/UtilTimerStack
> 
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:425)
> 
> I have Struts2 integrated in all sites. everytime this error appears on
> different-different sites.
> 
> Is there any limitation of #of sites can be run on tomcat or so.?
> 
> If this is not the issue then, what can be other possible causes.?
>  
> 

-- 
View this message in context: 
http://www.nabble.com/-of-Site-can-be-run-on-single-Tomcat-Instance--tp18838809p18853021.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh the cache

2008-08-06 Thread David Smith
Could you provide some better detail regarding what you mean?  Tomcat 
itself does not have a cache in any of it's versions.


--David

Gordon, Jack wrote:

Is there a way to refresh the cache without stopping the service?

Jack W. Gordon Jr
Server Administrator
Information Technology
Oklahoma State University
Stillwater, Oklahoma 74078
405-744-4540


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh the cache

2008-08-06 Thread Mark Thomas

David Smith wrote:
Could you provide some better detail regarding what you mean?  Tomcat 
itself does not have a cache in any of it's versions.


Not strictly true. Static resources are cached (for a few seconds), classes 
are cached in the classloader, expressions are cached in Jasper, etc.


All that said, I don't think the OP is referring to any of these. Equally, 
I have no idea what he does mean at the minute.


Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat security and window open js

2008-08-06 Thread daniel steel
All,

   i found some interesting results by changing role defined
under security-constraint. if we defined tomcat as the role-name, then
window.open fails but if i change the role-name to manager, window.open
works. why?



   

  

            manager

        





thanks

dan



p.s. chris, your reply to earlier email was blank and so i am not sure if you 
had answered the above question.

--- On Tue, 7/29/08, daniel steel <[EMAIL PROTECTED]> wrote:
From: daniel steel <[EMAIL PROTECTED]>
Subject: tomcat security and window open js
To: users@tomcat.apache.org
Date: Tuesday, July 29, 2008, 1:10 PM

all, 

  we are having issues with IE(?) - javascript - window.open
function and tomcat. When we deploy tomcat with basic authentication
security enabled and  in our jsp when ever we call 



window.open(url,.), it asks for username / password (authetication) again.



how do we over come this? is this issue with IE or this is how http
basic authentication works? if we try new window (ctrl + N) and paste
the new jsp url, it works fine.



i don't think its relavant to this, i tried setting up valve and it
didn't work.



https://issues.apache.org/bugzilla/show_bug.cgi?id=44527



thanks

dan






  


  

Re: tomcat security and window open js

2008-08-06 Thread Mark Thomas

daniel steel wrote:

All,

   i found some interesting results by changing role defined
under security-constraint. if we defined tomcat as the role-name, then
window.open fails but if i change the role-name to manager, window.open
works. why?


Get yourself a copy of ieHttpHeaders and see what is gong on at the 
request/response level.


Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: issues starting Tomcat 6.0.18 when CATALINA_BASE does not match CATALINA_HOME

2008-08-06 Thread Rainer Jung

Mark Thomas schrieb:

[EMAIL PROTECTED] wrote:

And thats it.  I have confirmed tomcat starts just fine when BASE 
matches HOME.   I experimented with copying catalina.sh from 6.0.16 
into 6.0.18's bin directory, and the server then starts as expected.  
However, I can't seem to find what in catalina.sh is causing this 
issue.  Can anyone help?


Maybe this change:
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/bin/catalina.sh?r1=600664&r2=652629&diff_format=h 



Rainer found this during his testing of 6.0.17 and it wasn't fixed 
before 6.0.18 was tagged.


It is worth adding this to Bugzilla so it doesn't get lost.


I just tested 6.0.18 with separate BASE and HOME using defaults (moving 
conf, temp, work, webapps to BASE and setting the CATALINA_BASE env var 
befoe starting). That works.


If the erro is only

Exception in thread "main" java.lang.NoClassDefFoundError:

without any more information, I would say it's the same problem Mark 
mentions. You don't have a conf/logging.properties in CATALINA_BASE, 
therefore LOGGING_CONFIG is empty and prduces an empty argument to the 
Java command, which gives this error message.


You can either provide logging.properties, or if you don't want to use 
JULI logging, you can use the following patch to catalina.sh, which is 
not brilliant, but a workaround:


--- catalina.sh.orig2008-07-22 02:01:12.0 +0200
+++ catalina.sh 2008-08-06 17:08:16.394941000 +0200
@@ -183,6 +183,8 @@
 if [ -r "$CATALINA_BASE"/conf/logging.properties ]; then
   JAVA_OPTS="$JAVA_OPTS 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"


LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"
+else
+  LOGGING_CONFIG="-Dnop"
 fi
c
 # - Execute The Requested Command 
-


It adds the lines

else
  LOGGING_CONFIG="-Dnop"

after line 185.

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-06 Thread Rainer Jung

See also

http://marc.info/?t=12180313421&r=1&w=2

Regards,

Rainer

Zemian Deng schrieb:

Hi Mark, I am away from a computer now. But the steps I gave to
reproduce out of default download is only 4 steps!!!

You can't see error using that?

I guess I can check the log for the stacktrace later. The error on
console did not give more than what I paste. And since the errror
seems like it can't even start the server, I doubt more info from log.
But I will check later.
-Z



On 8/6/08, Mark Thomas <[EMAIL PROTECTED]> wrote:

Zemian Deng wrote:

Hello list,

When I try the following it works with tomcat-6.0.14, but failed on
tomcat-6.0.18

$ mkdir -p /tmp/mybase/conf
$ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
$ export CATALINA_BASE=/tmp/mybase
$ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
Using CATALINA_BASE:   /tmp/mytomcatbase
Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Exception in thread "main" java.lang.NoClassDefFoundError:

Is this a bug?

It would help if you provided more of the stack trace.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh the cache

2008-08-06 Thread David Smith

Mark Thomas wrote:

David Smith wrote:
Could you provide some better detail regarding what you mean?  Tomcat 
itself does not have a cache in any of it's versions.


Not strictly true. Static resources are cached (for a few seconds), 
classes are cached in the classloader, expressions are cached in 
Jasper, etc.


All that said, I don't think the OP is referring to any of these. 
Equally, I have no idea what he does mean at the minute.


Mark



True.  I was thinking of cached responses.

--David.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 6 classpath issue

2008-08-06 Thread wskent

I have the following jars in my web projects \web\WEB-INF\lib dirdectory -
log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar, servlet-api-2.4.jar,
standard-1.1.2.jar

When I retrieve the classpath using - 
String classPath = System.getProperty("java.class.path",".");
LOG.debug("Classpath: " + classPath);
I get the following - 
Classpath: C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar

Any ideas why the jars in WEB-INF\lib are not showing up in my classpath?

-- 
View this message in context: 
http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18853872.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Refresh the cache

2008-08-06 Thread Gordon, Jack
We were told by our vendor to clear the cache.

That may not be the right term, but the process that they have us do is to 
remove the folders from the following directory:
D:\Tomcat 4.1\work\Standalone\localhost


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2008 10:28 AM
To: Tomcat Users List
Subject: Re: Refresh the cache

Mark Thomas wrote:
> David Smith wrote:
>> Could you provide some better detail regarding what you mean?  Tomcat
>> itself does not have a cache in any of it's versions.
>
> Not strictly true. Static resources are cached (for a few seconds),
> classes are cached in the classloader, expressions are cached in
> Jasper, etc.
>
> All that said, I don't think the OP is referring to any of these.
> Equally, I have no idea what he does mean at the minute.
>
> Mark
>

True.  I was thinking of cached responses.

--David.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SEVERE: Error listenerStart -- without entering the listener

2008-08-06 Thread Ken Bowen

Hi all,

Using: Mac OS X 10.4.5 running Tomcat 5.5.26 -- this is a brand-new  
copy downloaded from Apache & unzipped; no changes.


This project used to work; I'm trying to figure out what got broken.

Symptom:  listenerStart fails without even getting to the first line  
of the AppListener (catalina.out trace below).


From web.xml:


  
	com.connectedtrading.listener.AppListenerlistener-class>
	com.connectedtrading.database.HibernateListenerlistener-class>
	 com.connectedtrading.listener.SessionListenerlistener-class>

  
...

I've tried swapping the first two lines; neither works anymore.
Both listener classes are present in WEB-INF/classes.

My application context.xml is in META-INF:



  type="javax.sql.DataSource"

maxActive="100" maxIdle="30" maxWait="1"
username="x" password="x"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/ct_alerts"
validationQuery="select 1"
  />


I've dropped raw println's at the beginning of the listeners, e.g.:

public void contextInitialized(ServletContextEvent  
servletContextEvent)

{
System.out.println("++");
...

But as you can see from the catalina.out trace below, these are not  
being executed.



To eliminate possible permission problems, I've made the entire app  
tree in webapps
universally read-write-executable (anyway, it's all owned by me and  
tomcat is running

as me -- started both from startup.sh or from Eclipse).

Any thoughts or pointers about working this out will be greatly  
appreciated:


Here's the startup trace from catalina.out:

Aug 6, 2008 11:07:40 AM org.apache.catalina.core.AprLifecycleListener  
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal  
performance in production environments was not found on the  
java.library.path: /System/Library/Frameworks/JavaVM.framework/ 
Versions/1.5.0/Home/bin:/Users/ken/Projects/bin/apache-tomcat-5.5.26/bin

Aug 6, 2008 11:07:40 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 6, 2008 11:07:40 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 673 ms
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:  
[org.apache.webapp.balancer.RuleChain:  
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:  
News / Redirect URL: http://www.cnn.com],  
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param  
name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com 
], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect  
URL: http://jakarta.apache.org]]
log4j:WARN No appenders could be found for logger  
(org.apache.commons.digester.Digester.sax).

log4j:WARN Please initialize the log4j system properly.
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/connectedtrading] startup failed due to previous  
errors

Aug 6, 2008 11:07:42 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
..

Thanks,
Ken


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh the cache

2008-08-06 Thread Mark Thomas

Gordon, Jack wrote:

We were told by our vendor to clear the cache.

That may not be the right term, but the process that they have us do is to 
remove the folders from the following directory:
D:\Tomcat 4.1\work\Standalone\localhost


OK - you can't do that without stopping Tomcat.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 classpath issue

2008-08-06 Thread Mark Thomas

wskent wrote:

I have the following jars in my web projects \web\WEB-INF\lib dirdectory -
log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar, servlet-api-2.4.jar,
standard-1.1.2.jar

When I retrieve the classpath using - 
	String classPath = System.getProperty("java.class.path",".");

LOG.debug("Classpath: " + classPath);
I get the following - 
Classpath: C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar


Any ideas why the jars in WEB-INF\lib are not showing up in my classpath?


Tomcat doesn't use it that way.

Mark




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 classpath issue

2008-08-06 Thread Steve Ochani
Date sent:  Wed, 06 Aug 2008 08:36:48 -0700 (PDT)
From:   wskent <[EMAIL PROTECTED]>
Subject:Tomcat 6 classpath issue
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List 

> 
> I have the following jars in my web projects \web\WEB-INF\lib
> dirdectory - log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar,
> servlet-api-2.4.jar, standard-1.1.2.jar
> 

Bad idea to have 2.4 api jar, IMO.


> When I retrieve the classpath using - 
>  String classPath = System.getProperty("java.class.path",".");
>  LOG.debug("Classpath: " + classPath);
> I get the following - 
> Classpath:
> C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar
> 
> Any ideas why the jars in WEB-INF\lib are not showing up in my
> classpath?

Multiple classloaders. The webapp classloader is different from other 
classloaders.

http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html



-Steve O.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SEVERE: Error listenerStart -- without entering the listener

2008-08-06 Thread David Smith
Each listener should be in it's own  ...  element 
block.  Don't try to put all three in one.


--David

Ken Bowen wrote:

Hi all,

Using: Mac OS X 10.4.5 running Tomcat 5.5.26 -- this is a brand-new 
copy downloaded from Apache & unzipped; no changes.


This project used to work; I'm trying to figure out what got broken.

Symptom:  listenerStart fails without even getting to the first line 
of the AppListener (catalina.out trace below).


From web.xml:


  

com.connectedtrading.listener.AppListener 

com.connectedtrading.database.HibernateListener 

 
com.connectedtrading.listener.SessionListener 


  
...

I've tried swapping the first two lines; neither works anymore.
Both listener classes are present in WEB-INF/classes.

My application context.xml is in META-INF:



  type="javax.sql.DataSource"

maxActive="100" maxIdle="30" maxWait="1"
username="x" password="x"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/ct_alerts"
validationQuery="select 1"
  />


I've dropped raw println's at the beginning of the listeners, e.g.:

public void contextInitialized(ServletContextEvent 
servletContextEvent)

{
System.out.println("++");
...

But as you can see from the catalina.out trace below, these are not 
being executed.



To eliminate possible permission problems, I've made the entire app 
tree in webapps
universally read-write-executable (anyway, it's all owned by me and 
tomcat is running

as me -- started both from startup.sh or from Eclipse).

Any thoughts or pointers about working this out will be greatly 
appreciated:


Here's the startup trace from catalina.out:

Aug 6, 2008 11:07:40 AM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: 
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin:/Users/ken/Projects/bin/apache-tomcat-5.5.26/bin 


Aug 6, 2008 11:07:40 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 6, 2008 11:07:40 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 673 ms
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).

log4j:WARN Please initialize the log4j system properly.
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/connectedtrading] startup failed due to previous errors
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
..

Thanks,
Ken




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CHKJ4014W Warning

2008-08-06 Thread Bell, Geoffrey T.
I'm getting a warning that I can't seem to find an answer for.  The
Eclipse console is stating:
 
  Severity and Description:
CHKJ4014W: Empty Entry of Type Parameter Name.
 
  Path:
emtk-air/src/main/webapp/WEB-INF
 
  Resource:
web.xml
 
  Location:
 
[EMAIL PROTECTED]
e (paramName: null, paramValue: null, description: null)

  Creation Time:
1218033789740
 
  Id:
125270
 
 
I've checked against the DTD, but nothing is jumping out at me.  I
appologize if this isn't the correct forum for this question.  If
someone knows of a better place, please let me know.
 
Thank you,
  Geoff


Re: Parsing a URL to see if a param exists

2008-08-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

You could use HttpUtils.parseQueryString, but the entire class is
deprecated. I like your home made parser below, with a couple of tweaks:

David Wall wrote:
| Not really since I just need to process the query string portion to see
| if a given param exists or not.  I'm using a simple homegrown parser now:
|
|public boolean isParamInUrl(String url, String paramName)
|{
|int pos = url.indexOf("?");
|if ( pos > 0 )
|url = url.substring(pos);

If there's no '?' in the URL, then you can return false right away, right?

|String[] paramValues = url.split("&");

This uses a regular expression which is relatively slow since you
already know what you're looking for.

How about this implementation:

public boolean isParamInUrl(String url, String paramName)
{
~   return url.contains('?' + paramName + '=')
~   || url.contains('&' + paramName + '=');
}

This looks simpler, easier to read, and less error-prone. I would
venture a guess that it runs faster than your implementation, too. I
could increase the speed a bit by using StringBuilder directly instead
of allowing the compiler to write code for me, but that would make it
more difficult to read.

Enjoy,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiZy80ACgkQ9CaO5/Lv0PAHTACeOuvK34ABWpi0BWGWxs9ycrpL
PXcAoLINzsN1rVXgXG0fR+rI0M4TUk8U
=/+RK
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat does not shutdown properly and kill -3 does not work!

2008-08-06 Thread Maduranga Kannangara
Peter and all,

Earlier was from my MAC. This thread dump is from RedHat (production
server).

Your help is much appreciated.


Attaching to process ID 12649, please wait...
Debugger attached successfully.
Client compiler detected.
JVM version is 1.5.0_09-b01
Thread 12649: (state = BLOCKED)


Thread 17512: (state = IN_NATIVE)
Error occurred during stack walking:
sun.jvm.hotspot.debugger.DebuggerException:
sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerTh
read.execute(LinuxDebuggerLocal.java:134)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSe
t(LinuxDebuggerLocal.java:437)
at 
sun.jvm.hotspot.debugger.linux.LinuxThread.getContext(LinuxThread.java:48)
at 
sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess.getCurrentFrame
Guess(LinuxX86JavaThreadPDAccess.java:75)
at 
sun.jvm.hotspot.runtime.JavaThread.getCurrentFrameGuess(JavaThread.java:252)
at 
sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:211)
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)
at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)
Caused by: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs
failed for a lwp
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSe
t0(Native Method)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$800(LinuxDebuggerLo
cal.java:34)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1GetThreadIntegerRegisterS
etTask.doit(LinuxDebuggerLocal.java:431)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerTh
read.run(LinuxDebuggerLocal.java:109)


Thread 17507: (state = IN_NATIVE)
Error occurred during stack walking:
sun.jvm.hotspot.debugger.DebuggerException:
sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerTh
read.execute(LinuxDebuggerLocal.java:134)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSe
t(LinuxDebuggerLocal.java:437)
at 
sun.jvm.hotspot.debugger.linux.LinuxThread.getContext(LinuxThread.java:48)
at 
sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess.getCurrentFrame
Guess(LinuxX86JavaThreadPDAccess.java:75)
at 
sun.jvm.hotspot.runtime.JavaThread.getCurrentFrameGuess(JavaThread.java:252)
at 
sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:211)
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)
at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)
Caused by: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs
failed for a lwp
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSe
t0(Native Method)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$800(LinuxDebuggerLo
cal.java:34)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1GetThreadIntegerRegisterS
etTask.doit(LinuxDebuggerLocal.java:431)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerTh
read.run(LinuxDebuggerLocal.java:109)


Thread 16161: (state = IN_NATIVE)
Error occurred during stack walking:
sun.jvm.hotspot.debugger.DebuggerException:
sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerTh
read.execute(LinuxDebuggerLocal.java:134)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSe
t(LinuxDebuggerLocal.java:437)
at 
sun.jvm.hotspot.debugger.linux.LinuxThread.getContext(LinuxThread.java:48)
at 
sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess.getCurrentFrame
Guess(LinuxX86JavaThreadPDAccess.java:75)
at 
sun.jvm.hotspot.runtime.JavaThread.getCurrentFrameGuess(JavaThread.java:252)
at 
sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:211)
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:50)
at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)
Caused by: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs
failed for a lwp
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSe
t0(Native Method)
at 
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$800(LinuxDebuggerLo
cal.java:34)
at 
sun.jvm.hotspot.debugge

RE: CHKJ4014W Warning

2008-08-06 Thread Martin Gainty

Hi Geoff-

masking out the propietary vits can you supply your web.xml

?
Martin
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Subject: CHKJ4014W Warning
> Date: Wed, 6 Aug 2008 09:01:52 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> I'm getting a warning that I can't seem to find an answer for.  The
> Eclipse console is stating:
>  
>   Severity and Description:
> CHKJ4014W: Empty Entry of Type Parameter Name.
>  
>   Path:
> emtk-air/src/main/webapp/WEB-INF
>  
>   Resource:
> web.xml
>  
>   Location:
>  
> [EMAIL PROTECTED]
> e (paramName: null, paramValue: null, description: null)
> 
>   Creation Time:
> 1218033789740
>  
>   Id:
> 125270
>  
>  
> I've checked against the DTD, but nothing is jumping out at me.  I
> appologize if this isn't the correct forum for this question.  If
> someone knows of a better place, please let me know.
>  
> Thank you,
>   Geoff

_
Get more from your digital life.  Find out how.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008

[NOT-FIXED]SEVERE: Error listenerStart -- without entering the listener

2008-08-06 Thread Ken Bowen
Ok, I fixed that (see below), but that does seem to change the problem  
at all. The catalina.out trace is the same.


Current web.xml:


  
com.connectedtrading.listener.AppListenerlistener-class>

  
  
com.connectedtrading.database.HibernateListenerlistener-class>

  
  
com.connectedtrading.listener.SessionListenerlistener-class>

  
..

--Ken

On Aug 6, 2008, at 11:58 AM, David Smith wrote:

Each listener should be in it's own  ...   
element block.  Don't try to put all three in one.


--David

Ken Bowen wrote:

Hi all,

Using: Mac OS X 10.4.5 running Tomcat 5.5.26 -- this is a brand-new  
copy downloaded from Apache & unzipped; no changes.


This project used to work; I'm trying to figure out what got broken.

Symptom:  listenerStart fails without even getting to the first  
line of the AppListener (catalina.out trace below).


From web.xml:


 
   com.connectedtrading.listener.AppListenerlistener-class>
   com.connectedtrading.database.HibernateListenerlistener-class>
com.connectedtrading.listener.SessionListenerlistener-class>

 
...

I've tried swapping the first two lines; neither works anymore.
Both listener classes are present in WEB-INF/classes.

My application context.xml is in META-INF:



 type="javax.sql.DataSource"

   maxActive="100" maxIdle="30" maxWait="1"
   username="x" password="x"
   driverClassName="com.mysql.jdbc.Driver"
   url="jdbc:mysql://localhost:3306/ct_alerts"
   validationQuery="select 1"
 />


I've dropped raw println's at the beginning of the listeners, e.g.:

   public void contextInitialized(ServletContextEvent  
servletContextEvent)

   {
System.out.println("++");
   ...

But as you can see from the catalina.out trace below, these are not  
being executed.



To eliminate possible permission problems, I've made the entire app  
tree in webapps
universally read-write-executable (anyway, it's all owned by me and  
tomcat is running

as me -- started both from startup.sh or from Eclipse).

Any thoughts or pointers about working this out will be greatly  
appreciated:


Here's the startup trace from catalina.out:

Aug 6, 2008 11:07:40 AM  
org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal  
performance in production environments was not found on the  
java.library.path: /System/Library/Frameworks/JavaVM.framework/ 
Versions/1.5.0/Home/bin:/Users/ken/Projects/bin/apache- 
tomcat-5.5.26/bin
Aug 6, 2008 11:07:40 AM org.apache.coyote.http11.Http11BaseProtocol  
init

INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 6, 2008 11:07:40 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 673 ms
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardService  
start

INFO: Starting service Catalina
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 6, 2008 11:07:41 AM org.apache.catalina.core.ApplicationContext  
log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:  
[org.apache.webapp.balancer.RuleChain:  
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target  
string: News / Redirect URL: http://www.cnn.com],  
[org.apache.webapp.balancer.rules.RequestParameterRule: Target  
param name: paramName / Target param value: paramValue / Redirect  
URL: http://www.yahoo.com],  
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect  
URL: http://jakarta.apache.org]]
log4j:WARN No appenders could be found for logger  
(org.apache.commons.digester.Digester.sax).

log4j:WARN Please initialize the log4j system properly.
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext  
start

SEVERE: Error listenerStart
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.StandardContext  
start
SEVERE: Context [/connectedtrading] startup failed due to previous  
errors
Aug 6, 2008 11:07:42 AM org.apache.catalina.core.ApplicationContext  
log

INFO: ContextListener: contextInitialized()
..

Thanks,
Ken




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat does not shutdown properly and kill -3 does not work!

2008-08-06 Thread Peter Crowther
> From: Maduranga Kannangara [mailto:[EMAIL PROTECTED]
> Below is my dump and thanks a lot for your time.
[...]
> Thread [EMAIL PROTECTED]: (state = BLOCKED)
>  - java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
>  - org.quartz.core.QuartzSchedulerThread.run() @bci=870, line=420
> (Interpreted frame)
[...]
> Thread [EMAIL PROTECTED]: (state = BLOCKED)
>  - java.lang.Object.wait(long) @bci=0 (Interpreted frame)
>  - org.quartz.simpl.SimpleThreadPool$WorkerThread.run()
> @bci=44, line=523
> (Interpreted frame)

Ah.  Quartz is used in your webapp!  It's a known problem.

I assume you've tried following the instructions at 
http://jira.springframework.org/browse/INT-147 and used 
destroy-method="shutdown" in the bean config?  If not, try that and see what 
happens.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CHKJ4014W Warning

2008-08-06 Thread Bell, Geoffrey T.
Sure, here it is:



http://java.sun.com/dtd/web-app_2_3.dtd";>


emtk-air
LiveCycle Data Services Application


flex.class.path
 
/WEB-INF/flex/hotfixes,/WEB-INF/flex/jars




contextConfigLocation

classpath:/security-context.xml





Acegi Filter Chain Proxy

org.acegisecurity.util.FilterToBeanProxy


targetClass

org.acegisecurity.util.FilterChainProxy





Acegi Filter Chain Proxy
/*




flex.messaging.HttpFlexSession





org.springframework.web.context.ContextLoaderListener





MessageBrokerServlet
MessageBrokerServlet
 
flex.messaging.MessageBrokerServlet

services.configuration.file
/WEB-INF/flex/services-config.xml
   

flex.write.path
/WEB-INF/flex

2



StartupServlet
StartupServlet

com.comp.proj.startup.StartupServlet


serviceNames

-- removed list --



serviceClassNames

-- removed list --


1



MessageBrokerServlet
/messagebroker/*



index.html
index.htm



jdbc/myDataSource
javax.sql.DataSource
Container
Shareable



jms/TopicConnectionFactory
javax.jms.TopicConnectionFactory
Container
Shareable


 


  ~ Geoff ~

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 9:23 AM
To: Tomcat Users List
Subject: RE: CHKJ4014W Warning


Hi Geoff-

masking out the propietary vits can you supply your web.xml

?
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 


> Subject: CHKJ4014W Warning
> Date: Wed, 6 Aug 2008 09:01:52 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> I'm getting a warning that I can't seem to find an answer for.  The 
> Eclipse console is stating:
>  
>   Severity and Description:
> CHKJ4014W: Empty Entry of Type Parameter Name.
>  
>   Path:
> emtk-air/src/main/webapp/WEB-INF
>  
>   Resource:
> web.xml
>  
>   Location:
>  
> [EMAIL PROTECTED]
> c0 e (paramName: null, paramValue: null, description: null)
> 
>   Creation Time:
> 1218033789740
>  
>   Id:
> 125270
>  
>  
> I've checked against the DTD, but nothing is jumping out at me.  I 
> appologize if this isn't the correct forum for this question.  If 
> someone knows of a better place, please let me know.
>  
> Thank you,
>   Geoff

_
Get more from your digital life.  Find out how.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home2_082008

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parsing a URL to see if a param exists

2008-08-06 Thread David Wall

Thanks for the code idea.  I like what you wrote.


If there's no '?' in the URL, then you can return false right away, 
right?

Indeed!


public boolean isParamInUrl(String url, String paramName)
{
~   return url.contains('?' + paramName + '=')
~   || url.contains('&' + paramName + '=');
}

This looks simpler, easier to read, and less error-prone. I would
venture a guess that it runs faster than your implementation, too. 
Yes, I think I like it.  I think I have to save a 
URLEncoder.encode(paramName) first and then use that in the to 
url.contains calls just to be safe.  Your code is much easier to 
understand and no doubt runs faster.


Thanks,
David

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parsing a URL to see if a param exists

2008-08-06 Thread Johnny Kewl


- Original Message - 
From: "David Wall" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Wednesday, August 06, 2008 1:17 AM
Subject: Parsing a URL to see if a param exists


Is there an API call to parse an URL I have as a String so that I can 
determine if a given param exists? 

I know that when processing from Tomcat, I can do 
request.getParameterValues() for the URL of my servlet, but I'd like to 
know if the URL used to arrive at my page includes a given parameter on 
the URL itself (and not from a POST hidden param that will also be 
returned by getParameterValues).


Thanks,
David


Dave this is how I do it...

   Enumeration paramNames = request.getParameterNames();
   while(paramNames.hasMoreElements()) {
   paramName = (String)paramNames.nextElement();
   if(paramName.compareToIgnoreCase("save") == 0){
   //Do something useful
   paramValue = request.getParameter(paramName);
   }
   }


Maybe?
Its probably all pre parsed by TC already...

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Jonathan Mast
I can't figure out how to use the pageContext.forward() method like it's
equivalent script element:





How do I pass the name-value pair "foo":"bar" using pageContext.forward()? I
thought there would be a method like forward(String path, Map params) but
there isn't.

Nor is there a setParameter(name, value) method available on ServletRequest
or ServletResponse (both of which are passed onto the page pointed to in
pageContext.forward().

I don't want to put the parameters in the url itself (ie "page.jsp?foo=bar")
this approach is not scalable.

And I don't want to continue doing what I'm doing now, which is:

<%
 if (blah) {
%>



<%
 } else if (...) {
%>


Not very pretty and rather error prone.

Thanks in advance

JDK 1.4.2


Re: [NOT-FIXED]SEVERE: Error listenerStart -- without entering the listener

2008-08-06 Thread Mark Thomas

Ken Bowen wrote:
Ok, I fixed that (see below), but that does seem to change the problem 
at all. The catalina.out trace is the same.


Have a look at the files in the logs directory. One of them should have 
more information (like the stacktrace from the failed listener).


Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



j_security_check

2008-08-06 Thread Carlos Morales
Hello all,
I'm having problems with j_security_check because when I try to log in my 
login.jsp it doesn't work and I don't know why. Here is my web.xml :
< ?xml version="1.0" encoding="UTF-8"? >
http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  
    action
    org.apache.struts.action.ActionServlet
    
  application
  TourismResources
    
    
  config
  /WEB-INF/struts-config.xml
    
    
  debug
  3
    
    
  detail
  3
    
    0
  
  
  dbInit
  com.wrox.tourism.db.util.DBInitServlet
  
  driverClass
  org.gjt.mm.mysql.Driver
  
  
  jdbcURL
  jdbc:mysql://localhost:3306/tourism_db
  
  
  minCount
  1
  
  
  maxCount
  10
  
  1
  
  
    action
    *.do
  
  
  index.jsp
  
  
  
  
    /bean
    /WEB-INF/struts-bean.tld
  
  
  
    /form
    /WEB-INF/struts-form.tld
  
  
  
    /logic
    /WEB-INF/struts-logic.tld
  
  
  
    /template
    /WEB-INF/struts-template.tld
  
  
    /html
    /WEB-INF/struts-html.tld
  
  
 
 
 Edit attraction
 /editAttraction.do 
 
 
 Update attraction
 /updateAttraction.do 
 
 
 Deregister attraction
 /deregisterAttraction.do 
 
 
 List events
 /listEvents.do 
 
 
 Add event
 /editEvent.jsp 
 
 
 Edit event
 /editEvent.do 
 
 
 Update event
 /updateEvent.do 
 
 
 Delete event
 /deleteEvent.do 
 
 
 attraction
 
 

 FORM
 
 /login.jsp
 /login.jsp
 
 
 

 
My login.jsp:






User ID:







Password:














Why not work?, Any idea?. Thanks so much


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parsing a URL to see if a param exists

2008-08-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Johnny,

Johnny Kewl wrote:
| Dave this is how I do it...
|
|Enumeration paramNames = request.getParameterNames();

Go back and read the OP: he says that he's got a String and he wants to
treat it as a URL and check for parameters. He's not looking for
parameters in the current request.

|while(paramNames.hasMoreElements()) {
|paramName = (String)paramNames.nextElement();
|if(paramName.compareToIgnoreCase("save") == 0){
|//Do something useful
|paramValue = request.getParameter(paramName);
|}   }

This implementation is wrong, because URL parameters are case-sensitive.
It's also stupid, since the easier implementation would be:

boolean paramIsDefined = null != request.getParameter(paramName);

:(

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiZ29wACgkQ9CaO5/Lv0PCIzQCdEgtZeMJ5p1N/gKOgSZy3HJ0x
A/gAoKRZKViJyHRckdFJdKiYFMgABg19
=WlJR
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan,

Jonathan Mast wrote:
| I can't figure out how to use the pageContext.forward() method like it's
| equivalent script element:

Do you mean that you want to add parameters to a forwarded URL without
using JSP?

| How do I pass the name-value pair "foo":"bar" using
pageContext.forward()? I
| thought there would be a method like forward(String path, Map params) but
| there isn't.

Right: you just forward to another URL.

| Nor is there a setParameter(name, value) method available on
ServletRequest
| or ServletResponse (both of which are passed onto the page pointed to in
| pageContext.forward().

Right. The request is supposed to be read-only (ignore attributes ;).

| I don't want to put the parameters in the url itself (ie
"page.jsp?foo=bar")
| this approach is not scalable.

This is really the only way to do it. The other option is to create a
new request object and stuff your own parameters into it (or, better
yet, wrap the original request and add your parameters only to the wrapper).

Why do you believe that adding parameters to the URL is not scalable?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiZ3KwACgkQ9CaO5/Lv0PA+cQCgs/6qvuqQEcK24o6fId1K3kgs
OkMAn3HqZ2E12xFeevo8eKii7yYiKj2p
=Cixo
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: j_security_check

2008-08-06 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Carlos,

Carlos Morales wrote:
| I'm having problems with j_security_check because when I try to log
| in my login.jsp it doesn't work and I don't know why.

Care to elaborate?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiZ3Q8ACgkQ9CaO5/Lv0PBK5QCguKDVvhWrrHUtVeDMlh3kR8mk
eQQAniprO4jnnkeTlgoXAkYmPaPQnl6L
=Y+kt
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-06 Thread Zemian Deng
Hum... so it is a confirmed bug then. I don't see a ticket open on those
threads. Should I create one?

On Wed, Aug 6, 2008 at 11:14 AM, Rainer Jung <[EMAIL PROTECTED]>wrote:

> See also
>
> http://marc.info/?t=12180313421&r=1&w=2
>
> Regards,
>
> Rainer
>
> Zemian Deng schrieb:
>
>  Hi Mark, I am away from a computer now. But the steps I gave to
>> reproduce out of default download is only 4 steps!!!
>>
>> You can't see error using that?
>>
>> I guess I can check the log for the stacktrace later. The error on
>> console did not give more than what I paste. And since the errror
>> seems like it can't even start the server, I doubt more info from log.
>> But I will check later.
>> -Z
>>
>>
>>
>> On 8/6/08, Mark Thomas <[EMAIL PROTECTED]> wrote:
>>
>>> Zemian Deng wrote:
>>>
 Hello list,

 When I try the following it works with tomcat-6.0.14, but failed on
 tomcat-6.0.18

 $ mkdir -p /tmp/mybase/conf
 $ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
 $ export CATALINA_BASE=/tmp/mybase
 $ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
 Using CATALINA_BASE:   /tmp/mytomcatbase
 Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
 Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
 Using JRE_HOME:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
 Exception in thread "main" java.lang.NoClassDefFoundError:

 Is this a bug?

>>> It would help if you provided more of the stack trace.
>>>
>>> Mark
>>>
>>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala


Re: CHKJ4014W Warning

2008-08-06 Thread David Smith
Does your web.xml pass a xml validation check?  It looks like it's 
complaining you might have a  ...  
element that's empty.


--David

Bell, Geoffrey T. wrote:

I'm getting a warning that I can't seem to find an answer for.  The
Eclipse console is stating:
 
  Severity and Description:

CHKJ4014W: Empty Entry of Type Parameter Name.
 
  Path:

emtk-air/src/main/webapp/WEB-INF
 
  Resource:

web.xml
 
  Location:
 
[EMAIL PROTECTED]

e (paramName: null, paramValue: null, description: null)

  Creation Time:
1218033789740
 
  Id:

125270
 
 
I've checked against the DTD, but nothing is jumping out at me.  I

appologize if this isn't the correct forum for this question.  If
someone knows of a better place, please let me know.
 
Thank you,

  Geoff

  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Monitoring tomcat process

2008-08-06 Thread Johnny Kewl


- Original Message - 
From: "Fu-Tung Cheng" <[EMAIL PROTECTED]>

To: "tomcat-u" 
Sent: Wednesday, August 06, 2008 12:50 AM
Subject: Monitoring tomcat process



Hi,

I was wondering what solutions people are using to monitor their tomcat 
processes.


I've been having a look at the following:

http://code.google.com/p/tomcat-monitor/wiki/TomcatMonitor

Are there better scripts or alternatives for handling restarting the vm in 
the case of out of memory errors or for alerting admin that the server is 
non responsive?


Thank you,

Fu-Tung


Fu... its sounds like you may be looking for JMX...
Have a little read up on it... it will probably need another port opened in 
the firewall... but in theory you can sit in your office and watch your 
remote Tomcat die ;)

ie actually watch the loads...

Then to restart... whatever you use to remote admin now, telnet, putty, ssh, 
remote desktop...


JMX is built into Java... so you'll add some setting to TC, and you'll open 
JConsole on your machine... and watch as memory climbs... until death occurs 
;)


Have fun...
---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CHKJ4014W Warning

2008-08-06 Thread Martin Gainty

Geoff-

did you verify security-context.xml contains the required context attributes 
and is located on classpath e.g.?

  

  Basic

  ROLE_MANAGERS
  ROLE_USERS
 



also i see null value entries for your supplied init params
serviceNames
AND
serviceClassNames

also I did'nt see your servlet-mapping e.g.

coverc

org.springframework.web.servlet.DispatcherServlet



coverc
*.htm


but assuming you have valid entries  for each of these
I would comment out all filters and servlets and config in each filter
and servlet one a time until you can locate the entry which is causing this 
exception
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Subject: RE: CHKJ4014W Warning
> Date: Wed, 6 Aug 2008 09:31:11 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> Sure, here it is:
> 
> 
> 
>  2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> emtk-air
> LiveCycle Data Services Application
> 
> 
> flex.class.path
>  
> /WEB-INF/flex/hotfixes,/WEB-INF/flex/jars
> 
> 
> 
> 
> contextConfigLocation
> 
> classpath:/security-context.xml
> 
> 
> 
> 
> 
> Acegi Filter Chain Proxy
> 
> org.acegisecurity.util.FilterToBeanProxy
> 
> 
> targetClass
> 
> org.acegisecurity.util.FilterChainProxy
> 
> 
> 
> 
> 
> Acegi Filter Chain Proxy
> /*
> 
> 
> 
> 
> flex.messaging.HttpFlexSession
> 
> 
> 
> 
> 
> org.springframework.web.context.ContextLoaderListener
> 
> 
> 
> 
> 
> MessageBrokerServlet
> MessageBrokerServlet
>  
> flex.messaging.MessageBrokerServlet
> 
> services.configuration.file
> /WEB-INF/flex/services-config.xml
>
> 
> flex.write.path
> /WEB-INF/flex
> 
> 2
> 
> 
> 
> StartupServlet
> StartupServlet
> 
> com.comp.proj.startup.StartupServlet
> 
> 
> serviceNames
> 
> -- removed list --
> 
> 
> 
> serviceClassNames
> 
> -- removed list --
> 
> 
> 1
> 
> 
> 
> MessageBrokerServlet
> /messagebroker/*
> 
> 
> 
> index.html
> index.htm
> 
> 
>   
>   jdbc/myDataSource
>   javax.sql.DataSource
>   Container
>   Shareable
>   
> 
>   
>   jms/TopicConnectionFactory
>   javax.jms.TopicConnectionFactory
>   Container
>   Shareable
>   
> 
>  
> 
> 
>   ~ Geoff ~
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 06, 2008 9:23 AM
> To: Tomcat Users List
> Subject: RE: CHKJ4014W Warning
> 
> 
> Hi Geoff-
> 
> masking out the propietary vits can you supply your web.xml
> 
> ?
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission. 
> 
> 
> > Subject: CHKJ4014W Warning
> > Date: Wed, 6 Aug 2008 09:01:52 -0700
> > From: [EMAIL PROTECTED]
> > To: users@tomcat.apache.org
> > 
> > I'm getting a warning that I can't seem to find an answer for.  The 
> > Eclipse console is stating:
> >  
> >   Severity and Description:
> > CHKJ4014W: Empty Entry of Type Parameter Name.
> >  
> >   Path:
> > emtk-air/src/main/webapp/WEB-INF
> >  
> >   Resource:
> > web.xml
> >  
> >   Location:
> >  
> > [EMAIL PROTECTED]
> > c0 e (paramName: null, paramValue: null, description: null)
> > 
> >   Creation Time:
> > 1218033789740
> >  
> >   Id:
> > 125270
> >  
> >  
> > I've checked against the DTD, but nothing is jumping out at me.  I 
> > appologize if this isn't the correct forum for this question.  If 
> > someone knows of a better place, please let me know.
> >  
> > Thank you,
> >   Geoff
> 
> _
> Get more from your digital life.  Find out how.
> http://www.windowslive.

RE: CHKJ4014W Warning

2008-08-06 Thread Bell, Geoffrey T.
Yes, it appears to be valid XML.  I checked it with 3 validation
services online. 


  ~ Geoff ~

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 10:22 AM
To: Tomcat Users List
Subject: Re: CHKJ4014W Warning

Does your web.xml pass a xml validation check?  It looks like it's
complaining you might have a  ... 
element that's empty.

--David

Bell, Geoffrey T. wrote:
> I'm getting a warning that I can't seem to find an answer for.  The 
> Eclipse console is stating:
>  
>   Severity and Description:
> CHKJ4014W: Empty Entry of Type Parameter Name.
>  
>   Path:
> emtk-air/src/main/webapp/WEB-INF
>  
>   Resource:
> web.xml
>  
>   Location:
>  
> [EMAIL PROTECTED]
> c0 e (paramName: null, paramValue: null, description: null)
>
>   Creation Time:
> 1218033789740
>  
>   Id:
> 125270
>  
>  
> I've checked against the DTD, but nothing is jumping out at me.  I 
> appologize if this isn't the correct forum for this question.  If 
> someone knows of a better place, please let me know.
>  
> Thank you,
>   Geoff
>
>   


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Monitoring tomcat process

2008-08-06 Thread Johnny Kewl

Hi,

I was wondering what solutions people are using to monitor their tomcat 
processes.


I've been having a look at the following:

http://code.google.com/p/tomcat-monitor/wiki/TomcatMonitor

Are there better scripts or alternatives for handling restarting the vm 
in the case of out of memory errors or for alerting admin that the server 
is non responsive?


Thank you,

Fu-Tung


Fu... its sounds like you may be looking for JMX...
Have a little read up on it... it will probably need another port opened 
in the firewall... but in theory you can sit in your office and watch your 
remote Tomcat die ;)

ie actually watch the loads...

Then to restart... whatever you use to remote admin now, telnet, putty, 
ssh, remote desktop...


JMX is built into Java... so you'll add some setting to TC, and you'll 
open JConsole on your machine... and watch as memory climbs... until death 
occurs ;)


Have fun...


After thought

The above will help you find out why your tomcat dies
But a really easy alarm system... is to just write a little Java app the 
calls a little page in your tomcat... like a browser does (Apache HTTP 
client comes to mind)... if it gets no response, you send a little java 
mail...

"Fu Its dead" ;)

Ok now have fun...
---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: j_security_check

2008-08-06 Thread Carlos Morales
I have my login and password to access onto my web which I try to go after 
authenticate my login and password in a form called login.jsp where I use the 
j_security_check, well when I press logon, it doesn't work. It stays in the 
same page login.jsp but I use my password and login well and I don't know why 
when I try to log on, it doesn't work and it doesn't go to the next page which 
I try to access.
Thanks



- Mensaje original 
De: Christopher Schultz <[EMAIL PROTECTED]>
Para: Tomcat Users List 
Enviado: miércoles, 6 de agosto, 2008 19:19:11
Asunto: Re: j_security_check

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Carlos,

Carlos Morales wrote:
| I'm having problems with j_security_check because when I try to log
| in my login.jsp it doesn't work and I don't know why.

Care to elaborate?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiZ3Q8ACgkQ9CaO5/Lv0PBK5QCguKDVvhWrrHUtVeDMlh3kR8mk
eQQAniprO4jnnkeTlgoXAkYmPaPQnl6L
=Y+kt
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Jonathan Mast
| This is really the only way to do it. The other option is to create a
| new request object and stuff your own parameters into it (or, better
| yet, wrap the original request and add your parameters only to the
wrapper).

How would I do this?  This is basically what Jakarta Commons HTTPClient
package (org.apache.commons.httpclient.*) offers, correct?

I thought such manipulation would be achievable without additional packages.


| Why do you believe that adding parameters to the URL is not scalable?
Well, its not scalegent, to coin a term;
String munging is expensive (scalability), and
StringBuffer sb = new StringBuffer();
sb.append("page.jsp?").append("foo=").append(bar).append("&color=").append(myColor).etc()
is rough to look at (elegent).

Why not just:
HashMap myParams = new HashMap();
myParams.put("foo", bar);
...
pageContext.forward("page.jsp", myParams)   ?

much more efficient and elegent, imho.

I understand that it all eventually boils down to a bunch of String munging,
but the above hypothetical method could take of it that for us and would
really make my life easier ;-)

thanks



On Wed, Aug 6, 2008 at 1:17 PM, Christopher Schultz <
[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jonathan,
>
> Jonathan Mast wrote:
> | I can't figure out how to use the pageContext.forward() method like it's
> | equivalent script element:
>
> Do you mean that you want to add parameters to a forwarded URL without
> using JSP?
>
> | How do I pass the name-value pair "foo":"bar" using
> pageContext.forward()? I
> | thought there would be a method like forward(String path, Map params) but
> | there isn't.
>
> Right: you just forward to another URL.
>
> | Nor is there a setParameter(name, value) method available on
> ServletRequest
> | or ServletResponse (both of which are passed onto the page pointed to in
> | pageContext.forward().
>
> Right. The request is supposed to be read-only (ignore attributes ;).
>
> | I don't want to put the parameters in the url itself (ie
> "page.jsp?foo=bar")
> | this approach is not scalable.
>
> This is really the only way to do it. The other option is to create a
> new request object and stuff your own parameters into it (or, better
> yet, wrap the original request and add your parameters only to the
> wrapper).
>
> Why do you believe that adding parameters to the URL is not scalable?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkiZ3KwACgkQ9CaO5/Lv0PA+cQCgs/6qvuqQEcK24o6fId1K3kgs
> OkMAn3HqZ2E12xFeevo8eKii7yYiKj2p
> =Cixo
> -END PGP SIGNATURE-
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: j_security_check

2008-08-06 Thread Carlos Morales
In my conf folder inside of my Tomcat directory in my server.xml I have this:

   
   



- Mensaje original 
De: Carlos Morales <[EMAIL PROTECTED]>
Para: Tomcat Users List 
Enviado: miércoles, 6 de agosto, 2008 19:52:36
Asunto: Re: j_security_check

I have my login and password to access onto my web which I try to go after 
authenticate my login and password in a form called login.jsp where I use the 
j_security_check, well when I press logon, it doesn't work. It stays in the 
same page login.jsp but I use my password and login well and I don't know why 
when I try to log on, it doesn't work and it doesn't go to the next page which 
I try to access.
Thanks



- Mensaje original 
De: Christopher Schultz <[EMAIL PROTECTED]>
Para: Tomcat Users List 
Enviado: miércoles, 6 de agosto, 2008 19:19:11
Asunto: Re: j_security_check

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Carlos,

Carlos Morales wrote:
| I'm having problems with j_security_check because when I try to log
| in my login.jsp it doesn't work and I don't know why.

Care to elaborate?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiZ3Q8ACgkQ9CaO5/Lv0PBK5QCguKDVvhWrrHUtVeDMlh3kR8mk
eQQAniprO4jnnkeTlgoXAkYmPaPQnl6L
=Y+kt
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


      __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [NOT-FIXED]SEVERE: Error listenerStart -- without entering the listener

2008-08-06 Thread Ken Bowen
That's what's frustrating.   I'm using a new Tomcat unzip with simple  
JULI logging, so the files of interest are catalina.out
and catalina.2008-08-06.log, which are essentially identical.   
Normally when a listener class fails, the trace is
shown in catalina.out, before/after the "Error listenerStart" line.   
But nothing like that is appearing now.
That's why I threw in a System.out.println at the very beginning of  
the listener to see that it was being entered.
But that print to out doesn't appear to being executed.   I also think  
that (in the past) when the listener class was
missing or not accessible, a "Class Not Found" exception was thrown  
(and visible).  But that isn't occurring either.
At the risk of repetition, here's the start up trace (repeated a few  
minutes ago):


Aug 6, 2008 1:51:19 PM org.apache.catalina.core.AprLifecycleListener  
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal  
performance in production environments was not found on the  
java.library.path: .:/Library/Java/Extensions:/System/Library/Java/ 
Extensions:/usr/lib/java

Aug 6, 2008 1:51:19 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 6, 2008 1:51:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 485 ms
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN No appenders could be found for logger  
(org.apache.commons.digester.Digester.sax).

log4j:WARN Please initialize the log4j system properly.
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 6, 2008 1:51:20 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/connectedtrading] startup failed due to previous  
errors

Aug 6, 2008 1:51:20 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 6, 2008 1:51:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Aug 6, 2008 1:51:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/11  config=null
Aug 6, 2008 1:51:21 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 6, 2008 1:51:21 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1141 ms

--Ken

On Aug 6, 2008, at 1:09 PM, Mark Thomas wrote:


Ken Bowen wrote:
Ok, I fixed that (see below), but that does seem to change the  
problem at all. The catalina.out trace is the same.


Have a look at the files in the logs directory. One of them should  
have more information (like the stacktrace from the failed listener).


Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: j_security_check

2008-08-06 Thread Fu-Tung Cheng
I suggest you start with a working example and modify it once you have it 
working.  

You might also provide the following information if you expect help.  In 
general though I think you should have a read of the following:

http://www.catb.org/~esr/faqs/smart-questions.html

What realm do you have configured?

What version of tomcat?

What does your meta-inf/context.xml look like?

Is it your submit button that is not working? 

What does your login.jsp page look like?

What does the security section of your web.xml file look like?

Good luck,

Fu-Tung


--- On Wed, 8/6/08, Carlos Morales <[EMAIL PROTECTED]> wrote:

> From: Carlos Morales <[EMAIL PROTECTED]>
> Subject: Re: j_security_check
> To: "Tomcat Users List" 
> Date: Wednesday, August 6, 2008, 5:52 PM
> I have my login and password to access onto my web which I
> try to go after authenticate my login and password in a form
> called login.jsp where I use the j_security_check, well when
> I press logon, it doesn't work. It stays in the same
> page login.jsp but I use my password and login well and I
> don't know why when I try to log on, it doesn't work
> and it doesn't go to the next page which I try to
> access.
> Thanks
> 
> 
> 
> - Mensaje original 
> De: Christopher Schultz
> <[EMAIL PROTECTED]>
> Para: Tomcat Users List 
> Enviado: miércoles, 6 de agosto, 2008 19:19:11
> Asunto: Re: j_security_check
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Carlos,
> 
> Carlos Morales wrote:
> | I'm having problems with j_security_check because
> when I try to log
> | in my login.jsp it doesn't work and I don't know
> why.
> 
> Care to elaborate?
> 
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla -
> http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkiZ3Q8ACgkQ9CaO5/Lv0PBK5QCguKDVvhWrrHUtVeDMlh3kR8mk
> eQQAniprO4jnnkeTlgoXAkYmPaPQnl6L
> =Y+kt
> -END PGP SIGNATURE-
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>   __ 
> Enviado desde Correo Yahoo! La bandeja de entrada más
> inteligente.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CHKJ4014W Warning

2008-08-06 Thread Bell, Geoffrey T.
Wierd.  I checked all of your points and they seemed fine.  I 'cleaned'
my project, and the warning went away. I know I did that before

Thanks for the help.


  ~ Geoff ~

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 10:38 AM
To: Tomcat Users List
Subject: RE: CHKJ4014W Warning


Geoff-

did you verify security-context.xml contains the required context
attributes and is located on classpath e.g.?

  

  Basic

  ROLE_MANAGERS
  ROLE_USERS
 



also i see null value entries for your supplied init params serviceNames
AND serviceClassNames

also I did'nt see your servlet-mapping e.g.

coverc
 
org.springframework.web.servlet.DispatcherServlet



coverc
*.htm


but assuming you have valid entries  for each of these I would comment
out all filters and servlets and config in each filter and servlet one a
time until you can locate the entry which is causing this exception
Martin __
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 


> Subject: RE: CHKJ4014W Warning
> Date: Wed, 6 Aug 2008 09:31:11 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> Sure, here it is:
> 
> 
> 
>  Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> emtk-air
> LiveCycle Data Services Application
> 
> 
> flex.class.path
>  
> /WEB-INF/flex/hotfixes,/WEB-INF/flex/jars
> 
> 
> 
> 
> contextConfigLocation
> 
> classpath:/security-context.xml
> 
> 
> 
> 
> 
> Acegi Filter Chain Proxy
> 
> org.acegisecurity.util.FilterToBeanProxy
> 
> 
> targetClass
> 
> org.acegisecurity.util.FilterChainProxy
> 
> 
> 
> 
> 
> Acegi Filter Chain Proxy
> /*
> 
> 
> 
> 
>
flex.messaging.HttpFlexSession
> 
> 
> 
> 
> 
> org.springframework.web.context.ContextLoaderListener
> 
> 
> 
> 
> 
> MessageBrokerServlet
> MessageBrokerServlet
>  
> flex.messaging.MessageBrokerServlet
> 
> services.configuration.file
>
/WEB-INF/flex/services-config.xml
>
> 
> flex.write.path
> /WEB-INF/flex
> 
> 2
> 
> 
> 
> StartupServlet
> StartupServlet
> 
> com.comp.proj.startup.StartupServlet
> 
> 
> serviceNames
> 
> -- removed list --
> 
> 
> 
> serviceClassNames
> 
> -- removed list --
> 
> 
> 1
> 
> 
> 
> MessageBrokerServlet
> /messagebroker/*
> 
> 
> 
> index.html
> index.htm
> 
> 
>   
>   jdbc/myDataSource
>   javax.sql.DataSource
>   Container
>   Shareable
>   
> 
>   
>   jms/TopicConnectionFactory
>   javax.jms.TopicConnectionFactory
>   Container
>   Shareable
>   
> 
> 
> 
> 
>   ~ Geoff ~
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2008 9:23 AM
> To: Tomcat Users List
> Subject: RE: CHKJ4014W Warning
> 
> 
> Hi Geoff-
> 
> masking out the propietary vits can you supply your web.xml
> 
> ?
> Martin
> __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official 
> business of Sender. This transmission is of a confidential nature and 
> Sender does not endorse distribution to any party other than intended 
> recipient. Sender does not necessarily endorse content contained 
> within this transmission.
> 
> 
> > Subject: CHKJ4014W Warning
> > Date: Wed, 6 Aug 2008 09:01:52 -0700
> > From: [EMAIL PROTECTED]
> > To: users@tomcat.apache.org
> > 
> > I'm getting a warning that I can't seem to find an answer for.  The 
> > Eclipse console is stating:
> >  
> >   Severity and Description:
> > CHKJ4014W: Empty Entry of Type Parameter Name.
> >  
> >   Path:
> > emtk-air/src/main/webapp/WEB-INF
> >  
> >   Resource:
> > web.xml
> >  
> >   Location:
> >  
> > [EMAIL PROTECTED]
> > ab c0 e (paramName: null, paramValue: null, description: null)
> > 
> >   Creation Time:
> > 1218033789740
> >  
> >   Id:
> > 125270
> >  
> >  
> > I've checked against the DTD, but nothing is ju

Acceptable values for SSLProtocol parameter for HTTPS connector in Tomcat5.5

2008-08-06 Thread sharanabasavaraj . x . mudgal
Hi!,

Could someone please tell the acceptable values for sslprotocol parameter 
for the HTTP Connector.   The default is set to TLS1.0.   However,  I 
wanted to know if it could be set to both TLS1.0 and SSLv3.
The How-to document lists only two of the values SSL and TLS1.0  and  does 

not provide a list of all acceptable  values or the possibility of using a 

combination of them.

Your help is appreciated.

Thanks.
Sharan.


-
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.

Re: [NOT-FIXED]SEVERE: Error listenerStart -- without entering the listener

2008-08-06 Thread Mark Thomas

Ken Bowen wrote:
That's what's frustrating.   I'm using a new Tomcat unzip with simple 
JULI logging


So what is the log4j message doing in this trace?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: CHKJ4014W Warning

2008-08-06 Thread Martin Gainty

good pointcleaning your work folders!

Martin
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Subject: RE: CHKJ4014W Warning
> Date: Wed, 6 Aug 2008 11:08:34 -0700
> From: [EMAIL PROTECTED]
> To: users@tomcat.apache.org
> 
> Wierd.  I checked all of your points and they seemed fine.  I 'cleaned'
> my project, and the warning went away. I know I did that before
> 
> Thanks for the help.
> 
> 
>   ~ Geoff ~
> 
> -Original Message-
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 06, 2008 10:38 AM
> To: Tomcat Users List
> Subject: RE: CHKJ4014W Warning
> 
> 
> Geoff-
> 
> did you verify security-context.xml contains the required context
> attributes and is located on classpath e.g.?
> 
>server="Tomcat"/>
> 
>   Basic
> 
>   ROLE_MANAGERS
>   ROLE_USERS
>  
> 
> 
> 
> also i see null value entries for your supplied init params serviceNames
> AND serviceClassNames
> 
> also I did'nt see your servlet-mapping e.g.
> 
> coverc
>  
> org.springframework.web.servlet.DispatcherServlet t-class>
> 
> 
> 
> coverc
> *.htm
> 
> 
> but assuming you have valid entries  for each of these I would comment
> out all filters and servlets and config in each filter and servlet one a
> time until you can locate the entry which is causing this exception
> Martin __
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission. 
> 
> 
> > Subject: RE: CHKJ4014W Warning
> > Date: Wed, 6 Aug 2008 09:31:11 -0700
> > From: [EMAIL PROTECTED]
> > To: users@tomcat.apache.org
> > 
> > Sure, here it is:
> > 
> > 
> > 
> >  > Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> > 
> > emtk-air
> > LiveCycle Data Services Application
> > 
> > 
> > flex.class.path
> >  
> > /WEB-INF/flex/hotfixes,/WEB-INF/flex/jars
> > 
> > 
> > 
> > 
> > contextConfigLocation
> > 
> > classpath:/security-context.xml
> > 
> > 
> > 
> > 
> > 
> > Acegi Filter Chain Proxy
> > 
> > org.acegisecurity.util.FilterToBeanProxy
> > 
> > 
> > targetClass
> > 
> > org.acegisecurity.util.FilterChainProxy
> > 
> > 
> > 
> > 
> > 
> > Acegi Filter Chain Proxy
> > /*
> > 
> > 
> > 
> > 
> >
> flex.messaging.HttpFlexSession
> > 
> > 
> > 
> > 
> > 
> > org.springframework.web.context.ContextLoaderListener
> > 
> > 
> > 
> > 
> > 
> > MessageBrokerServlet
> > MessageBrokerServlet
> >  
> > flex.messaging.MessageBrokerServlet
> > 
> > services.configuration.file
> >
> /WEB-INF/flex/services-config.xml
> >
> > 
> > flex.write.path
> > /WEB-INF/flex
> > 
> > 2
> > 
> > 
> > 
> > StartupServlet
> > StartupServlet
> > 
> > com.comp.proj.startup.StartupServlet
> > 
> > 
> > serviceNames
> > 
> > -- removed list --
> > 
> > 
> > 
> > serviceClassNames
> > 
> > -- removed list --
> > 
> > 
> > 1
> > 
> > 
> > 
> > MessageBrokerServlet
> > /messagebroker/*
> > 
> > 
> > 
> > index.html
> > index.htm
> > 
> > 
> > 
> > jdbc/myDataSource
> > javax.sql.DataSource
> > Container
> > Shareable
> > 
> > 
> > 
> > jms/TopicConnectionFactory
> > javax.jms.TopicConnectionFactory
> > Container
> > Shareable
> > 
> > 
> > 
> > 
> > 
> >   ~ Geoff ~
> > 
> > -Original Message-
> > From: Martin Gainty [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 06, 2008 9:23 AM
> > To: Tomcat Users List
> > Subject: RE: CHKJ4014W Warning
> > 
> > 
> > Hi Geoff-
> > 
> > masking out the propietary vits can you supply your web.xml
> > 
> > ?
> > Martin
> > __
> > Disclaimer and confidentiality note
> > Everything in this e-mail a

Re: Tomcat 6 classpath issue

2008-08-06 Thread wskent

I looked at the Tomcat HowTo, so what do I use in place of
"System.getProperty("java.class.path",".");"

Ageed on not including the 2.4 jar!
-- 
View this message in context: 
http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18856933.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



rewrite.properties - AJP1.3 connector (isapi_redirect.dll) from IIS 6 to tomcat 5.5

2008-08-06 Thread Saltzman, Robert B (GE, Research)
I have installed tomcat 5.5.26 and JK 1.2.26 on a Windows 2003 Standard
Server running IIS 6.

isapi_redirect.properties, workers.properties, uriworkermap.properties,
server.xml are all configured, and IIS to tomcat jvm AJP connection is
working fine.

However I need to do URL rewriting (may also be referred to as mapping
or translation or path-trimming).

I would like to be able to translate something like
http://servername/xxx/yyy/zzz/ where zzz is a workeruri in AJP to
something like http://servername/zzz/

I have configured isapi to use a rewrite.properties file with the
rewrite_rule_file parameter.  The isapi log file says that this file is
being opened and read, and that the mapping is being entered into the
mapping table.

However when a connection is made to the new URL it is not being
translated.

Example of a simple case:
-workers.properties file
worker.PBLTFUworker.host=localhost
worker.PBLTFUworker.port=7181
worker.PBLTFUworker.type=ajp13
worker.list=PBLTFUworker

-uriworkermap.properties file
/PBLTFU/*=PBLTFUworker

-rewrite.properties file
/ABC/=/PBLTFU/

http://localhost/PBLTFU/  works fine - IIS connects to /PBLTFU container
in tomcat jvm with AJP connector answering on port 7181
http://localhost/ABC/ does not connect at all - isapi log file suggests
translation is not being made.

Is rewrite.properties supposed to work with isapi_redirect.dll and IIS
6?
If so, are there any tricks to doing URL rewriting or path trimming?

(I did try to find answers to this in the list archives, but it is not
obvious to me how to search the archives.)

Thanks in advance for any reply.

Regards,
Bob
NY USA





Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Warren Killian
Hi Jonathan,

About ServletRequest and ServletResponse Interfaces not having a
"setParameter(name, value)" method...depending on your situation, you may
not need to do that.  Are you forwarding to another URI within your web
app?  If so, you could use request/session.setAttribute( String name, Object
obj ).  My understanding is that HttpParameters come from HTML forms and
can't really be added to using the Servlet API.  But if the web component
you are forwarding to is within your same application, you can store those
values you wish to add to the URL to the HttpServletRequest/HttpSession as
"scoped attributes".  Hope this helps.

On Wed, Aug 6, 2008 at 1:17 PM, Christopher Schultz <
[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jonathan,
>
> Jonathan Mast wrote:
> | I can't figure out how to use the pageContext.forward() method like it's
> | equivalent script element:
>
> Do you mean that you want to add parameters to a forwarded URL without
> using JSP?
>
> | How do I pass the name-value pair "foo":"bar" using
> pageContext.forward()? I
> | thought there would be a method like forward(String path, Map params) but
> | there isn't.
>
> Right: you just forward to another URL.
>
> | Nor is there a setParameter(name, value) method available on
> ServletRequest
> | or ServletResponse (both of which are passed onto the page pointed to in
> | pageContext.forward().
>
> Right. The request is supposed to be read-only (ignore attributes ;).
>
> | I don't want to put the parameters in the url itself (ie
> "page.jsp?foo=bar")
> | this approach is not scalable.
>
> This is really the only way to do it. The other option is to create a
> new request object and stuff your own parameters into it (or, better
> yet, wrap the original request and add your parameters only to the
> wrapper).
>
> Why do you believe that adding parameters to the URL is not scalable?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkiZ3KwACgkQ9CaO5/Lv0PA+cQCgs/6qvuqQEcK24o6fId1K3kgs
> OkMAn3HqZ2E12xFeevo8eKii7yYiKj2p
> =Cixo
> -END PGP SIGNATURE-
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: rewrite.properties - AJP1.3 connector (isapi_redirect.dll) from IIS 6 to tomcat 5.5

2008-08-06 Thread Mladen Turk

Saltzman, Robert B (GE, Research) wrote:

I have installed tomcat 5.5.26 and JK 1.2.26 on a Windows 2003 Standard
Server running IIS 6.

isapi_redirect.properties, workers.properties, uriworkermap.properties,
server.xml are all configured, and IIS to tomcat jvm AJP connection is
working fine.

However I need to do URL rewriting (may also be referred to as mapping
or translation or path-trimming).

I would like to be able to translate something like
http://servername/xxx/yyy/zzz/ where zzz is a workeruri in AJP to
something like http://servername/zzz/

I have configured isapi to use a rewrite.properties file with the
rewrite_rule_file parameter.  The isapi log file says that this file is
being opened and read, and that the mapping is being entered into the
mapping table.

However when a connection is made to the new URL it is not being
translated.

Example of a simple case:
-workers.properties file
worker.PBLTFUworker.host=localhost
worker.PBLTFUworker.port=7181
worker.PBLTFUworker.type=ajp13
worker.list=PBLTFUworker

-uriworkermap.properties file
/PBLTFU/*=PBLTFUworker



add
/ABC/*=PBLTFUworker
to uriworkermap.properties files and then
it should work.

Regards
--
^(TM)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Tim Funk

I suggest you look at ServletRequest.setAttribute()

In programming Servlets - you can work with parameters which are the fun 
little things which come off the query string or via the POST body. 
These items should be thought readonly - and only set/sent from the 
HttpClient (aka  - the web browser).


As a programmer - you wish to pass extra information along to other 
Servlets, Filters, etc  - the recommended way is to attach that baggage 
to the ServletRequest via setAttribute.


In a typical MVC setting - a servlet will use the request parameters to 
construction objects which are then placed into the ServletRequest via 
setAttribute. Then the servlet forwards to a view and the view pulls all 
needed data from the ServletRequest via getAttribute. Using request 
parameters in the view is typically an invitation to an XSS attack.


-Tim

Jonathan Mast wrote:

| This is really the only way to do it. The other option is to create a
| new request object and stuff your own parameters into it (or, better
| yet, wrap the original request and add your parameters only to the
wrapper).

How would I do this?  This is basically what Jakarta Commons HTTPClient
package (org.apache.commons.httpclient.*) offers, correct?

I thought such manipulation would be achievable without additional packages.


| Why do you believe that adding parameters to the URL is not scalable?
Well, its not scalegent, to coin a term;
String munging is expensive (scalability), and
StringBuffer sb = new StringBuffer();
sb.append("page.jsp?").append("foo=").append(bar).append("&color=").append(myColor).etc()
is rough to look at (elegent).

Why not just:
HashMap myParams = new HashMap();
myParams.put("foo", bar);
...
pageContext.forward("page.jsp", myParams)   ?

much more efficient and elegent, imho.

I understand that it all eventually boils down to a bunch of String munging,
but the above hypothetical method could take of it that for us and would
really make my life easier ;-)

thanks



On Wed, Aug 6, 2008 at 1:17 PM, Christopher Schultz <
[EMAIL PROTECTED]> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan,

Jonathan Mast wrote:
| I can't figure out how to use the pageContext.forward() method like it's
| equivalent script element:

Do you mean that you want to add parameters to a forwarded URL without
using JSP?

| How do I pass the name-value pair "foo":"bar" using
pageContext.forward()? I
| thought there would be a method like forward(String path, Map params) but
| there isn't.

Right: you just forward to another URL.

| Nor is there a setParameter(name, value) method available on
ServletRequest
| or ServletResponse (both of which are passed onto the page pointed to in
| pageContext.forward().



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[??-FIXED: Yes, but]SEVERE: Error listenerStart -- without entering the listener

2008-08-06 Thread Ken Bowen

Mark,

Somewhat odd.  I've been slowly reworking the app (significant  
rebuilding) for a couple of months, and have routinely been
seeing that log4j complaint, although everything was working ok  -- so  
of course I wasn't even seeing the complaint anymore,
expecting that everything would clean up as I worked my way through  
the app.


A base class that the listener extends contained
private Log log = LogFactory.getLog(BaseAction.class);
and one call on log.  Commenting these out seems to allow the listener  
to run (again).  I can see how it might produce the
behavior I was seeing today.  But then I don't see how it was working  
for the past couple of months.


Sighmath & computing are supposed to be deterministic, but that's  
relative to what I can wrap my head around.  LaGrange thought he could  
compute the position of everything for all time, but then he never got  
around to carrying out the computations.


Thanks for putting me on the right path,
--Ken

On Aug 6, 2008, at 2:16 PM, Mark Thomas wrote:


Ken Bowen wrote:
That's what's frustrating.   I'm using a new Tomcat unzip with  
simple JULI logging


So what is the log4j message doing in this trace?

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Re: Would like to monitor memory use offline

2008-08-06 Thread Richard S. Huntrods

To Ben & Mark,

Thanks for the replies. I've been trying various things based on your 
suggestions. I find my best tool at the moment is "Lambda Probe" - 
though it hasn't been updated in a while, it does show me all the things 
(for the most part) that I wanted to watch.


There's definitely some kind of problem with the JVM not releasing the 
"PS Old Gen" memory. I can watch as this gets gradually used up until it 
hits the max value - then Tomcat crashes with the GC/Heap error message. 
If I stop and start Tomcat before this limit is reached, the memory use 
resets to 0 and the system does not crash.


What is puzzling is that this identical system was working for weeks on 
end without a problem under the older versions of Java, Tomcat and Mysql 
I posted in my original post - and with 1/2 the stack. Only when I moved 
to the new servers (with all the new versions) did the GC crashes start.


Now I'm trying different GC managers to see if one of them "works 
better" at freeing up memory - like maybe the compation parallel GC. 
We'll see.


Again, thanks for the relies.

Cheers,

-Richard

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-06 Thread Rainer Jung
Are we sure, that you experience the same problem? In other words, is
CATALINA_HOME/conf/logging.properties missing in your setup and does the
suggested workaround to catalina.sh solve the problem for you?

Regards,

Rainer

Zemian Deng schrieb:
> Hum... so it is a confirmed bug then. I don't see a ticket open on those
> threads. Should I create one?
> 
> On Wed, Aug 6, 2008 at 11:14 AM, Rainer Jung <[EMAIL PROTECTED]>wrote:
> 
>> See also
>>
>> http://marc.info/?t=12180313421&r=1&w=2
>>
>> Regards,
>>
>> Rainer
>>
>> Zemian Deng schrieb:
>>
>>  Hi Mark, I am away from a computer now. But the steps I gave to
>>> reproduce out of default download is only 4 steps!!!
>>>
>>> You can't see error using that?
>>>
>>> I guess I can check the log for the stacktrace later. The error on
>>> console did not give more than what I paste. And since the errror
>>> seems like it can't even start the server, I doubt more info from log.
>>> But I will check later.
>>> -Z
>>>
>>>
>>>
>>> On 8/6/08, Mark Thomas <[EMAIL PROTECTED]> wrote:
>>>
 Zemian Deng wrote:

> Hello list,
>
> When I try the following it works with tomcat-6.0.14, but failed on
> tomcat-6.0.18
>
> $ mkdir -p /tmp/mybase/conf
> $ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
> $ export CATALINA_BASE=/tmp/mybase
> $ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
> Using CATALINA_BASE:   /tmp/mytomcatbase
> Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
> Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
> Using JRE_HOME:
> /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
> Exception in thread "main" java.lang.NoClassDefFoundError:
>
> Is this a bug?
>
 It would help if you provided more of the stack trace.

 Mark

>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-06 Thread Zemian Deng
am I sure? I think it is.

Well, I gave explicit 4 little instructions to repeat exactly what I found.

I read your post and by simply touch/create a empty file under
$CATALINA_BASE/conf/logging.properties and that indeed fixed the problem and
server starts up fine.

So call it same problem or not, it's up to you guys. All I am saying is that
using the CATALINA_BASE doesn't work with 6.0.18, but worked previously.

-Zemian

On Wed, Aug 6, 2008 at 5:45 PM, Rainer Jung <[EMAIL PROTECTED]> wrote:

> Are we sure, that you experience the same problem? In other words, is
> CATALINA_HOME/conf/logging.properties missing in your setup and does the
> suggested workaround to catalina.sh solve the problem for you?
>
> Regards,
>
> Rainer
>
> Zemian Deng schrieb:
> > Hum... so it is a confirmed bug then. I don't see a ticket open on those
> > threads. Should I create one?
> >
> > On Wed, Aug 6, 2008 at 11:14 AM, Rainer Jung <[EMAIL PROTECTED]
> >wrote:
> >
> >> See also
> >>
> >> http://marc.info/?t=12180313421&r=1&w=2
> >>
> >> Regards,
> >>
> >> Rainer
> >>
> >> Zemian Deng schrieb:
> >>
> >>  Hi Mark, I am away from a computer now. But the steps I gave to
> >>> reproduce out of default download is only 4 steps!!!
> >>>
> >>> You can't see error using that?
> >>>
> >>> I guess I can check the log for the stacktrace later. The error on
> >>> console did not give more than what I paste. And since the errror
> >>> seems like it can't even start the server, I doubt more info from log.
> >>> But I will check later.
> >>> -Z
> >>>
> >>>
> >>>
> >>> On 8/6/08, Mark Thomas <[EMAIL PROTECTED]> wrote:
> >>>
>  Zemian Deng wrote:
> 
> > Hello list,
> >
> > When I try the following it works with tomcat-6.0.14, but failed on
> > tomcat-6.0.18
> >
> > $ mkdir -p /tmp/mybase/conf
> > $ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
> > $ export CATALINA_BASE=/tmp/mybase
> > $ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
> > Using CATALINA_BASE:   /tmp/mytomcatbase
> > Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
> > Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
> > Using JRE_HOME:
> > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> >
> > Is this a bug?
> >
>  It would help if you provided more of the stack trace.
> 
>  Mark
> 
> >> -
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Sweet - a Scala web framework:
http://code.google.com/p/sweetscala


Re: Tomcat 6 classpath issue

2008-08-06 Thread Steve Ochani
Date sent:  Wed, 06 Aug 2008 11:25:23 -0700 (PDT)
From:   wskent <[EMAIL PROTECTED]>
Subject:Re: Tomcat 6 classpath issue
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List 

> 
> I looked at the Tomcat HowTo, so what do I use in place of
> "System.getProperty("java.class.path",".");"
> 

Try this:


ClassLoader sysClassLoader = getClass().getClassLoader();

URL[] urls = ((URLClassLoader)sysClassLoader).getURLs();

for(int i=0; i< urls.length; i++)
{
out.println(urls[i].getFile() + "\n");
}   




-Steve O.




> Ageed on not including the 2.4 jar!
> -- 
> View this message in context:
> http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18856933.htm
> l Sent from the Tomcat - User mailing list archive at Nabble.com.
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED] For additional commands,
> e-mail: [EMAIL PROTECTED]
> 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat cluster (NullPointer when replicating session)

2008-08-06 Thread Lia
Hi everybody,  

I am using 
- Tomcat 6.0.18 ( but I've also tested the same scenario with Tomcat 6.0.16
and Tomcat 6.0.14 and I got the same problem);
- in cluster ( two machines);
- on Debian x64, 4.0.
When using DeltaManager (with or without sticky sessions) the cluster works
fine, but for some special installations I would like to have
"useDirtyFlag='false'". I understand that "dirtyFlag" is used only with
SimpleTcpReplicationManager, so I changed the server.xml and context.xml, to
enable it.
When starting with a single machine, everything is fine, no error message,
but when having another node in cluster, the replication fails with the
error listed below. 

Aug 6, 2008 4:40:57 PM
org.apache.catalina.ha.session.SimpleTcpReplicationManager readSession
SEVERE: Failed to deserialize the session!
java.lang.NullPointerException
at
java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
at
java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:903)
at
org.apache.catalina.ha.session.SimpleTcpReplicationManager.readSession(Simpl
eTcpReplicationManager.java:426)
at
org.apache.catalina.ha.session.SimpleTcpReplicationManager.messageReceived(S
impleTcpReplicationManager.java:612)
at
org.apache.catalina.ha.session.SimpleTcpReplicationManager.messageDataReceiv
ed(SimpleTcpReplicationManager.java:651)
at
org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(Cluste
rSessionListener.java:87)
at
org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster
.java:899)
at
org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster
.java:880)
at
org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.j
ava:269)
at
org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(Chan
nelInterceptorBase.java:79)
at
org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageRece
ived(TcpFailureDetector.java:110)

I've attached server.xml and context.xml files from one machine in cluster.

Analyzing the error stack trace, I've read the Tomcat source code, and I
found this, in "SimpleTcpReplicationManager":

  424  if (session==null) {
  425  session = createSession(null,false, false);
  426  sessions.remove(session.getIdInternal());
  427  }

And the signature for createSession method says:

protected Session createSession(String sessionId, boolean notify,
boolean setId)
{

It seems to me that createSession is called with parameter setId= false, and
then NullPointer exception is thrown at the next line, because the code
tries to search the session Id that was set to Null one line above. I
changed the line 425 into  session = createSession(null,true, true);
Now I get no NullPointerException any more, but I suppose this is not the
fair solution. Is it something wrong in my cluster configuration, can I
avoid the Null point in some other way, or SimpleTcpReplicationManager is no
longer supported?


Thanks in
advance,
Lia Domide



server.xml
Description: XML document


context.xml
Description: XML document
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Setting CATALINA_BASE failed with tomcat-6.0.18

2008-08-06 Thread Rainer Jung

Zemian Deng wrote:

am I sure? I think it is.

Well, I gave explicit 4 little instructions to repeat exactly what I found.

I read your post and by simply touch/create a empty file under
$CATALINA_BASE/conf/logging.properties and that indeed fixed the problem and
server starts up fine.



Thank's for that information, that's what I needed.


So call it same problem or not, it's up to you guys. All I am saying is that
using the CATALINA_BASE doesn't work with 6.0.18, but worked previously.


We are now pretty sure it's the same problem. Thank's for reporting, 
I'll add a bugzilla issue.



-Zemian


Rainer


On Wed, Aug 6, 2008 at 5:45 PM, Rainer Jung <[EMAIL PROTECTED]> wrote:


Are we sure, that you experience the same problem? In other words, is
CATALINA_HOME/conf/logging.properties missing in your setup and does the
suggested workaround to catalina.sh solve the problem for you?

Regards,

Rainer

Zemian Deng schrieb:

Hum... so it is a confirmed bug then. I don't see a ticket open on those
threads. Should I create one?

On Wed, Aug 6, 2008 at 11:14 AM, Rainer Jung <[EMAIL PROTECTED]
wrote:


See also

http://marc.info/?t=12180313421&r=1&w=2

Regards,

Rainer

Zemian Deng schrieb:

 Hi Mark, I am away from a computer now. But the steps I gave to

reproduce out of default download is only 4 steps!!!

You can't see error using that?

I guess I can check the log for the stacktrace later. The error on
console did not give more than what I paste. And since the errror
seems like it can't even start the server, I doubt more info from log.
But I will check later.
-Z



On 8/6/08, Mark Thomas <[EMAIL PROTECTED]> wrote:


Zemian Deng wrote:


Hello list,

When I try the following it works with tomcat-6.0.14, but failed on
tomcat-6.0.18

$ mkdir -p /tmp/mybase/conf
$ cp /opt/apache-tomcat-6.0.18/conf/server.xml /tmp/mybase/conf
$ export CATALINA_BASE=/tmp/mybase
$ /opt/apache-tomcat-6.0.18/bin/catalina.sh run
Using CATALINA_BASE:   /tmp/mytomcatbase
Using CATALINA_HOME:   /opt/apache-tomcat-6.0.18
Using CATALINA_TMPDIR: /tmp/mytomcatbase/temp
Using JRE_HOME:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
Exception in thread "main" java.lang.NoClassDefFoundError:

Is this a bug?


It would help if you provided more of the stack trace.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]