Re: jsvc creates pid file owned by root

2008-04-10 Thread Gunnar Boström

Hi,
Answers to all of you who has responded.

I would be fine with 644 but I don't know how to set that.
The file is owned by root so I'm not allowed to change it.
My umask is by default 0022 which should be okay. I tried to set the mask to
 but no change.
I created a pid file with the correct permissions but as expected jsvc
ignored it.

I was hoping that there were some undocumented switches in jsvc that I could
use.

Regards
Gunnar


-- 
View this message in context: 
http://www.nabble.com/jsvc-creates-pid-file-owned-by-root-tp16606528p16626038.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: LD_LIBRARY_PATH issue

2008-04-10 Thread David Fisher

Hi,

Look carefully at the LD_LIBRARY_PATH man page.

At least under Solaris, if you are sudo'ing in some way to root then  
it will not reset LD_LIBRARY_PATH. This is a security measure.


You may need to configure the root to include these libraries.

This was 7 years ago that we encountered this situation, so I can't  
give you detail.


I hope this sets you on the right path.

Regards,
Dave

On Apr 10, 2008, at 10:40 PM, Geofrey Rainey wrote:


Hello,



I am setting up Tomcat to connect to an Oracle RAC cluster using the
Oracle OCI driver.



The documentation I have read says to configure LD_LIBRARY_PATH under
Linux topoint

to the Oracle OCI library file directories, but no matter where I set
LD_LIBRARY_PATH it

does not get honored.

I am getting a JVM crash and a trace file containing the environment
settings shows that

LD_LIBRARY_PATH is always set to the library directories under
$JAVA_HOME.



How do I set the LD_LIBRARY_PATH for Tomcat?



Regards,

Geofrey Rainey.

==
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz
==
CAUTION:  This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s).  This  
information

is not to be used or stored by any other person and/or organisation.



-
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 detect which version of Axis is currently running in TomCat ?

2008-04-10 Thread Caldarale, Charles R
> From: Ben Stover [mailto:[EMAIL PROTECTED] 
> Subject: How to detect which version of Axis is currently 
> running in TomCat ?
> 
> How can I find out if Axis is already (successfully) 
> installed on this server and if yes which version it is?

If you're doing this from a browser, use:
http://[host][:port]/manager/html/list
to display deployed applications (assuming the manager webapp hasn't
been disabled).  If the Axis2 war is installed, it should show up as
axis2, assuming it hasn't been renamed.  Don't know what the older
version looks like.

If you want to do this programmatically over the network, use the
non-html flavor of the manager webapp instead:
http://[host][:port]/manager/list
and parse the response.  

The manager webapp is usually secured, so you'll need to authenticate
before the response is returned.

 - Chuck


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

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



LD_LIBRARY_PATH issue

2008-04-10 Thread Geofrey Rainey
Hello,

 

I am setting up Tomcat to connect to an Oracle RAC cluster using the
Oracle OCI driver.

 

The documentation I have read says to configure LD_LIBRARY_PATH under
Linux topoint 

to the Oracle OCI library file directories, but no matter where I set
LD_LIBRARY_PATH it 

does not get honored. 

I am getting a JVM crash and a trace file containing the environment
settings shows that

LD_LIBRARY_PATH is always set to the library directories under
$JAVA_HOME.

 

How do I set the LD_LIBRARY_PATH for Tomcat?

 

Regards,

Geofrey Rainey.

==
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz 
==
CAUTION:  This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s).  This information
is not to be used or stored by any other person and/or organisation.


Re: %3B in path-info

2008-04-10 Thread Jess Holle

Rémy Maucherat wrote:

On Fri, Apr 11, 2008 at 1:58 AM, Rainer Jung <[EMAIL PROTECTED]> wrote:
  

 Rémy,

 I know that we cleaned reencoding of forwarded URLs up in the context of
the CVE and mod_jk. The semicolon wasn't involved in the CVE though and at
that time it would have been easier, if the AJP connectors had resolved
%3Bjsessionid (because then we wouldn't have needed a new JK forward
option).


%3Bjsessionid is not a session id. JK should not be passing a decoded
URL, and that's pretty much the end of the story.
  
Agreed -- but that draws me back to the need for an option (or default 
behavior!) in mod_proxy_ajp wherein the URL passed to via AJP is not 
decoded.


--
Jess Holle



Re: Mod_JK on OSX server 10.5

2008-04-10 Thread CommonGround Softworks/Phil McNamara
Hi Rainier,

>CommonGround Softworks/Phil McNamara schrieb:
>> Hi Folks,
>> Wondered if someone could help me with ideas on this?
>> 
>> Have a configuration where a separate tomcat instance is installed (So 
>> apple can't break it :)). Apple's copy of tomcat provided with the 
>> machine in not running. The new Tomcat (5.5.7) plays fine on port 8080. 
>> i.e.
>

>As mentioned by others: 5.5.7 is *very old*.

Yes, that is to be fixed. Chuck made some good comments and pointed out 
some other options I was not aware of. I have a lot to learn. Very much 
appreciate the experience of everyone on this list.
>
>> http://localhost:8080/index.jsp
>> 
>> We want to  move to using apache 2.2 with mod_jk to hand off URI's 
>> appropriately to tomcat.   
>> Have worked through the material in
>> http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
>> 
>> The mod_jk apache module provided with Apple's 10.5 server is enabled.
>> 
>> Added listener to the engine element of server.xml
>> 
>> > modJK="/usr/libexec/apache2/mod_jk.so" />
>
>Once you have your final configuration, this isn't needed any more. It's 
>only used to produce a simple basic mod_jk configuration. Tomcat doesn't 
>use the file by itself, instead the generated file needs to be put into 
>the httpd configuration. The generated file is only a very simple default.
>

Good to know.  At least I got the mod_jk file to generate :)
The generated file is referenced in the new include statement in 
httpd.conf

>> The default workers properties file was looked over and edited
>> 
>> I tweaked the default workers.properties.  Here is some of the file 
>> content:
>> 
>> # Normaly all you will need to do is un-comment and modify the first three

snip..

>
>These are only comments.

yup, provided for info.  You'll see more below...

>
>> I did this:
>> 
>> 
>> workers.tomcat_home=/Applications/Qilan\ 3/Tomcat_Qilan 
>> #note below is the symlink recommended by Apple in technical QA1170 pgm 
>> workers.java_home=/Library/Java/Home
>
>Those two don't do anything useful any more. The auto-generation is very 
>outdated, it produces several non-functional configuration lines 
>(although they don't technically harm)
>

OK, I am guilty of following the directions in the workers.properties 
file :)

>> 
>> but it was not clear to me what should be changed on worker.list.  Left 
>> as is, to wit
>> 
>> #-- DEFAULT worket list --
>> #-
>> #
>> #
>> # The workers that your plugins should create and work with
>> #
>> # Add 'inprocess' if you want JNI connector 
>> worker.list=ajp12, ajp13
>
>The worker.list contains a comma-separated list of your worker names. 
>Worker names can be freely chosen (no special chars allowed). I would 
>suggest for a simple configuration remove "ajp12" and keep "ajp13".
>

will do.  See below

>If your worker is not defined in workers.properties (lines of the form 
>worker.ajp13.XXX=YYY), then it defaults to localhost port 8009 and 
>protocol ajp13. This might be fine in your case, but I would suggest to 
>do an explicit definition of the worker.
>
>> # , inprocess
>> 
>> ---
>> 
>> 
>> Added listener to the engine element of server.xml
>> > modJK="/usr/libexec/apache2/mod_jk.so" />
>
>Once again?

sorry, repeated myself

>
>> Restarted Tomcat and mod_jk.conf was generated along with the auto
>> directory and so on. 
>
>And so on?
>What are the contents of the mod_jk.conf???
>

mod_jk.conf file contents:

## Auto generated on Wed Apr 09 18:55:01 EDT 2008##


  LoadModule jk_module "libexec/mod_jk.so"




ServerName localhost

JkMount /webdav ajp13
JkMount /webdav/* ajp13

JkMount /servlets-examples ajp13
JkMount /servlets-examples/* ajp13

JkMount /jsp-examples ajp13
JkMount /jsp-examples/* ajp13

JkMount /balancer ajp13
JkMount /balancer/* ajp13

JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13

JkMount /qilan ajp13
JkMount /qilan/* ajp13

JkMount /manager ajp13
JkMount /manager/* ajp13




>> Got the Include in Apache 2.2 httpd.conf pointing to mod_jk.conf squared 
>> away enough so that Apache starts OK. The include originally errored 
>> apache when I tried to backslash to escape the space between Qilan and 3. 
>>  The below seems to work without an error
>> 
>> Include "/Applications/Qilan 3/Tomcat_Qilan/conf/auto/mod_jk.conf"
>
>Yes, path with spaces ...

OK, I wasn't sure, but as I mentioned, Apache seemed to be happy with the 
include
>
>> The mod_jk apache module provided with 10.5 server is enabled.
>
>Which version of mod_jk?
>
>> I port scanned the machine to check that there is a response from port 
>> 8009.
>> This would appear to indicate that the ajp13 worker is playing correctly 
>> as defined in workers properties.
>> 
>> I just can't seem to get the handoff to happen for URI's that should 
>> parse out to be  
>> hand

Re: %3B in path-info

2008-04-10 Thread Jess Holle

Rainer Jung wrote:

Hmmm. Unfortunately I couldn't follow the thread earlier.

As far as I know the problem is the following:

A semicolon is used to separate the jsessionid in case you are using 
URL encoded sessions. As far as I remember the AJP connnector does 
*not* recognize %3Bjsessionid. So if you are using URL encoded 
sessions, semicolons need to be decoded before sending to Tomcat, or 
Tomcat needs a patch to recognize %3bjsessionid in the AJP connector.


Of you don't use URL encoded sessions, you can choose the correct 
forward option in mod_jk.
That's great in mod_jk -- and as I noted we're already using an 
appropriate forward option where we use mod_jk.  [This is for conveying 
information in the path info -- not for jsessionid, where we require 
cookies.]
Concerning mod_proxy_ajp: I'm not sure, if it is a bug. Since %3B and 
semicolon should be euivalent, my question is: do you get the correct 
path info if you use Tomcat http connector directly and use semicolon 
instead of %3B?
";" is not the same as %3B as I understand it.  A raw ";" is reserved by 
the RFC and denotes a separation between path components and other data, 
e.g. jsessionid.


An encoded ";", i.e. %3B should be able to be part of the path 
components, though.


As Mark Thomas helped me to realize the issue is that mod_proxy_ajp has 
no equivalent of the option we'd been relying upon in mod_jk to resolve 
this issue.  That's a serious gap in mod_proxy_ajp.  On the other hand, 
there's a lot to be said for Apache 2.2 in general and mod_proxy_ajp in 
particular, so we really need this gap closed and can't just revert to 
mod_jk.


--
Jess Holle


-
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: %3B in path-info

2008-04-10 Thread Rémy Maucherat
On Fri, Apr 11, 2008 at 1:58 AM, Rainer Jung <[EMAIL PROTECTED]> wrote:
>  Rémy,
>
>  I know that we cleaned reencoding of forwarded URLs up in the context of
> the CVE and mod_jk. The semicolon wasn't involved in the CVE though and at
> that time it would have been easier, if the AJP connectors had resolved
> %3Bjsessionid (because then we wouldn't have needed a new JK forward
> option).

%3Bjsessionid is not a session id. JK should not be passing a decoded
URL, and that's pretty much the end of the story.

Rémy

-
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 access the client's X509 Cert of an https request ?

2008-04-10 Thread Hanson Char
s/Http12Processor/Http11Processor/

On Thu, Apr 10, 2008 at 6:18 PM, Hanson Char <[EMAIL PROTECTED]> wrote:

> I refer to tomcat 5.5.17.  Assuming SSL client side authentication is
> used, I am trying to access the underlying client's X509 certificate of the
> SSL socket in a webapp.  However, it appears such information can only be
> extracted from the SSL session, which is not made available to the servlet.
>
> I can see that this can be hacked around by modifying
> Http12Processor.java, such that the (SSL) socket is placed into a thread
> local for use by the webapp.
>
> But there must be a better/easier way than this, or some configuration
> magic I am missing ?
>
> Hanson


How to access the client's X509 Cert of an https request ?

2008-04-10 Thread Hanson Char
I refer to tomcat 5.5.17.  Assuming SSL client side authentication is used,
I am trying to access the underlying client's X509 certificate of the SSL
socket in a webapp.  However, it appears such information can only be
extracted from the SSL session, which is not made available to the servlet.

I can see that this can be hacked around by modifying Http12Processor.java,
such that the (SSL) socket is placed into a thread local for use by the
webapp.

But there must be a better/easier way than this, or some configuration magic
I am missing ?

Hanson


Re: Classpath Problem

2008-04-10 Thread David Smith
Could you post the Host element of your server.xml?  I know people have 
had this problem and solved it in the past, but it's been a while.


--David

OpenP2M Open wrote:

Hi,

I'm migrating an application from one server to another. On the old server
the application runs perfectly, but on the new one I'm getting this message
of error only on the .jsp that are in subfolders (when I move then to root
folder they run ok):

An error occurred at line: 8 in the generated java fileOnly a type can be
imported. glauber.banco.Filter resolves to a package


The .jsp's that are on /public_html run ok

When I create a subforlder and put the same .jsps they get that error
message above.

I'm thinking the root folder has a different classpath than the
subfolders...

Does anyone know what is the problem and how to fix?

Thank You

Glauber

  



-
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: %3B in path-info

2008-04-10 Thread Rainer Jung

Rémy Maucherat schrieb:

On Fri, Apr 11, 2008 at 12:19 AM, Jess Holle <[EMAIL PROTECTED]> wrote:

 Done. [https://issues.apache.org/bugzilla/show_bug.cgi?id=44803]


Guys, you've been going crazy about a (known) security issue: CVE-2007-1860
See http://tomcat.apache.org/security-jk.html

Rémy


Rémy,

I know that we cleaned reencoding of forwarded URLs up in the context of 
the CVE and mod_jk. The semicolon wasn't involved in the CVE though and 
at that time it would have been easier, if the AJP connectors had 
resolved %3Bjsessionid (because then we wouldn't have needed a new JK 
forward option).


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: %3B in path-info

2008-04-10 Thread Rainer Jung

Jess Holle schrieb:

Mark Thomas wrote:

Jess Holle wrote:

Mark Thomas wrote:
I couldn't see anything either. This looks like a mod_proxy_ajp 
bug/missing feature.
I jumped the gun once by filing this against Tomcat, but it seems 
everything is pointing to mod_proxy_ajp.  Is it time to file a bug 
against it?

Looks like it to me.

Done. [https://issues.apache.org/bugzilla/show_bug.cgi?id=44803]


Hmmm. Unfortunately I couldn't follow the thread earlier.

As far as I know the problem is the following:

A semicolon is used to separate the jsessionid in case you are using URL 
encoded sessions. As far as I remember the AJP connnector does *not* 
recognize %3Bjsessionid. So if you are using URL encoded sessions, 
semicolons need to be decoded before sending to Tomcat, or Tomcat needs 
a patch to recognize %3bjsessionid in the AJP connector.


Of you don't use URL encoded sessions, you can choose the correct 
forward option in mod_jk.


Concerning mod_proxy_ajp: I'm not sure, if it is a bug. Since %3B and 
semicolon should be euivalent, my question is: do you get the correct 
path info if you use Tomcat http connector directly and use semicolon 
instead of %3B?


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: %3B in path-info

2008-04-10 Thread Rémy Maucherat
On Fri, Apr 11, 2008 at 12:19 AM, Jess Holle <[EMAIL PROTECTED]> wrote:
>  Done. [https://issues.apache.org/bugzilla/show_bug.cgi?id=44803]

Guys, you've been going crazy about a (known) security issue: CVE-2007-1860
See http://tomcat.apache.org/security-jk.html

Rémy

-
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: stop apache web server for tomcat 6

2008-04-10 Thread Alan Chaney

something like:

sudo apt-get remove apache2

- if you have problems see the ubuntu users list

HTH




Angelo Chen wrote:

Hi,

I have a ubuntu server which has apache web server 2 pre - configured, it is
port 80, now I install tomcat 6 and I'd like to use port 80 as well, how can
i stop apache2 in this machine? i don't need apache 2. thanks.


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



stop apache web server for tomcat 6

2008-04-10 Thread Angelo Chen

Hi,

I have a ubuntu server which has apache web server 2 pre - configured, it is
port 80, now I install tomcat 6 and I'd like to use port 80 as well, how can
i stop apache2 in this machine? i don't need apache 2. thanks.
-- 
View this message in context: 
http://www.nabble.com/stop-apache-web-server-for-tomcat-6-tp16619823p16619823.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: %3B in path-info

2008-04-10 Thread Jess Holle

Mark Thomas wrote:

Jess Holle wrote:

Mark Thomas wrote:
I couldn't see anything either. This looks like a mod_proxy_ajp 
bug/missing feature.
I jumped the gun once by filing this against Tomcat, but it seems 
everything is pointing to mod_proxy_ajp.  Is it time to file a bug 
against it?

Looks like it to me.

Done. [https://issues.apache.org/bugzilla/show_bug.cgi?id=44803]

Thanks.

--
Jess Holle


-
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 detect which version of Axis is currently running in TomCat ?

2008-04-10 Thread Ben Stover
Assume I get to an already installed and running TomCat server.

How can I find out if Axis is already (successfully) installed on this server 
and if yes which version it is?

Ben







-
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: %3B in path-info

2008-04-10 Thread Mark Thomas

Jess Holle wrote:

Mark Thomas wrote:
I couldn't see anything either. This looks like a mod_proxy_ajp 
bug/missing feature.
I jumped the gun once by filing this against Tomcat, but it seems 
everything is pointing to mod_proxy_ajp.  Is it time to file a bug 
against it?


Looks like it to me.

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: %3B in path-info

2008-04-10 Thread Jess Holle

Jess Holle wrote:

Mark Thomas wrote:

Jess Holle wrote:

Mark Thomas wrote:

Jess Holle wrote:

You're right -- this works fine in the direct case.

So I need to file a bug against mod_proxy_ajp instead?  Or is 
there some chance this is in the AJP connector?

Only if there is a bug - we haven't shown that yet ;)

Could you provide some version numbers please (httpd, mod_jk, etc)

Also, what setting are you using for JkOptions?
http://tomcat.apache.org/connectors-doc/reference/apache.html

I suspect you want
JkOptions +ForwardURICompatUnparsed
but read the docs carefully before making any changes so you 
understand the security implications.
I don't believe mod_proxy_ajp provides any such options -- and I'm 
using that and Apache 2.2.x, not 2.0.x and/or mod_jk.  At any rate, 
I have:
I couldn't see anything either. This looks like a mod_proxy_ajp 
bug/missing feature.
I jumped the gun once by filing this against Tomcat, but it seems 
everything is pointing to mod_proxy_ajp.  Is it time to file a bug 
against it?

P.S. Where we use Apache 2 and mod_jk, we use

 JkOptions +ForwardURIEscaped
 JkOptions +FlushPackets

The latter is covered in mod_proxy_ajp via "flushpackets=on", but I 
don't see any coverage of the former.


--
Jess Holle



Tomcat

2008-04-10 Thread Dan Baughman
Folks,

A few weeks ago (around march 25th) there was a post about a fellow trying
to use jk_isapi_plugin and getting an "error while adding request headers"
and the following output to the browser:
The parameter is incorrect.

It was determined that the request wasn't even getting to tomcat and the
issue lied with the plugin.

Has anyone gone anywhere with that, or figured anything out? I'm in the same
boat here trying to get a 2k3 box (iis6) connected to tomcat just for the
JSP files.


- Dan


Re: %3B in path-info

2008-04-10 Thread Jess Holle

Mark Thomas wrote:

Jess Holle wrote:

Mark Thomas wrote:

Jess Holle wrote:

You're right -- this works fine in the direct case.

So I need to file a bug against mod_proxy_ajp instead?  Or is there 
some chance this is in the AJP connector?

Only if there is a bug - we haven't shown that yet ;)

Could you provide some version numbers please (httpd, mod_jk, etc)

Also, what setting are you using for JkOptions?
http://tomcat.apache.org/connectors-doc/reference/apache.html

I suspect you want
JkOptions +ForwardURICompatUnparsed
but read the docs carefully before making any changes so you 
understand the security implications.
I don't believe mod_proxy_ajp provides any such options -- and I'm 
using that and Apache 2.2.x, not 2.0.x and/or mod_jk.  At any rate, I 
have:
I couldn't see anything either. This looks like a mod_proxy_ajp 
bug/missing feature.
I jumped the gun once by filing this against Tomcat, but it seems 
everything is pointing to mod_proxy_ajp.  Is it time to file a bug 
against it?


--
Jess Holle


-
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: %3B in path-info

2008-04-10 Thread Mark Thomas

Jess Holle wrote:

Mark Thomas wrote:

Jess Holle wrote:

You're right -- this works fine in the direct case.

So I need to file a bug against mod_proxy_ajp instead?  Or is there 
some chance this is in the AJP connector?

Only if there is a bug - we haven't shown that yet ;)

Could you provide some version numbers please (httpd, mod_jk, etc)

Also, what setting are you using for JkOptions?
http://tomcat.apache.org/connectors-doc/reference/apache.html

I suspect you want
JkOptions +ForwardURICompatUnparsed
but read the docs carefully before making any changes so you 
understand the security implications.
I don't believe mod_proxy_ajp provides any such options -- and I'm using 
that and Apache 2.2.x, not 2.0.x and/or mod_jk.  At any rate, I have:


I couldn't see anything either. This looks like a mod_proxy_ajp bug/missing 
feature.


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 having to put :8080 in the url?

2008-04-10 Thread Gary Opela (Corporate)
Thanks, Chris, for the assistance.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 4:07 PM
To: Tomcat Users List
Subject: Re: How to stop having to put :8080 in the url?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gary,

Gary Opela (Corporate) wrote:
| I have a website that is located under http://localserver:8080/arsys
|
| How do I set it to where I just have to hit http://localserver/arsys,
| without the :8080?

The only way to remove the port number from your URLs is to use the
standard ports (80 for HTTP and 443 for HTTPS) for your services instead
of using 8080. Look for any un-commented  elements in your
server.xml -- the port number configuration should be obvious based upon
the examples and comments.

If you are running on a UNIX-like OS, you are likely to run across the
problem of non-root users (and processes) being prohibited from binding
to ports lower than 1024. In that case, look for "jsvc" which is pretty
much the standard these days for running java processes with access to
privileged resources.

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

iEYEARECAAYFAkf+gXMACgkQ9CaO5/Lv0PDDBACbBbyFAiiTox3zTFhSENg/aqXB
HS4AnAyvFuqjFvlGkauEhrny2Qj0UoON
=tDBY
-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: %3B in path-info

2008-04-10 Thread Jess Holle

Mark Thomas wrote:

Jess Holle wrote:

You're right -- this works fine in the direct case.

So I need to file a bug against mod_proxy_ajp instead?  Or is there 
some chance this is in the AJP connector?

Only if there is a bug - we haven't shown that yet ;)

Could you provide some version numbers please (httpd, mod_jk, etc)

Also, what setting are you using for JkOptions?
http://tomcat.apache.org/connectors-doc/reference/apache.html

I suspect you want
JkOptions +ForwardURICompatUnparsed
but read the docs carefully before making any changes so you 
understand the security implications.
I don't believe mod_proxy_ajp provides any such options -- and I'm using 
that and Apache 2.2.x, not 2.0.x and/or mod_jk.  At any rate, I have:


   
   BalancerMember ajp://localhost:8010 min=16 max=80 smax=40
   ttl=900 keepalive=Off timeout=9 retry=1 flushpackets=on
   

and

   
   
 RewriteEngine on
 RewriteRule ^(/MyWebAppName/(.*\.jsp(.*)|servlet/.*|.*\.jar))$
   balancer://ajpWorker$1 [P]
   
   

which maps all JSP, servlet, and .jar requests to Tomcat and lets Apache 
handle everything else.


--
Jess Holle



RE: How to stop having to put :8080 in the url?

2008-04-10 Thread Gary Opela (Corporate)
Thanks Chuck, I appreciate the assistance.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 4:04 PM
To: Tomcat Users List
Subject: RE: How to stop having to put :8080 in the url?

> From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED] 
> Subject: How to stop having to put :8080 in the url?
> 
> How do I set it to where I just have to hit http://localserver/arsys,
> without the :8080?

Change the port attribute of the  element in conf/server.xml.
You should probably browse through that file and the Tomcat
configuration doc.  Adjust the following for whatever level you're
running (and remember to tell us next time).

http://tomcat.apache.org/tomcat-6.0-doc/config/index.html

 - Chuck


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

-
To 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: How to stop having to put :8080 in the url?

2008-04-10 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gary,

Gary Opela (Corporate) wrote:
| I have a website that is located under http://localserver:8080/arsys
|
| How do I set it to where I just have to hit http://localserver/arsys,
| without the :8080?

The only way to remove the port number from your URLs is to use the
standard ports (80 for HTTP and 443 for HTTPS) for your services instead
of using 8080. Look for any un-commented  elements in your
server.xml -- the port number configuration should be obvious based upon
the examples and comments.

If you are running on a UNIX-like OS, you are likely to run across the
problem of non-root users (and processes) being prohibited from binding
to ports lower than 1024. In that case, look for "jsvc" which is pretty
much the standard these days for running java processes with access to
privileged resources.

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

iEYEARECAAYFAkf+gXMACgkQ9CaO5/Lv0PDDBACbBbyFAiiTox3zTFhSENg/aqXB
HS4AnAyvFuqjFvlGkauEhrny2Qj0UoON
=tDBY
-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: %3B in path-info

2008-04-10 Thread Mark Thomas

Mark Thomas wrote:

Jess Holle wrote:
Is there any reasonable way I can tell where the issue resides, 
mod_proxy_ajp or the Tomcat AJP connector.


I'll do a quick test and get back to you.


Looks like a mod_proxy_ajp bug/configuration error.

Using mod_jk (1.2.24-dev but relevant code hasn't changed), http 2.2.4 and
JkOptions +ForwardURICompatUnparsed

I get
Path Info:  /test/foo;bar
as expected.

I do a little more digging in the mod_proxy docs and let you know what I find.

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 having to put :8080 in the url?

2008-04-10 Thread Caldarale, Charles R
> From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED] 
> Subject: How to stop having to put :8080 in the url?
> 
> How do I set it to where I just have to hit http://localserver/arsys,
> without the :8080?

Change the port attribute of the  element in conf/server.xml.
You should probably browse through that file and the Tomcat
configuration doc.  Adjust the following for whatever level you're
running (and remember to tell us next time).

http://tomcat.apache.org/tomcat-6.0-doc/config/index.html

 - Chuck


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

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



Re: Changing the Webapps directory

2008-04-10 Thread Terence M. Bandoian
Hi, Tobias-

Is ROOT a subdirectory of z:\webapps?

-Terence M. Bandoian


> Subject:
> Changing the Webapps directory
> From:
> "Tobias Meissner" <[EMAIL PROTECTED]>
> Date:
> Thu, 10 Apr 2008 13:47:52 +0200
> To:
> users@tomcat.apache.org


> Hi,

> I just got a short question.
> In the context of an actual project it would be helpful to change the path
> of the webapps directory to some other location, e.g. network drive Z:\.
> We are currently using the Apache Tomcat version 6 on Windows XP.

> We already changed the appBase in server.xml to this drive and
restarted the
> Tomcat, but this didn't work.

> Here an short excerpt of the server.xml:
>  unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">



> kind regards
> Tobias Meißer



-
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: %3B in path-info

2008-04-10 Thread Mark Thomas

Jess Holle wrote:
Is there any reasonable way I can tell where the issue resides, 
mod_proxy_ajp or the Tomcat AJP connector.


I'll do a quick test and get back to you.

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: %3B in path-info

2008-04-10 Thread Jess Holle
Is there any reasonable way I can tell where the issue resides, 
mod_proxy_ajp or the Tomcat AJP connector.


I'm using Apache 2.2.8 and the Java (non-native, non-NIO) AJP 
connector.  [The native connector is just too painful to build on half a 
dozen platforms...]


Jess Holle wrote:

You're right -- this works fine in the direct case.

So I need to file a bug against mod_proxy_ajp instead?  Or is there 
some chance this is in the AJP connector?


Rainer Jung wrote:
So are you saying, that th request goes through httpd/mod_proxy or 
mod_jk? If so, you should first test with direct request, so that we 
know, where we have to look for the problem.


With mod_jk there were a couple of encoding changes and the latest 
versions without a forwarding JkOption I think decodes the semicolon 
before forwarding, because the AJP connector does not decode before 
looking for the jsessionid.


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]



-
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: %3B in path-info

2008-04-10 Thread Mark Thomas

Jess Holle wrote:

You're right -- this works fine in the direct case.

So I need to file a bug against mod_proxy_ajp instead?  Or is there some 
chance this is in the AJP connector?


Only if there is a bug - we haven't shown that yet ;)

Could you provide some version numbers please (httpd, mod_jk, etc)

Also, what setting are you using for JkOptions?
http://tomcat.apache.org/connectors-doc/reference/apache.html

I suspect you want
JkOptions +ForwardURICompatUnparsed
but read the docs carefully before making any changes so you understand the 
security implications.


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]



Classpath Problem

2008-04-10 Thread OpenP2M Open
Hi,

I'm migrating an application from one server to another. On the old server
the application runs perfectly, but on the new one I'm getting this message
of error only on the .jsp that are in subfolders (when I move then to root
folder they run ok):

An error occurred at line: 8 in the generated java fileOnly a type can be
imported. glauber.banco.Filter resolves to a package


The .jsp's that are on /public_html run ok

When I create a subforlder and put the same .jsps they get that error
message above.

I'm thinking the root folder has a different classpath than the
subfolders...

Does anyone know what is the problem and how to fix?

Thank You

Glauber


Re: %3B in path-info

2008-04-10 Thread Jess Holle

You're right -- this works fine in the direct case.

So I need to file a bug against mod_proxy_ajp instead?  Or is there some 
chance this is in the AJP connector?


Rainer Jung wrote:
So are you saying, that th request goes through httpd/mod_proxy or 
mod_jk? If so, you should first test with direct request, so that we 
know, where we have to look for the problem.


With mod_jk there were a couple of encoding changes and the latest 
versions without a forwarding JkOption I think decodes the semicolon 
before forwarding, because the AJP connector does not decode before 
looking for the jsessionid.


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]





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



tomcat5.5 error

2008-04-10 Thread Urooj Khan
hi everyone...

i have an application which was running perfectly on tomcat 5.0 and now i
just deployed it on tomcat 5.5
and i'm getting the following error


Apr 9, 2008 3:42:43 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:


Stacktrace:
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)



also... before i used to be able to access my application as follows:
http://domain.com/AppContext

now i have to do this
http://domain.com/AppContext/welcome.jsp

whereas in my web.xml i have


welcome.jsp


thanks in advance

-- 
Urooj Khan


Re: Can Tomcat set its pid in a file?

2008-04-10 Thread fredk2


Interestingly I cannot use jsvc. We are using a Java 5 jvm option -javaagent
which is not supported by jsvc.  I was looking at jws which does a little
bit more (although missing the cool -user option), but that seems to have
become a commercial venture.

Fred


David Smith-2 wrote:
> 
> You could use jsvc instead of the shell scripts.
> 
> --David
> 
> fredk2 wrote:
> 
>>Hi,
>>
>>Currently the pid file is set when you run catalina.sh (unix/linux)
>>
>>  if [ ! -z "$CATALINA_PID" ]; then
>>echo $! > $CATALINA_PID
>>  fi
>>
>>In some situation (when using sudo, su, catalina.out piped to a log
rotation
>>program) it is harder and possibly prone to error to get the right pid -
$!
>>might not be the pid of the JVM.
>>
>>Apache httpd sets the pid file and cleans it up  Is there a simple
>>way/sample to have Tomcat set the pid file during its bootstrap and not
the
>>startup shell script ? 
>>
>>Rgds
>>Fred
>>  
>>
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Can-Tomcat-set-its-pid-in-a-file--tp16610493p16616237.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: Tomcat Manager page won't load

2008-04-10 Thread David Smith
That's a question for your logs.  If the logs don't help, is there a 
core dump hanging around indicating the JVM crashed?


--David

Gary Opela (Corporate) wrote:


Update on this:

I uninstalled tomcat, and remedy (mid-tier), rebooted. Next, I installed tomcat 
5.5 from the apache.org download.

Tested, and tomcat worked great!

Then, I re-installed remedy (mid-tier/web-tier) and now tomcat stopped working. 
By stopped working, I meant my manager page won't load again.

What would installing a web application do that would break tomcat?


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 1:15 PM

To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Localhost:80 works, localhost:8080 does not.

Awesome page: http://neosmart.net/blog/2006/configuring-jsp-for-iis/
I followed advice there, and of course, had to alter some stuff to update the 
paths in the conf files, but still no luck.

I am not using neosmart, I'm using a 3rd party application called Remedy. 
Remedy had a workers.properties.minimal file, so I edited the 
isapie_redirect.properties file to reference the workers.properties.minimal 
file instead of the workers.properties file. I also had to edit some lines to 
point to the home path of my jvm.dll, which for some reason is:

C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector instead of 
C:\Program Files\Apache Software Foundation\Tomcat-5.5.17


I did go in and change everything over to reference C:\Program Files\Apache 
Software Foundation\Tomcat-5.5.17, but it still didn't work.

I am now going to un-install Tomcat, then re-install it from the download from 
apache's site, instead of letting the 3rd party application install it.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 11:49 AM

To: Tomcat Users List
Subject: Re: Tomcat Manager page won't load

Hi Gary-

so if port 80 is ok in other words
http://localhost:80 Browser shows ok
and none of the other configurations work you might have a misconfiguration
with workers.properties

Start here for configuring Tomcat redirect capability with IIS Webserver
http://neosmart.net/blog/2006/configuring-jsp-for-iis/

Then finetune the connector capability via Tomcats workers.properties with
this article
http://tomcat.apache.org/connectors-doc/reference/iis.html

Mladen Turk's article is a good primer on when to use LoadBalancer to
overcome IIS built-in connection restrictions
http://people.apache.org/~mturk/docs/article/ftwai.html

HTH
Martin-
- Original Message -
From: "Gary Opela (Corporate)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, April 10, 2008 11:37 AM
Subject: RE: Tomcat Manager page won't load


Is there a way to change it after install? I had no control over the
install, as my 3rd party application installed it for me.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 10:28 AM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Did you put your connector on port 80?

By default it is on port 8080 so the correct address would be
http://localhost:8080

-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 10 de Abril de 2008 16:20
To: users@tomcat.apache.org
Subject: Tomcat Manager page won't load

Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

   C:\Program Files\Java\jre1.6.0_05

   C:\Program Files\Java\jdk1.6.0_05



Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"



I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the
jsp pages will load or anything.



I'm not really sure where to start at, but I've looked several places on
the internet. I set a JAVA_HOME = C:\Program Files\Java\jre1.6.0_05  and
a CATALINA_HOME = C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17.



Also, in IIS, I right-click on Default Web Pages, 

RE: Tomcat Manager page won't load

2008-04-10 Thread Gary Opela (Corporate)
Correction: It is working. The tomcat service was set to manual, so whenever I 
rebooted, it didn't come back up.




Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 1:50 PM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Update on this:

I uninstalled tomcat, and remedy (mid-tier), rebooted. Next, I installed tomcat 
5.5 from the apache.org download.

Tested, and tomcat worked great!

Then, I re-installed remedy (mid-tier/web-tier) and now tomcat stopped working. 
By stopped working, I meant my manager page won't load again.

What would installing a web application do that would break tomcat?


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 1:15 PM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Localhost:80 works, localhost:8080 does not.

Awesome page: http://neosmart.net/blog/2006/configuring-jsp-for-iis/
I followed advice there, and of course, had to alter some stuff to update the 
paths in the conf files, but still no luck.

I am not using neosmart, I'm using a 3rd party application called Remedy. 
Remedy had a workers.properties.minimal file, so I edited the 
isapie_redirect.properties file to reference the workers.properties.minimal 
file instead of the workers.properties file. I also had to edit some lines to 
point to the home path of my jvm.dll, which for some reason is:

C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector instead of 
C:\Program Files\Apache Software Foundation\Tomcat-5.5.17


I did go in and change everything over to reference C:\Program Files\Apache 
Software Foundation\Tomcat-5.5.17, but it still didn't work.

I am now going to un-install Tomcat, then re-install it from the download from 
apache's site, instead of letting the 3rd party application install it.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 11:49 AM
To: Tomcat Users List
Subject: Re: Tomcat Manager page won't load

Hi Gary-

so if port 80 is ok in other words
http://localhost:80 Browser shows ok
and none of the other configurations work you might have a misconfiguration
with workers.properties

Start here for configuring Tomcat redirect capability with IIS Webserver
http://neosmart.net/blog/2006/configuring-jsp-for-iis/

Then finetune the connector capability via Tomcats workers.properties with
this article
http://tomcat.apache.org/connectors-doc/reference/iis.html

Mladen Turk's article is a good primer on when to use LoadBalancer to
overcome IIS built-in connection restrictions
http://people.apache.org/~mturk/docs/article/ftwai.html

HTH
Martin-
- Original Message -
From: "Gary Opela (Corporate)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, April 10, 2008 11:37 AM
Subject: RE: Tomcat Manager page won't load


Is there a way to change it after install? I had no control over the
install, as my 3rd party application installed it for me.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 10:28 AM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Did you put your connector on port 80?

By default it is on port 8080 so the correct address would be
http://localhost:8080

-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 10 de Abril de 2008 16:20
To: users@tomcat.apache.org
Subject: Tomcat Manager page won't load

Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

C:\Program Files\Java\jre1.6.0_05

C:\Program Files\Java\jdk1.6.0_05



Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"



I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the

RE: Tomcat Manager page won't load

2008-04-10 Thread Gary Opela (Corporate)
Update on this:

I uninstalled tomcat, and remedy (mid-tier), rebooted. Next, I installed tomcat 
5.5 from the apache.org download.

Tested, and tomcat worked great!

Then, I re-installed remedy (mid-tier/web-tier) and now tomcat stopped working. 
By stopped working, I meant my manager page won't load again.

What would installing a web application do that would break tomcat?


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 1:15 PM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Localhost:80 works, localhost:8080 does not.

Awesome page: http://neosmart.net/blog/2006/configuring-jsp-for-iis/
I followed advice there, and of course, had to alter some stuff to update the 
paths in the conf files, but still no luck.

I am not using neosmart, I'm using a 3rd party application called Remedy. 
Remedy had a workers.properties.minimal file, so I edited the 
isapie_redirect.properties file to reference the workers.properties.minimal 
file instead of the workers.properties file. I also had to edit some lines to 
point to the home path of my jvm.dll, which for some reason is:

C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector instead of 
C:\Program Files\Apache Software Foundation\Tomcat-5.5.17


I did go in and change everything over to reference C:\Program Files\Apache 
Software Foundation\Tomcat-5.5.17, but it still didn't work.

I am now going to un-install Tomcat, then re-install it from the download from 
apache's site, instead of letting the 3rd party application install it.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 11:49 AM
To: Tomcat Users List
Subject: Re: Tomcat Manager page won't load

Hi Gary-

so if port 80 is ok in other words
http://localhost:80 Browser shows ok
and none of the other configurations work you might have a misconfiguration
with workers.properties

Start here for configuring Tomcat redirect capability with IIS Webserver
http://neosmart.net/blog/2006/configuring-jsp-for-iis/

Then finetune the connector capability via Tomcats workers.properties with
this article
http://tomcat.apache.org/connectors-doc/reference/iis.html

Mladen Turk's article is a good primer on when to use LoadBalancer to
overcome IIS built-in connection restrictions
http://people.apache.org/~mturk/docs/article/ftwai.html

HTH
Martin-
- Original Message -
From: "Gary Opela (Corporate)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, April 10, 2008 11:37 AM
Subject: RE: Tomcat Manager page won't load


Is there a way to change it after install? I had no control over the
install, as my 3rd party application installed it for me.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 10:28 AM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Did you put your connector on port 80?

By default it is on port 8080 so the correct address would be
http://localhost:8080

-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 10 de Abril de 2008 16:20
To: users@tomcat.apache.org
Subject: Tomcat Manager page won't load

Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

C:\Program Files\Java\jre1.6.0_05

C:\Program Files\Java\jdk1.6.0_05



Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"



I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the
jsp pages will load or anything.



I'm not really sure where to start at, but I've looked several places on
the internet. I set a JAVA_HOME = C:\Program Files\Java\jre1.6.0_05  and
a CATALINA_HOME = C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17.



Also, in IIS, I right-click on Default Web Pages, on the ISAPI filters
tab, there is an entry for Jakarta and C:\Program Files\Apache Software
Foundation\Jakarta Isapi Redirector\bin\isapi_redirect.dll.



Can anyone

Re: %3B in path-info

2008-04-10 Thread Rainer Jung

Jess Holle schrieb:
We have some servlets that take rather general path-info's.  When these 
include a /properly escaped /semicolon, invoking getPathInfo() in Tomcat 
results in a truncated path info.


Is this a known bug?

For example, one might have the request

   
http://myhost/mywebapp/servlet/myservlet*/pathcomp1/pathcomp2/foo%3Bbar*?spaz=bot 



The expected result of getPathInfo() is

   /pathcomp1/pathcomp2/foo%3Bbar

The actual result in Tomcat is:

   */pathcomp1/pathcomp2/foo
   *

Note that the %3B is already converted into a ";" character in the 
results of getRequestURI()...


This certainly would appear to be a bug in /something/.  Or is this a 
bug or misconfiguration in mod_proxy_ajp or some such?


So are you saying, that th request goes through httpd/mod_proxy or 
mod_jk? If so, you should first test with direct request, so that we 
know, where we have to look for the problem.


With mod_jk there were a couple of encoding changes and the latest 
versions without a forwarding JkOption I think decodes the semicolon 
before forwarding, because the AJP connector does not decode before 
looking for the jsessionid.


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: Tomcat has stopped working

2008-04-10 Thread David Crow
"Mark H. Wood" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> "iSeriesNavigator" sounds like some application that came with your IBM 
> i-Series hardware.

iSeriesNavigator is an IBM product.  I'm not sure how it all works.  We 
define tasks (e.g., schjob) that go in one of their XML files, and when that 
task is present in the URL, our code gets executed.  I handle everything 
downstream from that.  It's the getting-it-all-hooked-up part that I'm 
clueless about.

- DC 




-
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 Manager page won't load

2008-04-10 Thread Gary Opela (Corporate)
Localhost:80 works, localhost:8080 does not.

Awesome page: http://neosmart.net/blog/2006/configuring-jsp-for-iis/
I followed advice there, and of course, had to alter some stuff to update the 
paths in the conf files, but still no luck.

I am not using neosmart, I'm using a 3rd party application called Remedy. 
Remedy had a workers.properties.minimal file, so I edited the 
isapie_redirect.properties file to reference the workers.properties.minimal 
file instead of the workers.properties file. I also had to edit some lines to 
point to the home path of my jvm.dll, which for some reason is:

C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector instead of 
C:\Program Files\Apache Software Foundation\Tomcat-5.5.17


I did go in and change everything over to reference C:\Program Files\Apache 
Software Foundation\Tomcat-5.5.17, but it still didn't work.

I am now going to un-install Tomcat, then re-install it from the download from 
apache's site, instead of letting the 3rd party application install it.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 11:49 AM
To: Tomcat Users List
Subject: Re: Tomcat Manager page won't load

Hi Gary-

so if port 80 is ok in other words
http://localhost:80 Browser shows ok
and none of the other configurations work you might have a misconfiguration
with workers.properties

Start here for configuring Tomcat redirect capability with IIS Webserver
http://neosmart.net/blog/2006/configuring-jsp-for-iis/

Then finetune the connector capability via Tomcats workers.properties with
this article
http://tomcat.apache.org/connectors-doc/reference/iis.html

Mladen Turk's article is a good primer on when to use LoadBalancer to
overcome IIS built-in connection restrictions
http://people.apache.org/~mturk/docs/article/ftwai.html

HTH
Martin-
- Original Message -
From: "Gary Opela (Corporate)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, April 10, 2008 11:37 AM
Subject: RE: Tomcat Manager page won't load


Is there a way to change it after install? I had no control over the
install, as my 3rd party application installed it for me.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 10:28 AM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Did you put your connector on port 80?

By default it is on port 8080 so the correct address would be
http://localhost:8080

-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 10 de Abril de 2008 16:20
To: users@tomcat.apache.org
Subject: Tomcat Manager page won't load

Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

C:\Program Files\Java\jre1.6.0_05

C:\Program Files\Java\jdk1.6.0_05



Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"



I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the
jsp pages will load or anything.



I'm not really sure where to start at, but I've looked several places on
the internet. I set a JAVA_HOME = C:\Program Files\Java\jre1.6.0_05  and
a CATALINA_HOME = C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17.



Also, in IIS, I right-click on Default Web Pages, on the ISAPI filters
tab, there is an entry for Jakarta and C:\Program Files\Apache Software
Foundation\Jakarta Isapi Redirector\bin\isapi_redirect.dll.



Can anyone think of anything I'm missing? None of my webpages will load,
except for HTTP://localhost, which loads a Default.htm file.







Thanks,



Gary Opela, Jr., RSP

Remedy Engineer

Leader Communications, Inc.

Best Product, Best People, Best PriceTM

An ISO 9001:2000 Certified, CMMI(r) Level 3 Rated Company




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

Re: Can Tomcat set its pid in a file?

2008-04-10 Thread David Smith

You could use jsvc instead of the shell scripts.

--David

fredk2 wrote:


Hi,

Currently the pid file is set when you run catalina.sh (unix/linux)

 if [ ! -z "$CATALINA_PID" ]; then
   echo $! > $CATALINA_PID
 fi

In some situation (when using sudo, su, catalina.out piped to a log rotation
program) it is harder and possibly prone to error to get the right pid - $!
might not be the pid of the JVM.

Apache httpd sets the pid file and cleans it up  Is there a simple
way/sample to have Tomcat set the pid file during its bootstrap and not the
startup shell script ? 


Rgds
Fred
 




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



Can Tomcat set its pid in a file?

2008-04-10 Thread fredk2

Hi,

Currently the pid file is set when you run catalina.sh (unix/linux)

  if [ ! -z "$CATALINA_PID" ]; then
echo $! > $CATALINA_PID
  fi

In some situation (when using sudo, su, catalina.out piped to a log rotation
program) it is harder and possibly prone to error to get the right pid - $!
might not be the pid of the JVM.

Apache httpd sets the pid file and cleans it up  Is there a simple
way/sample to have Tomcat set the pid file during its bootstrap and not the
startup shell script ? 

Rgds
Fred
-- 
View this message in context: 
http://www.nabble.com/Can-Tomcat-set-its-pid-in-a-file--tp16610493p16610493.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: Tomcat Manager page won't load

2008-04-10 Thread Martin Gainty
Hi Gary-

so if port 80 is ok in other words
http://localhost:80 Browser shows ok
and none of the other configurations work you might have a misconfiguration
with workers.properties

Start here for configuring Tomcat redirect capability with IIS Webserver
http://neosmart.net/blog/2006/configuring-jsp-for-iis/

Then finetune the connector capability via Tomcats workers.properties with
this article
http://tomcat.apache.org/connectors-doc/reference/iis.html

Mladen Turk's article is a good primer on when to use LoadBalancer to
overcome IIS built-in connection restrictions
http://people.apache.org/~mturk/docs/article/ftwai.html

HTH
Martin-
- Original Message -
From: "Gary Opela (Corporate)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, April 10, 2008 11:37 AM
Subject: RE: Tomcat Manager page won't load


Is there a way to change it after install? I had no control over the
install, as my 3rd party application installed it for me.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 10:28 AM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Did you put your connector on port 80?

By default it is on port 8080 so the correct address would be
http://localhost:8080

-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 10 de Abril de 2008 16:20
To: users@tomcat.apache.org
Subject: Tomcat Manager page won't load

Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

C:\Program Files\Java\jre1.6.0_05

C:\Program Files\Java\jdk1.6.0_05



Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"



I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the
jsp pages will load or anything.



I'm not really sure where to start at, but I've looked several places on
the internet. I set a JAVA_HOME = C:\Program Files\Java\jre1.6.0_05  and
a CATALINA_HOME = C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17.



Also, in IIS, I right-click on Default Web Pages, on the ISAPI filters
tab, there is an entry for Jakarta and C:\Program Files\Apache Software
Foundation\Jakarta Isapi Redirector\bin\isapi_redirect.dll.



Can anyone think of anything I'm missing? None of my webpages will load,
except for HTTP://localhost, which loads a Default.htm file.







Thanks,



Gary Opela, Jr., RSP

Remedy Engineer

Leader Communications, Inc.

Best Product, Best People, Best PriceTM

An ISO 9001:2000 Certified, CMMI(r) Level 3 Rated Company




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



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



%3B in path-info

2008-04-10 Thread Jess Holle
We have some servlets that take rather general path-info's.  When these 
include a /properly escaped /semicolon, invoking getPathInfo() in Tomcat 
results in a truncated path info.


Is this a known bug?

For example, one might have the request

   
http://myhost/mywebapp/servlet/myservlet*/pathcomp1/pathcomp2/foo%3Bbar*?spaz=bot

The expected result of getPathInfo() is

   /pathcomp1/pathcomp2/foo%3Bbar

The actual result in Tomcat is:

   */pathcomp1/pathcomp2/foo
   *

Note that the %3B is already converted into a ";" character in the 
results of getRequestURI()...


This certainly would appear to be a bug in /something/.  Or is this a 
bug or misconfiguration in mod_proxy_ajp or some such?


--
Jess Holle



Re: Tomcat not recompiling new jsp in development mode

2008-04-10 Thread David Smith
Next time, take a look at the timestamp on the files in 
work/catalina/localhost/* and compare them to the timestamp on the 
jsps.  I'll bet your transfer client is setting the timestamp on your 
jsps and the local machine's time isn't in sync with the remote 
server's.  When the remote server compiles the jsp, the timestamp on the 
resulting .java and .class files are set to the remote server's system time.


--David

Mohamed King wrote:


Guys,

Any idea why a new version of my jsp is not compiled and changes shown.
Tomcat is running in development mode and the time on the new jsp is later
than the previous. I manually have to delete the
tomcat_home/work/catalina/localhost directory and restart for changes to
go into effect. It is my understanding I should not have to do this if
tomcat is running in development mode. What am I doing wrong.


Thank you,
Mohamed King
eApps Hosting





-
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 passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jed,

Jed wrote:
| As a test, I've put "helloworld.xml" and its associated xsl file in
| docroot and set-up a matcher so that and request for /*.jhtml
| effectively loads and transforms that file. This works fine. However,
| if I then make a subdirectory of docroot and place the same xml/xsl
| there and set-up a matcher for that, absolutely nothing happens.
| Instead I just get a Tomcat 404 page.

Note that '*' does not match '/' for Cocoon's matchers. If you want to
match "anything including '/'", you need to use:



- -chris

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

iEYEARECAAYFAkf+NQYACgkQ9CaO5/Lv0PBgOACdG44swF6n62EBFxV26lWgJ1EV
kpQAnjszvWbnarNade7w/5/NFyYGPyDZ
=Lj7y
-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]



Tomcat not recompiling new jsp in development mode

2008-04-10 Thread Mohamed King
Guys,

Any idea why a new version of my jsp is not compiled and changes shown.
Tomcat is running in development mode and the time on the new jsp is later
than the previous. I manually have to delete the
tomcat_home/work/catalina/localhost directory and restart for changes to
go into effect. It is my understanding I should not have to do this if
tomcat is running in development mode. What am I doing wrong.


Thank you,
Mohamed King
eApps Hosting





-
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 Manager page won't load

2008-04-10 Thread Gary Opela (Corporate)
Is there a way to change it after install? I had no control over the install, 
as my 3rd party application installed it for me.


Thanks,

Gary Opela, Jr., RSP
Remedy Engineer
Leader Communications, Inc.
Best Product, Best People, Best PriceTM
An ISO 9001:2000 Certified, CMMI® Level 3 Rated Company


-Original Message-
From: Nuno Manuel Martins [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 10, 2008 10:28 AM
To: Tomcat Users List
Subject: RE: Tomcat Manager page won't load

Did you put your connector on port 80?

By default it is on port 8080 so the correct address would be 
http://localhost:8080

-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 10 de Abril de 2008 16:20
To: users@tomcat.apache.org
Subject: Tomcat Manager page won't load

Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

C:\Program Files\Java\jre1.6.0_05

C:\Program Files\Java\jdk1.6.0_05



Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"



I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the
jsp pages will load or anything.



I'm not really sure where to start at, but I've looked several places on
the internet. I set a JAVA_HOME = C:\Program Files\Java\jre1.6.0_05  and
a CATALINA_HOME = C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17.



Also, in IIS, I right-click on Default Web Pages, on the ISAPI filters
tab, there is an entry for Jakarta and C:\Program Files\Apache Software
Foundation\Jakarta Isapi Redirector\bin\isapi_redirect.dll.



Can anyone think of anything I'm missing? None of my webpages will load,
except for HTTP://localhost, which loads a Default.htm file.







Thanks,



Gary Opela, Jr., RSP

Remedy Engineer

Leader Communications, Inc.

Best Product, Best People, Best PriceTM

An ISO 9001:2000 Certified, CMMI(r) Level 3 Rated Company




-
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 Manager page won't load

2008-04-10 Thread Nuno Manuel Martins
Did you put your connector on port 80?

By default it is on port 8080 so the correct address would be 
http://localhost:8080

-Original Message-
From: Gary Opela (Corporate) [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 10 de Abril de 2008 16:20
To: users@tomcat.apache.org
Subject: Tomcat Manager page won't load

Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

C:\Program Files\Java\jre1.6.0_05

C:\Program Files\Java\jdk1.6.0_05



Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"



I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the
jsp pages will load or anything.



I'm not really sure where to start at, but I've looked several places on
the internet. I set a JAVA_HOME = C:\Program Files\Java\jre1.6.0_05  and
a CATALINA_HOME = C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17.



Also, in IIS, I right-click on Default Web Pages, on the ISAPI filters
tab, there is an entry for Jakarta and C:\Program Files\Apache Software
Foundation\Jakarta Isapi Redirector\bin\isapi_redirect.dll.



Can anyone think of anything I'm missing? None of my webpages will load,
except for HTTP://localhost, which loads a Default.htm file.







Thanks,



Gary Opela, Jr., RSP

Remedy Engineer

Leader Communications, Inc.

Best Product, Best People, Best PriceTM

An ISO 9001:2000 Certified, CMMI(r) Level 3 Rated Company




-
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 Manager page won't load

2008-04-10 Thread Gary Opela (Corporate)
Environment:

Windows Server 2k3 R2 EE

Apache Tomcat 5.5.17 installed in: C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17

Microsoft IIS 6.0

IE 6.0.X.X SP2

Java:

C:\Program Files\Java\jre1.6.0_05

C:\Program Files\Java\jdk1.6.0_05

 

Whenever I go to Start -> All Programs -> Apache 5.5, none of the
webpages under that folder will load. I just get "The Page Cannot be
Displayed" error message in the window, with the title bar saying "
"Cannot Find Server - Microsoft Internet Explorer"

 

I have a 3rd party application that uses IIS6 and Tomcat 5.5 (which it
installs Tomcat during the installation of the 3rd party product) to
serve up its website built on jsp pages. Nothing will work. None of the
jsp pages will load or anything.

 

I'm not really sure where to start at, but I've looked several places on
the internet. I set a JAVA_HOME = C:\Program Files\Java\jre1.6.0_05  and
a CATALINA_HOME = C:\Program Files\Apache Software
Foundation\Tomcat-5.5.17.

 

Also, in IIS, I right-click on Default Web Pages, on the ISAPI filters
tab, there is an entry for Jakarta and C:\Program Files\Apache Software
Foundation\Jakarta Isapi Redirector\bin\isapi_redirect.dll.

 

Can anyone think of anything I'm missing? None of my webpages will load,
except for HTTP://localhost, which loads a Default.htm file.

 

 

 

Thanks,

 

Gary Opela, Jr., RSP

Remedy Engineer

Leader Communications, Inc.

Best Product, Best People, Best PriceTM

An ISO 9001:2000 Certified, CMMI(r) Level 3 Rated Company

 



Re: NIO connector source code

2008-04-10 Thread Filip Hanik - Dev Lists

it's in the "java" directory of the zip file

Filip

neil davudo wrote:

Where?

I downloaded the entire Tomcat source code. Can you point me to the
directories?

TIA
Neil


markt-2 wrote:
  

neil davudo wrote:


Where can I find the source code for the NIO connector that uses the
CometProcessor?
  

http://tomcat.apache.org

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: JNDIRealm - how to display login exceptions/error msg within form-error-page when using Form based authentication?

2008-04-10 Thread Propes, Barry L
yeah, Dave, will do.

-Original Message-
From: david.melia [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 10, 2008 3:59 AM
To: users@tomcat.apache.org
Subject: RE: JNDIRealm - how to display login exceptions/error msg
within form-error-page when using Form based authentication?



Hi,

regarding the error-page idea i have tried this and this does not work but
thinking about it, for form based authentication you have to define a
mandatory error page anyway so this would have precendence over any error
page defined else where.  A login failure always flows back to the page
defined in form-error-page leaving me with the same issue of not being able
to get a handle on the error.

Also, i have checked out the JNDIRealm source code and it only seems to log
any exception but not throw it back (seems to pass a null Principal back to
the calling code to signify you could not log on).  If this is the case we
cannot get a handle on the error.

Any other ideas?

Barry, could you post your idea please?

Thanks


Propes, Barry L wrote:
> 
> even for my antiquated version, Chuck? 4.1.36?
> 
> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 09, 2008 11:17 AM
> To: Tomcat Users List
> Subject: RE: JNDIRealm - how to display login exceptions/error msg
> within form-error-page when using Form based authentication?
> 
> 
>> From: Propes, Barry L [mailto:[EMAIL PROTECTED] 
>> Subject: RE: JNDIRealm - how to display login 
>> exceptions/error msg within form-error-page when using Form 
>> based authentication?
>> 
>> I believe you can only set one standard error page in the XML 
>> file, if I'm not mistaken, at least of the specific web app itself.
> 
> No, you can have a separate error page for each status or exception
> value in each webapp.  See section 9.9 of the servlet spec.
> 
>> But one thing I did was flag for a specific exception to be 
>> caught, and if this matched, ran an out.println series of 
>> statements to the browser indicating to the users the problem.
> 
> That's the appropriate thing to do, using  and
>  declarations in WEB-INF/web.xml of the webapp.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RE%3A-JNDIRealm---how-to-display-login-exceptions-error-msg-within-form-error-page-when-using-Form-based-authentication--tp16591326p16605549.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]


-
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: Changing the Webapps directory

2008-04-10 Thread Mark H. Wood
Consider also that, depending on your Windows version and perhaps
other factors, your service may have *no network credentials* and be
unable to map drives.  Recent versions (sorry, I have been away from
Windows for a while) added several system accounts specifically for
the use of services that need access to remote resources.  On older
versions you'd need to create or select a domain account, grant it
sufficient rights and privileges on the host, and use that account to
run your service.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



pgpynPxwoUBJK.pgp
Description: PGP signature


Re: jsvc creates pid file owned by root

2008-04-10 Thread Mark H. Wood
Do you *really* want that file to be world-writable?  Why not 644?

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



pgp8EEJOzvw1S.pgp
Description: PGP signature


Re: jsvc creates pid file owned by root

2008-04-10 Thread fredk2

Hi,

can you set the umask before you run jsvc ?

Rgds
Fred


Gunnar Boström wrote:
> 
> Hi,
> 
> I can start and stop Tomcat 5.5 with the jsvc program but the problem is
> that the pid file is created with permissions 600 and owned by root.
> I want to be able to read the pid file to check if the Tomcat process is
> up and running 
> and also for other purposes.
> 
> Is it possible to make the pid file be owned by the user that runs Tomcat
> or have the permissions to be set to 666?
> 
> Regards
> Gunnar
> 
> 

-- 
View this message in context: 
http://www.nabble.com/jsvc-creates-pid-file-owned-by-root-tp16606528p16608805.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: Servlet Concurrency problem

2008-04-10 Thread davilovick

This is solution of my problem, thanks =)

David Smith-2 wrote:
> 
> I'm guessing these requests are from the same browser.  The browser 
> limits the number of connections it makes to the server to 2.  If you 
> really need more, google for hacks to the browser to allow more.
> 
> --David
> 
> davilovick wrote:
>> Hi, we are trying to develop a servlet, but ive encountered some problems
>> with the concurrency. 
>> The problem is that only 2 HttpRequest is dispatched at the same time.
>>
>> the doPost body is the following:
>>
>> 
>> protected void doGet(HttpServletRequest request, HttpServletResponse
>> response) 
>> {
>>   System.out.println("START");
>>   try { Thread.sleep(5000); } catch (InterruptedException e)
>> {e.printStackTrace();}
>>
>>   response.getWriter().write("Hello World!!");
>>
>>   System.out.println("END");
>> }
>> 
>>
>> The request is waiting for 5 seconds, and later, return "Hello World!"
>>
>> In our tests, when i launch 4 request, only 2 is running at the same
>> time,
>> and when the first finiched, the third request is proccesed..
>>
>> ¿How can I solv this problem?
>>
>> PD: Sorry, im Spanish, and my English is not well.
>>   
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Servlet-Concurrency-problem-tp16583003p16608784.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: Connection pooling again

2008-04-10 Thread Alan Chaney
Hmm. I think the answer here is one of resource starvation - the 
resource in this case being the CPU. It seems that  core of your test is


'Select * from table1'

Where is the database? Is it another application on the same box? What 
mechanism do you use to connect between the database and the app? (a 
pipe? tcp?) How big is 'table1'? How long does that select statement 
take? Why should anything else happen in the system until that select 
has finished?


Here's a guess. Look at a resource monitor and you will see that when 
you start your test the CPU goes to 100% and stays there.



I suspect that this is a case that you are queuing on processing the 
select statement in the database.


From a systems point of view the Java JVM on windows and linux is a 
*cooperative* multithreaded system. Connection pooling has nothing to do 
with concurrency. Its as someone said earlier a performance optimization 
to avoid the overhead of recreating the datasource each time you need it.


It you want to write a test which shows the connection pool being used 
CONCURRENTLY then you must write a concurrent test! For example, open 
the connection, sleep for a while, do something, sleep again and do 
something else and then close the connection. Turn on logging for the 
pool and watch concurrent requests being processed.


Alan Chaney



[EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daad,

[EMAIL PROTECTED] wrote:
| No, my test is done with threads that connect using sockets. Server
| listen with ServerSocket and 30 Threads are started connecting to it.

Er... did you write your own server, or are you using Tomcat?



I'm using tomcat.


I'm sorry... all the evidence you have presented does not support your
conclusions. There are other ways to get a log file looking like the one
you posted.

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

iEYEARECAAYFAkf9PnsACgkQ9CaO5/Lv0PBAPACfR8qL7tD33mFTWCdY99D6p8ic
shoAn3v0C49JvF2muOefUF5Q+QbBhVdD
=kLLa
-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]





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



!DSPAM:47fddbcd240221497319589!



-
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: JNDIRealm - how to display login exceptions/error msg within form-error-page when using Form based authentication?

2008-04-10 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David,

david.melia wrote:
| Also, i have checked out the JNDIRealm source code and it only seems
to log
| any exception but not throw it back (seems to pass a null Principal
back to
| the calling code to signify you could not log on).  If this is the case we
| cannot get a handle on the error.

Yup.

| Any other ideas?

You could try securityfilter (http://securityfilter.sourceforge.net),
which also has realms, but it's much more natural to write your own
Realm for securityfilter, since it's a stable interface. With your
realm, you can do anything you want ;)

Hope that helps,
- -chris

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

iEYEARECAAYFAkf+F9oACgkQ9CaO5/Lv0PAy7QCeJNV24feMtzs2hICgayOEDGXO
51oAn2jEGGK2EJ2mA50JScSLm4vFM5nc
=cBCK
-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: Mod_JK on OSX server 10.5

2008-04-10 Thread Rainer Jung

CommonGround Softworks/Phil McNamara schrieb:

Hi Folks,
Wondered if someone could help me with ideas on this?

Have a configuration where a separate tomcat instance is installed (So 
apple can't break it :)). Apple's copy of tomcat provided with the 
machine in not running. The new Tomcat (5.5.7) plays fine on port 8080. 
i.e.


As mentioned by others: 5.5.7 is *very old*.


http://localhost:8080/index.jsp

We want to  move to using apache 2.2 with mod_jk to hand off URI's 
appropriately to tomcat.   
Have worked through the material in

http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html

The mod_jk apache module provided with Apple's 10.5 server is enabled.

Added listener to the engine element of server.xml

modJK="/usr/libexec/apache2/mod_jk.so" />


Once you have your final configuration, this isn't needed any more. It's 
only used to produce a simple basic mod_jk configuration. Tomcat doesn't 
use the file by itself, instead the generated file needs to be put into 
the httpd configuration. The generated file is only a very simple default.



The default workers properties file was looked over and edited

I tweaked the default workers.properties.  Here is some of the file 
content:


# Normaly all you will need to do is un-comment and modify the first three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list 
property.

#
#


These are only comments.


I did this:


workers.tomcat_home=/Applications/Qilan\ 3/Tomcat_Qilan 
#note below is the symlink recommended by Apple in technical QA1170 pgm 
workers.java_home=/Library/Java/Home


Those two don't do anything useful any more. The auto-generation is very 
outdated, it produces several non-functional configuration lines 
(although they don't technically harm)




but it was not clear to me what should be changed on worker.list.  Left 
as is, to wit


#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
#
# Add 'inprocess' if you want JNI connector 
worker.list=ajp12, ajp13


The worker.list contains a comma-separated list of your worker names. 
Worker names can be freely chosen (no special chars allowed). I would 
suggest for a simple configuration remove "ajp12" and keep "ajp13".


If your worker is not defined in workers.properties (lines of the form 
worker.ajp13.XXX=YYY), then it defaults to localhost port 8009 and 
protocol ajp13. This might be fine in your case, but I would suggest to 
do an explicit definition of the worker.



# , inprocess

---


Added listener to the engine element of server.xml
modJK="/usr/libexec/apache2/mod_jk.so" />


Once again?


Restarted Tomcat and mod_jk.conf was generated along with the auto
directory and so on. 


And so on?
What are the contents of the mod_jk.conf???

Got the Include in Apache 2.2 httpd.conf pointing to mod_jk.conf squared 
away enough so that Apache starts OK. The include originally errored 
apache when I tried to backslash to escape the space between Qilan and 3. 
 The below seems to work without an error


Include "/Applications/Qilan 3/Tomcat_Qilan/conf/auto/mod_jk.conf"


Yes, path with spaces ...


The mod_jk apache module provided with 10.5 server is enabled.


Which version of mod_jk?

I port scanned the machine to check that there is a response from port 
8009.
This would appear to indicate that the ajp13 worker is playing correctly 
as defined in workers properties.


I just can't seem to get the handoff to happen for URI's that should 
parse out to be  
handed to tomcat. 
 All the other tutorial info I have located seems way too dated.


Specifically what I see when I test http://localhost/index.jsp:

Forbidden
You don't have permission to access /index.jsp on this server.
Additionally, a 403 Forbidden error was encountered while trying to use 
an ErrorDocument to handle the request.


Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7l PHP/5.2.5 mod_jk/1.2.23 
Server at localhost Port 80


Aha, so it's mod_jk 1.2.23.


I do see one console error when I start Apache:

4/8/08 10:35:36 PM org.apache.httpd[84287] [Tue Apr 08 22:35:36 2008] 
[warn] VirtualHost localhost:0 overlaps with VirtualHost localhost:0, the 
first has precedence, perhaps you need a NameVirtualHost directive


I keep thinking my httpd.conf include is not working properly, but I ran 
out of ideas on how to modify it without an Apache error.


Would appreciate any thoughts...


RE: JVM heap size error while using ibatis on Tomcat 6x

2008-04-10 Thread Caldarale, Charles R
> From: Praful Sinha [mailto:[EMAIL PROTECTED] 
> Subject: JVM heap size error while using ibatis on Tomcat 6x
> 
> I am getting JVM heap size error when I refresh my application through
> browser around 25 to 30 time it call the servlet to retrieve data from
> database using ibatis.

Read the FAQ and fix the memory leak in your webapp.
http://wiki.apache.org/tomcat/FAQ/Memory

 - Chuck


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

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



RE: [SOLVED] tomcat not able to connect to postgresql?

2008-04-10 Thread Caldarale, Charles R
> From: Dan Eriksson [mailto:[EMAIL PROTECTED] 
> Subject: [SOLVED] tomcat not able to connect to postgresql?
> 
>unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> 

You may have fixed your DB access issue, but the above config contains a
serious problem that will likely bite you in the future.  A docBase
attribute (explicit or implicit) must never be empty; in your case it's
the same as the  appBase, which creates serious internal grief for
Tomcat.  The proper setting would be appBase="webapps" and
docBase="myapp".

The above also places the  element in server.xml, which has
been strongly discouraged for several years, and shouldn't be used by
any current implementation.  Since you apparently want this webapp to be
the default one, it should be located in webapps/ROOT, not
webapps/myapp, and the  element should be in
webapps/ROOT/META-INF/context.xml, without the path and docBase
attributes.

 - Chuck


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

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



RE: jsvc creates pid file owned by root

2008-04-10 Thread Peter Crowther
[Mid-post - sorry!]

> From: David Smith [mailto:[EMAIL PROTECTED]
> Well ... here's the problem.  jsvc needs that pid file to shutdown
> tomcat.  It would be a real PITA if some user or script were to muck
> around and damage or delete that file.
>
> Having said that, most *nix systems have a sticky bit ability to force
> permissions on newly created files in specific folders.  Or you could
> modify your service script to chmod the pid file on startup.

Indeed.  644 might be preferable to 666, I suspect - would at least prevent 
deletion and alteration!

>
> --David
>
> Gunnar Boström wrote:
>
> >Hi,
> >
> >I can start and stop Tomcat 5.5 with the jsvc program but
> the problem is
> >that the pid file is created with permissions 600 and owned by root.
> >I want to be able to read the pid file to check if the
> Tomcat process is up
> >and running
> >and also for other purposes.
> >
> >Is it possible to make the pid file be owned by the user
> that runs Tomcat or
> >have the permissions to be set to 666?
> >
> >Regards
> >Gunnar
> >
> >
> >
>
>
> -
> 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: Mod_JK on OSX server 10.5

2008-04-10 Thread CommonGround Softworks/Phil McNamara
>> From: CommonGround Softworks/Phil McNamara 
>> [mailto:[EMAIL PROTECTED] 
>> Subject: RE: Mod_JK on OSX server 10.5
>> 
>> Thanks.  I found this:
>> http://commons-daemon.darwinports.com/
>
>Why not look at the real doc?
>http://commons.apache.org/daemon/
>
> - Chuck

Hi Chuck,
Thank you. I looked it over.  Unfortunately the documentation is not 
clear to me. I reviewed the overview and FAQ.  It seems there is a lot of 
information missing that would explain how this is implemented for 
tomcat. The overview gives a great panorama off the forest - then I'm 
lost in the trees without a pathway.

The server that we are looking to add the mod-jk functionality  will 
likely need to maintain apache answering on port 80 and 443.  Would there 
be anyone else with ideas to help figure out why the mod_JK connector is 
not working?

8009 responds to a port scan
Apache runs with only the localhost overlap warning I originally posted
tomcat responds on 8080
pages like http://localhost/index.jsp (without :8080) don't appear to be 
handed off to tomcat

phil



-
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: Changing the Webapps directory

2008-04-10 Thread Peter Crowther
> From: Tobias Meissner [mailto:[EMAIL PROTECTED]
> I just got a short question.
> In the context of an actual project it would be helpful to
> change the path
> of the webapps directory to some other location, e.g. network
> drive Z:\.
> We are currently using the Apache Tomcat version 6 on Windows XP.

Are you running Tomcat as a service?  If so, remember that mapped drives are 
per-user and therefore the service won't pick up the drive.

As an aside, are you *absolutely sure* you want to use a network drive?  You 
will lose reliability and add considerable overhead, especially as by default 
Tomcat rescans all its webapp directories for changes every few seconds.  I'd 
strongly advise using local storage if at all possible, even if that means 
adding disks to the Tomcat server.

- 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: jsvc creates pid file owned by root

2008-04-10 Thread David Smith
Well ... here's the problem.  jsvc needs that pid file to shutdown 
tomcat.  It would be a real PITA if some user or script were to muck 
around and damage or delete that file. 

Having said that, most *nix systems have a sticky bit ability to force 
permissions on newly created files in specific folders.  Or you could 
modify your service script to chmod the pid file on startup.


--David

Gunnar Boström wrote:


Hi,

I can start and stop Tomcat 5.5 with the jsvc program but the problem is
that the pid file is created with permissions 600 and owned by root.
I want to be able to read the pid file to check if the Tomcat process is up
and running 
and also for other purposes.


Is it possible to make the pid file be owned by the user that runs Tomcat or
have the permissions to be set to 666?

Regards
Gunnar

 




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



Changing the Webapps directory

2008-04-10 Thread Tobias Meissner
Hi,

I just got a short question.
In the context of an actual project it would be helpful to change the path
of the webapps directory to some other location, e.g. network drive Z:\.
We are currently using the Apache Tomcat version 6 on Windows XP.

We already changed the appBase in server.xml to this drive and restarted the
Tomcat, but this didn't work.

Here an short excerpt of the server.xml:




kind regards
Tobias Meißer


JVM heap size error while using ibatis on Tomcat 6x

2008-04-10 Thread Praful Sinha
 

Hi,

 

Need Help...

 

I am using ibatis with JNDI connection in Tomcat 6x.

 

I am getting JVM heap size error when I refresh my application through
browser around 25 to 30 time it call the servlet to retrieve data from
database using ibatis.

I have not configured JVM setting for Tomcat. 

Please suggest me the best way to use ibatis or any ORM using JNDI in tomcat
6x.

 

Please let me know in case of any concerns.

 

Thanks and Regards,

Praful Sinha

[EMAIL PROTECTED]

9892390895

 


http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_


Tomcat passing requests to cocoon for docroot, but not sub-directories?

2008-04-10 Thread Jed
Hi All,

I'm a new Cocoon user and I've come across and I'm having a really
bizarre problem at the moment which has stopped my site development in
it's tracks. I originally posted this messge to the Cocoon mailing list but
as seems the problem might be Tomcat related I thought I'd try here too.

I've got Apache/Tomcat/Cocoon set-up and have got the Tomcat and
Cocoon samples running just fine. I've set-up a virtual server with
it's own docroot and made a simple "HelloWorld" servlet and XML/XSLT
test and again, those work both fine.

However, I've now started setting up my pipelines/matchers and a
really strange thing is happening.

As a test, I've put "helloworld.xml" and its associated xsl file in
docroot and set-up a matcher so that and request for /*.jhtml
effectively loads and transforms that file. This works fine. However,
if I then make a subdirectory of docroot and place the same xml/xsl
there and set-up a matcher for that, absolutely nothing happens.
Instead I just get a Tomcat 404 page.

I've been scratching my head over this for a week and what appears to
be the problem is that Tomcat is definately passing requests for
documents in docroot to cocoon but NOT for any sub-directories.

The way I tested was as follows:

Test 1:

Created files:
docroot/helloworld.xml
docroot/helloworld.xsl

Matcher:






Request:
http://test.domain/randomfilename.jhtml

Result:
"Hello World!"

Test 2:

Create files:
docroot/main/helloworld.xml
docroot/main/helloworld.xsl

Matcher:






Request:
http://test.domain/main/randomfilename.jhtml

Result:
Tomcat 404 error message

Test 3:

Remove files:
docroot/helloworld.xml
docroot/helloworld.xsl

Matcher:






Request:
http://test.domain/randomfilename.jhtml

Result:
Coccon 404 error message as defined in 

I have DEBUG level set in logkit and watched what was happening when I
made requests. mod_jk was intercepting the request from apache and
matching it with a worker and passing it to Tomcat. For requests for
documents in docroot, Tomcat was passing them to cocoon as the
requests and processing can be seen in the sitemap.log file.

However, when a request is made for a file in a sub-directory of
docroot, there is zero activity in sitemap.log - the request just
never gets there!

I am *completely* baffled. I believe I have the various components
configured correctly but as stated, Tomcat will not pass requests for
sub-dirs to Cocoon.

Can anyone shed any light on this?

- Jed

Heres the pertinent extracts from the various configs:

Apache - http.conf:


DocumentRoot /usr/local/apache/share/saab_current/htdocs/
ServerName test.domain
Options FollowSymLinks +Indexes

Options +Indexes

DirectoryIndex index.jhtml index.html index.xml
JkMount /*.shtml xmlworker
JkMount /main/*.jhtml xmlworker


Tomcat - server.xml






Tomcat - workers.properties

# XML worker
worker.xmlworker.port=8009
worker.xmlworker.host=localhost
worker.xmlworker.type=ajp13

Cocoon - sitemap.xmap













My set-up is:

Fedora Core 6
Apache/2.2.8
mod_jk 1.2.26
Tomcat  5.5.26
Cocoon 2.1.11
Sun JDK 1.6.0_05-b13

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



The requested resource (/ematrix/common/emxRouteFin

2008-04-10 Thread ssk

Hi Dear

Our projects are running in tomcat 5.5.23.  We have done load balancing also.  
However i am getting  following error in my production server. Not all the 
time. What may be the reason?

 The requested resource (/ematrix/common/emxRouteFindContentDialogFS.jsp) is 
not available. 

Could anybody help me to solve this issue?

Thanks in advance

Regards
Setnhil


-
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: Connection pooling again

2008-04-10 Thread [EMAIL PROTECTED]
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Daad,
>
> [EMAIL PROTECTED] wrote:
> | No, my test is done with threads that connect using sockets. Server
> | listen with ServerSocket and 30 Threads are started connecting to it.
>
> Er... did you write your own server, or are you using Tomcat?
>

I'm using tomcat.

> I'm sorry... all the evidence you have presented does not support your
> conclusions. There are other ways to get a log file looking like the one
> you posted.
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkf9PnsACgkQ9CaO5/Lv0PBAPACfR8qL7tD33mFTWCdY99D6p8ic
> shoAn3v0C49JvF2muOefUF5Q+QbBhVdD
> =kLLa
> -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]
>
>


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



jsvc creates pid file owned by root

2008-04-10 Thread Gunnar Boström

Hi,

I can start and stop Tomcat 5.5 with the jsvc program but the problem is
that the pid file is created with permissions 600 and owned by root.
I want to be able to read the pid file to check if the Tomcat process is up
and running 
and also for other purposes.

Is it possible to make the pid file be owned by the user that runs Tomcat or
have the permissions to be set to 666?

Regards
Gunnar

-- 
View this message in context: 
http://www.nabble.com/jsvc-creates-pid-file-owned-by-root-tp16606528p16606528.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: Connection pooling again

2008-04-10 Thread [EMAIL PROTECTED]
> I haven't looked at the source, but I'm willing to bet there is at least
> one sync block -- the pooling implementation would have to perform a
> brief sync when it borrows a connection object from the pool.  In
> addition, if this is from a fresh startup of tomcat without a minIdle
> setting (default=0) in your Resource definition (I didn't see one in 
> your original post), each parallel call to getConnection() will mean
> creating a new connection to the db because all previous connections are
> busy and none are being reused.
>
> I'd be curious what this would look like with:
>   a) a minIdle setting to establish a pool of connections on startup and

I tried that option and the behaviour doesn't change..

>   b) if the threads kept going over a few iterations releasing and
> reacquiring connections.  Would the time keep going up or would it drop
> as connections start getting reused?
>
> --David
>
> [EMAIL PROTECTED] wrote:
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA1
> >>
> >> Daad,
> >>
> >> [EMAIL PROTECTED] wrote:
> >> | i think i don't get the utility of a connection pooling, since i have
> >> this situation: 30 threads try to perform at same time a db access with
> >> the call:
> >> |
> >> | new Database().doSomething()
> >>
> >> Are you sure you're using your Database class in this way? I wouldn't be
> >> surprised if you are creating a single Database object and using it
> >> repeatedly.
> >>
> >
> > Yes i'm sure, i'm using (new Database()).doSomething() always.
> >
> >
> >> Are your threads actually running in parallel?
> >>
> >>
> >
> > That's my question.
> >
> >
> >> | [wed, 09 apr 2008 00:55:03] INFO Database -> doSomething: 836
> >> | [wed, 09 apr 2008 00:55:04] INFO Database -> doSomething: 1444
> >> | [wed, 09 apr 2008 00:55:04] INFO Database -> doSomething: 2054
> >> | [wed, 09 apr 2008 00:55:05] INFO Database -> doSomething: 2417
> >> | [wed, 09 apr 2008 00:55:05] INFO Database -> doSomething: 3060
> >> | [wed, 09 apr 2008 00:55:06] INFO Database -> doSomething: 3647
> >> | [wed, 09 apr 2008 00:55:07] INFO Database -> doSomething: 4279
> >> | [wed, 09 apr 2008 00:55:07] INFO Database -> doSomething: 4967
> >> | [wed, 09 apr 2008 00:55:08] INFO Database -> doSomething: 5592
> >> | [wed, 09 apr 2008 00:55:09] INFO Database -> doSomething: 6208
> >> | [wed, 09 apr 2008 00:55:09] INFO Database -> doSomething: 7026
> >> | [wed, 09 apr 2008 00:55:10] INFO Database -> doSomething: 7455
> >> | [wed, 09 apr 2008 00:55:10] INFO Database -> doSomething: 8087
> >> | [wed, 09 apr 2008 00:55:11] INFO Database -> doSomething: 8705
> >> | [wed, 09 apr 2008 00:55:12] INFO Database -> doSomething: 9318
> >> | [wed, 09 apr 2008 00:55:12] INFO Database -> doSomething: 10040
> >> | [wed, 09 apr 2008 00:55:13] INFO Database -> doSomething: 11146
> >> | [wed, 09 apr 2008 00:55:14] INFO Database -> doSomething: 11702
> >> | [wed, 09 apr 2008 00:55:14] INFO Database -> doSomething: 12033
> >> | [wed, 09 apr 2008 00:55:15] INFO Database -> doSomething: 12658
> >> | [wed, 09 apr 2008 00:55:16] INFO Database -> doSomething: 13279
> >> | [wed, 09 apr 2008 00:55:16] INFO Database -> doSomething: 13897
> >> | [wed, 09 apr 2008 00:55:17] INFO Database -> doSomething: 14523
> >> | [wed, 09 apr 2008 00:55:17] INFO Database -> doSomething: 15139
> >> | [wed, 09 apr 2008 00:55:18] INFO Database -> doSomething: 15759
> >> | [wed, 09 apr 2008 00:55:19] INFO Database -> doSomething: 16411
> >> | [wed, 09 apr 2008 00:55:19] INFO Database -> doSomething: 17056
> >> | [wed, 09 apr 2008 00:55:20] INFO Database -> doSomething: 17672
> >> | [wed, 09 apr 2008 00:55:20] INFO Database -> doSomething: 18292
> >>
> >> Every single operation takes more time than the previous operation. That
> >> smells of a problem with resetting a counter. Isn't it interesting that
> >> the logging statements show that all 30 threads completed within 18
> >> seconds of each other, and each thread says that it took up to 18
> >> seconds to complete? If these processes were sharing a single
> >> connection, and they were taking 18 seconds to complete, the total time
> >> would be 9 minutes, not 18 seconds.
> >>
> >>
> >
> > As you can see from the code i pasted, start time is taken in 
> > getConnection() method and end time is taken in closeResources() method. So 
> > from the logs i understand that all 30 threads arrive in getConnection() at 
> > same time (so all "start" variable of each Database instance is set to same 
> > timestamp (about)), but then seems that operation get enqueued, since the 
> > first thread that is able to quit needs 836ms, while the last one 18292ms. 
> > That means the second thread that can perform the query waited that first 
> > thread complete the query. So, even if the second thread arrived to 
> > getConnection() at same time of the first, the second took almost double 
> > time because waited that the first complete the task. That's what i 
> > understood from logs... I didn't get what you said about 9 

RE: JNDIRealm - how to display login exceptions/error msg within form-error-page when using Form based authentication?

2008-04-10 Thread david.melia

Hi,

regarding the error-page idea i have tried this and this does not work but
thinking about it, for form based authentication you have to define a
mandatory error page anyway so this would have precendence over any error
page defined else where.  A login failure always flows back to the page
defined in form-error-page leaving me with the same issue of not being able
to get a handle on the error.

Also, i have checked out the JNDIRealm source code and it only seems to log
any exception but not throw it back (seems to pass a null Principal back to
the calling code to signify you could not log on).  If this is the case we
cannot get a handle on the error.

Any other ideas?

Barry, could you post your idea please?

Thanks


Propes, Barry L wrote:
> 
> even for my antiquated version, Chuck? 4.1.36?
> 
> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 09, 2008 11:17 AM
> To: Tomcat Users List
> Subject: RE: JNDIRealm - how to display login exceptions/error msg
> within form-error-page when using Form based authentication?
> 
> 
>> From: Propes, Barry L [mailto:[EMAIL PROTECTED] 
>> Subject: RE: JNDIRealm - how to display login 
>> exceptions/error msg within form-error-page when using Form 
>> based authentication?
>> 
>> I believe you can only set one standard error page in the XML 
>> file, if I'm not mistaken, at least of the specific web app itself.
> 
> No, you can have a separate error page for each status or exception
> value in each webapp.  See section 9.9 of the servlet spec.
> 
>> But one thing I did was flag for a specific exception to be 
>> caught, and if this matched, ran an out.println series of 
>> statements to the browser indicating to the users the problem.
> 
> That's the appropriate thing to do, using  and
>  declarations in WEB-INF/web.xml of the webapp.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RE%3A-JNDIRealm---how-to-display-login-exceptions-error-msg-within-form-error-page-when-using-Form-based-authentication--tp16591326p16605549.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]