Problem with realm not displaying login form

2007-06-07 Thread Troy Davis

Hello,

I'm having a problem with a realm setup that used to work under a  
previous version of Tomcat (5.5.9), but isn't now that I'm using  
5.5.23. For some reason it's not redirecting users to the login form  
upon first access of a protected URL setup in /WEB-INF/web.xml.


Instead they get the index.jsp page which they should see after  
logging in. The JSP has been processed, but an included header that  
loads an adminBean class does not show up, nor does a footer loading  
JspCalendar.class from /WEB-INF/classes/dates. Maybe it's correctly  
defending access to those classes when called from a jsp inside a  
security-constraint? The JspCalendar.class and a VisitorBean class  
are used in the public areas of the same site, no problem with them  
in that context.


Environment:
Tomcat 5.5.23
Fedora 4
latest apache 2.0 and mod_rewrite from fc rpms
rpm version of mysql as well
connectors 1.2.23

Note: I recently added +ForwardURIEscaped to /etc/httpd/conf.d/mod_jk- 
local.conf. Reading about this, I know that URL-based sessions won't  
work. But I don't think this is involved, and I disabled it with no  
effect on the realm issue, although my mod_rewrite rules failed as  
expected until I turned this option back on and restarted apache.


Any thoughts on how to troubleshoot this further?

Thank You,
Troy


From server.xml:


www.myclientfdncom


WEB-INF/web.xml




WEB-INF/web.xml:



http://java.sun.com/xml/ns/j2ee";
  xmlns:xsi="http://www.w3.com/2001/XMLSchema-instance";
  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http:// 
java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"

  version="2.4">

My Client


javax.servlet.jsp.jstl.sql.dataSource
		jdbc:mysql://localhost/myclient? 
autoReconnect=true,com.mysql.jdbc.Driver,myclient,mypass




myapp 
Administration
/siteadmin/*
DELETE
GET
POST
PUT


myapp Admin


NONE



FORM
myapp Administration

/login.jsp
/login_fail.jsp



myapp Admin


Set Character Encoding
filters.SetCharacterEncodingFilter

encoding
UTF-8



Set Character Encoding
action



from httpd.conf:


DocumentRoot /usr/local/tomcat/webapps/myclient.com/
ServerName myclient.com
ServerAlias *.myclient.com
DirectoryIndex index.jsp index.html index.cgi index.php
CustomLog logs/myclient.com_access_log combinedcomp
ErrorLog logs/myclient.com_error_log
SetEnv AWSTATS_FORCE_CONFIG myclient.com
ScriptAlias /cgi-bin/ /usr/local/tomcat/webapps/myclient.com/cgi-bin/

Options ExecCGI

	ScriptAlias /myapp/cgi-bin/ /usr/local/tomcat/webapps/myclient.com/ 
myapp/cgi-bin/


Options ExecCGI


deny from all

RewriteEngine on
RewriteCond "%{DOCUMENT_ROOT}/%{REQUEST_FILENAME}index.html" -f
RewriteRule ^(.*)$ $1/index.html [L,R]
RewriteCond "%{DOCUMENT_ROOT}/%{REQUEST_FILENAME}index.php" -f
RewriteRule ^(.*)$ $1/index.php [L,R]
RewriteCond "%{REQUEST_FILENAME}" !j_security_check
RewriteCond "%{REQUEST_FILENAME}" !awstats
RewriteCond "%{REQUEST_FILENAME}" !\.mvc
RewriteCond "%{DOCUMENT_ROOT}/%{REQUEST_FILENAME}" !-f
RewriteCond "%{DOCUMENT_ROOT}/%{REQUEST_FILENAME}" !-d
RewriteRule ^(.*)$ /hru.jsp?hru=$1 [L,PT]


/etc/httpd/conf.d/mod_jk-local.conf:

JkMount /*j_security_check ajp13
JkOptions +ForwardURIEscaped

/etc/httpd/conf.d/mod_jk.conf:

LoadModule  jk_module modules/mod_jk.so
JkWorkersFile   /etc/httpd/conf/workers.properties
JkLogFile   logs/mod_jk.log
JkLogLevel  error
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
Alias /examples "/usr/local/tomcat/webapps/examples"

Options Indexes FollowSymLinks

JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13

deny from all

Alias /tcadmin "/usr/local/tomcat/webapps/admin"

Options Indexes FollowSymLinks

JkMount /admin/servlet/* ajp13
JkMount /admin/*.jsp ajp13

deny from all

Alias /test "/usr/local/tomcat/webapps/test"

Options Indexes FollowSymLinks

JkMount /test/servlet/* ajp13
JkMount /test/*.jsp ajp13

deny from all

JkMount /jmx-console/* jboss

Order Deny,Allow
Deny from all
Allow from 127.0.0.1


---

Re: Tomcat5.5 Ubuntu startup error

2007-06-07 Thread Kristian Rink
Will;

["Will Parkinson" <[EMAIL PROTECTED]> @ Fri, 8 Jun 2007 16:35:45 +1000]

> Hi Zdenek
> 
> I have JDK 6.0 installed (from this url
> http://java.sun.com/javase/downloads/index.jsp)
>

Ubuntu comes preinstalled with GNU classpath and friends so no matter
whether or not you install an "additional" JDK, the preinstalled "GNU
Java" always will be first to be found. An easy solution to fix this
(at least this is how I do it by now, on several machines) is to set
JAVA_HOME and PATH to something like this:

export JAVA_HOME=/opt/java
export PATH=$JAVA_HOME/bin:$PATH

Prepending the $JAVA_HOME/bin to $PATH helps here because, by then, the
java(c) commands provided by the JDK are to be found first (and used,
by then - otherwise the "GNU Java" that comes with Ubuntu will be used
no matter which JDK you do have installed).

As an alternative, of course, you might want to install the sun-java
stuff from Ubuntu multiverse... ;)

Cheers,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

-
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: Tomcat5.5 Ubuntu startup error

2007-06-07 Thread Will Parkinson

Hi Zdenek

I have JDK 6.0 installed (from this url
http://java.sun.com/javase/downloads/index.jsp)

Cheers

Will

On 6/8/07, Zdeněk Vráblík <[EMAIL PROTECTED]> wrote:


Hi Will,

what java JDK do you have installed?

It looks you don't have installed SUN JDK 5 or higher.


Regards,
Zdenek



On 6/8/07, Will Parkinson <[EMAIL PROTECTED]> wrote:
>
> Hi Rene,
>
> Thanks for the help, i removed the line i tried the -Xmx=128m alteration
> to
> the JAVA_OPTS line and nothing changes.  I also tried removing the
> -Xmx128M
> option all together and what i got was this:
>
> #/etc/init.d/tomcat5.5 status
> * Tomcat servlet engine is not running, but pid file exists.
>
> And in the log file
> 08/06/2007 15:45:32 7528 jsvc.exec error: Service killed by signal 6
>
> So im am still a bit stuck
>
> Will
>
>
>
> On 6/8/07, Rene Guenther <[EMAIL PROTECTED]> wrote:
> >
> > Probably the options setting should be -Xmx=128m. I am not
> > sure, but you should check the enviroment variables:
> >
> > CATALINA_OPTS
> > JAVA_OPTS
> >
> > and the startup scripts in %CATALINA_HOME%\bin
> >
> > René
> >
> > On Fri, 8 Jun 2007 14:14:05 +1000
> >   "Will Parkinson" <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >
> > > I am having a few problems with tomcat 5.5 on ubuntu
> > >feisty
> > >
> > > When i start the tomcat service, its outputs that its
> > >started ok, but when i
> > > view the status (/etc/init.d/tomcat5.5 status) it says
> > >the service is not
> > > running.
> > >
> > > This is in the /var/log/tomcat5.5/catalina.out logfile
> > >
> > > libgcj: unknown option: -Xmx128M
> > > 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create
> > >Java VM
> > > 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit
> > >with a return value
> > > of 1
> > >
> > >
> > > Does anybody know how to fix this problem?  Or does
> > >anybody know where to
> > > find the libgcj file so i can fix it myself?
> > >
> > > Cheers
> > >
> > > Will
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Will Parkinson
> MediaArchitecs / BusinessPartner
> Ph: (07) 3846 2873
> Mob: 0433 143 272
> 0424 433 816
>





--
Will Parkinson
MediaArchitecs / BusinessPartner
Ph: (07) 3846 2873
Mob: 0433 143 272
   0424 433 816


Re: Tomcat5.5 Ubuntu startup error

2007-06-07 Thread Zdeněk Vráblík

Hi Will,

what java JDK do you have installed?

It looks you don't have installed SUN JDK 5 or higher.


Regards,
Zdenek



On 6/8/07, Will Parkinson <[EMAIL PROTECTED]> wrote:


Hi Rene,

Thanks for the help, i removed the line i tried the -Xmx=128m alteration
to
the JAVA_OPTS line and nothing changes.  I also tried removing the
-Xmx128M
option all together and what i got was this:

#/etc/init.d/tomcat5.5 status
* Tomcat servlet engine is not running, but pid file exists.

And in the log file
08/06/2007 15:45:32 7528 jsvc.exec error: Service killed by signal 6

So im am still a bit stuck

Will



On 6/8/07, Rene Guenther <[EMAIL PROTECTED]> wrote:
>
> Probably the options setting should be -Xmx=128m. I am not
> sure, but you should check the enviroment variables:
>
> CATALINA_OPTS
> JAVA_OPTS
>
> and the startup scripts in %CATALINA_HOME%\bin
>
> René
>
> On Fri, 8 Jun 2007 14:14:05 +1000
>   "Will Parkinson" <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >
> > I am having a few problems with tomcat 5.5 on ubuntu
> >feisty
> >
> > When i start the tomcat service, its outputs that its
> >started ok, but when i
> > view the status (/etc/init.d/tomcat5.5 status) it says
> >the service is not
> > running.
> >
> > This is in the /var/log/tomcat5.5/catalina.out logfile
> >
> > libgcj: unknown option: -Xmx128M
> > 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create
> >Java VM
> > 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit
> >with a return value
> > of 1
> >
> >
> > Does anybody know how to fix this problem?  Or does
> >anybody know where to
> > find the libgcj file so i can fix it myself?
> >
> > Cheers
> >
> > Will
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Will Parkinson
MediaArchitecs / BusinessPartner
Ph: (07) 3846 2873
Mob: 0433 143 272
0424 433 816



Re: Tomcat5.5 Ubuntu startup error

2007-06-07 Thread Will Parkinson

Hi Rene,

Thanks for the help, i removed the line i tried the -Xmx=128m alteration to
the JAVA_OPTS line and nothing changes.  I also tried removing the -Xmx128M
option all together and what i got was this:

#/etc/init.d/tomcat5.5 status
* Tomcat servlet engine is not running, but pid file exists.

And in the log file
08/06/2007 15:45:32 7528 jsvc.exec error: Service killed by signal 6

So im am still a bit stuck

Will



On 6/8/07, Rene Guenther <[EMAIL PROTECTED]> wrote:


Probably the options setting should be -Xmx=128m. I am not
sure, but you should check the enviroment variables:

CATALINA_OPTS
JAVA_OPTS

and the startup scripts in %CATALINA_HOME%\bin

René

On Fri, 8 Jun 2007 14:14:05 +1000
  "Will Parkinson" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am having a few problems with tomcat 5.5 on ubuntu
>feisty
>
> When i start the tomcat service, its outputs that its
>started ok, but when i
> view the status (/etc/init.d/tomcat5.5 status) it says
>the service is not
> running.
>
> This is in the /var/log/tomcat5.5/catalina.out logfile
>
> libgcj: unknown option: -Xmx128M
> 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create
>Java VM
> 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit
>with a return value
> of 1
>
>
> Does anybody know how to fix this problem?  Or does
>anybody know where to
> find the libgcj file so i can fix it myself?
>
> Cheers
>
> Will


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





--
Will Parkinson
MediaArchitecs / BusinessPartner
Ph: (07) 3846 2873
Mob: 0433 143 272
   0424 433 816


Re: Tomcat5.5 Ubuntu startup error

2007-06-07 Thread Rene Guenther
Probably the options setting should be -Xmx=128m. I am not 
sure, but you should check the enviroment variables:


CATALINA_OPTS
JAVA_OPTS

and the startup scripts in %CATALINA_HOME%\bin

René

On Fri, 8 Jun 2007 14:14:05 +1000
 "Will Parkinson" <[EMAIL PROTECTED]> wrote:

Hi All,

I am having a few problems with tomcat 5.5 on ubuntu 
feisty


When i start the tomcat service, its outputs that its 
started ok, but when i
view the status (/etc/init.d/tomcat5.5 status) it says 
the service is not

running.

This is in the /var/log/tomcat5.5/catalina.out logfile

libgcj: unknown option: -Xmx128M
08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create 
Java VM
08/06/2007 14:04:55 5889 jsvc.exec error: Service exit 
with a return value

of 1


Does anybody know how to fix this problem?  Or does 
anybody know where to

find the libgcj file so i can fix it myself?

Cheers

Will



-
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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Bill Barker

"Andrei Tchijov" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Bill,
> Tomcat will use my authenticator regardless of  "login-config/auth- 
> method" setting? If it is the case, how my Authenticator can figure- out 
> what auth-method was configured (normally my authentication  method will 
> be used in-addition to what ever standard method has been  used)?
> Thanks,
>

Yes, if you explicitly configure an Authenticator, Tomcat assumes that you 
know what you are doing.  You can query the LoginConfig from the Context to 
get the method.  Your Authenticator is responsible for whatever should be 
configured on the Response in the event that authentication fails.

But from what you say, you may just want a plain Valve instead.  If your 
Valve sets the Principal on the Request, all of Tomcat's Authenticators will 
assume that the user is logged in, and accept the request (assuming that the 
roles match).

> Andrei
>
> On Jun 7, 2007, at 9:51 PM, Bill Barker wrote:
>
>>
>> "Andrei Tchijov" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>> I understand. My problem it twofold. In order to make an 
>>> authentication
>>> decision ...
>>> - I need to have an access to some information from HTTP Request,
>>> - I need to be able build HTTP Response (basically, I need to be   able 
>>> to
>>> issue challenge in response to authentication request).
>>> As I stated in my original post, I think that right place to put this
>>> kind of functionality is authenticator. My original question was,  if 
>>> it
>>> is possible to register new Authenticator without re-compiling   Tomcat.
>>>
>>>
>>
>> Yes, it is possible.  You just create your own Authenticator class 
>> (probably
>> extending Tomcat's AuthenticatorBase and implementing the authenticate
>> method).  Then you do:
>>
>>
>> 
>>
>> This will cause Tomcat to use your Authenticator instead of one of  it's 
>> own.
>>
>>> On Jun 7, 2007, at 5:06 PM, Caldarale, Charles R wrote:
>>>
> From: Andrei Tchijov [mailto:[EMAIL PROTECTED]
> Subject: Re: Is it possible to introduce new authentication
> method without modifying tomcat?
>
> I was just commenting that I can not see how JAASRealm
> (or any Realm for that matter) can help me

 Specifying JAASRealm as the  gives you the opportunity to
 implement your own LoginModule.  Such a LoginModule can utilize any
 number of authentication mechanisms - all under your control.

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



Tomcat5.5 Ubuntu startup error

2007-06-07 Thread Will Parkinson

Hi All,

I am having a few problems with tomcat 5.5 on ubuntu feisty

When i start the tomcat service, its outputs that its started ok, but when i
view the status (/etc/init.d/tomcat5.5 status) it says the service is not
running.

This is in the /var/log/tomcat5.5/catalina.out logfile

libgcj: unknown option: -Xmx128M
08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create Java VM
08/06/2007 14:04:55 5889 jsvc.exec error: Service exit with a return value
of 1


Does anybody know how to fix this problem?  Or does anybody know where to
find the libgcj file so i can fix it myself?

Cheers

Will


Re: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Andrei Tchijov

Bill,
	Tomcat will use my authenticator regardless of  "login-config/auth- 
method" setting? If it is the case, how my Authenticator can figure- 
out what auth-method was configured (normally my authentication  
method will be used in-addition to what ever standard method has been  
used)?

Thanks,

Andrei

On Jun 7, 2007, at 9:51 PM, Bill Barker wrote:



"Andrei Tchijov" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I understand. My problem it twofold. In order to make an   
authentication

decision ...
- I need to have an access to some information from HTTP Request,
- I need to be able build HTTP Response (basically, I need to be   
able to

issue challenge in response to authentication request).
As I stated in my original post, I think that right place to put this
kind of functionality is authenticator. My original question was,  
if  it
is possible to register new Authenticator without re-compiling   
Tomcat.





Yes, it is possible.  You just create your own Authenticator class  
(probably

extending Tomcat's AuthenticatorBase and implementing the authenticate
method).  Then you do:
   
   

   
This will cause Tomcat to use your Authenticator instead of one of  
it's own.



On Jun 7, 2007, at 5:06 PM, Caldarale, Charles R wrote:


From: Andrei Tchijov [mailto:[EMAIL PROTECTED]
Subject: Re: Is it possible to introduce new authentication
method without modifying tomcat?

I was just commenting that I can not see how JAASRealm
(or any Realm for that matter) can help me


Specifying JAASRealm as the  gives you the opportunity to
implement your own LoginModule.  Such a LoginModule can utilize any
number of authentication mechanisms - all under your control.

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







-
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: Can't seem to get logging to work in Tomcat 5.5.9

2007-06-07 Thread Rob Tanner

Georg,

Finally kind of solved my problem.  First, I went to a fresh install of 
5.5.23 and then added the log4j.properties file in 
${CATALINA_HOME}/common/classes and the log4j jar file in 
${CATALINA_HOME}/common/lib. No go.  So, thinking maybe the 
documentation was wrong, I moved the properties file to 
${CATALINA_HOME}/conf.  Again, no go.  The I copied it back to 
common/classes and therefore unintentionally left a copy in conf.  And 
suddenly things started working.  Of course, log level DEBUG is not 
terribly helpful in most cases (too much data) and so I modified the 
properties file, switching it to INFO and things broke.  Then I 
remembered the copy in conf and changed it.  What seems to be happening 
and makes no logical sense is that so long as I have identical copies of 
the log4j.properties file in conf and common/classes, everything works.  
I'm sure that somewhere, something is screwed up, but I have no idea 
what.  Weird!


-- Rob

On 05/31/2007 02:59 PM, Georg Sauer-Limbach wrote:

Hi Rob,

check catalina.out, there should be some message of
log4j complaining if it has been loaded but cannot work.

You may also add -Dlog4.debug to the java command line,
this makes log4j output debug messages on stdout.

If you don't see any output of log4j, then I'd suggest
calling java with -verbose:class, this makes java
print information about every class it loads and from
which source it loaded it. Grep for log4j to see if it
is at all loaded.

Georg


Rob Tanner wrote:

Hi,

I was originally planning to move to Tomcat 6 but backed off for a
number of reasons.  Now I have Tomcat 5.5.9 installed an working, except
for logging (and one other problem that I might be able to resolve on my
own if only I could get logging to work).
I have never configured Tomcat to log using log4j (Tomcat 4.x's built-in
was sufficient).  Following the instructions on the website
(http://tomcat.apache.org/tomcat-5.5-doc/logging.html),  I creating a
log4j.properties file and placed it in common/classes -- the only change
I made on the example on the webpage was to replace a variable with an
absolute path:

log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=/var/apache/jakarta-tomcat-5.5.9/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n


I then put log4j-1.2.7.jar and commons-logging-1.1.jar jarfiles in
common/lib and started Tomcat. The instructions don't say anything about
doing anything else and I've not done very much with log4j other than
use it to enable syslog logging in various applications, but it's not
working.

Any ideas?

Thanks,
Rob





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





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Bill Barker

"Andrei Tchijov" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I understand. My problem it twofold. In order to make an  authentication 
>decision ...
> - I need to have an access to some information from HTTP Request,
> - I need to be able build HTTP Response (basically, I need to be  able to 
> issue challenge in response to authentication request).
> As I stated in my original post, I think that right place to put this 
> kind of functionality is authenticator. My original question was, if  it 
> is possible to register new Authenticator without re-compiling  Tomcat.
>
>

Yes, it is possible.  You just create your own Authenticator class (probably 
extending Tomcat's AuthenticatorBase and implementing the authenticate 
method).  Then you do:
   
   

   
This will cause Tomcat to use your Authenticator instead of one of it's own.

> On Jun 7, 2007, at 5:06 PM, Caldarale, Charles R wrote:
>
>>> From: Andrei Tchijov [mailto:[EMAIL PROTECTED]
>>> Subject: Re: Is it possible to introduce new authentication
>>> method without modifying tomcat?
>>>
>>> I was just commenting that I can not see how JAASRealm
>>> (or any Realm for that matter) can help me
>>
>> Specifying JAASRealm as the  gives you the opportunity to
>> implement your own LoginModule.  Such a LoginModule can utilize any
>> number of authentication mechanisms - all under your control.
>>
>>  - 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]
>
> 




-
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 keepalive mysql connection.

2007-06-07 Thread Rashmi Rubdi

On 6/6/07, Jacob Rhoden <[EMAIL PROTECTED]> wrote:

Hi,

Under tomcat 5.5, I would prevent the database connections from timing
out by having a Cron job that accesses the website every 10 minute.
(Because I couldn't work out a better way).


How are you connecting to the database? If you are not using
connection pooling, then you're missing out on performance also, it is
highly configurable
http://jakarta.apache.org/commons/dbcp/configuration.html

If you get an exception, you could try re-connecting in the catch
statement of that exception.


This no longer works under
tomcat 6. Are there any better ways than I am not aware of.? I don't
think increasing the timeout length in Mysql is a much better solution.

Best Regards,
Jacob



Rashmi

-
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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrei,

Check out securityfilter (http://securityfilter.sourceforge.net). It
implements a filter as suggested by someone else, but it has been used
by others. Why reinvent the wheel?

There are two different interfaces that you can implement in order to do
your own authentication. One of these interfaces allows you to get the
whole HttpServletRequest object.

- -chris

Andrei Tchijov wrote:
> Hi,
> I want to be able to add my own authentication method
> (login-config/auth-method) as one of possible choices.  Is it possible
> to do so without re-compiling tomcat?  Ideally, I would love to be able
> to achieve my goal by changing server.xml file (and adding some jars
> with my custom code to tomcat).
> 
> Before any one suggested that I should write custom Realm: I think it
> will not work for me. My authentication method require access to ALL
> information available from HTTP Request (not just user name/password)
> also in some situations, access to HTTP Response is required as well. It
> looks like this method:
> 
> protected abstract boolean authenticate(Request request,Response
> response,LoginConfig config) throws IOException;
> 
> or AuthenticatorBase class is the best place to be.
> 
> 
> Your comments will be highly appreciated,
> 
> Andrei Tchijov
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaK0E9CaO5/Lv0PARAtKvAJ90h8NFrIennqNNd8iIdjlYQ9Vr7QCfS/IW
q39ssFcASe8Vqahla2mqVIU=
=7CGy
-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]



Problem with Tomcat 5.5.23 when displaying to frames

2007-06-07 Thread Rob Tanner
Hi,

This one is weird and makes no sense to me.  I am moving from a Tomcat
3.x (front ended by Apache) production environment to
apache-tomcat-5.5.23 running standalone.  My apps, which are all
interactive tools, are displayed in frame-sets containing either one or
two frames.  Each application has one frame that takes a long time to
come up or even possibly times out.  The old production system using an
apache connector did not have that problem, and my development system,
also running 5.5.23 standalone, does not have that problem.  The only
significant difference between the production and development systems
(as far as I'm aware) is that I'm directly on the development system's
console (it's my desktop) while the soon to be new production is in the
server room.  I don't believe that it related to system or networking
resources in general as the production system also handles our primary
apache web server and that runs lickity split.  The log files don't give
me a clue of even where to look.

Could it be related to the version of Java 5.  My development machine is
running jdk1.5.0_08 and the production box is running jdk1.5.0_0, but I
can't imagine that that's the issue.  Also, I'm not specifically setting
any run time arguments so both the production and development machines
should be running default.  Both system are running Linux although the
production box is an older version of the OS.

Any ideas about what might be the cause of this problem? 

Thanks,
Rob




smime.p7s
Description: S/MIME Cryptographic Signature


RE: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Caldarale, Charles R
> From: Andrei Tchijov [mailto:[EMAIL PROTECTED] 
> Subject: Re: Is it possible to introduce new authentication 
> method without modifying tomcat?
> 
> My problem it twofold. In order to make an  
> authentication decision ...
>  - I need to have an access to some information from HTTP Request,
>  - I need to be able build HTTP Response

This may be doable with a filter to handle the multi-part authentication
negotiation.  For an example of how that can be done in a Tomcat
environment, take a look at:
http://jcifs.samba.org/src/docs/ntlmhttpauth.html

Although the above is specific to NTLM, the technique should work for
any mechanism that requires multiple messages for the authentication.

 - 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: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread gb1071nx
Can you make something out of this? 

public class JavaVer {
 public static void main(String[] args) {
   System.out.println("java.version: " +
System.getProperty("java.runtime.version"));
   System.out.println("JAVA_HOME: " + System.getProperty("JAVA_HOME"));
  }
}

D:\DEV\classes>java -version
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

D:\DEV\classes>java -DJAVA_HOME="c:\j2sdk1.4.2_10" JavaVer
java.version: 1.6.0_01-b06
JAVA_HOME: c:\j2sdk1.4.2_10


As you can see, "java.version" gives you what "running JVM is currently
using", regardless of what JAVA_HOME says (or any other env var), but
I'm not sure if this is totally borked in Windows Service-land.

You'd then have to compare the two strings to see if they're not equal.
Or if one equals something it shouldn't...


> -Original Message-
> From: David kerber [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 07, 2007 10:31 AM
> To: Tomcat Users List
> Subject: Re: Programmatically Determine JVM Version used by Tomcat
> 
> bachuba wrote:
> > Hi,
> > I'm fairly new to using Tomcat, but need to determine what 
> JVM version 
> > (or at least the path to it) a running Tomcat service is currently 
> > using on a Windows system.  If I run tomcat5w.exe and click on the 
> > Java tab, I notice the informaiton is listed there, but I 
> would like 
> > to be able to get at that programmatically.  We are currently using 
> > Tomcat version 5.0.28.  Could somone please describe how 
> this could be done?  Thanks.
> >   
> The system property "java.version" will probably give you 
> what you want.
> 
> D
> 
> 
> 
> -
> 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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Andrei Tchijov
I understand. My problem it twofold. In order to make an  
authentication decision ...

- I need to have an access to some information from HTTP Request,
	- I need to be able build HTTP Response (basically, I need to be  
able to issue challenge in response to authentication request).
As I stated in my original post, I think that right place to put this  
kind of functionality is authenticator. My original question was, if  
it is possible to register new Authenticator without re-compiling  
Tomcat.



On Jun 7, 2007, at 5:06 PM, Caldarale, Charles R wrote:


From: Andrei Tchijov [mailto:[EMAIL PROTECTED]
Subject: Re: Is it possible to introduce new authentication
method without modifying tomcat?

I was just commenting that I can not see how JAASRealm
(or any Realm for that matter) can help me


Specifying JAASRealm as the  gives you the opportunity to
implement your own LoginModule.  Such a LoginModule can utilize any
number of authentication mechanisms - all under your control.

 - 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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Caldarale, Charles R
> From: Andrei Tchijov [mailto:[EMAIL PROTECTED] 
> Subject: Re: Is it possible to introduce new authentication 
> method without modifying tomcat?
> 
> I was just commenting that I can not see how JAASRealm 
> (or any Realm for that matter) can help me

Specifying JAASRealm as the  gives you the opportunity to
implement your own LoginModule.  Such a LoginModule can utilize any
number of authentication mechanisms - all under your control.

 - 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: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread Robert Harper
One problem with this is that you have to know where the JRE for 1.5 was
installed. There is nothing that guarantees that the install path is the
default. You might try to get the version information from the binary that
is running if the OS version supports it. It might be more appropriate to
try to load a required class and report the error when you encounter it.

Robert S. Harper
Senior Engineer
Information Access Technology, Inc.
1100 East 6600 South, Suite 300
Salt Lake City Utah USA 84121-7411
(801)265-8800 Ext. 255 
FAX (801)265-8880
 

This e-mail is intended only for the addressee and may contain confidential
and/or privileged information. Any review, retransmission, or action taken
upon this information by persons other than the intended recipient is
prohibited by law. If you received this communication in error, please
contact us immediately at 801-265-8800. Although this e-mail and any
attachments are believed to be free of any virus or other defect, it is the
responsibility of the recipient to ensure that anything received or opened
is virus free. No responsibility is accepted by IAT for any loss or damage
in the event that such a virus or defect exists.
-Original Message-
From: bachuba [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 07, 2007 2:48 PM
To: users@tomcat.apache.org
Subject: Re: Programmatically Determine JVM Version used by Tomcat


I believe the suggested solutions will only poll the java version installed
on the computer, correct?  I probably should have provided a little more
detail on what is needed.

Tomcat is being installed with JAVA_HOME pointed toward a 1.4 version of
java.  Later, JAVA 1.5 is installed and JAVA_HOME updated, but the Tomcat
service is still using 1.4 (verified by running tomcat5w.exe and clicking on
the Java tab).  This value either needs to be updated or the Tomcat service
uninstalled and reinstalled with the new JAVA_HOME.  Sometimes this doesn't
happen causing issues with our application, so I'd like to write a program
that detects when this situation occurs (JAVA_HOME set to 1.5, Tomcat using
1.4).  Thanks.
-- 
View this message in context:
http://www.nabble.com/Programmatically-Determine-JVM-Version-used-by-Tomcat-
tf3884522.html#a11015926
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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Andrei Tchijov
I do appreciate that Realm "in general" should not be concern with  
Request/Response.  One of previous replies to my original question  
suggested that I should look into JAASRealm for the solution to my  
problem (which does require access to Request/Response). I was just  
commenting that I can not see how JAASRealm (or any Realm for that  
matter) can help me


Andrei


On Jun 7, 2007, at 4:47 PM, Caldarale, Charles R wrote:


From: Andrei Tchijov [mailto:[EMAIL PROTECTED]
Subject: Re: Is it possible to introduce new authentication
method without modifying tomcat?

Nowhere in the code I can see any indication of how to get
to HTTP Request and HTTP Response from Realm code.


Why would you want to do that?  A Realm is utilized during
authentication, which is triggered when a request attempts to access a
controlled resource.  Once authenticated, the user information is
available through the Session object.  No logic in the Realm should  
care

about individual requests or responses.

 - 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: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread Propes, Barry L
oh, sorry. You do that and it STILL runs it with the service. Correct?

Are you sure it doesn't change if you stop and restart it manually?

-Original Message-
From: bachuba [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 07, 2007 3:48 PM
To: users@tomcat.apache.org
Subject: Re: Programmatically Determine JVM Version used by Tomcat



I believe the suggested solutions will only poll the java version installed
on the computer, correct?  I probably should have provided a little more
detail on what is needed.

Tomcat is being installed with JAVA_HOME pointed toward a 1.4 version of
java.  Later, JAVA 1.5 is installed and JAVA_HOME updated, but the Tomcat
service is still using 1.4 (verified by running tomcat5w.exe and clicking on
the Java tab).  This value either needs to be updated or the Tomcat service
uninstalled and reinstalled with the new JAVA_HOME.  Sometimes this doesn't
happen causing issues with our application, so I'd like to write a program
that detects when this situation occurs (JAVA_HOME set to 1.5, Tomcat using
1.4).  Thanks.
-- 
View this message in context: 
http://www.nabble.com/Programmatically-Determine-JVM-Version-used-by-Tomcat-tf3884522.html#a11015926
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: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread Propes, Barry L
can't you open up the bat or .sh file and just make the change there?


-Original Message-
From: bachuba [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 07, 2007 3:48 PM
To: users@tomcat.apache.org
Subject: Re: Programmatically Determine JVM Version used by Tomcat



I believe the suggested solutions will only poll the java version installed
on the computer, correct?  I probably should have provided a little more
detail on what is needed.

Tomcat is being installed with JAVA_HOME pointed toward a 1.4 version of
java.  Later, JAVA 1.5 is installed and JAVA_HOME updated, but the Tomcat
service is still using 1.4 (verified by running tomcat5w.exe and clicking on
the Java tab).  This value either needs to be updated or the Tomcat service
uninstalled and reinstalled with the new JAVA_HOME.  Sometimes this doesn't
happen causing issues with our application, so I'd like to write a program
that detects when this situation occurs (JAVA_HOME set to 1.5, Tomcat using
1.4).  Thanks.
-- 
View this message in context: 
http://www.nabble.com/Programmatically-Determine-JVM-Version-used-by-Tomcat-tf3884522.html#a11015926
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: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread bachuba

I believe the suggested solutions will only poll the java version installed
on the computer, correct?  I probably should have provided a little more
detail on what is needed.

Tomcat is being installed with JAVA_HOME pointed toward a 1.4 version of
java.  Later, JAVA 1.5 is installed and JAVA_HOME updated, but the Tomcat
service is still using 1.4 (verified by running tomcat5w.exe and clicking on
the Java tab).  This value either needs to be updated or the Tomcat service
uninstalled and reinstalled with the new JAVA_HOME.  Sometimes this doesn't
happen causing issues with our application, so I'd like to write a program
that detects when this situation occurs (JAVA_HOME set to 1.5, Tomcat using
1.4).  Thanks.
-- 
View this message in context: 
http://www.nabble.com/Programmatically-Determine-JVM-Version-used-by-Tomcat-tf3884522.html#a11015926
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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Caldarale, Charles R
> From: Andrei Tchijov [mailto:[EMAIL PROTECTED] 
> Subject: Re: Is it possible to introduce new authentication 
> method without modifying tomcat?
> 
> Nowhere in the code I can see any indication of how to get 
> to HTTP Request and HTTP Response from Realm code.

Why would you want to do that?  A Realm is utilized during
authentication, which is triggered when a request attempts to access a
controlled resource.  Once authenticated, the user information is
available through the Session object.  No logic in the Realm should care
about individual requests or responses.

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



Fwd: building mod_jk 1.2.23 apxs errors

2007-06-07 Thread tom northcutt

I am attempting to compile the latest version of mod_jk for integration
with my apache 2.0.59 server on CentOS-3.8 (32bit)

After running  ./configure --with-apxs=/usr/local/apache/bin/apxs
from the native directory, the mod_jk.lai and mod_jk.a files are
created.

Upon running the make install, I get the following error:


Installing files to Apache Modules Directory...
/usr/local/apache/bin/apxs -i mod_jk.la
/usr/local/apache-2.0.59/build/instdso.sh
SH_LIBTOOL='/usr/local/apache-2.0.59/build/libtool' mod_jk.la
/usr/local/apache-2.0.59/modules
/usr/local/apache-2.0.59/build/libtool --mode=install cp mod_jk.la
/usr/local/apache-2.0.59/modules/
cp .libs/mod_jk.lai /usr/local/apache-2.0.59/modules/mod_jk.la
cp .libs/mod_jk.a /usr/local/apache-2.0.59/modules/mod_jk.a
ranlib /usr/local/apache-2.0.59/modules/mod_jk.a
chmod 644 /usr/local/apache-2.0.59/modules/mod_jk.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache-2.0.59/modules
--
Libraries have been installed in:
  /usr/local/apache-2.0.59/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
  - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
  - add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
  - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
  - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
--
Warning!  dlname not found in /usr/local/apache-2.0.59/modules/mod_jk.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache-2.0.59/modules/mod_jk.so
chmod: failed to get attributes of
`/usr/local/apache-2.0.59/modules/mod_jk.so': No such file or
directory
apxs:Error: Command failed with rc=65536
.

If I run this command (from the Makefile) manually, I get the same error:

(in apache-2.0)
/usr/local/apache/bin/apxs -i mod_jk.la


My apxs was built from source with the following apache configuration:
configured by ./configure, generated by GNU Autoconf 2.59,
 with options \"'--prefix=/usr/local/apache-2.0.59' '--enable-module=most' '--e
nable-shared=max' '--enable-proxy' '--enable-rewrite'\"

Thanks,

-Tom

-
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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Andrei Tchijov
I will be first to admin that I may be silly bugger, but I can not  
see how JAASRealm can help me. Nowhere in the code I can see any  
indication of how to get to HTTP Request and HTTP Response from Realm  
code.


Please enlighten...

Andrei


On Jun 7, 2007, at 12:47 PM, Pid wrote:


Andrei Tchijov wrote:

Hi,
I want to be able to add my own authentication method (login- 
config/auth-method) as one of possible choices.  Is it possible to  
do so without re-compiling tomcat?  Ideally, I would love to be  
able to achieve my goal by changing server.xml file (and adding  
some jars with my custom code to tomcat).
Before any one suggested that I should write custom Realm: I think  
it will not work for me. My authentication method require access  
to ALL information available from HTTP Request (not just user name/ 
password) also in some situations, access to HTTP Response is  
required as well. It looks like this method:
protected abstract boolean authenticate(Request  
request,Response response,LoginConfig config) throws IOException;

or AuthenticatorBase class is the best place to be.
Your comments will be highly appreciated,


Have you looked into using a JAASRealm?

p


Andrei Tchijov
-
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: Cipher suites

2007-06-07 Thread Thiago Silva

I am not using spaces in the real file. It is just a mistake when I copied
and pasted.

Is this the the only way to force the use of an specific cipher suite? Has
anybody ever done this before?



On 6/7/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thiago,

Thiago Silva wrote:
> I have tried to use the tag "ciphers" in the following part of the
> Server.xml, but it did not used the specific cipher suite that I have
set.
>
> code:
> --
>
> http://enigmail.mozdev.org

iD8DBQFGaByU9CaO5/Lv0PARAnuHAKCHcFJWdLtqbSJ4r57P7BcjT+PDLgCfawIu
FgCu2eMjRZwpW9YG8N1k1Hw=
=WB8G
-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]





--
/*---
  Thiago - Pedpano -
---*/


Re: free Tomcat profiler

2007-06-07 Thread Leon Rosenberg

you need this:

http://moskito.anotheria.net/moskitodemo/mui/mskShowAllProducers

its a demo for moskito. moskito itself is located at
http://moskito.anotheria.net
and the source is hosted by java.net
http://moskito.dev.java.net

On 6/7/07, radcio <[EMAIL PROTECTED]> wrote:


Hi,

I am looking for a Tomcat profiler which is able to measure the actual load
of a web page/ request processing time. I've tried Jmeter but doesn't seem
to show request process times, but only file request times.

Thanks a million,
Radu.

--
View this message in context: 
http://www.nabble.com/free-Tomcat-profiler-tf3884685.html#a11010762
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: 30 Mb of common jars in each of 5 war files, should i consolidate?

2007-06-07 Thread Larry Meadors

I think you'd be better off spending your time (== money) on CPU, RAM,
and disk space than doing this. It's one of those ideas that looks
good on paper, but sucks in practice.

Larry


On 6/7/07, rhodebump <[EMAIL PROTECTED]> wrote:


I have 5 war files, each containing the springframework, hibernate jars,
tapestry jars, lots of jars so that each war file is 30 megs.

I wonder, from a performance/memory perspective would it be better to move
these common library jars into the /tomcat/common/lib directory, or should I
keep them in their individual war file structures?

I understand how moving the stuff into /common/lib means everything uses the
save version, but what is best for performance?

Thanks!

--
View this message in context: 
http://www.nabble.com/30-Mb-of-common-jars-in-each-of-5-war-files%2C-should-i-consolidate--tf3884425.html#a11009847
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: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Pid

Andrei Tchijov wrote:

Hi,
I want to be able to add my own authentication method 
(login-config/auth-method) as one of possible choices.  Is it possible 
to do so without re-compiling tomcat?  Ideally, I would love to be able 
to achieve my goal by changing server.xml file (and adding some jars 
with my custom code to tomcat).


Before any one suggested that I should write custom Realm: I think it 
will not work for me. My authentication method require access to ALL 
information available from HTTP Request (not just user name/password) 
also in some situations, access to HTTP Response is required as well. It 
looks like this method:


protected abstract boolean authenticate(Request request,Response 
response,LoginConfig config) throws IOException;


or AuthenticatorBase class is the best place to be.


Your comments will be highly appreciated,


Have you looked into using a JAASRealm?

p


Andrei Tchijov



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






smime.p7s
Description: S/MIME Cryptographic Signature


Re: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Andrei Tchijov

sZabi,
	Thnkx for response. I am actually already using similar approach.   
It is easy to implement, but it has one problem (from my point of  
view). It is not very "user friendly".  It is much easier to explain  
to end user that if he/she is using "FORM" as authentication method,  
all he/she need to do to start use my authentication IN ADDITION to  
FORM is replace "FORM" with "ACME-FORM" in web.xml file. I would love  
to register  one "ACME-xxx" authenticator for each of standard ones  
so it does my special authentication + what ever standard one is doing.

Thnkx again,

Andrei Tchijov



On Jun 7, 2007, at 12:01 PM, Szabolcs Márton wrote:


Hi!

its an options, i use sometime.
Create a filter.

a class likes this.
public class AuthenticationFilter implements Filter {

	private static Logger log = Logger.getLogger 
(AuthenticationFilter.class);


public void doFilter(ServletRequest request, ServletResponse
response, FilterChain chain)
throws IOException, ServletException {



add in web.xml this:


myAuthfilter

poker.web.filters.AuthenticationFilter


LoginURL
/login



DeniedURL
/denied.jsp





myAuthfilter
/*



you can map a filter to an url-pattern, in this example everything.
in the filter you have the request and response as well.
you could create a response here, so its not get called the servlet,
or anything you called, because the filter dont let.
Or you can say to the filter to countine the processing,  (when  
authenticated)


read about this on google for details.

i like this because its so simple, and so fast.

regards,
sZabi





2007/6/7, Andrei Tchijov <[EMAIL PROTECTED]>:

Hi,
I want to be able to add my own authentication method  
(login-config/

auth-method) as one of possible choices.  Is it possible to do so
without re-compiling tomcat?  Ideally, I would love to be able to
achieve my goal by changing server.xml file (and adding some jars
with my custom code to tomcat).

Before any one suggested that I should write custom Realm: I think it
will not work for me. My authentication method require access to ALL
information available from HTTP Request (not just user name/password)
also in some situations, access to HTTP Response is required as well.
It looks like this method:

protected abstract boolean authenticate(Request  
request,Response

response,LoginConfig config) throws IOException;

or AuthenticatorBase class is the best place to be.


Your comments will be highly appreciated,

Andrei Tchijov



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



Re: Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Szabolcs Márton

Hi!

its an options, i use sometime.
Create a filter.

a class likes this.
public class AuthenticationFilter implements Filter {

private static Logger log = 
Logger.getLogger(AuthenticationFilter.class);

public void doFilter(ServletRequest request, ServletResponse
response, FilterChain chain)
throws IOException, ServletException {



add in web.xml this:


myAuthfilter

poker.web.filters.AuthenticationFilter


LoginURL
/login



DeniedURL
/denied.jsp





myAuthfilter
/*



you can map a filter to an url-pattern, in this example everything.
in the filter you have the request and response as well.
you could create a response here, so its not get called the servlet,
or anything you called, because the filter dont let.
Or you can say to the filter to countine the processing,  (when authenticated)

read about this on google for details.

i like this because its so simple, and so fast.

regards,
sZabi





2007/6/7, Andrei Tchijov <[EMAIL PROTECTED]>:

Hi,
I want to be able to add my own authentication method (login-config/
auth-method) as one of possible choices.  Is it possible to do so
without re-compiling tomcat?  Ideally, I would love to be able to
achieve my goal by changing server.xml file (and adding some jars
with my custom code to tomcat).

Before any one suggested that I should write custom Realm: I think it
will not work for me. My authentication method require access to ALL
information available from HTTP Request (not just user name/password)
also in some situations, access to HTTP Response is required as well.
It looks like this method:

protected abstract boolean authenticate(Request request,Response
response,LoginConfig config) throws IOException;

or AuthenticatorBase class is the best place to be.


Your comments will be highly appreciated,

Andrei Tchijov



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



free Tomcat profiler

2007-06-07 Thread radcio

Hi,

I am looking for a Tomcat profiler which is able to measure the actual load
of a web page/ request processing time. I've tried Jmeter but doesn't seem
to show request process times, but only file request times.

Thanks a million,
Radu.

-- 
View this message in context: 
http://www.nabble.com/free-Tomcat-profiler-tf3884685.html#a11010762
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: Encoding issue: + versus %20

2007-06-07 Thread Lucas Galfaso

Mmmm..
It should read:
To use "+" as a space is correct within the query, but is not correct
within the path.

- LG

On 6/7/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lucas,

> To use "+" as a space is correct within the query, but is correct
> within the path.

Huh?

- -chris

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

iD8DBQFGaBz59CaO5/Lv0PARAsAyAKCuBTmf55ChCLReV9E9tFgiw73Q4ACfRvaw
Crj7D4JkxYKtbs1XbJuj9Js=
=sBah
-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]



Is it possible to introduce new authentication method without modifying tomcat?

2007-06-07 Thread Andrei Tchijov

Hi,
	I want to be able to add my own authentication method (login-config/ 
auth-method) as one of possible choices.  Is it possible to do so  
without re-compiling tomcat?  Ideally, I would love to be able to  
achieve my goal by changing server.xml file (and adding some jars  
with my custom code to tomcat).


Before any one suggested that I should write custom Realm: I think it  
will not work for me. My authentication method require access to ALL  
information available from HTTP Request (not just user name/password)  
also in some situations, access to HTTP Response is required as well.  
It looks like this method:


	protected abstract boolean authenticate(Request request,Response  
response,LoginConfig config) throws IOException;


or AuthenticatorBase class is the best place to be.


Your comments will be highly appreciated,

Andrei Tchijov



-
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: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread David kerber

bachuba wrote:

Hi,
I'm fairly new to using Tomcat, but need to determine what JVM version (or
at least the path to it) a running Tomcat service is currently using on a
Windows system.  If I run tomcat5w.exe and click on the Java tab, I notice
the informaiton is listed there, but I would like to be able to get at that
programmatically.  We are currently using Tomcat version 5.0.28.  Could
somone please describe how this could be done?  Thanks.
  

The system property "java.version" will probably give you what you want.

D



-
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: Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread Caldarale, Charles R
> From: bachuba [mailto:[EMAIL PROTECTED] 
> Subject: Programmatically Determine JVM Version used by Tomcat
> 
> I'm fairly new to using Tomcat, but need to determine what 
> JVM version (or at least the path to it)

It's available in a system property:

System.getProperty("java.runtime.version")

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



Programmatically Determine JVM Version used by Tomcat

2007-06-07 Thread bachuba

Hi,
I'm fairly new to using Tomcat, but need to determine what JVM version (or
at least the path to it) a running Tomcat service is currently using on a
Windows system.  If I run tomcat5w.exe and click on the Java tab, I notice
the informaiton is listed there, but I would like to be able to get at that
programmatically.  We are currently using Tomcat version 5.0.28.  Could
somone please describe how this could be done?  Thanks.
-- 
View this message in context: 
http://www.nabble.com/Programmatically-Determine-JVM-Version-used-by-Tomcat-tf3884522.html#a11010153
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 Administration HTTP Status 500 -

2007-06-07 Thread Elton Kong

David,

Yes, the admin folder is under the server/admin folder. I basically just 
untarred it and that's where it was. I didn't change any of the files 
but I did check to see if they were there and in the correct place.


Elton

David Smith wrote:
This may or may not be the problem, but did you install it in 
server/webapps next to the manager webapp?  That is where it's 
supposed to be as opposed to in the webapps directory with the other 
webapps.


--David

Elton Kong wrote:

Martin,

Here is the log pasted. There is a little more at the end I believe 
but this should outline the picture, thanks!


Elton

-

2007-06-06 17:02:41 StandardWrapperValve[jsp]: Servlet.service() for 
servlet jsp threw exception
javax.servlet.ServletException: Cannot find message resources under 
key org.apache.struts.action.MESSAGE
   at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:495) 


   at org.apache.jsp.login_jsp._jspService(login_jsp.java:192)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) 

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) 

   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


   at java.lang.Thread.run(Thread.java:799)
- Root Cause -
javax.servlet.jsp.JspException: Cannot find message resources under 
key org.apache.struts.action.MESSAGE
   at 
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103) 

   at 
org.apache.struts.util.R

30 Mb of common jars in each of 5 war files, should i consolidate?

2007-06-07 Thread rhodebump

I have 5 war files, each containing the springframework, hibernate jars,
tapestry jars, lots of jars so that each war file is 30 megs.

I wonder, from a performance/memory perspective would it be better to move
these common library jars into the /tomcat/common/lib directory, or should I
keep them in their individual war file structures?

I understand how moving the stuff into /common/lib means everything uses the
save version, but what is best for performance?

Thanks!

-- 
View this message in context: 
http://www.nabble.com/30-Mb-of-common-jars-in-each-of-5-war-files%2C-should-i-consolidate--tf3884425.html#a11009847
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: Encoding issue: + versus %20

2007-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lucas,

> To use "+" as a space is correct within the query, but is correct
> within the path.

Huh?

- -chris

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

iD8DBQFGaBz59CaO5/Lv0PARAsAyAKCuBTmf55ChCLReV9E9tFgiw73Q4ACfRvaw
Crj7D4JkxYKtbs1XbJuj9Js=
=sBah
-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: Encoding issue: + versus %20

2007-06-07 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
> Subject: Re: Encoding issue: + versus %20
> 
> > To use "+" as a space is correct within the query, but is correct
> > within the path.
> 
> Huh?

I think a rather critical "not" was left out of the second part of the
sentence.

 - 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: Cipher suites

2007-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thiago,

Thiago Silva wrote:
> I have tried to use the tag "ciphers" in the following part of the
> Server.xml, but it did not used the specific cipher suite that I have set.
> 
> code:
> --
> 
> http://enigmail.mozdev.org

iD8DBQFGaByU9CaO5/Lv0PARAnuHAKCHcFJWdLtqbSJ4r57P7BcjT+PDLgCfawIu
FgCu2eMjRZwpW9YG8N1k1Hw=
=WB8G
-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: was anyone able to change his/her email address in this list

2007-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Abdelmonaam,

Really? It didn't work? How did you try to unsubscribe? How did you try
to subscribe?

I see a lot of folks who have trouble subscribing or un-subscribing from
mailing lists... I have never had a single problem. (And I use gnupg,
which often causes some problems with poorly written email programs).

- -chris

Abdelmonaam Kallali wrote:
> I've tried that but didn't work
> 
> Abdelmonaam KALLALI
> Test Specialist
> DragonWave Inc
> 411 Legget Dr
> Phone :613-599 9991 ext 275
> 
> -Original Message-
> From: Gregor Schneider [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 06, 2007 12:09 PM
> To: Tomcat Users List
> Subject: Re: was anyone able to change his/her email address in this list
> 
> 1. unsubscribe with your old email-address
> 2. subscribe with your new email-address
> 
> Gregor
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaBxc9CaO5/Lv0PARAj0YAJ4vtMCnJgzDxmZblpSNQX5y8r/BTACeI7e3
+0I1yOBRxtwEdlz5Q0Lert8=
=Rqz1
-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]



JNDI and datasource

2007-06-07 Thread Mailing
Hi,

I'm developing an Hibernate web application with jboss using a datasource
named "java:/DefaultDS"

java:/DefaultDS

When I configure the same datasource with tomcat, I can't reach it with this
name, but with java:comp/env/DefaultDS

So my hibernate config file must be changed depending on witch server I
deploy it. Can I configure tomcat to give me the comp/env context when I ask
him an initial context?

Emmanuel Potvin

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.11/837 - Release Date: 2007-06-06
14:03
 


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



FW: Processing of multipart/form-data request failed. Stream ended unexpectedly

2007-06-07 Thread Arpana Bansal
Our site is hosted on Tomcat 5.5 and IIS server. 
We are getting following error when we try to uplaod a file of size greater 
than around 100KB.
 
javax.servlet.ServletException: Processing of multipart/form-data request 
failed. Stream ended unexpectedly

org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:191)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:389)

org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:45)

org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:57)

org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)

org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)

org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:280)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
We donot get this error if we access the site directly using tomcat and bypass 
IIS. 
As per other sites we updated the ISAPI_redirector.dll(229Kb) to the latest one 
on tomcat. And then restarted the servers. But still we are unable to upload 
files greater than 100KB.
Is there any IIS settings that we need to change??
 
 
 


Re: webappclassloader won't get garbage colelcte, need suggestions (out of memory)

2007-06-07 Thread Johnny Kewl

No, imagine if you used a thread to say send an email.
The webapp is done, tomcat is idling and it whacks your thread that hasnt 
done the email yet.


You see it in normal java apps as well, ie if a thread is still busy and you 
close the app, if you look at the processes, the thread is keeping it alive.


You have to signal your thread, so perhaps when the class that started the 
threads is destroyed, it sets a variable that the threads can see, and they 
start shutting down.
The idea is to rather give them a chance to stop themselves. If you simply 
destroy, the state of whatever they where doing, it could be a mess I 
mean imagine if one of those threads was backup your dB its half way... 
how do you stop it?

You certainly dont want Tomcat to just whack it.

Have fun



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

To: "Tomcat Users List" 
Sent: Wednesday, June 06, 2007 4:55 PM
Subject: webappclassloader won't get garbage colelcte, need suggestions (out 
of memory)




Hello,

Trying to locate memory leak issues (not garbage collected classes &
classloader) i noticed this huge problem:

My webapp uses libraries that spawn helper Threads, using the default
ThreadGroup. Those Helper Thread are subclasses of java.lang.Thread that
override the run(). After stopping properly all those Threads at webapp
shutdown (they have all existed from run() ), it seems those Threads are
still referenced by the main ThreadGroup. Shouldn't tomcat clean the
ThreadGroup when a webapp is undeployed? This indirect directional link
between a system ThreadGroup and WebappClassLoader loader classes
prevents garbage collecting.

Am currently working on a context listener in my webapp that will clean
it at destroy time, but am pretty sure this should be the container's job.



-
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 doesn't start

2007-06-07 Thread Johnny Kewl
I've seen this as well, sometimes I manage to really screw things up when 
developing.

You changing your context path but I found that if I went into
Tomcat 5.5.23\conf\Catalina\localhost and deleted the App.xml context file 
there... tomcat recovered nicely, on a redeploy.

Its almost as if it locks into the wrong context, and that hangs tomcat.


- Original Message - 
From: "Felipe Martins" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 06, 2007 7:01 PM
Subject: Tomcat doesn't start



Hi everybody,

   I'm developping an application using struts and hibernate.
   It was working fine, but, suddenly, with no apparent reason, it
stopped to work. Tomcat stops at line "INFO: XML validation disabled".
  And, if I remove the context definition of my application, it starts
normally.
   Can anyone, please, help me?

   Kind regards,

Felipe.

-
Novo Yahoo! Cadê? - Experimente uma nova busca. 



-
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: Developing Tomcat in NB

2007-06-07 Thread Johnny Kewl

Excellent... thank you.
Just wanted to ask you if you think its at all possible to do this in 
Netbeans 5.5
It seems to me that NB 6 has the ability to pick up on the ant scripts as 
part of the project menu's, and thats what you doing, but I was wondering if 
your ant scripts can be incorporated into NB5.5 in some other way?


I've done a very manual port and a restructuring of Tomcat6 on netbeans 5.5.
In other words, I literally moved the code by hand, and rebuilt the 
dependency files the way I wanted it. I moved Tomcat to a semi embedded, but 
still server environment, for want of a better description 
http://coolese.100free.com/ and would like to add some ant script that moves 
as easily as yours does, from Tomcat src, to the desired structure, but 
still keep it at NB5.5


Thanks... very very nice... will grab NB6 as soon as its officially 
released.


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

To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2007 4:24 PM
Subject: Developing Tomcat in NB




Dear Tomcat developers,

I would like to let you now that we have recently ported Tomcat 6.0.13
environment into NetBeans IDE.
You may wish to check it out:
http://wiki.netbeans.org/wiki/view/NetbeansedTomcat

If you are new to NB please go to netbeans.org for all information,
tutorials and fun stuff.

Now you can completely build, debug, profile Tomcat inside NB IDE and have
access to all nifty features NB IDE provides to make developer's more
productive and happy.
You productivity may get a serious boost and you will learn a new stuff as
well :-)

I would greatly appreciate any feedback you may have about my project and
any ideas on how to make it more useful for Tomcat community.

Daria Titova
NB Engineer.
--
View this message in context: 
http://www.nabble.com/Developing-Tomcat-in-NB-tf3878243.html#a10989703

Sent from the Tomcat - Dev mailing list archive at Nabble.com.


-
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: error in catalina.out log

2007-06-07 Thread Jean-Pierre Astier

Thanks Chuck 

Le 6 juin 07 à 15:57, Caldarale, Charles R a écrit :


From: Jean-Pierre Astier [mailto:[EMAIL PROTECTED]
Subject: error in catalina.out log

6 juin 2007 15:01:08 org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 6 instance(s) to be deallocated


The above message appears during Tomcat shutdown or application
redeployment while it's waiting for active requests to finish  
processing
before calling the Servlet.destroy() method.  The count is the  
number of
servlet instances currently running; the message is displayed only  
three

times before going ahead and calling destroy() anyway.  (It would be
nice if it told us which servlet.)


After this message I'm not be able to connect to my application.


That's because you've shut down either Tomcat or the application.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
PROPRIETARY

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e- 
mail

and its attachments from all computers.

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



Difference in Running Tomcat on Command Line and in Eclipse

2007-06-07 Thread Curious_Coder

This may be a newb question, but im going to ask anyway. What is the
difference between running tomcat on the command line and running tomcat
through eclipse?

The difference may be an individual thing so I'll describe the issue im
having in a bit more detail. When I start the tomcat server on the command
line, using the command;

[code]
startup.sh
[/code]

I am able to access through localhost, the jakarta apache welcome page and
other pages i've put there. However when I start up the  server in eclipse I
cannot access the jakarta home page or other pages or deploy any .war files
that are there. Why is this?
-- 
View this message in context: 
http://www.nabble.com/Difference-in-Running-Tomcat-on-Command-Line-and-in-Eclipse-tf3882912.html#a11005085
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 Administration HTTP Status 500 -

2007-06-07 Thread David Smith
This may or may not be the problem, but did you install it in 
server/webapps next to the manager webapp?  That is where it's supposed 
to be as opposed to in the webapps directory with the other webapps.


--David

Elton Kong wrote:

Martin,

Here is the log pasted. There is a little more at the end I believe 
but this should outline the picture, thanks!


Elton

-

2007-06-06 17:02:41 StandardWrapperValve[jsp]: Servlet.service() for 
servlet jsp threw exception
javax.servlet.ServletException: Cannot find message resources under 
key org.apache.struts.action.MESSAGE
   at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:495) 


   at org.apache.jsp.login_jsp._jspService(login_jsp.java:192)
   at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162) 

   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200) 

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146) 

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) 

   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) 

   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) 

   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 

   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) 


   at java.lang.Thread.run(Thread.java:799)
- Root Cause -
javax.servlet.jsp.JspException: Cannot find message resources under 
key org.apache.struts.action.MESSAGE
   at 
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103) 

   at 
org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
   at 
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
   at 
org.apache.jsp.login_jsp._jspx_meth_bean_message_0(login_jsp.java:206)

   at org.apache.jsp.login_jsp._jspSer

Re: Multiple Realms in a Context?

2007-06-07 Thread Pid

Tim Alberts wrote:
I'm in the process of teaching myself the Realms configuration for 
Tomcat and have a couple questions that after hours of reading and 
testing I could determine, but this list can hopefully save me some 
research time.  Reading the documentation at:


http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html

I understand a Realm can be "/Inside a  element/ - This Realm 
will be used ONLY for THIS web application."


Does this mean conversely that the web application can only use this 
Realm for authentication?


Yes, only one Realm at a time.

Also, can I configure multiple realms inside a ?  For instance 
a JDBCRealm for general access to administration pages in a web 
application, plus a JNDIRealm for authenticating individual users (say 
on an LDAP server configured as PAM authentication)?


How would the server know which Realm to authenticate against, if two 
are defined, especially before you've supplied a credential?


If you need to do more complex authentication then implement a JAASRealm 
and incorporate any functionality you'd need.



p




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






smime.p7s
Description: S/MIME Cryptographic Signature