virtual host doesn't load database content

2005-08-29 Thread luke
Hi.

I have a domain resolving to a tomcat box.
I have set up a virtual host. No probs.

/~
  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
  /Host 


  Host name=albino.info 
 appBase=webapps
 unpackWARs=true 
 autoDeploy=true
 xmlValidation=false 
 xmlNamespaceAware=false
 Aliaswww.albino.info/Alias
 Context path= 
docBase=/progs/tomcat559/webapps/megaboard02 
debug=0
reloadable=true
 /Context
  /Host
\

That all works well.
However the welcome-file or 'default page' for this site 
requires database access.

If I set up docBase as:
'docBase=/progs/tomcat559/webapps'
and try accessing the address www.albino.info/megaboard02, 
no probs. the database results are shown.

but if I set docbase as 
'docBase=/progs/tomcat559/webapps/megaboard02'
and try accessing the address www.albino.info, 
there's no content from the database.

I want to use www.albino.info as the home page without anything added.
and I want it to include the database stuff.

What am I doing wrong?

Kind regards.
Luke.

-- 
._..
.|  .| |.|/.|_ .
.|__.|_|.|\.|_ .
:61 421 276 282:

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



Re: invalidate session after calling listeners

2005-08-29 Thread Franklin Phan

Hassan,

How do I add an instance of the listener to each session?  Can you please 
provide an example?

I forgot to mention that I already have the following in the first JSP after 
the login is validated:

jsp:useBean id=listener class=abcd.AbcdSessionListener scope=session /

%
session.setAttribute(sessionListener, listener);
%


What you say, ...and that object receives the event, it still knows its attributes.  
What do you mean by object?  Which object?

Thanks.


Hassan Schroeder wrote:

Franklin Phan wrote:

I'm trying to code a method to clean up specifically named files 
inside a working dir (in Windows XP) whenever the session times out.  



Rather than a global listener approach, why not just add an instance
of your listener *to each session*? When the session ends and that
object receives the event, it still knows its attributes; from your
example:

 public void valueUnbound(HttpSessionBindingEvent se) {
AbcdUtil util = new AbcdUtil();

/* -- neither of these is necessary, as userId is still defined
 *   HttpSession session = se.getSession();
 *   String userId = (String)session.getValue(userId);
 */

I use this approach to return items to stock from an abandoned (via
session timeout) shopping cart, for instance.

FWIW!



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



Re: invalidate session after calling listeners

2005-08-29 Thread Franklin Phan

Hassan,

Also, I don't understand the difference between a global and a non-global 
listener approach.  Can you explain?  Thanks.

Thanks.


Hassan Schroeder wrote:

Franklin Phan wrote:

I'm trying to code a method to clean up specifically named files 
inside a working dir (in Windows XP) whenever the session times out.  



Rather than a global listener approach, why not just add an instance
of your listener *to each session*? When the session ends and that
object receives the event, it still knows its attributes; from your
example:

 public void valueUnbound(HttpSessionBindingEvent se) {
AbcdUtil util = new AbcdUtil();

/* -- neither of these is necessary, as userId is still defined
 *   HttpSession session = se.getSession();
 *   String userId = (String)session.getValue(userId);
 */

I use this approach to return items to stock from an abandoned (via
session timeout) shopping cart, for instance.

FWIW!



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



Re: virtual host doesn't load database content

2005-08-29 Thread luke
Hi.

I solved this myself by placing the database resource tag in the server.xml
instead of in a separate context.xml file in the META-INF directory.

I don't know why that has to be that way.

KR.
Luke.

29Aug2005 @ 15:39 [EMAIL PROTECTED] thusly spake
 Hi.
 
 I have a domain resolving to a tomcat box.
 I have set up a virtual host. No probs.
 
 /~
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
   /Host 
 
 
   Host name=albino.info 
  appBase=webapps
  unpackWARs=true 
  autoDeploy=true
  xmlValidation=false 
  xmlNamespaceAware=false
  Aliaswww.albino.info/Alias
  Context path= 
 docBase=/progs/tomcat559/webapps/megaboard02 
 debug=0
 reloadable=true
  /Context
   /Host
 \
 
 That all works well.
 However the welcome-file or 'default page' for this site 
 requires database access.
 
 If I set up docBase as:
 'docBase=/progs/tomcat559/webapps'
 and try accessing the address www.albino.info/megaboard02, 
 no probs. the database results are shown.
 
 but if I set docbase as 
 'docBase=/progs/tomcat559/webapps/megaboard02'
 and try accessing the address www.albino.info, 
 there's no content from the database.
 
 I want to use www.albino.info as the home page without anything added.
 and I want it to include the database stuff.
 
 What am I doing wrong?
 
 Kind regards.
 Luke.
 
 -- 
 ._..
 .|  .| |.|/.|_ .
 .|__.|_|.|\.|_ .
 :61 421 276 282:
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
._..
.|  .| |.|/.|_ .
.|__.|_|.|\.|_ .
:61 421 276 282:

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



Character encoding question

2005-08-29 Thread Richard Jones
Hi All,

I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.

The problem manifests when forms are posted containing Scandinavian
characters.  In some cases these characters are de/encoded correctly and
in other cases they are replaced by strings of other special characters.
The system that I am working with aims to use UTF-8 encoding, and there
are meta elements on all the pages to this effect.

I have enabled the RequestDumperValve which shows that the characters
are incorrectly decoded by the time they reach this stage of processing.
I have noticed a correlation (although not necessarily a relationship)
between whether the characters are correctly decoded and whether the
request is reporting using:

contentType=text/html;charset=ISO-8859-1

or incorrectly decoded when:

contentType=text/html;charset=UTF-8

(This comes from the part of the RequestDumperValve output which is
separated from the main request part by two dashed lines).

I have tried modifying the Connector for the service by adding

URIEncoding=UTF-8

and experimented with both:


-- 
Richard
---
Richard Jones|
Overingeniør | Senior Engineer
Universitetsbiblioteket i Bergen | University of Bergen Library

e: [EMAIL PROTECTED]
t: +47 55 58 25 37

BORA: http://bora.uib.no/



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



Character Encoding question

2005-08-29 Thread Richard Jones
Hi All,

I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.

The problem manifests when forms are posted containing Scandinavian
characters.  In some cases these characters are de/encoded correctly and
in other cases they are replaced by strings of other special characters.
The system that I am working with aims to use UTF-8 encoding, and there
are meta elements on all the pages to this effect.

I have enabled the RequestDumperValve which shows that the characters
are incorrectly decoded by the time they reach this stage of processing.
I have noticed a correlation (although not necessarily a relationship)
between whether the characters are correctly decoded and whether the
request is reporting using:

contentType=text/html;charset=ISO-8859-1

or incorrectly decoded when:

contentType=text/html;charset=UTF-8

(This comes from the part of the RequestDumperValve output which is
separated from the main request part by two dashed lines).

I have tried modifying the Connector for the service by adding

URIEncoding=UTF-8

and experimented with both:

useBodyEncodingForURI=true and useBodyEncodingForURI=false

with no luck.

Does anyone have any experience or advice that might point me in the
right direction.  It is entirely possible that this problem is /not/ a
tomcat issue, but I am running out of ideas here.

PS, sorry for the previous partial post - I just discovered a new
keyboard shortcut by accident!

Best Wishes,

-- 
Richard
---
Richard Jones|
Overingeniør | Senior Engineer
Universitetsbiblioteket i Bergen | University of Bergen Library

e: [EMAIL PROTECTED]
t: +47 55 58 25 37

BORA: http://bora.uib.no/



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



Re: Character encoding question

2005-08-29 Thread Anto Paul
On 8/29/05, Richard Jones [EMAIL PROTECTED] wrote:
 Hi All,
 
 I am having problems with Scandinavian characters on my system and am
 attempting to isolate the problem; any help would be greatly
 appreciated.

This is what I did to work with Tomcat. 

a, Set up Tomcat first: To support UTF encoded data send as part of
URI one has to set the URIEncoding attribute of the coyote Connector
element in server.xml.
b, Use a filter to set the character encoding of the request before it
is processed.
public void doFilter(ServletRequest req,ServletResponse res,FilterChain chain) {
request.setCharacterEncoding(UTF-8);
chain.doFilter(req,res);
}
c, Set the following header in all JSP pages.
%@ page contentType=text/html; charset=UTF-8%

Reference:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg153811.html

-- 
rgds
Anto Paul

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



Re: Character Encoding question

2005-08-29 Thread Manfred Steurer

Just a guess:
Check the format of the .jsp-files. I had similar problems and solved 
them by converting the jsp-files to UTF-8.


- Manfred


Richard Jones wrote:


Hi All,

I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.

The problem manifests when forms are posted containing Scandinavian
characters.  In some cases these characters are de/encoded correctly and
in other cases they are replaced by strings of other special characters.
The system that I am working with aims to use UTF-8 encoding, and there
are meta elements on all the pages to this effect.

I have enabled the RequestDumperValve which shows that the characters
are incorrectly decoded by the time they reach this stage of processing.
I have noticed a correlation (although not necessarily a relationship)
between whether the characters are correctly decoded and whether the
request is reporting using:

contentType=text/html;charset=ISO-8859-1

or incorrectly decoded when:

contentType=text/html;charset=UTF-8

(This comes from the part of the RequestDumperValve output which is
separated from the main request part by two dashed lines).

I have tried modifying the Connector for the service by adding

URIEncoding=UTF-8

and experimented with both:

useBodyEncodingForURI=true and useBodyEncodingForURI=false

with no luck.

Does anyone have any experience or advice that might point me in the
right direction.  It is entirely possible that this problem is /not/ a
tomcat issue, but I am running out of ideas here.

PS, sorry for the previous partial post - I just discovered a new
keyboard shortcut by accident!

Best Wishes,

 



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



Re: invalidate session after calling listeners

2005-08-29 Thread Franklin Phan

Hassan,

I have found the solution.  I think that a big part of what you were saying was something that I was already doing but neglected to mention (i.e., having a line of code in the JSP to bind the 
listener object to the session using setAttribute).


Your commenting out my two lines of code did hint to me to take a closer look 
at the Servlet API Documentation.
The API documentation for HttpSession interface says:

When an application stores an object in or removes an object from a session, the session checks whether the object implements HttpSessionBindingListener. If it does, the servlet notifies the 
object that it has been bound to or unbound from the session.


Reading that again did clarify for me what it means for an object to implement 
HttpSessionBindingListener and led me to add the following:

session.getServletContext().getRealPath(XML_WORK_PATH)

to the valueBound method to set an instance variable because that's where the 
session object is still valid.  I then removed the two lines of code from 
valueUnbound as you indicated.

Thanks.

What threw me off in the first place was the poor API documentation for 
HttpSessionBindingListener interface.  It says for valueUnbound:
Notifies the object that it is being unbound from a session and identifies the 
session.

It gave me the impression that the method itself notifies the object (which is the object that contains the implementation of HttpSessionBindingListener itself) and provides a reference to the 
session.


The API documentation for that method should have said something like:

This method is called *upon receiving notification* that this object is being 
unbound from the *invalidated* session.

Thanks, again.

Still, though, what is a global listener approach?



Franklin Phan wrote:

Hassan,

How do I add an instance of the listener to each session?  Can you 
please provide an example?


I forgot to mention that I already have the following in the first JSP 
after the login is validated:


jsp:useBean id=listener class=abcd.AbcdSessionListener 
scope=session /


%
session.setAttribute(sessionListener, listener);
%


What you say, ...and that object receives the event, it still knows its 
attributes.  What do you mean by object?  Which object?


Thanks.


Hassan Schroeder wrote:


Franklin Phan wrote:

I'm trying to code a method to clean up specifically named files 
inside a working dir (in Windows XP) whenever the session times out.  




Rather than a global listener approach, why not just add an instance
of your listener *to each session*? When the session ends and that
object receives the event, it still knows its attributes; from your
example:

 public void valueUnbound(HttpSessionBindingEvent se) {
AbcdUtil util = new AbcdUtil();

/* -- neither of these is necessary, as userId is still defined
 *   HttpSession session = se.getSession();
 *   String userId = (String)session.getValue(userId);
 */

I use this approach to return items to stock from an abandoned (via
session timeout) shopping cart, for instance.

FWIW!




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






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



Re: Character encoding question

2005-08-29 Thread Richard Jones
Hi,

  I am having problems with Scandinavian characters on my system and am
  attempting to isolate the problem; any help would be greatly
  appreciated.
 
 This is what I did to work with Tomcat. 
 
 a, Set up Tomcat first: To support UTF encoded data send as part of
 URI one has to set the URIEncoding attribute of the coyote Connector
 element in server.xml.
 b, Use a filter to set the character encoding of the request before it
 is processed.
 public void doFilter(ServletRequest req,ServletResponse res,FilterChain 
 chain) {
 request.setCharacterEncoding(UTF-8);
 chain.doFilter(req,res);
 }
 c, Set the following header in all JSP pages.
 %@ page contentType=text/html; charset=UTF-8%

I have delved into the source code, and after a minor fiddle with the
tomcat server.xml to ensure that URIEncoding is set correctly I am
certain that these three requirements are currently fulfilled, and were
so before.  I have disabled RequestDumperValve after reading something
about issues it causes with setCharacterEncoding, and instead am relying
on our own log4j debug output.

Annoyingly (or not, depending on how you look at it), I am having
trouble reproducing the problem again!  Perhaps I had fixed it with the
URIEncoding setting, only not noticed because I still had
RequestDumperValve enabled.

This problem has been strangely elusive; sometimes I have problems and
other times not, both within the same system and across other versions.
I'll keep an eye on it, and see if there's any more information I can
get out of it.  I may be back later today ;)

Thanks all for your help,

Best Wishes,

-- 
Richard
---
Richard Jones|
Overingeniør | Senior Engineer
Universitetsbiblioteket i Bergen | University of Bergen Library

e: [EMAIL PROTECTED]
t: +47 55 58 25 37

BORA: http://bora.uib.no/



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



Re: Character encoding question

2005-08-29 Thread Anto Paul
The setCharacterEncoding() must be called on the request before any
getParameter() method is invoked on it. There may be some filters that
is processing the request in the filter chain before the setCharacter
encoding filter.

Also what is the character encoding used by the OS ?. 
URIEncoding method is useful with GET methods since the parameters are
sent along with the URL. Try using POST methods everywhere and check
for problems. To be safe I am using hidden variables and sending data
as POST instead of appending it to the URL.


On 8/29/05, Richard Jones [EMAIL PROTECTED] wrote:
 Hi,
 
   I am having problems with Scandinavian characters on my system and am
   attempting to isolate the problem; any help would be greatly
   appreciated.
 
  This is what I did to work with Tomcat.
 
  a, Set up Tomcat first: To support UTF encoded data send as part of
  URI one has to set the URIEncoding attribute of the coyote Connector
  element in server.xml.
  b, Use a filter to set the character encoding of the request before it
  is processed.
  public void doFilter(ServletRequest req,ServletResponse res,FilterChain 
  chain) {
  request.setCharacterEncoding(UTF-8);
  chain.doFilter(req,res);
  }
  c, Set the following header in all JSP pages.
  %@ page contentType=text/html; charset=UTF-8%
 
 I have delved into the source code, and after a minor fiddle with the
 tomcat server.xml to ensure that URIEncoding is set correctly I am
 certain that these three requirements are currently fulfilled, and were
 so before.  I have disabled RequestDumperValve after reading something
 about issues it causes with setCharacterEncoding, and instead am relying
 on our own log4j debug output.
 
 Annoyingly (or not, depending on how you look at it), I am having
 trouble reproducing the problem again!  Perhaps I had fixed it with the
 URIEncoding setting, only not noticed because I still had
 RequestDumperValve enabled.
 
 This problem has been strangely elusive; sometimes I have problems and
 other times not, both within the same system and across other versions.
 I'll keep an eye on it, and see if there's any more information I can
 get out of it.  I may be back later today ;)
 
 Thanks all for your help,
 
 Best Wishes,
 
 --
 Richard
 ---
 Richard Jones|
 Overingeniør | Senior Engineer
 Universitetsbiblioteket i Bergen | University of Bergen Library
 
 e: [EMAIL PROTECTED]
 t: +47 55 58 25 37
 
 BORA: http://bora.uib.no/
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Anto Paul

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



Got trouble with virtual hosts

2005-08-29 Thread rueh hänä
Hi there

I dont know, what term to search for.. so excuse me, if there is already a
similar problem

I'm running a Webserver on Fedora Core 4

- Apache 2.0.54
- tomcat5-5.0.30-5jpp_6fc

I want to run about 13 Websites (html and jsp) over one virtual host. So i
defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
added the websites. For example:

-
VirtualHost 192.168.0.170:80
  ServerName www.website.ch
  DocumentRoot /drbd/www/html/www.website.ch
  JKMount /*.jsp tomcat-worker1
  JKMount /*/servlet/ tomcat-worker1
  JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  DirectoryIndex index.jsp index.html index.php index.htm index.shtml
index.cgi
  Location /WEB-INF/
   AllowOverride None
   deny from all
  /Location
  Location /META-INF/
   AllowOverride None
   deny from all
  /Location
/VirtualHost


The server.xml entry for this site is:
--
Host name=www.k-exp.ch debug=0 appBase=/drbd/www/html/www.website.ch
unpackWARs=true autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=/var/log/tomcat5/
   prefix=www.kexp.ch-access.
   suffix=.log
   resolveHosts=true
   pattern=combined/
Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
suffix=.txt
timestamp=false/

Context path= docBase= debug=0/

Realm className=org.apache.catalina.realm.MemoryRealm
   pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/
  /Host
-

I'm replacing the actually active server with a new one. I overtook the
config-files from the active server, so they should work. The only change is
that thing with the virtual hosts. In the old config, all sites had their
own virtualhost setting (= several virtual network interfaces). It would be
much more simple, when i only had one virtual host. 
But, if i want to access a jsp website, i get an internal server error
mesage. 
HTML-Sites work properly. 

It seems, that tomcat cant translate the hostnames defined in httpd.conf.
Can only apache do this? Or do i have to do some additional changes to my
configs?

Any idea? Thanks for help beforehand!

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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



Re: Character encoding question

2005-08-29 Thread Richard Jones
Hi,

 The setCharacterEncoding() must be called on the request before any
 getParameter() method is invoked on it. There may be some filters that
 is processing the request in the filter chain before the setCharacter
 encoding filter.

Yeah, I think this was the problem with the RequestDumperValve.  I don't
think there are any other filters which happen before the main servlet
processing.  We have a super-servlet which does setCharacterEncoding
before the extending servlet touches anything, so it should be ok.

 Also what is the character encoding used by the OS ?. 

My /etc/sysconfig/i18n file says:

LANG=en_US.UTF-8
SUPPORTED=en_US.UTF-8:en_US:en:nb_NO.UTF-8:nb_NO:nb

Perhaps nb_NO and nb should be suffixed with .UTF-8?

 URIEncoding method is useful with GET methods since the parameters are
 sent along with the URL. Try using POST methods everywhere and check
 for problems. To be safe I am using hidden variables and sending data
 as POST instead of appending it to the URL.

I generally prefer POST also, but we are working with a community
developed package, and there are plenty of places where GET is used.
I've just spent a moment testing an area of the system where the GET
implementation was causing serious problems and this now appears to be
working correctly (now that URIEncoding is set in the Connector).

Cheers,

-- 
Richard
---
Richard Jones|
Overingeniør | Senior Engineer
Universitetsbiblioteket i Bergen | University of Bergen Library

e: [EMAIL PROTECTED]
t: +47 55 58 25 37

BORA: http://bora.uib.no/



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



Re: Got trouble with virtual hosts

2005-08-29 Thread Parsons Technical Services
Unless there is another reason, why not drop Apache and run only Tomcat? It 
can handle the virtual hosts just fine.


This would simplify the setup considerably.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:58 AM
Subject: Got trouble with virtual hosts



Hi there

I dont know, what term to search for.. so excuse me, if there is already a
similar problem

I'm running a Webserver on Fedora Core 4

- Apache 2.0.54
- tomcat5-5.0.30-5jpp_6fc

I want to run about 13 Websites (html and jsp) over one virtual host. So i
defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
added the websites. For example:

-
VirtualHost 192.168.0.170:80
 ServerName www.website.ch
 DocumentRoot /drbd/www/html/www.website.ch
 JKMount /*.jsp tomcat-worker1
 JKMount /*/servlet/ tomcat-worker1
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 DirectoryIndex index.jsp index.html index.php index.htm index.shtml
index.cgi
 Location /WEB-INF/
  AllowOverride None
  deny from all
 /Location
 Location /META-INF/
  AllowOverride None
  deny from all
 /Location
/VirtualHost


The server.xml entry for this site is:
--
Host name=www.k-exp.ch debug=0 
appBase=/drbd/www/html/www.website.ch

unpackWARs=true autoDeploy=true
   Valve className=org.apache.catalina.valves.AccessLogValve
  directory=/var/log/tomcat5/
  prefix=www.kexp.ch-access.
  suffix=.log
  resolveHosts=true
  pattern=combined/
   Logger className=org.apache.catalina.logger.FileLogger
   directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
suffix=.txt
   timestamp=false/

   Context path= docBase= debug=0/

   Realm className=org.apache.catalina.realm.MemoryRealm
  pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/
 /Host
-

I'm replacing the actually active server with a new one. I overtook the
config-files from the active server, so they should work. The only change 
is

that thing with the virtual hosts. In the old config, all sites had their
own virtualhost setting (= several virtual network interfaces). It would 
be

much more simple, when i only had one virtual host.
But, if i want to access a jsp website, i get an internal server error
mesage.
HTML-Sites work properly.

It seems, that tomcat cant translate the hostnames defined in httpd.conf.
Can only apache do this? Or do i have to do some additional changes to my
configs?

Any idea? Thanks for help beforehand!

--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 
http://www.gmx.net/de/go/dsl


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







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



Re: Got trouble with virtual hosts

2005-08-29 Thread rueh hänä
Because im running normal HTML sites, too. I need another solution, if even
possible...


 --- Ursprüngliche Nachricht ---
 Von: Parsons Technical Services [EMAIL PROTECTED]
 An: Tomcat Users List tomcat-user@jakarta.apache.org
 Betreff: Re: Got trouble with virtual hosts
 Datum: Mon, 29 Aug 2005 07:41:50 -0400
 
 Unless there is another reason, why not drop Apache and run only Tomcat?
 It 
 can handle the virtual hosts just fine.
 
 This would simplify the setup considerably.
 
 Doug
 
 
 - Original Message - 
 From: rueh hänä [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Monday, August 29, 2005 6:58 AM
 Subject: Got trouble with virtual hosts
 
 
  Hi there
 
  I dont know, what term to search for.. so excuse me, if there is already
 a
  similar problem
 
  I'm running a Webserver on Fedora Core 4
 
  - Apache 2.0.54
  - tomcat5-5.0.30-5jpp_6fc
 
  I want to run about 13 Websites (html and jsp) over one virtual host. So
 i
  defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
  added the websites. For example:
 
  -
  VirtualHost 192.168.0.170:80
   ServerName www.website.ch
   DocumentRoot /drbd/www/html/www.website.ch
   JKMount /*.jsp tomcat-worker1
   JKMount /*/servlet/ tomcat-worker1
   JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
   DirectoryIndex index.jsp index.html index.php index.htm index.shtml
  index.cgi
   Location /WEB-INF/
AllowOverride None
deny from all
   /Location
   Location /META-INF/
AllowOverride None
deny from all
   /Location
  /VirtualHost
  
 
  The server.xml entry for this site is:
  --
  Host name=www.k-exp.ch debug=0 
  appBase=/drbd/www/html/www.website.ch
  unpackWARs=true autoDeploy=true
 Valve className=org.apache.catalina.valves.AccessLogValve
directory=/var/log/tomcat5/
prefix=www.kexp.ch-access.
suffix=.log
resolveHosts=true
pattern=combined/
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
  suffix=.txt
 timestamp=false/
 
 Context path= docBase= debug=0/
 
 Realm className=org.apache.catalina.realm.MemoryRealm
pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/
   /Host
  -
 
  I'm replacing the actually active server with a new one. I overtook the
  config-files from the active server, so they should work. The only
 change 
  is
  that thing with the virtual hosts. In the old config, all sites had
 their
  own virtualhost setting (= several virtual network interfaces). It
 would 
  be
  much more simple, when i only had one virtual host.
  But, if i want to access a jsp website, i get an internal server error
  mesage.
  HTML-Sites work properly.
 
  It seems, that tomcat cant translate the hostnames defined in
 httpd.conf.
  Can only apache do this? Or do i have to do some additional changes to
 my
  configs?
 
  Any idea? Thanks for help beforehand!
 
  -- 
  GMX DSL = Maximale Leistung zum minimalen Preis!
  2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 
  http://www.gmx.net/de/go/dsl
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

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



Re: Where can I find specs for ALL the xml tags that can be used in server.xml.

2005-08-29 Thread Alan Chandler
On Monday 29 Aug 2005 06:03, Anto Paul wrote:
 On 8/29/05, Alan Chandler [EMAIL PROTECTED] wrote:
  Where can I find specs for all the tags in server.xml

 I use these pages. it explains the elements used in the server.xml.
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html

No it doesn't it only describes SOME of them.



I must admin not really searching 5.5 docs, because I am using 4.1, but I 
can't find the Resource tag described aywhere.  It is important to get it 
right (basically because blindly following someone's recipe has not worked - 
so I need to understand the reasoning behind their recipe and correct it for 
my situation).  In particular what do the attributes mean


I have a similar issue with web.xml although at least there is a dtd for that 
which is reasonably well commented.  Its just that some of the elements (like 
security-constraint are not well documented.








-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Re: Got trouble with virtual hosts

2005-08-29 Thread Parsons Technical Services

Tomcat will handle them just fine with the current releases.

With the current versions of Tomcat, unless you are doing something special 
that requires a feature of Apache that is not in Tomcat, you can host 
multiple sites just fine. If load is an issue, take a look a the clustering. 
Otherwise just set up Tomcat with the virtual host and enjoy the simplicity.


Start here:

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

Then read the link for host. Simply put, for each website put a host element
in for that site. But make sure you understand the default host.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 7:52 AM
Subject: Re: Got trouble with virtual hosts


Because im running normal HTML sites, too. I need another solution, if 
even

possible...



--- Ursprüngliche Nachricht ---
Von: Parsons Technical Services [EMAIL PROTECTED]
An: Tomcat Users List tomcat-user@jakarta.apache.org
Betreff: Re: Got trouble with virtual hosts
Datum: Mon, 29 Aug 2005 07:41:50 -0400

Unless there is another reason, why not drop Apache and run only Tomcat?
It
can handle the virtual hosts just fine.

This would simplify the setup considerably.

Doug


- Original Message - 
From: rueh hänä [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:58 AM
Subject: Got trouble with virtual hosts


 Hi there

 I dont know, what term to search for.. so excuse me, if there is 
 already

a
 similar problem

 I'm running a Webserver on Fedora Core 4

 - Apache 2.0.54
 - tomcat5-5.0.30-5jpp_6fc

 I want to run about 13 Websites (html and jsp) over one virtual host. 
 So

i
 defined NameVirtualHost 192.168.0.170 in httpd.conf. After this entry i
 added the websites. For example:

 -
 VirtualHost 192.168.0.170:80
  ServerName www.website.ch
  DocumentRoot /drbd/www/html/www.website.ch
  JKMount /*.jsp tomcat-worker1
  JKMount /*/servlet/ tomcat-worker1
  JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  DirectoryIndex index.jsp index.html index.php index.htm index.shtml
 index.cgi
  Location /WEB-INF/
   AllowOverride None
   deny from all
  /Location
  Location /META-INF/
   AllowOverride None
   deny from all
  /Location
 /VirtualHost
 

 The server.xml entry for this site is:
 --
 Host name=www.k-exp.ch debug=0
 appBase=/drbd/www/html/www.website.ch
 unpackWARs=true autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
   directory=/var/log/tomcat5/
   prefix=www.kexp.ch-access.
   suffix=.log
   resolveHosts=true
   pattern=combined/
Logger className=org.apache.catalina.logger.FileLogger
directory=/var/log/tomcat5/  prefix=www.kexp.ch_log.
 suffix=.txt
timestamp=false/

Context path= docBase= debug=0/

Realm className=org.apache.catalina.realm.MemoryRealm
 
 pathname=/drbd/www/html/www.k-exp.ch/WEB-INF/users.xml/

  /Host
 -

 I'm replacing the actually active server with a new one. I overtook the
 config-files from the active server, so they should work. The only
change
 is
 that thing with the virtual hosts. In the old config, all sites had
their
 own virtualhost setting (= several virtual network interfaces). It
would
 be
 much more simple, when i only had one virtual host.
 But, if i want to access a jsp website, i get an internal server error
 mesage.
 HTML-Sites work properly.

 It seems, that tomcat cant translate the hostnames defined in
httpd.conf.
 Can only apache do this? Or do i have to do some additional changes to
my
 configs?

 Any idea? Thanks for help beforehand!

 -- 
 GMX DSL = Maximale Leistung zum minimalen Preis!

 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat:
 http://www.gmx.net/de/go/dsl

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






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



--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

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







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



How do I map realm name to none memory database

2005-08-29 Thread Alan Chandler
I am totally failing to get form based security to work.

One thing that is bugging me is that under the security-constraint tag in 
the web.xml file there is the realm-name tag.

What should this be?

For the standard Realm provided by tomcat, it seems to have a name of 
UserDatabase, but if I want to use my own database how do I specify the 
Realm Name? 
-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Re: invalidate session after calling listeners

2005-08-29 Thread Hassan Schroeder

Franklin Phan wrote:

I have found the solution. 


Cool. :-)

What threw me off in the first place was the poor API documentation for 
HttpSessionBindingListener interface.  It says for valueUnbound:
Notifies the object that it is being unbound from a session and 
identifies the session.


It gave me the impression that the method itself notifies the object 
(which is the object that contains the implementation of 
HttpSessionBindingListener itself) and provides a reference to the session.


The API documentation for that method should have said something like:

This method is called *upon receiving notification* that this object is 
being unbound from the *invalidated* session.


Erm, yeah, the docs are sometimes a bit opaque.


Still, though, what is a global listener approach?


I was just making a distinction between having a single Context-wide
process (listener) doing session-unbound tasks versus each /session/
having a bound object implementing HttpSessionBindingListener doing
its own.

It's the difference between Mom cleaning up after everyone, or all
the kids cleaning their own rooms :-)

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

  dream.  code.



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



Re: Got trouble with virtual hosts

2005-08-29 Thread rueh hänä
Hm, so it should work, i got an actual version.
I found out something new:
When i open one of these jsp-sites on my server, it works fine. If i open
additional jsp-sites, tomcat goes down and i have to restart it. The log of
the site gives this outpuot:


StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache:
null
   at org.apache.jasper.compiler.TldLocationsCache.init() (Unknown Source)
   at
org.apache.jasper.compiler.TldLocationsCache.getLocation(java.lang.String)
(Unknown Source)
   at
org.apache.jasper.JspCompilationContext.getTldLocation(java.lang.String)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parseTaglibDirective(org.apache.jasper.compiler.Node)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parseDirective(org.apache.jasper.compiler.Node)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parseElements(org.apache.jasper.compiler.Node)
(Unknown Source)
   at
org.apache.jasper.compiler.Parser.parse(org.apache.jasper.compiler.ParserController,
org.apache.jasper.compiler.JspReader, org.apache.jasper.compile
   at org.apache.jasper.compiler.ParserController.doParse(java.lang.String,
org.apache.jasper.compiler.Node, java.net.URL) (Unknown Source)
   at org.apache.jasper.compiler.ParserController.parse(java.lang.String)
(Unknown Source)
   at org.apache.jasper.compiler.Compiler.generateJava() (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean, boolean) (Unknown
Source)
   at org.apache.jasper.compiler.Compiler.compile(boolean) (Unknown Source)
   at org.apache.jasper.compiler.Compiler.compile() (Unknown Source)
   at org.apache.jasper.JspCompilationContext.compile() (Unknown Source)
   at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean) (Unknown
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
   at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
   at javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (Unknown Source)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext) (U
   at
org.apache.catalina.core.StandardValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (Unknown Source)
   at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (Unknown Source)

 --- Ursprüngliche Nachricht ---
 Von: Parsons Technical Services [EMAIL PROTECTED]
 An: Tomcat Users List tomcat-user@jakarta.apache.org
 Betreff: Re: Got trouble with virtual hosts
 Datum: Mon, 29 Aug 2005 08:00:59 -0400
 
 Tomcat will handle them just fine with the current releases.
 
 With the current versions of Tomcat, unless you are doing something
 special 
 that requires a feature of Apache that is not in Tomcat, you can host 
 multiple sites just fine. If load is an issue, take a look a the
 clustering. 
 Otherwise just set up Tomcat with the virtual host and enjoy the
 simplicity.
 
 Start here:
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/engine.html
 
 Then read the link for host. Simply put, for each website put a host
 element
 in for that site. But make sure you understand the default host.
 
 Doug
 
 
 - Original Message - 
 From: rueh hänä [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Monday, August 29, 2005 7:52 AM
 Subject: Re: Got trouble with virtual hosts
 
 
  Because im running normal HTML sites, too. I need another solution, if 
  even
  possible...
 
 
  --- Ursprüngliche Nachricht ---
  Von: Parsons Technical Services [EMAIL PROTECTED]
  An: Tomcat Users List tomcat-user@jakarta.apache.org
  Betreff: Re: Got trouble with virtual hosts
  Datum: Mon, 29 Aug 2005 07:41:50 -0400
 
  Unless there is another reason, why not drop Apache and run only
 Tomcat?
  It
  can handle the virtual hosts just fine.
 
  This would simplify the setup considerably.
 
  Doug
 
 
  - Original Message - 
  From: rueh hänä [EMAIL PROTECTED]
  To: tomcat-user@jakarta.apache.org
  Sent: Monday, August 29, 2005 6:58 AM
  Subject: Got trouble with virtual hosts
 
 
   Hi there
  
   I dont know, what term to search for.. so excuse me, if there is 
   already
  a
   similar problem
  
   I'm running a Webserver on Fedora Core 4
  
   - Apache 

RE: Where can I find specs for ALL the xml tags that can be used in server.xml.

2005-08-29 Thread Caldarale, Charles R
 From: Alan Chandler [mailto:[EMAIL PROTECTED] 
 Subject: Re: Where can I find specs for ALL the xml tags that 
 can be used in server.xml.
 
 I must admin not really searching 5.5 docs, because I am 
 using 4.1, but I can't find the Resource tag described
 aywhere.

Then you certainly should be looking at the 4.1 docs, since 5.5
configuration is noticeably different.  The pages of interest for 4.1
include;

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm
l
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html

The Resource tag is fully described in the first link above.

 - Chuck


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

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



Re: Where can I find specs for ALL the xml tags that can be used in server.xml.

2005-08-29 Thread Alan Chandler
On Monday 29 Aug 2005 14:55, Caldarale, Charles R wrote:
  From: Alan Chandler [mailto:[EMAIL PROTECTED]
  Subject: Re: Where can I find specs for ALL the xml tags that
  can be used in server.xml.

 Then you certainly should be looking at the 4.1 docs, since 5.5
 configuration is noticeably different.  The pages of interest for 4.1
 include;

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm

Thank you - I had scanned that document, but missed the reference to the 
resource tag.

Unfortunately, it still doesn't specify what the auth=Container attribute 
means.



-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



RE: Where can I find specs for ALL the xml tags that can be used in server.xml.

2005-08-29 Thread Caldarale, Charles R
 From: Alan Chandler [mailto:[EMAIL PROTECTED] 
 Subject: Re: Where can I find specs for ALL the xml tags that 
 can be used in server.xml.
 
 Unfortunately, it still doesn't specify what the 
 auth=Container attribute means.

This is pretty clear to me:

Specify whether the web Application code signs on to the corresponding
resource manager programatically, or whether the Container will sign on
to the resource manager on behalf of the application.

It's a two-state flag indicating whether the application or Tomcat (the
Container) is responsible for establishing a connection to the resource.

 - Chuck


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

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



Really struggling with DataSource'd Realm

2005-08-29 Thread Alan Chandler
I am try to to use FORM based authorisation to control access to part of my 
database application.  Consequently I have added the users and user_role 
tables to my database which is already been set up as 
java:/comp/env/jdbc/family_tree.

I then created a Realm which refers to it.


Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
   dataSourceName=java:/comp/env/jdbc/family_tree
   userTable=users userNameCol=user_name userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name/

As per the docs

When I try and login I get a naming exception

2005-08-29 15:51:54 DataSourceRealm[/famtree]: Exception performing 
authentication
javax.naming.NameNotFoundException: Name java: is not bound in this Context
 

I have experimented with several strings for dataSourceName in the Realm tag 
above such as dropping the java: at the front, or removing the leading slash, 
or leaving out the frontf the string and just adding jdbc/family_tree, and 
even renaming the resource to just family_tree.

In every case it seems to stop passing the name at the first delimeter (':' or 
'/') and failing.

Is there something wrong with the DataSourceRealm in this version of tomcat 
(4.1.3) or am I doing something else wrong?

Can somebody guide me through this please.



-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



RE: Really struggling with DataSource'd Realm

2005-08-29 Thread Marc-Andre Blain
Hello Alan,

try removing the / in your jndi name

java:comp/env/jdbc/family_tree.

Thanks !

-Original Message-
From: Alan Chandler [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 10:57 AM
To: tomcat-user@jakarta.apache.org
Subject: Really struggling with DataSource'd Realm


I am try to to use FORM based authorisation to control access to part of my 
database application.  Consequently I have added the users and user_role 
tables to my database which is already been set up as 
java:/comp/env/jdbc/family_tree.

I then created a Realm which refers to it.


Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
   dataSourceName=java:/comp/env/jdbc/family_tree
   userTable=users userNameCol=user_name userCredCol=user_pass
   userRoleTable=user_roles roleNameCol=role_name/

As per the docs

When I try and login I get a naming exception

2005-08-29 15:51:54 DataSourceRealm[/famtree]: Exception performing 
authentication
javax.naming.NameNotFoundException: Name java: is not bound in this Context
 

I have experimented with several strings for dataSourceName in the Realm tag 
above such as dropping the java: at the front, or removing the leading slash, 
or leaving out the frontf the string and just adding jdbc/family_tree, and 
even renaming the resource to just family_tree.

In every case it seems to stop passing the name at the first delimeter (':' or 
'/') and failing.

Is there something wrong with the DataSourceRealm in this version of tomcat 
(4.1.3) or am I doing something else wrong?

Can somebody guide me through this please.



-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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


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



Re: Really struggling with DataSource'd Realm

2005-08-29 Thread Alan Chandler
On Monday 29 Aug 2005 16:16, Marc-Andre Blain wrote:
 Hello Alan,

   try removing the / in your jndi name

   java:comp/env/jdbc/family_tree.

Already tried that combination - this is the result - see how the name its 
looking for is just java:

Exception performing authentication
javax.naming.NameNotFoundException: Name java: is not bound in this Context
userRoleTable=user_roles roleNameCol=role_name/
-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



RE: Really struggling with DataSource'd Realm

2005-08-29 Thread Marc-Andre Blain
Than, did you try putting only jdbc/family_tree.  

The java:comp/env should be the default.

-Original Message-
From: Alan Chandler [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 11:22 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Really struggling with DataSource'd Realm


On Monday 29 Aug 2005 16:16, Marc-Andre Blain wrote:
 Hello Alan,

   try removing the / in your jndi name

   java:comp/env/jdbc/family_tree.

Already tried that combination - this is the result - see how the name its 
looking for is just java:

Exception performing authentication
javax.naming.NameNotFoundException: Name java: is not bound in this Context
userRoleTable=user_roles roleNameCol=role_name/
-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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


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



workers.properties directives

2005-08-29 Thread Olaf Lautenschlaeger
Hi all,

recently I stumbled over the mod_jk statusworker feature coming with
recent mod_jk versions and, of course, I immediately wanted to have
such neat thing :-)

Up to that time, I didn't saw an imperative need to have balanced wor-
kers (Apache+Tomcat on the same machine; one single ajp13 type
worker did his job fine for me so far).

Since it turned out that the status worker will talk to lb type workers
only, I simply renamed my existing ajp13 worker, then established
another lb type worker of the former name which itself sits now on
that ajp13 type (or node) worker.

But here I'm asking myself: Where do I preferably apply those more
sophisticated settings like

worker.XY.recycle_timeout, worker.XY.cachesize or
worker.XY.cache_timeout ??

(seems that we can assign them both to lb type as to ajp13 type workers;
at least I didn't found anything that rules out doing so in the online
docs)

In other words, do they a better job when defined with worker MyWorker
or with node1 in the following httpd.conf example (simplified view;
think yourself a JkWorkerProperty in front of all these worker...
directives):

worker.list=MyWorker
worker.MyWorker.type=lb
worker.MyWorker.balance_workers=node1
worker.node1.type=ajp13
worker.node1.host=localhost
worker.node1.port=8009

Location /MyContext 
  JkMount MyWorker
/Location

??

Some of that worker.XY... options sound more IP related, so I would
tend to assign them to ajp13 type workers;
on the other hand, worker.XY.cachesize seems to have more impact to
the endpoint software layer, which implies that it unfolds it's effect
better within the load balancer tier.

TIA

Regards

Olaf Lautenschlaeger
--
ANOVA Multimedia Studios GmbH
Joachim-Jungius-Strasse 9
D-18059 Rostock / Germany


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



Error listenerStart when deploying an application

2005-08-29 Thread Ittay Dror

Hi,

I have a fairly large application I'm trying to port from jboss to tomcat.

I've turned on debug logging with log4j (the contents at the end of this mail).

In the log, I see the following:
 2005-08-29 19:01:27,106 DEBUG [WebappClassLoader] (main:)   Loading class 
from local repository
 2005-08-29 19:01:27,106 DEBUG [WebappClassLoader] (main:)   Loading class 
from local repository

 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Error listenerStart
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Error listenerStart
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Error listenerStart
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Context [] startup 
failed due to previous errors
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Context [] startup 
failed due to previous errors
 2005-08-29 19:01:27,115 ERROR [StandardContext] (main:) Context [] startup 
failed due to previous errors


No other erros are in the log. So I'm at a complete loss. Looking at the code 
doesn't help either (since this message is printed when an 'ok' variable is 
false, and this can happen in many places).


Please help,
Ittay

my log4j.properties:
log4j.rootLogger=ALL, R

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=50MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %-5p [%c{1}] (%t:%x) %m%n

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=ALL, 
R
log4j.logger.org.apache.catalina.core=ALL, R
log4j.logger.org.apache.catalina.session=ALL, R

log4j.logger.org.apache.catalina=ALL, R



--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



login form based authentication

2005-08-29 Thread Jun Zhu
My web application uses tomcat 5.5.10. By using basic authentication,
the application works fine. 

By using the form based authentication, if I submit a invalidate
username/password, appication seems worked, a error.jsp was showed up.
But if I submit a valid username/password, I got a HTTP Status 408 -
The time allowed for the login process has been exceeded. If you wish to
continue you must either click back twice and re-click the link you
requested or close and re-open your browser. 

Is there anyone having this kind problem and to be solved? Please help
me out.

Thanks,

Julia

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



Realm in Context in War

2005-08-29 Thread Chirag
Software

Tomcat 5.5.2
JDK 1.5


I have created a webapplication named b
It works perfectly fine including the realm declared
inside the context.xml file in META-INF folder

THen I created war by using

C:\webapps\bjar cvf c.war *.*

Later I copied c.war in the webapps folder and started
Tomcat

but when i try to login it throws an exception

---

Aug 29, 2005 11:21:50 PM
org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login
configuration
at
com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
javax.security.auth.login.Configuration$3.run(Configuration.java:216)

at
java.security.AccessController.doPrivileged(Native
Method)
at
javax.security.auth.login.Configuration.getConfiguration(Configuratio
n.java:210)
at
javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at
java.security.AccessController.doPrivileged(Native
Method)
at
javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at
javax.security.auth.login.LoginContext.init(LoginContext.java:403)
at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:298)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(Form
Authenticator.java:230)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:391)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:106)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
526)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:576)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Unable to locate a
login configuration
at
com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
at
com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95)
... 26 more



I have used the following Realm Tag in context.xml
which works perfectly fine in webapplication b but not
in c.war

Realm 
className=org.apache.catalina.realm.JDBCRealm
debug=99 driverName=com.mysql.jdbc.Driver 
connectionURL=jdbc:mysql://localhost:3306/db1   
 connectionName=root connectionPassword=b 
userTable=mastercompany userNameCol=EmailAdd
userCredCol=password 
userRoleTable=user_roles roleNameCol=role_name /


Thanks in advance

CSJakharia

 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com 






Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Really struggling with DataSource'd Realm

2005-08-29 Thread Alan Chandler
On Monday 29 Aug 2005 16:25, Marc-Andre Blain wrote:
 Than, did you try putting only jdbc/family_tree.

 The java:comp/env should be the default.

Yes - then it failed saying it could not find jdbc

So I thought Ah! - and renamed the resource just family_tree.  But then it 
didn't actually find that either:-(

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Tomcat and IIS load balancing configuration

2005-08-29 Thread Don Hayes
I am testing a load balancing configuration with Tomcat and IIS using the
isapi_redirector.  My configuration works if I have a single worker defined
in my workers.properties file but it fails if I try to add a second worker
(ie, I change the balance_workers entry near the bottom of the file to the
one that is currently commented out).

One of the symptoms I see of the problem is that when my servlet calls
request.getRequestedSessionId() I get back a null.

Here is my workers.properties file:

workers.tomcat_home=d:\tomcat
workers.java_home=c:\progra~1\java\jre15~1.0_0
ps=\
worker.list=wlb

worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
worker.ajp13w.cachesize=500
worker.ajp13w.cache_timeout=600
worker.ajp13w.socket_keepalive=1
worker.ajp13w.recycle_timeout=300
worker.ajp13w.lbfactor=1
worker.ajp13w.debug=9

worker.ajp13x.type=ajp13
worker.ajp13x.host=localhost
worker.ajp13x.port=8010
worker.ajp13x.cachesize=500
worker.ajp13x.cache_timeout=600
worker.ajp13x.socket_keepalive=1
worker.ajp13x.recycle_timeout=300
worker.ajp13x.lbfactor=1
worker.ajp13x.debug=9

worker.wlb.type=lb
#worker.wlb.balance_workers=ajp13w,ajp13x
worker.wlb.balance_workers=ajp13w
worker.wlb.sticky_session=1

worker.jkstatus.type=status



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



With tomcat 5 redirects to a secure port the connection fails

2005-08-29 Thread Julie Moore
 

I have updated a site from tomcat 4 to tomcat 5 and my link that used to
redirect to a secure site now fails. I see the webpage tying to connect
with my internal IP address instead of the external URL that the request
came in one. If I connect to https://www.x.com and hit the link to the
secure page my page displays correctly. But if I hit it from
http://www.x.com http://www.x.com/  the secure page does not display.

 

The page that displays has not changed. It has a relative link to the
webapp that I want to have as secure.

 

I have the server.xml connectors defined:

 

Connector port=80 minThreads=150 maxSpareThreads=75
minSpareThreads=25

   enableLookups=true redirectPort=443

   acceptCount=100 debug=0 connectionTimeout=2

   disableUploadTimeout=true /

 

 

!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 --



 

   Connector port=443 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25
maxSpareThreads=75

   enableLookups=false disableUploadTimeout=true

   acceptCount=100 scheme=https secure=true

   clientAuth=false sslProtocol=TLS
keystoreFile=c:\tomcat\conf\keystore.ks /

 

and the following in  the web.xml of my application I wish to have
available only as secure:

 

security-constraint
  web-resource-collection
 web-resource-nameEntire Application/web-resource-name
 url-pattern/*/url-pattern
  /web-resource-collection
  user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint
 
 
What have I missed?
Jmoore
 
 
 

 

 

 



help configuring security in tomcat 5.5

2005-08-29 Thread Ittay Dror

i have this in my ${CATALINA_HOME}/webapps/ROOT/WEB-INF/web.xml:

login-config
auth-methodFORM/auth-method
realm-nameqrm/realm-name
form-login-config
form-login-page/login/login.do?type=attempt/form-login-page
form-error-page/login/login.do?type=error/form-error-page
/form-login-config
/login-config

and this in ${CATALINA_HOME}/conf/Catalina/localhost/ROOT.xml:
Realm className=org.apache.catalina.realm.DataSourceRealm debug=99
   dataSourceName=QrmDS appName=qrm
   userTable=qrm_users userNameCol=user_name userCredCol=user_password
   userRoleTable=qrm_roles roleNameCol=role_name/

The database is up and contains the required schema.

But I get this:

 java.lang.SecurityException: Unable to locate a login configuration

Please help,
Ittay
--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Tomcat crash with no error messages!

2005-08-29 Thread Kenneth Litwak
Hi,

  I have an application that is the only application running on a given
tomcat instance (there are multiple tomcat instances on the same box).
The application has been running for weeks, but the code has not been
changed for weeks.  Suddenly, Friday afternoon the application began
failing as soon as it tried to do anything besides check an id in LDAP.
The failure causes the tomcat process to crash.  Unfortunately, nothing
shows up on Catalina.out, or in the log4j logs that the application
generally writes both errors and progress to.  So I'm not sure what to
do to diagnose the problem.  Any suggestions for the first step?  If I
had an error message, that would be good.  Thanks.

Ken


 Kenneth D. Litwak
Software Engineer III
IMT
Azusa Pacific University
901 E. Alosta
Azusa, CA 91702


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



instructions for setting up jaas over db in tomcat

2005-08-29 Thread Ittay Dror

Hi,

I haven't found anywhere a step-by-step instructions or reference code on how 
to set up jaas. Please help me with this as I'm very much lost.


What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in 
conf/Catalina/localhost/ROOT.xml?)
- what to put inside jaas.config
- where to get an implementation of a login module. tagish isn't good for me 
since they require a specific db schema (i'm porting an existing application). 
Is there a standalone package with jboss's implementations?


Thanx,
Ittay


--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Re: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Robert Taylor

I used the following link:

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

It tooks some research, but I finally got it to work.

/robert


Ittay Dror wrote:

Hi,

I haven't found anywhere a step-by-step instructions or reference code 
on how to set up jaas. Please help me with this as I'm very much lost.


What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in 
conf/Catalina/localhost/ROOT.xml?)

- what to put inside jaas.config
- where to get an implementation of a login module. tagish isn't good 
for me since they require a specific db schema (i'm porting an existing 
application). Is there a standalone package with jboss's implementations?


Thanx,
Ittay





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



Re: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Ittay Dror



Robert Taylor wrote:

I used the following link:

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


doesn't contain whether i can put 'Realm' in ROOT.xml

doesn't say anything about where to get a LoginModule implementation, or how to 
config jaas.config.




It tooks some research, but I finally got it to work.


my point exactly. i believe every person setting up tomcat does this research 
and i wondered if anyone created a guide.




/robert


Ittay Dror wrote:


Hi,

I haven't found anywhere a step-by-step instructions or reference code 
on how to set up jaas. Please help me with this as I'm very much lost.


What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in 
conf/Catalina/localhost/ROOT.xml?)

- what to put inside jaas.config
- where to get an implementation of a login module. tagish isn't good 
for me since they require a specific db schema (i'm porting an 
existing application). Is there a standalone package with jboss's 
implementations?


Thanx,
Ittay





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





--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Re: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Ittay Dror

btw, i also need authentication vs an ldap server

thanx,
ittay

Ittay Dror wrote:



Robert Taylor wrote:


I used the following link:

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




doesn't contain whether i can put 'Realm' in ROOT.xml

doesn't say anything about where to get a LoginModule implementation, or 
how to config jaas.config.




It tooks some research, but I finally got it to work.



my point exactly. i believe every person setting up tomcat does this 
research and i wondered if anyone created a guide.




/robert


Ittay Dror wrote:


Hi,

I haven't found anywhere a step-by-step instructions or reference 
code on how to set up jaas. Please help me with this as I'm very much 
lost.


What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in 
conf/Catalina/localhost/ROOT.xml?)

- what to put inside jaas.config
- where to get an implementation of a login module. tagish isn't good 
for me since they require a specific db schema (i'm porting an 
existing application). Is there a standalone package with jboss's 
implementations?


Thanx,
Ittay





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








--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



Re: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Robert Taylor

Have you read anything here?
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials/GeneralAcnOnly.html

/robert

Ittay Dror wrote:



Robert Taylor wrote:


I used the following link:

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




doesn't contain whether i can put 'Realm' in ROOT.xml

doesn't say anything about where to get a LoginModule implementation, or 
how to config jaas.config.




It tooks some research, but I finally got it to work.



my point exactly. i believe every person setting up tomcat does this 
research and i wondered if anyone created a guide.




/robert


Ittay Dror wrote:


Hi,

I haven't found anywhere a step-by-step instructions or reference 
code on how to set up jaas. Please help me with this as I'm very much 
lost.


What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in 
conf/Catalina/localhost/ROOT.xml?)

- what to put inside jaas.config
- where to get an implementation of a login module. tagish isn't good 
for me since they require a specific db schema (i'm porting an 
existing application). Is there a standalone package with jboss's 
implementations?


Thanx,
Ittay





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








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



Re: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Wendy Smoak

From: Ittay Dror [EMAIL PROTECTED]


btw, i also need authentication vs an ldap server


I recently got JAASRealm and Sun's Krb5LoginModule (Kerberos Authentication) 
to work for the JSP examples that ship with Tomcat... this may save you some 
pain:


  http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJspExamples

You'll have to figure out what to put in jaas.conf and find a LoginModule 
for LDAP, but other than that the pieces should fit together the same way.


--
Wendy Smoak 



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



Connection timed out error when shutting down tomcat

2005-08-29 Thread Darek Czarkowski
Hello,

Tomcat takes long time to shut down, it takes about a minute from the
shut down command until it terminates with an error in catalina.out.

Apache should have nothing to do with it. 

Tomcat version: jakarta-tomcat-4.1.27
Server version: Apache/2.0.46 with mod_jk2
OS RHE Linux 2.4.21-32.0.1.EL

Does any one know possible resons?



From Catalina.out log file:


Stopping service Tomcat-Standalone
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:169)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.init(Socket.java:309)
at java.net.Socket.init(Socket.java:153)
at
org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384)
at org.apache.jk.server.JkMain.stop(JkMain.java:311)
at
org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:181)
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1205)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:546)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


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



Page cannot be displayed error

2005-08-29 Thread Barnett, Brian W.
We are experiencing a strange problem that we can't seem to figure out.

We have a Struts web app running on Tomcat 5.0.28/Apache web server. All the
computers of a particular client are getting a Page cannot be displayed
error when they click a certain button. They can then go home and access it
fine from their home computer, without the error. They can also access a
number of other pages on the site. Other clients are not reporting the
problem.

Here on our network at work, we all experience the same problem when
clicking that button, except one computer that works fine. The button
essentially executes some db queries to populate a choice box on the page.

It seems that we've isolated it to a network or ip type issue but have no
idea what to check for. If anyone has any suggestions, we'd love to hear
them.

TIA,
Brian Barnett


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



Getting LOGON_USER from the header

2005-08-29 Thread Robert Jose
Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the 
isapi redirect dll.  This seems to be working well and configured correctly.  

Now I am trying to get the LOGON_USER from the header.  I want the windows id 
of the user that is hitting my web page.  I am developing an Intranet site and 
want to do seamless login based on who the user logged into their windows 
machine.  I know I can do this by using the command 
request.ServerVariables(LOGON_USER) in ASP.  I also was able to get 
request.getHeader(LOGON_USER) to work with IIS 5.1 and JRun 4 (using the dll 
they provide). 

Does anyone know how I can get this information using Tomcat?  I would be 
greatly appreciative.

Thanks
Rob J.

Re: Getting LOGON_USER from the header

2005-08-29 Thread Gurumoorthy

request.getRemoteUser()
- Original Message - 
From: Robert Jose [EMAIL PROTECTED]

To: Tomcat User tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 10:44 PM
Subject: Getting LOGON_USER from the header


Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using the 
isapi redirect dll.  This seems to be working well and configured correctly.


Now I am trying to get the LOGON_USER from the header.  I want the windows 
id of the user that is hitting my web page.  I am developing an Intranet 
site and want to do seamless login based on who the user logged into their 
windows machine.  I know I can do this by using the command 
request.ServerVariables(LOGON_USER) in ASP.  I also was able to get 
request.getHeader(LOGON_USER) to work with IIS 5.1 and JRun 4 (using the 
dll they provide).


Does anyone know how I can get this information using Tomcat?  I would be 
greatly appreciative.


Thanks
Rob J. 



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



Re: Getting LOGON_USER from the header

2005-08-29 Thread Robert Jose

Thanks for the response Gurumoorthy, but I get null for a result.

Rob J.

- Original Message - 
From: Gurumoorthy [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 2:40 PM
Subject: Re: Getting LOGON_USER from the header



request.getRemoteUser()
- Original Message - 
From: Robert Jose [EMAIL PROTECTED]

To: Tomcat User tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 10:44 PM
Subject: Getting LOGON_USER from the header


Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 using 
the isapi redirect dll.  This seems to be working well and configured 
correctly.


Now I am trying to get the LOGON_USER from the header.  I want the windows 
id of the user that is hitting my web page.  I am developing an Intranet 
site and want to do seamless login based on who the user logged into their 
windows machine.  I know I can do this by using the command 
request.ServerVariables(LOGON_USER) in ASP.  I also was able to get 
request.getHeader(LOGON_USER) to work with IIS 5.1 and JRun 4 (using the 
dll they provide).


Does anyone know how I can get this information using Tomcat?  I would be 
greatly appreciative.


Thanks
Rob J.

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






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



admin install question suggestion

2005-08-29 Thread Peter Kennard


This may come under the category of first time user usability testing.

- I installed Tomcat on my box and it runs fine.
- The admin webapp is in a separate download so one
   can safely install it (proper)

BUT :)

From my naive user (and valuable in usability testing) POV I don't know 
the proper way to install and set up the admin webapp from the download 
.zip file.  (Probably brain dead simple.)


It would be extremely new user fiendly to include a howto-install.txt (or 
similar stick out at you file name) in the root level of the admin-webapp 
zip and tar.gz files. Or have it somwhere in the DOCs included with the 
base level tomcat install.  I am not qualified to write it at present.


I looked about and googled apache tomcat admin webapp install, looked at 
the faq and didn't find any specific relevant item.  I still want to know :)


Thanks
PK




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



re: on adjusting incoming queue

2005-08-29 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

- From what I understand there are two queues in Tomcat, and incoming
queue and an execution queue. It appears tomcat is rejecting some
clients when too many people try to hit my server at one time. During
this time the cpu utilization was about 80%-95%, which probably
exacerbated the problem.

I hope I am understanding what the incoming queue is for, as, if the
size of the queue is 10, and 12 clients try to hit the server at the
same time, then 1 or 2 clients will get an error back from tomcat.

If I adjust the size of the incoming queue so that it is larger than the
current value of 10 might that cause problems with other parts of tomcat?

I don't seem to hit the limit of 150 threads on the execution queue, but
I did see it get to 109 threads in use at one point.

Is there any way to monitor how many connections are rejected because
the incoming queue is full?

I am using Tomcat 5.5.9, on Solaris 9 with jdk1.5.

Thanx for any help.

- --
Corruptisima republica plurimae leges. [The more corrupt a republic, the
more laws.]
Tacitus from Annals III, 116AD
Blogs: http://jamesruminations.blogspot.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFDE49OJ/zyYkX46joRAh0hAKCLWPuoq3EZBZPKVwNGMyMAuxo8BQCfR7k0
3keTnNrOslIxKrBfUV4tuKE=
=zKDF
-END PGP SIGNATURE-

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



Re: workers.properties directives

2005-08-29 Thread Rainer Jung
mod_jk 1.2.14:

List of workers, attributes and defaults. ajp14 is not included.

global:

- worker.maintain (60)
[and some obvious others]

all workers:

- type (ajp13)

ajp12:

- host (localhost)
- port (8007)

ajp13:

- host (localhost)
- port (8009)
- connection_pool_size (1) [aka cachesize which is the old and
deprecated name]
- cache_timeout (0)
- socket_timeout (-1 = disabled)
- socket_buffer (8192)
- socket_keepalive (false)
- recycle_timeout (0)
- connect_timeout (0)
- reply_timeout (0)
- prepost_timeout (0)
- recovery_options (0)
- retries (3)

lb:

- balanced_workers / balance_workers
- sticky_session (1)
- sticky_session_force (0)
- method (0=BYREQUESTS)
- lock (O=OPTIMISTIC)
- recover_time (60, also mimimum 60)

per balanced worker:

- lbfactor (1)
- domain (NULL)
- redirect (NULL)
- disabled (0)
- stopped (0)

I hope this helps.

Viel Spaß wünscht

Rainer Jung

--

kippdata informationstechnologie GmbH
Bornheimer Str. 33a
D-53115 Bonn

 Hi all,

 recently I stumbled over the mod_jk statusworker feature coming with
 recent mod_jk versions and, of course, I immediately wanted to have
 such neat thing :-)

 Up to that time, I didn't saw an imperative need to have balanced wor-
 kers (Apache+Tomcat on the same machine; one single ajp13 type
 worker did his job fine for me so far).

 Since it turned out that the status worker will talk to lb type workers
 only, I simply renamed my existing ajp13 worker, then established
 another lb type worker of the former name which itself sits now on
 that ajp13 type (or node) worker.

 But here I'm asking myself: Where do I preferably apply those more
 sophisticated settings like

 worker.XY.recycle_timeout, worker.XY.cachesize or
 worker.XY.cache_timeout ??

 (seems that we can assign them both to lb type as to ajp13 type workers;
 at least I didn't found anything that rules out doing so in the online
 docs)

 In other words, do they a better job when defined with worker MyWorker
 or with node1 in the following httpd.conf example (simplified view;
 think yourself a JkWorkerProperty in front of all these worker...
 directives):

 worker.list=MyWorker
 worker.MyWorker.type=lb
 worker.MyWorker.balance_workers=node1
 worker.node1.type=ajp13
 worker.node1.host=localhost
 worker.node1.port=8009

 Location /MyContext 
   JkMount MyWorker
 /Location

 ??

 Some of that worker.XY... options sound more IP related, so I would
 tend to assign them to ajp13 type workers;
 on the other hand, worker.XY.cachesize seems to have more impact to
 the endpoint software layer, which implies that it unfolds it's effect
 better within the load balancer tier.

 TIA

 Regards

 Olaf Lautenschlaeger
 --
 ANOVA Multimedia Studios GmbH
 Joachim-Jungius-Strasse 9
 D-18059 Rostock / Germany


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




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



Re: Getting LOGON_USER from the header

2005-08-29 Thread David Smith
By default, tomcat ignores the REMOTE_USER header from Apache or IIS in 
favor if it's own authentication.  To get tomcat to accept the IIS 
authentication info, add  this attribute to the Connector/ element in 
server.xml:


tomcatAuthentication=false

--David

Robert Jose wrote:


Thanks for the response Gurumoorthy, but I get null for a result.

Rob J.

- Original Message - From: Gurumoorthy 
[EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 2:40 PM
Subject: Re: Getting LOGON_USER from the header



request.getRemoteUser()
- Original Message - From: Robert Jose [EMAIL PROTECTED]
To: Tomcat User tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 10:44 PM
Subject: Getting LOGON_USER from the header


Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 
using the isapi redirect dll.  This seems to be working well and 
configured correctly.


Now I am trying to get the LOGON_USER from the header.  I want the 
windows id of the user that is hitting my web page.  I am developing 
an Intranet site and want to do seamless login based on who the user 
logged into their windows machine.  I know I can do this by using the 
command request.ServerVariables(LOGON_USER) in ASP.  I also was 
able to get request.getHeader(LOGON_USER) to work with IIS 5.1 and 
JRun 4 (using the dll they provide).


Does anyone know how I can get this information using Tomcat?  I 
would be greatly appreciative.


Thanks
Rob J.

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






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





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



Problem with file upload corruption.

2005-08-29 Thread [EMAIL PROTECTED]
We have a JSP/servlet combo that uses the OReilly MultiPartRequest to
upload a users HTML template for our application. Invariably they end up
with some unusual characters in their template - sometimes from pasting in
text from MS Word or other similar application.

For some reason a single character (e.g. x092 a right single quotation
mark) is turned into multiple special characters after it is uploaded.
When we download it  we use 
  response.setContentType(application/octet-stream);
and the mangled file downloads fine (i.e. without change)

Here is an example - the right single quotation marka backward single quote
comes right after the paragraph tag (p).

BEFORE upload
html
...
p’Some text.
/html

AFTER upload
html
...
p�Some text.
/html

I have read the file upload RFC 1867 until I'm blue in the face, and
Googled on and off the servlet.com site. There were reported binary upload
problems using the warp connector to connect Tomcat 4.0 and Apache. But we
are using Tomcat 4.1.18.

Any ideas or suggestion are appreciated.

Thank you - Richard



mail2web - Check your email from the web at
http://mail2web.com/ .



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



jndi resource lookup failure in tomcat 5.5

2005-08-29 Thread Brian Moseley

i've been trying to get my webapp working in tomcat 5.5.9, and i'm
running into a problem using spring's JndiObjectFactoryBean to access a 
tomcat naming resource.


i'm getting a BeanCreationException with this message: Error creating
bean with name 'jcrRepository' defined in class path resource
[applicationContext-repository.xml]: Initialization of bean failed;
nested exception is javax.naming.NamingException: Cannot create resource
instance

unfortunately the naming exception does not have a root cause, so it's
difficult to see what could be causing the problem. turning on debugging
in tomcat revealed the following, tho:

2005-08-29 18:20:52,215 DEBUG [WebappClassLoader]
loadClass(org.springframework.jndi.JndiObjectFactoryBeanBeanInfo, false)
2005-08-29 18:20:52,217 DEBUG [WebappClassLoader]   Searching local
repositories
2005-08-29 18:20:52,217 DEBUG [WebappClassLoader]
findClass(org.springframework.jndi.JndiObjectFactoryBeanBeanInfo)
2005-08-29 18:20:52,217 DEBUG [WebappClassLoader]
findClassInternal(org.springframework.jndi.JndiObjectFactoryBeanBeanInfo)
2005-08-29 18:20:52,219 DEBUG [WebappClassLoader] -- Passing on
ClassNotFoundException

i can't tell if this is expected or not. if you look at the full log
file, that output occurs slightly before the exception is logged. you
can see the full log at http://builds.osafoundation.org/~bcm/cosmo.log.

the jar that contains javax/jcr/Repository.class is in tomcat's
common/lib directory. i tried copying all the other jars from
WEB-INF/lib into common/lib as well, but that did not help at all.

any ideas what might be going on, or how i can further troubleshoot? thanks!

my tomcat context's config file contains:

  Resource name=jcr/cosmo
type=javax.jcr.Repository/

  ResourceParams name=jcr/cosmo
parameter
  namefactory/name
  value
org.apache.jackrabbit.core.jndi.BindableRepositoryFactory
  /value
/parameter
parameter
  nameconfigFilePath/name
  valueetc/repository.xml/value
/parameter
parameter
  namerepHomeDir/name
  valuedata/repository/value
/parameter
  /ResourceParams

and my webapp's web.xml contains:

  resource-env-ref
resource-env-ref-namejcr/cosmo/resource-env-ref-name
resource-env-ref-type
  javax.jcr.Repository
/resource-env-ref-type
  /resource-env-ref

my spring bean is defined as such:

  bean id=jcrRepository
class=org.springframework.jndi.JndiObjectFactoryBean
property name=jndiName
  valuejcr/cosmo/value
/property
property name=resourceRef
  valuetrue/value
/property
  /bean


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



Re: jndi resource lookup failure in tomcat 5.5

2005-08-29 Thread Brian Moseley

Brian Moseley wrote:

i've been trying to get my webapp working in tomcat 5.5.9, and i'm
running into a problem using spring's JndiObjectFactoryBean to access a 
tomcat naming resource.


nevermind! i didn't rtfm and so did not realize that 5.5 does not use 
ResourceParams. all is well. hope somebody learns from my mistake :)



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



Re: Getting LOGON_USER from the header

2005-08-29 Thread Robert Jose

Thanks David, I will give this a try.

Rob
- Original Message - 
From: David Smith [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 6:16 PM
Subject: Re: Getting LOGON_USER from the header


By default, tomcat ignores the REMOTE_USER header from Apache or IIS in 
favor if it's own authentication.  To get tomcat to accept the IIS 
authentication info, add  this attribute to the Connector/ element in 
server.xml:


tomcatAuthentication=false

--David

Robert Jose wrote:


Thanks for the response Gurumoorthy, but I get null for a result.

Rob J.

- Original Message - From: Gurumoorthy 
[EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 2:40 PM
Subject: Re: Getting LOGON_USER from the header



request.getRemoteUser()
- Original Message - From: Robert Jose [EMAIL PROTECTED]
To: Tomcat User tomcat-user@jakarta.apache.org
Sent: Monday, August 29, 2005 10:44 PM
Subject: Getting LOGON_USER from the header


Hello
I have configured IIS 5.1 to redirect all jsp files to Tomcat 5.5 
using the isapi redirect dll.  This seems to be working well and 
configured correctly.


Now I am trying to get the LOGON_USER from the header.  I want the 
windows id of the user that is hitting my web page.  I am developing 
an Intranet site and want to do seamless login based on who the user 
logged into their windows machine.  I know I can do this by using the 
command request.ServerVariables(LOGON_USER) in ASP.  I also was 
able to get request.getHeader(LOGON_USER) to work with IIS 5.1 and 
JRun 4 (using the dll they provide).


Does anyone know how I can get this information using Tomcat?  I 
would be greatly appreciative.


Thanks
Rob J.

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






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





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





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



RE: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Guy Katz
tomcat website has a server configuration link and it states for every element 
in the server.xml which sub elements are possible. along with knowledge of JAAS 
you have to acuire alone and the JAAS Realm configuration link you have been 
given, i would say you are set.

-Original Message-
From: Ittay Dror [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 10:48 PM
To: Tomcat Users List
Subject: Re: instructions for setting up jaas over db in tomcat




Robert Taylor wrote:
 I used the following link:
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm

doesn't contain whether i can put 'Realm' in ROOT.xml

doesn't say anything about where to get a LoginModule implementation, or how to 
config jaas.config.

 
 It tooks some research, but I finally got it to work.

my point exactly. i believe every person setting up tomcat does this research 
and i wondered if anyone created a guide.

 
 /robert
 
 
 Ittay Dror wrote:
 
 Hi,

 I haven't found anywhere a step-by-step instructions or reference code 
 on how to set up jaas. Please help me with this as I'm very much lost.

 What I need:
 - authentication vs a DB
 - a ROOT webapp
 - tomcat 5.5
 - where to put the 'Realm' element (can it be in 
 conf/Catalina/localhost/ROOT.xml?)
 - what to put inside jaas.config
 - where to get an implementation of a login module. tagish isn't good 
 for me since they require a specific db schema (i'm porting an 
 existing application). Is there a standalone package with jboss's 
 implementations?

 Thanx,
 Ittay


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


-- 
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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


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



Re: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Ittay Dror



Guy Katz wrote:

tomcat website has a server configuration link and it states for every element 
in the server.xml which sub elements are possible. along with knowledge of JAAS 
you have to acuire alone and the JAAS Realm configuration link you have been 
given, i would say you are set.


can i put the Realm statement in Catalina/localhost/ROOT.xml?



-Original Message-
From: Ittay Dror [mailto:[EMAIL PROTECTED]
Sent: Monday, August 29, 2005 10:48 PM
To: Tomcat Users List
Subject: Re: instructions for setting up jaas over db in tomcat




Robert Taylor wrote:


I used the following link:

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



doesn't contain whether i can put 'Realm' in ROOT.xml

doesn't say anything about where to get a LoginModule implementation, or how to 
config jaas.config.




It tooks some research, but I finally got it to work.



my point exactly. i believe every person setting up tomcat does this research 
and i wondered if anyone created a guide.




/robert


Ittay Dror wrote:



Hi,

I haven't found anywhere a step-by-step instructions or reference code 
on how to set up jaas. Please help me with this as I'm very much lost.


What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in 
conf/Catalina/localhost/ROOT.xml?)

- what to put inside jaas.config
- where to get an implementation of a login module. tagish isn't good 
for me since they require a specific db schema (i'm porting an 
existing application). Is there a standalone package with jboss's 
implementations?


Thanx,
Ittay





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









--
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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



RE: instructions for setting up jaas over db in tomcat

2005-08-29 Thread Guy Katz

if the Realm element can reside inside the elements in the root.xml 
(specifically the Context element) then yes.
you can check this in the server.xml configuration docs on the tomcat website.


-Original Message-
From: Ittay Dror [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 30, 2005 7:49 AM
To: Tomcat Users List
Subject: Re: instructions for setting up jaas over db in tomcat




Guy Katz wrote:
 tomcat website has a server configuration link and it states for every 
 element in the server.xml which sub elements are possible. along with 
 knowledge of JAAS you have to acuire alone and the JAAS Realm configuration 
 link you have been given, i would say you are set.

can i put the Realm statement in Catalina/localhost/ROOT.xml?

 
 -Original Message-
 From: Ittay Dror [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 29, 2005 10:48 PM
 To: Tomcat Users List
 Subject: Re: instructions for setting up jaas over db in tomcat
 
 
 
 
 Robert Taylor wrote:
 
I used the following link:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm
 
 
 doesn't contain whether i can put 'Realm' in ROOT.xml
 
 doesn't say anything about where to get a LoginModule implementation, or how 
 to 
 config jaas.config.
 
 
It tooks some research, but I finally got it to work.
 
 
 my point exactly. i believe every person setting up tomcat does this research 
 and i wondered if anyone created a guide.
 
 
/robert


Ittay Dror wrote:


Hi,

I haven't found anywhere a step-by-step instructions or reference code 
on how to set up jaas. Please help me with this as I'm very much lost.

What I need:
- authentication vs a DB
- a ROOT webapp
- tomcat 5.5
- where to put the 'Realm' element (can it be in 
conf/Catalina/localhost/ROOT.xml?)
- what to put inside jaas.config
- where to get an implementation of a login module. tagish isn't good 
for me since they require a specific db schema (i'm porting an 
existing application). Is there a standalone package with jboss's 
implementations?

Thanx,
Ittay




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


 
 
 


-- 
===
Ittay Dror ([EMAIL PROTECTED])
Application Team Leader, RD
Qlusters Inc.
+972-3-6081994 Fax: +972-3-6081841

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


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