Re: Using a custom method of session-id propagation

2008-03-05 Thread Peter Stavrinides
Tom this is 100% correct there is no way to even instantiate a session 
object from a  self-supplied session-id let alone replace the current 
session object in the HttpRequest. but I am still a little curious as 
to why Tomcats generated session id is not adequate, is it purely 
because you can't get at it early enough?


I apologise Christopher for second guessing, but I just don't see what 
rewriting Tomcats session management brings... you did say nevertheless 
that you don't recommend it, for good reason, this is tried and tested 
code that is central to the servers operation, I feel this task is 
'unthinkable' and will only introduce a host of problems and complexity.


After reading a little, Tomcat 5x onwards comes with session replication 
capabilities, which means there is some code which you can reference and 
write a valve that intercepts the request as soon as a new session is 
created and before its sent back to the user in the response, an example 
of this being the ReplicationValve which ships with Tomcat. ||You can 
then persist it in a database or do whatever you want with it.


Maybe these can help a little:
http://www.onjava.com/pub/a/onjava/2004/11/24/replication1.html?page=last
http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

Peter

Tom van Wietmarschen wrote:

L.S.,

I was wondering if it is possible to write a custom method of
propagating the session ID between HTTP requests. Specifically: we want
to store the session id in a X-ourcompanyname-sessionid header (we use a
custom http client so we can modify that to send the sessionid back in a
header).

The reason for this is that we have to deal with clients that are using
mobile data connections, and mobile phone operators sometimes feel the
need to mess with a clients cookies and sessions as well as doing other
kinds of nasty things in their proxies. Non-standard headers are usually
left alone.

I've been looking at a way to do this but I can't find a solution,
filters seem to be too late in the chain: a request object is already
created and there is no way to even instantiate a session object from a
self-supplied session-id let alone replace the current session object in
the HttpRequest.

Does anyone known if there is a way to write my own handlers for
retrieving and setting the current sessionid and have tomcat use that
instead of looking at the requesturl or cookies ?

Sincerely,
   Tom van Wietmarschen




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



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



Re: weird log output

2008-03-05 Thread David Delbecq
En l'instant précis du 05/03/08 06:10, Lessie Z. Mitch s'exprimait en 
ces termes:
 


Running TC5.5.23 as lone web server on RHE4 box
  
Official tomcat, or redhat provided tomcat. In second case, get rid of 
it and download a clean official tomcat, mailing list won't offer much 
help on refurbished tomcats some distros are using.


 


My apps are starting fine, logs are nice and clean, and then… this weird
string appears within a few seconds:

 


ßsnipà

Mar 4, 2008 10:58:23 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-80

Mar 4, 2008 10:58:23 PM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server-registry.xml at classpath resource

Mar 4, 2008 10:58:23 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 52007 ms

---2823

ßend snipà

  

nice, since you are on tomcat, did you try a

grep -R -e '--'  *

if it's not in a jar, you might locate the cullprit ;)
Could it be you configured a logger to put regular timstamps in logs?
 


That last line in the snip… what is that? What does it mean? How do I make
it go away?!? It only started appearing after upgraded from TC5.5.16. My
webapps run fine and dandy, but that string appears every so often and it is
driving me nuts!  *is a lonely girl, she reads her log files like books*

 

 


~LZM~

 



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.4/1310 - Release Date: 3/4/2008

8:35 AM
 

  



--
http://www.devlog.be (a belgian developer's logs)



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



Re: weird log output

2008-03-05 Thread David Delbecq
En l'instant précis du 05/03/08 09:50, David Delbecq s'exprimait en ces 
termes:
 
nice, since you are on tomcat, did you try a 

Please read since you are on linux

--
http://www.devlog.be (a belgian developer's logs)



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



difference between TC5.5 and TC6

2008-03-05 Thread Edward Quick

I have a question about the difference between TC 5.5 and 6.
We use 5.5 as our standard, but a vendor we are working with is insisting their 
webapp will only work with TC6 because they have coded to JSP standard 2.2 (may 
be 2.1?) 

I have a couple of questions about this:

Where do I go to check the differences between JSP 2.0 and 2.1/2.2 ? I'm not 
sure what these are.

Is it possible that a webapp can only work on TC6 and not TC5.5 ?

Thanks for any help.

Ed.

_
Telly addicts unite!
http://www.searchgamesbox.com/tvtown.shtml

Re: mod_jk or mod_proxy_ajp - encryption benefits?

2008-03-05 Thread David Cassidy
cough stunnel /cough
 

On Mon, 2008-03-03 at 18:39 -0800, David Rees wrote:
 On Mon, Mar 3, 2008 at 9:26 AM, James Ellis [EMAIL PROTECTED] wrote:
  Do you think that little hollow voice can clarify how IPSec would solve this
  problem by giving an example of a software that I could implement to 
  accomplish this?
 
 Google IPSec and VPN and you will find your answer.
 
 -Dave
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Getting the URL of a DataSource

2008-03-05 Thread Katilie, John
Phil, Thanks.. I'll take a look.

jfk

-Original Message-
From: Phil Steitz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2008 10:41 PM
To: Tomcat Users List
Subject: Re: Getting the URL of a DataSource

On Mon, Mar 3, 2008 at 2:08 PM, Katilie, John
[EMAIL PROTECTED] wrote:
 All, this may be a dumb question but I've exhausted my research and
just
  wondering what other users out there are doing.

  I would like to get the URL for a DataSource to display for debugging
  and/or
  Informational reasons. I know I can get the URL after I get the
  DataSource and get a connection from the connection metadata. My
problem
  is what if the
  Connection fails? It seems without the connection I can not get the
URL
  for the DataSource.

  This is an application running under Tomcat 6.0.14. I guess I could
get
  the URL from the JMX DataSource objects created by Tomcat (I can see
  them with jconsole). But is there another way? Am I missing
something? I
  hope this question makes sense...

I may get flamed for condoning hacking here, but there is a
too-fragile-to-depend-on way to do this for debugging / testing.

If the DataSource implementation that you are using exposes a getUrl
method, and you really want to get this (or any other extended
property) in application code, you can get the URL by specializing the
cast on your JNDI lookup and then invoking that method.  For example,
if you are using the tomcat-provided DBCP DataSource,
org.apache.tomcat.dbcp.dbcp.BasicDataSource ds  =
(org.apache.tomcat.dbcp.dbcp.BasicDataSource)
initContext.lookup(java:/comp/env/jdbc/yourDB);
String urlString = ds.getUrl();
That obiously only works if you are using BasicDataSource bundled with
Tomcat or if whatever datasource you use supports something like this
(If you are using Commons DBCP directly, just change tomcat.dbcp to
commons).  It is not something you want to depend on, though, as all
Tomcat or your DS provider really promises you is a
javax.sql.DataSource.  In particular, there is no guarantee that code
such as the above will not start generating ClassCastExceptions or
ClassNotFound when the container (Tomcat) or datasource provider
release new versions.

Phil


  Thanks for any and all comments.

  Regards, John.

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



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


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



Re: difference between TC5.5 and TC6

2008-03-05 Thread Markus Schönhaber
Edward Quick wrote:

 I have a question about the difference between TC 5.5 and 6. We use
 5.5 as our standard, but a vendor we are working with is insisting
 their webapp will only work with TC6 because they have coded to JSP
 standard 2.2 (may be 2.1?)

JSP 2.1 is supported by Tomcat 6 (and is the current official standard).
http://tomcat.apache.org/whichversion.html

 I have a couple of questions about this:
 
 Where do I go to check the differences between JSP 2.0 and 2.1/2.2 ?
 I'm not sure what these are.

The JSP specification contains a list of changes from previous versions.

 Is it possible that a webapp can only work on TC6 and not TC5.5 ?

Yes. The reason given by the vendor seems valid.

Regards
  mks


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



Re: difference between TC5.5 and TC6

2008-03-05 Thread amit kumar
Is there any documentation available where I can read about all the changes
that has happened from TC 5 to TC6. I have been facing problem in figuring
out the changed structure of classes and or replaced classes if
any.(specifically for developing valves for tomcat 6)


Regards.
Amit

On Wed, Mar 5, 2008 at 6:45 AM, David Smith [EMAIL PROTECTED] wrote:

 Regarding specs, tomcat 6 also supports servlet spec 2.5.

 Regarding tomcat specific stuff, the default folder layout with respect
 to where to place jar files was optimized slightly.

 --David


 Markus Schönhaber wrote:

 Edward Quick wrote:
 
 
 
 I have a question about the difference between TC 5.5 and 6. We use
 5.5 as our standard, but a vendor we are working with is insisting
 their webapp will only work with TC6 because they have coded to JSP
 standard 2.2 (may be 2.1?)
 
 
 
 JSP 2.1 is supported by Tomcat 6 (and is the current official standard).
 http://tomcat.apache.org/whichversion.html
 
 
 
 I have a couple of questions about this:
 
 Where do I go to check the differences between JSP 2.0 and 2.1/2.2 ?
 I'm not sure what these are.
 
 
 
 The JSP specification contains a list of changes from previous versions.
 
 
 
 Is it possible that a webapp can only work on TC6 and not TC5.5 ?
 
 
 
 Yes. The reason given by the vendor seems valid.
 
 Regards
   mks
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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




Problem in running servlet

2008-03-05 Thread Raghavan_sat

Hi
Am getting this error when running a servlet.

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
tomcat.impl.PluginServlet or a class it depends on
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
java.lang.Thread.run(libgcj.so.8rh)

root cause

java.lang.ClassNotFoundException: tomcat.impl.PluginServlet
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
java.lang.Thread.run(libgcj.so.8rh)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.26 logs.

Why am i getting this error. can anyone help me. i have the jar files
necessary but where should i place them 
-- 
View this message in context: 
http://www.nabble.com/Problem-in-running-servlet-tp15851685p15851685.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



MbeanServer Problem

2008-03-05 Thread Raghavan_sat

Hi
  The following line in my code just prints a null array.

 Set hostsON = mBeanServer.queryNames(queryHosts, null);

Is mbeanserver not having anything. am new to this. help me on this 

try
{
  String msg=\n;
  String msg2=null;
  int flag=0;
  String onStr = JMImplementation:type=MBeanServerDelegate;
  ObjectName objectName = new ObjectName(onStr);
  mBeanServer.addNotificationListener(objectName, this, null, null);

//QUERIES THE JSR MANAGED OBJECT FOR RETRIEVING THE LIST OF WEB APPLICATIONS
LAUNCHED ON TOMACT SERVER
  ObjectName queryHosts = new ObjectName(*:j2eeType=WebModule,*);
  Set hostsON = mBeanServer.queryNames(queryHosts, null);
  int count = 1;
  Iterator iterator = hostsON.iterator();
  while (iterator.hasNext()) 
  {
   ObjectName contextON = (ObjectName) iterator.next();
   String webModuleName = contextON.getKeyProperty(name); 
   if (webModuleName.startsWith(//)) 
   {
 webModuleName = webModuleName.substring(2);
   }
   int slash = webModuleName.indexOf(/);
   if (slash == -1) 
   {
 count++;
 continue;
   }
calc(contextON,mBeanServer,webModuleName);
  } 
  msg=msg+get();
  op.writeUTF(msg);
  String status=checkStatus();
  op.writeUTF(status);
} 
catch (Exception e) 
{
Object o=e.toString();
try
{

JOptionPane.showMessageDialog(null,e,SessionBean Error!,1); 
op.writeUTF(o.toString());
}
catch(Exception e1)
{
;
}
}  
-- 
View this message in context: 
http://www.nabble.com/MbeanServer-Problem-tp15852122p15852122.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: difference between TC5.5 and TC6

2008-03-05 Thread Caldarale, Charles R
 From: amit kumar [mailto:[EMAIL PROTECTED] 
 Subject: Re: difference between TC5.5 and TC6
 
 Is there any documentation available where I can read about 
 all the changes that has happened from TC 5 to TC6.

http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

 - Chuck


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

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



Re: problems with mod_jk and https requests

2008-03-05 Thread Rafael Rossetto
Eran,

  That´s what I meant add all JkMounts to your ssl VirualHost.

 Thanks Rainer for the explanation, I think I didn´t make my self
clear previously.

Regards,
Rafael

On 3/4/08, Rainer Jung [EMAIL PROTECTED] wrote:
 Rafael Rossetto schrieb:

  Eran,
  
   Ensure that you correctly configured the ssl.conf for the JkMount
   directives.


 ... and also add all JkMounts to your ssl VirualHost.


  
   Regards,
   Rafael
  
   On 3/4/08, eranc [EMAIL PROTECTED] wrote:
Hi,
  
I have a web application running in tomcat 5.5 and using Apache 2.0 with
mod_jk to forward the requests to tomcat.
Everything is working fine for http requests but not for https requests
which are not forwarded correctly.
When I go to the root of apache or a PHP application that I have 
 installed
there I can acess them via https but not those going through mod_jk.
Any ideas?
  
Thanx,
  
Eran


 Rainer


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



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



RE: Problem in running servlet

2008-03-05 Thread Caldarale, Charles R
 From: Raghavan_sat [mailto:[EMAIL PROTECTED] 
 Subject: Problem in running servlet
 
 Am getting this error when running a servlet.

You need to install a real Tomcat and a real JVM.  The GNU JVM is pretty
much just a toy; get rid of it and install a proper one for your
platform from java.sun.com.  Also, 3rd-party repackaged versions of
Tomcat are notortiously error-prone; download a real Tomcat from
tomcat.apache.org.

 - Chuck


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

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



RE: Storing sessions to disk like Apache HTTP server

2008-03-05 Thread Andrew R Feller
Thanks for the replies Chuck as always; I meant to say that sooner. =P
I am also sorry this reply is a week overdue, however I have been tied
up for a week.  Let me explain the situation a little more thoroughly
and see what your thoughts are then:

For several critical applications such as SSO and student registration,
we want them clustered over multiple servers behind a load balancer.
The SSO application's load consists of users logging in and ticket
processing.  The student registration application's load consists of
thousands of students pounding at a handful of servers constantly in
hopes they can schedule their classes before they fill up.  It is like
people watching an eBay auction and constantly refreshing the page to
see if they have the winning bid and upping it whenever they aren't.

If a server goes down, the load balancer will forward traffic to the
others such that no one will experience interruption of service.
Obviously, this requires the application servers to be clustered such
that their sessions are replicated with one another.


Given that our SSO solution is currently clustered among three machines:
 
1. Does Tomcat keep all session information strictly in RAM or does it
swap out to disk?  If it swaps out to disk, is there any way to
configure how much session information can be kept in RAM?

2. What commonly used formulas are there to determine sufficient RAM
based on load size?  I am currently reviewing logs from our peak
application usage as well as an average day to determine the number of
logins / second.

3. Is it better to split large clusters into smaller ones with a few
nodes replicating to the other clusters? (Example below with nodes
denoted by O)

 SSO  CLUSTER
--
| CLUSTER  A |
||
|  O--O  |
|   \/   |
|O--O|
||  ||
||--||
||  ||
|O--O|
|   /\   |
|  O--O  |
||
| CLUSTER  B |
--


I posed my original question (Can Tomcat write session information to
disk or database like the Apache HTTP) because it seemed more scalable
as:

1. Our SAN has several terabytes worth of space so session information
can grow easily.

2. Reduces RAM bottleneck

3. Reduces network traffic to replicate session information


I would appreciate any thoughts and alternatives you have to offer!

Thanks,

Andrew R Feller, Analyst
University Information Systems
200 Fred Frey Building
Louisiana State University
Baton Rouge, LA, 70803
(225) 578-3737 (Office)
(225) 578-6400 (Fax)


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 27, 2008 2:17 PM
To: Tomcat Users List
Subject: RE: Storing sessions to disk like Apache HTTP server

 From: Andrew R Feller [mailto:[EMAIL PROTECTED] 
 Subject: RE: Storing sessions to disk like Apache HTTP server
 
 Actually, the system we are concerned about will have tens of 
 thousands of concurrent users.

Number of users != number of sessions, unless they all log in and stay
logged in concurrently (or you have a very high session timeout
setting).  Regardless, given the price of memory and the ready
availability of 64-bit platforms, there's no sense in over-engineering
this.

 - Chuck


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

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


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



Re: ProxyPaths and mod_proxy_ajp

2008-03-05 Thread Jim Jagielski

Seems to me you are using Apache as a front-end to
TC. In which case you are telling Apache that whatever is
under /examples should be handled by TC, everything else
is local... Right so far?

If so, then you for SURE do not what to configure Apache
as a forward proxy, which is what you are doing with the
ProxyRequests On directive. For a simple reverse proxy
you should make sure that Apache is not also a forward
one as well... checkout

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#forwardreverse

On Feb 27, 2008, at 4:17 PM, Stephen Nelson-Smith wrote:


Hi,

I have an application which, due to restrictions by third party
developers must run on Tomcat 4.1.31 with Java version 1.4.2_11.

I am deploying this on a new RHEL 5 machine, with
httpd-2.2.3-11.el5_1.3.  From my reading, it appears that
mod_proxy_ajp is the way to go, and I aim to loadbalance several
instances, so this seems to be ideal.

I am testing with the default Tomcat webapps - I would like to be able
to enter: http://10.1.1.203/examples and get the webapps, where I can
click on the examples and run them.

On tomcat the path is:

http://10.1.1.203:8080/examples/servlets/index.html

I am trying to understand the following behavour:

The relevant apache config is:

 IfModule mod_proxy.c
 ProxyRequests On
 Proxy *
 Order allow,deny
 Allow from all
 /Proxy
 LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
 ProxyPass /examples/ ajp://localhost:8080/examples/
 ProxyVia on

My server.xml contains:

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=8080 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25  
maxSpareThreads=75
  enableLookups=false redirectPort=8443  
acceptCount=100

  connectionTimeout=2 disableUploadTimeout=true
  proxyName=my.test.com proxyPort=80/

When I browse to http://10.1.1.203/examples I get a tomcat-served
directory listing, which I can use to navigate to the examples, from
whence I can click on the examples, and they work.

If I add /servlets to both sides of the ProxyPass directive, I can
browse directly to the directory listing, but if I click on one of the
examples I get a 404 / resource unavailable.

Why is this happening?  How do I get 10.1.1.3/examples to map to the
examples, in such a way that I can click on them and they work?

Once this is tested and working, I will roll out the real app.  What's
the recommended way to mix in apache virtual hosts, so I can browse to
www.mywizzoapp.com/login.jsp and be mapped to
/some/path/which/eventually/logs/into/the/app?

Thanks,

S.

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




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



Re: Using a custom method of session-id propagation

2008-03-05 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Peter,

Peter Stavrinides wrote:
| Tom this is 100% correct there is no way to even instantiate a session
| object from a  self-supplied session-id let alone replace the current
| session object in the HttpRequest.

That depends on your definition of no way ;)

| I apologise Christopher for second guessing, but I just don't see what
| rewriting Tomcats session management brings... you did say nevertheless
| that you don't recommend it, for good reason, this is tried and tested
| code that is central to the servers operation, I feel this task is
| 'unthinkable' and will only introduce a host of problems and complexity.

I said that I didn't recommend re-writing session management as a filter
(because of the overwhelming complexity involved in satisfying all the
requirements). I actually /do/ recommend hacking the Tomcat code. I
think it's the only reasonable way to do this.

Re-writing Tomcat's session management allows Tom to override the source
of the session ids (custom HTTP header instead of URL parameter or
cookie) as well as the way they are sent back to the client (again,
custom HTTP header instead of cookie). This seems like the least amount
of work that could get the job done.

Since the problem is in two parts (get and set) and CoyoteAdapter seems
to only handle the first part (getting the session id from the client)
while org.apache.catalina.connector.Request seems to handle setting the
Cookie on the response, the solution might not be nice and symmetrical.

Actually, now that I get into it, it looks like a single Valve might be
able to do this. The basic method in a Valve is:

public void invoke(Request request, Response response)

where both of the parameters are in the org.apache.catalina.connector
package. The Request class has a setRequestedSessionId method that you
could use to override the default source. Setting the outgoing header
might be a little trickier because Request.doGetSession is the method
that actually creates and adds the cookie to the response.

Maybe something like this would work:

public class CustomHeaderSessionIdValve
~extends org.apache.catalina.valves.ValveBase
{
~public static final String CUSTOM_HEADER_NAME = X-My-SessionId;

~public void invoke(Request request, Response response)
~{
~// You might consider ignoring your own custom header
~// if the session id already came through a cookie
~// or URL parameter. I'm not sure if you trust them,
~// but you might want to use your custom header only
~// for fall-back.
~String customSessionId = request.getHeader(CUSTOM_HEADER_NAME);

~if(null != customSessionId)
~{
~request.setRequestedSessionId(customSessionId);
~request.setRequestedSessionURL(false);// Your choice
~request.setRequestedSessionCookie(false); // Your choice
~}

~Valve next = getNext();

~if(null != next)
~{
~request = new WrappedRequest(request);
~response.setRequest(request);

~next.invoke(request, response);
~}
~}

~// Unfortunately, Request is not an interface so our wrapper
~// is a little awkward.
~static class RequestWrapper
~extends Request
~{
~Request _wrappedRequest;
~RequestWrapper(Request request)
~{
~_wrappedRequest = request;
~}

~protected Session doGetSession(boolean create)
~{
~Session session = _wrappedRequest.doGetSession(create);

~if(null != session
~   
!_wrappedRequest.response.containsHeader(CUSTOM_HEADER_NAME))
~_wrappedRequest.response.addHeader(CUSTOMER_HEADER_NAME,
~   session.getId());
~}

~// all other methods delegate to _wrappedRequest
~// be careful to implement them all or things will
~// act funny
~}
}

| After reading a little, Tomcat 5x onwards comes with session replication
| capabilities, which means there is some code which you can reference and
| write a valve that intercepts the request as soon as a new session is
| created and before its sent back to the user in the response, an example
| of this being the ReplicationValve which ships with Tomcat.

Yep. At the time, I was unsure of whether or not the session id could be
changed after it was set by the connector. It seems that Valves have
access to the connector's Request and Response objects, which allows
this technique to work.

- -chris

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

iEYEARECAAYFAkfOxzQACgkQ9CaO5/Lv0PAJugCgpCHlxgIPKRhG9ksMHFXZd2wp
nCEAoIYmMllNKE/3SNElgABz+FmcIKau
=XvqJ
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To 

Re: Problem in running servlet

2008-03-05 Thread Mohamed King
Hi,

Try putting the jar file in TOMCAT_HOME/common/lib or in your application
WEB-INF/lib directory.



 Hi
 Am getting this error when running a servlet.

 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

 javax.servlet.ServletException: Wrapper cannot find servlet class
 tomcat.impl.PluginServlet or a class it depends on
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
 java.lang.Thread.run(libgcj.so.8rh)

 root cause

 java.lang.ClassNotFoundException: tomcat.impl.PluginServlet
 org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
 org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
 java.lang.Thread.run(libgcj.so.8rh)

 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.26 logs.

 Why am i getting this error. can anyone help me. i have the jar files
 necessary but where should i place them
 --
 View this message in context:
 http://www.nabble.com/Problem-in-running-servlet-tp15851685p15851685.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Thank you,
Mohamed King
eApps Hosting


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



Re: Using a custom method of session-id propagation

2008-03-05 Thread Tom van Wietmarschen


Tom this is 100% correct there is no way to even instantiate a session 
object from a  self-supplied session-id let alone replace the current 
session object in the HttpRequest. but I am still a little curious as 
to why Tomcats generated session id is not adequate, is it purely 
because you can't get at it early enough?


Yes, the session id itself is adequate, I don't want to change that at 
all, nor do I want to change the session manager.


What I want to change is how the session id is communicated to the 
client and back. Basically, I want to change the object that retrieves 
the session ID from the HTTP request and feeds it to the session 
manager. (storing the session id in an additional header in the response 
is no problem)


The problem with both cookies and session id's in the URL is that we 
develop applications for use on cellphones. Cell network operators are a 
bunch of not-so-nice-people who sometimes feel the need to screw up HTTP 
traffic in their gateways, e.g. by messing with cookies and session ids. 
There is no guarantee that the cookies that arrive on the handset are 
the same as the ones that have been sent out from our servers. Sometimes 
cookies go missing, standard HTTP headers are mutilated, etc.


Our experience is that the custom X-headers are left alone, so we want 
to use a custom header to send and retrieve the session ID.
After reading a little, Tomcat 5x onwards comes with session replication 
capabilities, which means there is some code which you can reference and 
write a valve that intercepts the request as soon as a new session is 
created and before its sent back to the user in the response, an example 
of this being the ReplicationValve which ships with Tomcat. ||You can 
then persist it in a database or do whatever you want with it.
I've looked at the Tomcat API doc's and it seems to me the 
sessionmanager itself is not responsible for retrieving the session id, 
the session id is fed to it by someone else. (See 'findSession' in 
ManagerBase). Also, sending the session id back to the client is not the 
problem I can use a filter to do that. The problem is that if the client 
sends the session ID to the server in a custom header, Tomcat needs to 
pick up that session id and use that when calling findSession. So who is 
calling findSession and is it something I can easily replace ?


Furthermore, as an additional difficulty, we only use sessions in a 
subset of our applications, so it would be preferrable if this is 
something we can enable on a per-application basis.


I hope this clarifies what I'm trying to do.

Sincerely,
   Tom
--

**Tom van Wietmarschen**
Software Engineer

Service2Media B.V.
Vreelandseweg 7
1216 CG Hilversum

Capitool 41   
7521 PL Enschede


Tel  +31 (0)35 626 46 12
Fax +31 (0)35 626 46 13
www.service2media.com http://www.service2media.com


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



Re: Problem in running servlet

2008-03-05 Thread Ken Bowen

Mohamed,

I think you sent me a reply meant for someone else.  Here is the message 
I sent:


---
Hi guys,

I just discovered that my strong-brain.com app wasn't running, and found 
the following it's catalina.out log:


ERROR  | wrapper  | 2008/03/03 03:12:11 | JVM exited unexpectedly while 
stopping the application.

STATUS | wrapper  | 2008/03/03 03:12:11 | -- Wrapper Stopped

Do you have any idea what this might be about?

Thanks,
Ken Bowen




Mohamed King wrote:

Hi,

Try putting the jar file in TOMCAT_HOME/common/lib or in your application
WEB-INF/lib directory.


  

Hi
Am getting this error when running a servlet.

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Wrapper cannot find servlet class
tomcat.impl.PluginServlet or a class it depends on
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
java.lang.Thread.run(libgcj.so.8rh)

root cause

java.lang.ClassNotFoundException: tomcat.impl.PluginServlet
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.26.jar.so78uqbd.so)
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.26.jar.so78uqbd.so)
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.26.jar.so)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.26.jar.so)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.26.jar.so)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.26.jar.so)
java.lang.Thread.run(libgcj.so.8rh)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.26 logs.

Why am i getting this error. can anyone help me. i have the jar files
necessary but where should i place them
--
View this message in context:
http://www.nabble.com/Problem-in-running-servlet-tp15851685p15851685.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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





Thank you,
Mohamed King
eApps Hosting


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


  


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



Apologies

2008-03-05 Thread Ken Bowen
Apologies for the confused reply to MK.  Mixed up my mailTime for 
another couple of cups of coffee.  ):

--KB

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



Re: Using a custom method of session-id propagation

2008-03-05 Thread Christopher Schultz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom,

Tom van Wietmarschen wrote:
| What I want to change is how the session id is communicated to the
| client and back. Basically, I want to change the object that retrieves
| the session ID from the HTTP request and feeds it to the session
| manager.

That object /is/ the CoyoteAdapter, which is why I suggested it
originally. See my most recent post for a less intrusive possibility.

| The problem with both cookies and session id's in the URL is that we
| develop applications for use on cellphones. Cell network operators are a
| bunch of not-so-nice-people who sometimes feel the need to screw up HTTP
| traffic in their gateways, e.g. by messing with cookies and session ids.

Can you give us an example of what happens to your JSESSIONID cookie?

| There is no guarantee that the cookies that arrive on the handset are
| the same as the ones that have been sent out from our servers. Sometimes
| cookies go missing, standard HTTP headers are mutilated, etc.

That sucks. Is it selective? I mean... do you always get the GET line
correctly, just the others are hosed?

| The problem is that if the client
| sends the session ID to the server in a custom header, Tomcat needs to
| pick up that session id and use that when calling findSession. So who is
| calling findSession and is it something I can easily replace ?

Again, see my earlier post.

| Furthermore, as an additional difficulty, we only use sessions in a
| subset of our applications, so it would be preferrable if this is
| something we can enable on a per-application basis.

The solution I proposed can be enabled for all applications and it will
not interfere with normal operations.

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

iEYEARECAAYFAkfO0q0ACgkQ9CaO5/Lv0PAyPQCfWaRX7x+21dHz4pIFzjbEXS9c
hIQAn3S4yV8pnKCoTwu+wbRclFkkVZ36
=lYfQ
-END PGP SIGNATURE-

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



Re: Apologies

2008-03-05 Thread Martin Gainty
Hi Ken-

Speaking of confusion..whart is Strong Brain ?
Please reply offline

Thanks/
M
- Original Message - 
From: Ken Bowen [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 05, 2008 12:00 PM
Subject: Apologies


 Apologies for the confused reply to MK.  Mixed up my mailTime for 
 another couple of cups of coffee.  ):
 --KB
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



viewing servlets on Tomcat

2008-03-05 Thread Richard Dunne
I have Tomcat installed, but I am unable to view the servlets examples from the 
Tomcat homepage http://localhost In Web.xml, I have changed param-value for 
listing to true.  I have uncommented the invoker servlet.  Is there any other 
configs that I might be missing?

Richard.


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Tomcat tool similar to top

2008-03-05 Thread Enrique Arizón
Hi,

 I have a tomcat server with around 50 diferents small
apps running on it.

 Time to time one of those apps gets out of control,
but standard OS tools like top just show the java
process running up to 200% of CPU usage.

 I setup tomcat to allow jconsole to connect and
monitor it. Still jconsole doesn't provide the needed
info. That's, something similar to top (process
monitor on Windows, prstat on Solaris) indicating the
VM/CPU usage percentage.

 Does anyone have a similiar problem and knowns how to
fix it?

Regards!

 Enrique

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



Re: viewing servlets on Tomcat

2008-03-05 Thread Hassan Schroeder
On Wed, Mar 5, 2008 at 10:12 AM, Richard Dunne
[EMAIL PROTECTED] wrote:
 I have Tomcat installed, but I am unable to view the servlets examples

 I have changed param-value for listing to true.  I have uncommented the 
 invoker servlet.

You shouldn't do the latter at all, and neither has anything to do with
viewing the servlets examples.

Being specific about what unable to view means would help -- are
there errors in your log files?

And it should go without saying that basic info on platform/Tomcat/Java
versions would be useful...

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Windows service logging

2008-03-05 Thread Kaderabek, Kevin (TS)
Here's my problem.

We've been runing an application under Tomcat for 7 years now, but
usually on Linux.  Just now, I have need to run Tomcat as a Windows
service.  I did this by running service.bat, and everything seems to
work fine, except the logging.  The only log files I get are the stdout
and stderr.  None of the logs described in logging.properties, neither
the master one in the conf directory for catalina-log nor the files
described in logging.properties for our application, are created.  When
I don't run tomcat as a service and just start it with the startup.bat,
there's no problem.  When I run it as a service, no logging.  Seached
FAQ, Web, files, etc.  Loggings been working great for the last 2 years.
I'm at a loss.

I'm running 5.5.20. on Windows XP Pro.  I also get some library version
errors in the stdout when tomcat starts up ... SEVERE ... Incomapatible
Varsion of a Tomcat Native Library is installed.  I only get this when
starting as a service.


Kevin Kaderabek
Sr. Software Engineer
Northrop Grumman Technical Services
(405) 736-8412
[EMAIL PROTECTED]



RE: Tomcat tool similar to top

2008-03-05 Thread Caldarale, Charles R
 From: Enrique Arizón [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat tool similar to top
 
 Time to time one of those apps gets out of control,
 but standard OS tools like top just show the java
 process running up to 200% of CPU usage.

I'd be suspicious of that tool :-)

 Still jconsole doesn't provide the needed info.

If you're trying to find which webapp is looping, that's a bit tricky, since 
Tomcat uses a thread pool to service all webapps.  One thing you can try is run 
jstack several times against the Tomcat JVM, and look for one or more threads 
that stay in a single webapp.

 - Chuck


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

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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread Rainer Jung

Hi Chris,

ChrisS schrieb:
I am trying to compile mod_jk current on Solaris 10 x86 (intel). After 
spending a huge amount of time, I finally get it to compile and this is 
the output I receive.


bash-3.00#./configure --with-apxs=/usr/apache/bin/apxs
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10

...

building connector for apache-1.3
checking for gcc... /usr/sfw/bin/gcc


Yu have gcc installed, and configure finds it as the first compiler it 
is looking for. It will use gcc to detect, how the build system should 
optimise itself to your environment.



checking for C compiler default output file name... a.out
checking whether the C compiler works... yes

...

configure: WARNING: Using CC from environment:
configure: WARNING: CC=/usr/sfw/bin/gcc
configure: WARNING: instead of CC from apxs:
configure: WARNING: CC=cc
configure: WARNING: If make throws an error of the form
configure: WARNING: libtool: compile: unable to infer tagged 
configurationconfigure: WARNING: libtool: compile: specify a tag 
with `--tag'

configure: WARNING: try running configure without setting CC,
configure: WARNING: or at least CC should start with cc
bash-3.00#


The apxs installed with your httpd tells us, that you httpd has been 
compiled with a different toolchain. it wasn't produced with a gcc based 
toolchain, but instead with Sun tools. I guess, the whole httpd is the 
one coming with Solaris.


I have not been able to figure out the warnings on this as of yet and I 
have tried setting various enviroment variables to combat it, all to no 
avail.


This is the output from my gmake attempt:

bash-3.00#gmake
Making all in common

...

gmake[1]: Entering directory `/www/connectors/jk/native/apache-1.3'
/bin/sh ../libtool --mode=link /usr/sfw/bin/gcc -o mod_jk.la -module 
-rpath /usr/apache/libexec mod_jk.lo ../common/jk_ajp12_worker.lo 
../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo 
../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo 
../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo 
../common/jk_sockbuf.lo ../common/jk_map.lo 
../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo 
../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo 
../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_url.lo 
../common/jk_status.lo
/usr/sfw/bin/gcc -shared -Wl,-h -Wl,mod_jk.so.0 -o 
.libs/mod_jk.so.0.0.0  .libs/mod_jk.o ../common/.libs/jk_ajp12_worker.o 
../common/.libs/jk_connect.o ../common/.libs/jk_msg_buff.o 
../common/.libs/jk_util.o ../common/.libs/jk_ajp13.o 
../common/.libs/jk_pool.o ../common/.libs/jk_worker.o 
../common/.libs/jk_ajp13_worker.o ../common/.libs/jk_lb_worker.o 
../common/.libs/jk_sockbuf.o ../common/.libs/jk_map.o 
../common/.libs/jk_uri_worker_map.o ../common/.libs/jk_ajp14.o 
../common/.libs/jk_ajp14_worker.o ../common/.libs/jk_md5.o 
../common/.libs/jk_shm.o ../common/.libs/jk_ajp_common.o 
../common/.libs/jk_context.o ../common/.libs/jk_url.o 
../common/.libs/jk_status.o  -lc

gcc: .libs/mod_jk.o: No such file or directory
gcc: ../common/.libs/jk_ajp12_worker.o: No such file or directory
gcc: ../common/.libs/jk_connect.o: No such file or directory

...

gmake[1]: *** [mod_jk.la] Error 1
gmake[1]: Leaving directory `/www/connectors/jk/native/apache-1.3'
gmake: *** [all-recursive] Error 1
bash-3.00#



The module build system for mod_jk is based on the standard module build 
system for Apache httpd. The philosophy is: the module asks httpd how it 
got build and tries to use the same commands/flags in order to make the 
module most likely binary compatible with the web server.


The facility to enable such a build system is apxs, which comes with 
htpd, and which can be asked about the original build flags used for httpd.


Our mod_jk configure asks apxs about the right flags, but then you are 
actually using a totally different toolchain (gcc based), than the one 
used to build apache httpd (Sun Studio). That's a hard and unstable way 
to go. You could try to write a gcc wraper named cc which tries to 
tralsate all used cc flags to gcc ones, but that's more an experiment 
than building production software.


So you should either: get the same toolchain, that was used to build 
your Apache httpd and use that toolchain to build your module. In your 
case: install Sun studio and take care, that configure does find 
/usr/ccs/bin/cc and nor /usr/sfw/bin/gcc. It could well be, that it's 
not enough to put /usr/ccs/bin in front f /zsr/sfw/bin in the PATH, but 
that you would furthermore need to temporarily remove/rename gcc, s.t. 
configure doesn't find it. Removing the whole /usr/sfw/bin from the PATH 
might be to string, because e.g. you'll need gmake form that path.


Or: you switch over to the gcc (/usr/sfw/) toolchain completely, which 
would mean starting with building Apache httpd with this toolchain (or 
find some reliable build 

Re: viewing servlets on Tomcat

2008-03-05 Thread Richard Dunne
Of course,  Tomcat 6, jre1.6.0_04, jdk1.6.0_04 installed on XP


- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 5, 2008 7:06:16 PM
Subject: Re: viewing servlets on Tomcat

On Wed, Mar 5, 2008 at 10:12 AM, Richard Dunne
[EMAIL PROTECTED] wrote:
 I have Tomcat installed, but I am unable to view the servlets examples

 I have changed param-value for listing to true.  I have uncommented the 
 invoker servlet.

You shouldn't do the latter at all, and neither has anything to do with
viewing the servlets examples.

Being specific about what unable to view means would help -- are
there errors in your log files?

And it should go without saying that basic info on platform/Tomcat/Java
versions would be useful...

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: viewing servlets on Tomcat

2008-03-05 Thread Hassan Schroeder
On Wed, Mar 5, 2008 at 11:42 AM, Richard Dunne
[EMAIL PROTECTED] wrote:
 Of course,  Tomcat 6, jre1.6.0_04, jdk1.6.0_04 installed on XP

logs? actual error?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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



Tomcat under OpenVMS

2008-03-05 Thread Alex Chelminsky

Does anyone know about recommended configurations for file I/O in Open VMS?
I'm having serious performance issues when parsing a file which takes
1/10th the time under Linux.



Thank you,
Alex

Alex Chelminsky
[EMAIL PROTECTED]
781-290-1620 (office)
617-650-5453 (cell)
781-890-1208 (fax)

CSC Consulting, Inc.
Registered Office: 29 Sawyer Road, Waltham Massachusetts 02453, USA
Registered  in USA No: 042593545




This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.




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



Re: viewing servlets on Tomcat

2008-03-05 Thread Richard Dunne
sorry, having a bad day! head all over the place.  I have checked the logs at
c:\Program Files\Apache Software Foundation\Tomcat 6.0\logs and there is 
nothing logged for this. 

HTTP Status 404 - /examples/servlets/



type Status report
message /examples/servlets/
description The requested resource (/examples/servlets/) is not available.



Apache Tomcat/6.0.16



- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 5, 2008 7:44:10 PM
Subject: Re: viewing servlets on Tomcat

On Wed, Mar 5, 2008 at 11:42 AM, Richard Dunne
[EMAIL PROTECTED] wrote:
 Of course,  Tomcat 6, jre1.6.0_04, jdk1.6.0_04 installed on XP

logs? actual error?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


handle with a single .war all the request to N subdomains

2008-03-05 Thread GF
Hello,
I have a web application that runs on:

www.myhost.com/myapp/

I would like that the deploy a single .war can handle all the requests such as:

sub1.myhost.com/myapp/
sub2.myhost.com/myapp/
sub3.myhost.com/myapp/

And of course i want to receive the parameter on which subdomains the
request has been executed.
Is it possible? Have you any good link about this?

This can be done at Tomcat level.. or should I handle it with
mod_rewrite in Apache and then passing the request to a single path of
 Tomcat using mod_jk?

Thank you!

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



RE: weird log output

2008-03-05 Thread Lessie Z. Mitch
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2008 10:50 PM
To: Tomcat Users List
Subject: Re: weird log output

En l'instant précis du 05/03/08 06:10, Lessie Z. Mitch s'exprimait en 
ces termes:
  

 Running TC5.5.23 as lone web server on RHE4 box
   
Official tomcat, or redhat provided tomcat. In second case, get rid of 
it and download a clean official tomcat, mailing list won't offer much 
help on refurbished tomcats some distros are using.

Official TC (already suffered the RH distro!) I already know the woes there.


  

 My apps are starting fine, logs are nice and clean, and then… this weird
 string appears within a few seconds:

 Mar 4, 2008 10:58:23 PM org.apache.coyote.http11.Http11BaseProtocol start
 INFO: Starting Coyote HTTP/1.1 on http-80
 Mar 4, 2008 10:58:23 PM org.apache.catalina.storeconfig.StoreLoader load
 INFO: Find registry server-registry.xml at classpath resource
 Mar 4, 2008 10:58:23 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 52007 ms
 ---2823


   
nice, since you are on tomcat, did you try a

grep -R -e '--'  *

No. the string is appearing in the catalina.out file. The only other logging I 
have is the log4j that is configured in my webapp. I will go check that again.



if it's not in a jar, you might locate the cullprit ;)
Could it be you configured a logger to put regular timstamps in logs?
 http://www.devlog.be (a belgian developer's logs)

I cannot read that Belgian dev's site.. is that French? I took Spanish heh

~LZM~

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008 9:50 
AM
 


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



Re: handle with a single .war all the request to N subdomains

2008-03-05 Thread Gregory Gerard
Look at the Host header to see how the browser addressed your  
webserver and then you can specialize your output.


theHostString = theHttpServletRequest.getHeader(Host);

if (theHostString != null  theHostString.trim().length  ) {
if (theHostString.startsWith(sub1.)) {
doSub1Content(...);
} else if (...) {
} else {
// unknown subdomain
sendDefaultContent(...);
}
} else {
// someone possible spoofing the host header or HTTP 1.0 which I  
don't believe had the host header

sendDefaultContent(...);
}

greg

On Mar 5, 2008, at 12:52 PM, GF wrote:


Hello,
I have a web application that runs on:

www.myhost.com/myapp/

I would like that the deploy a single .war can handle all the  
requests such as:


sub1.myhost.com/myapp/
sub2.myhost.com/myapp/
sub3.myhost.com/myapp/

And of course i want to receive the parameter on which subdomains the
request has been executed.
Is it possible? Have you any good link about this?

This can be done at Tomcat level.. or should I handle it with
mod_rewrite in Apache and then passing the request to a single path of
 Tomcat using mod_jk?

Thank you!

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





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



Re: handle with a single .war all the request to N subdomains

2008-03-05 Thread GF
Thank you! for you quick reply!
My problem is a little different, in few words, i'm still at the
previous step, i'm trying to find a way to that all the requests to:

*.myhost.com/myapp/

can be handled by a single war.
So first of all i'm looking if Tomcat handle in someway the wildcard
for sudomains..
I have found something here:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg23452.html

But i've still to search :-)

On Wed, Mar 5, 2008 at 9:59 PM, Gregory Gerard [EMAIL PROTECTED] wrote:
 Look at the Host header to see how the browser addressed your
  webserver and then you can specialize your output.

  theHostString = theHttpServletRequest.getHeader(Host);

  if (theHostString != null  theHostString.trim().length  ) {
  if (theHostString.startsWith(sub1.)) {
  doSub1Content(...);
  } else if (...) {
  } else {
  // unknown subdomain
  sendDefaultContent(...);
  }
  } else {
  // someone possible spoofing the host header or HTTP 1.0 which I
  don't believe had the host header
  sendDefaultContent(...);
  }

  greg




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



RE: handle with a single .war all the request to N subdomains

2008-03-05 Thread Caldarale, Charles R
 From: GF [mailto:[EMAIL PROTECTED] 
 Subject: Re: handle with a single .war all the request to N subdomains
 
 i'm trying to find a way to that all the requests to:
 *.myhost.com/myapp/
 can be handled by a single war.

Unless you've fiddled with the Host config in server.xml, they by
default they will all be handled by one webapp for the one Host.  If
you have added more Host elements, why did you?

 - Chuck


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

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



Re: viewing servlets on Tomcat

2008-03-05 Thread Richard Dunne
One explanation might be this.  I had a look at my localhost directory
c:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT and there 
is no examples folder.  If the resource does not not exist one might expect a 
HTTP error.  should I try a re-install?

- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 5, 2008 7:06:16 PM
Subject: Re: viewing servlets on Tomcat

On Wed, Mar 5, 2008 at 10:12 AM, Richard Dunne
[EMAIL PROTECTED] wrote:
 I have Tomcat installed, but I am unable to view the servlets examples

 I have changed param-value for listing to true.  I have uncommented the 
 invoker servlet.

You shouldn't do the latter at all, and neither has anything to do with
viewing the servlets examples.

Being specific about what unable to view means would help -- are
there errors in your log files?

And it should go without saying that basic info on platform/Tomcat/Java
versions would be useful...

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


RE: Windows service logging

2008-03-05 Thread Kaderabek, Kevin (TS)
I tried that.  Didn't help.  The service is writing to stdout log file. 

Anyway, I upgraded to Tomcat 6 and installed using the windows
installer, and everything works.  It does seem like a permission problem
though.

Thanks
-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 4:02 PM
To: Tomcat Users List
Subject: Re: Windows service logging

Kaderabek, Kevin (TS) wrote:
 Here's my problem.
 
 We've been runing an application under Tomcat for 7 years now, but 
 usually on Linux.  Just now, I have need to run Tomcat as a Windows 
 service.  I did this by running service.bat, and everything seems to 
 work fine, except the logging.  The only log files I get are the 
 stdout and stderr.  None of the logs described in logging.properties, 
 neither the master one in the conf directory for catalina-log nor the 
 files described in logging.properties for our application, are 
 created.  When I don't run tomcat as a service and just start it with 
 the startup.bat, there's no problem.  When I run it as a service, no 
 logging.  Seached FAQ, Web, files, etc.  Loggings been working great
for the last 2 years.
 I'm at a loss.
 

LOCAL_SERVICE account (one used for running services) probably doesn't
have access to your logs folder.
Try adding full access right to service account for that folder.

Regards
--
(TM)

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


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



Re: Windows service logging

2008-03-05 Thread Mladen Turk

Kaderabek, Kevin (TS) wrote:

Here's my problem.

We've been runing an application under Tomcat for 7 years now, but
usually on Linux.  Just now, I have need to run Tomcat as a Windows
service.  I did this by running service.bat, and everything seems to
work fine, except the logging.  The only log files I get are the stdout
and stderr.  None of the logs described in logging.properties, neither
the master one in the conf directory for catalina-log nor the files
described in logging.properties for our application, are created.  When
I don't run tomcat as a service and just start it with the startup.bat,
there's no problem.  When I run it as a service, no logging.  Seached
FAQ, Web, files, etc.  Loggings been working great for the last 2 years.
I'm at a loss.



LOCAL_SERVICE account (one used for running services)
probably doesn't have access to your logs folder.
Try adding full access right to service account for
that folder.

Regards
--
(TM)

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



trouble starting 64-bit Tomcat as a service (with 64 bit wrappers, jvm windows os)

2008-03-05 Thread Srinivasan Rangaswamy
Dear Tomcat Users List

I followed the instructions from Richard Mundell on Mini HOW-TO:
Tomcat as a service on Windows Server 2003 64-bit edition (possibly
viewable here: http://marc.info/?l=tomcat-userm=114951978732081w=2),
but have run into problems.

When I try to start the service from the service panel, Windows
quickly responds with a Service Alert box saying the following:

  Could not start the Apache Tomcat service on Local Computer.  Error
1053:  The service did not respond to the start or control request in
a timely fashion.

I've dug around, but have not been able to figure out why this is happening.

Here are the steps I did to try to get set up:

* I'm running a Windows Server 2003 R2 64-bit AMD machine with 8 G of ram
* I've configured my machine to run a 64-bit JVM
* I've installed the 64 bit version of Tomcat6.exe and Tomcat6w.exe
* I install the Tomcat6 service (and see no errors).  According to the
instructions, it's necessary to swizzle the registry, so I do the
following
  ** I export the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation
  ** I remove all the WOW6432Node/ strings
  ** I import the new key, and it looks good, the key has been moved
to HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation
* I try to start the service, and get the 1053 error described at top
of this email.


Anyone have any ideas?

THANKS!

PS:  Have you heard any rumors about when better 64-bit service
support might be released?

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



Sometimes have to completely remove app from webapps for it to update

2008-03-05 Thread Karr, David
Tomcat 6.0.14, JDK 1.5.0_06, WinXPSP2.

I sometimes run Tomcat from startup.bat, and I sometimes run it from
Eclipse.  Several times I've seen a situation where I will change my app
and restart the server, and my test indicates that my change didn't get
deployed.  This isn't an HTML caching issue, as the pieces I change are
all on the server side (like my struts.xml file).  I find that I end
up having to remove the war and exploded dir from the webapps dir, and
then copy my war back in, and then restart Tomcat.  At that point, it
sees the changed functionality.  I've seen similar behavior while
running Tomcat in Eclipse, but I didn't try doing the manual removal of
the app from the webapps dir.  I've tried cleaning the project,
restarting the server, removing and readding the project from the
server, all to no avail.

The particular persistent behavior I was seeing was that I had a
Struts2 action that referenced an Action class, and then I tried
removing the class attribute and redeploying.  After redeploying, it
was still calling the method in the Action class, even though it wasn't
referenced anymore.

I ended up just creating another action element with a slightly
different name and then using that.  That behaved as I expected.

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



RE: viewing servlets on Tomcat

2008-03-05 Thread Caldarale, Charles R
 From: Richard Dunne [mailto:[EMAIL PROTECTED] 
 Subject: Re: viewing servlets on Tomcat
 
 I had a look at my localhost directory
 c:\Program Files\Apache Software Foundation\Tomcat 
 6.0\webapps\ROOT and there is no examples folder.

Nor should there be.  The webapps/ROOT directory contains the default
webapp; examples is under webapps/examples.

 - Chuck


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

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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread ChrisS

Rainer Jung wrote:

Hi Chris,

ChrisS schrieb:
I am trying to compile mod_jk current on Solaris 10 x86 (intel). 
After spending a huge amount of time, I finally get it to compile and 
this is the output I receive.


bash-3.00#./configure --with-apxs=/usr/apache/bin/apxs
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10

...

building connector for apache-1.3
checking for gcc... /usr/sfw/bin/gcc


Yu have gcc installed, and configure finds it as the first compiler it 
is looking for. It will use gcc to detect, how the build system should 
optimise itself to your environment.



checking for C compiler default output file name... a.out
checking whether the C compiler works... yes

...

configure: WARNING: Using CC from environment:
configure: WARNING: CC=/usr/sfw/bin/gcc
configure: WARNING: instead of CC from apxs:
configure: WARNING: CC=cc
configure: WARNING: If make throws an error of the form
configure: WARNING: libtool: compile: unable to infer tagged 
configurationconfigure: WARNING: libtool: compile: specify a 
tag with `--tag'

configure: WARNING: try running configure without setting CC,
configure: WARNING: or at least CC should start with cc
bash-3.00#


The apxs installed with your httpd tells us, that you httpd has been 
compiled with a different toolchain. it wasn't produced with a gcc 
based toolchain, but instead with Sun tools. I guess, the whole httpd 
is the one coming with Solaris.


I have not been able to figure out the warnings on this as of yet and 
I have tried setting various enviroment variables to combat it, all 
to no avail.


This is the output from my gmake attempt:

bash-3.00#gmake
Making all in common

...

gmake[1]: Entering directory `/www/connectors/jk/native/apache-1.3'
/bin/sh ../libtool --mode=link /usr/sfw/bin/gcc -o mod_jk.la -module 
-rpath /usr/apache/libexec mod_jk.lo ../common/jk_ajp12_worker.lo 
../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo 
../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo 
../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo 
../common/jk_sockbuf.lo ../common/jk_map.lo 
../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo 
../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo 
../common/jk_ajp_common.lo ../common/jk_context.lo 
../common/jk_url.lo ../common/jk_status.lo
/usr/sfw/bin/gcc -shared -Wl,-h -Wl,mod_jk.so.0 -o 
.libs/mod_jk.so.0.0.0  .libs/mod_jk.o 
../common/.libs/jk_ajp12_worker.o ../common/.libs/jk_connect.o 
../common/.libs/jk_msg_buff.o ../common/.libs/jk_util.o 
../common/.libs/jk_ajp13.o ../common/.libs/jk_pool.o 
../common/.libs/jk_worker.o ../common/.libs/jk_ajp13_worker.o 
../common/.libs/jk_lb_worker.o ../common/.libs/jk_sockbuf.o 
../common/.libs/jk_map.o ../common/.libs/jk_uri_worker_map.o 
../common/.libs/jk_ajp14.o ../common/.libs/jk_ajp14_worker.o 
../common/.libs/jk_md5.o ../common/.libs/jk_shm.o 
../common/.libs/jk_ajp_common.o ../common/.libs/jk_context.o 
../common/.libs/jk_url.o ../common/.libs/jk_status.o  -lc

gcc: .libs/mod_jk.o: No such file or directory
gcc: ../common/.libs/jk_ajp12_worker.o: No such file or directory
gcc: ../common/.libs/jk_connect.o: No such file or directory

...

gmake[1]: *** [mod_jk.la] Error 1
gmake[1]: Leaving directory `/www/connectors/jk/native/apache-1.3'
gmake: *** [all-recursive] Error 1
bash-3.00#



The module build system for mod_jk is based on the standard module 
build system for Apache httpd. The philosophy is: the module asks 
httpd how it got build and tries to use the same commands/flags in 
order to make the module most likely binary compatible with the web 
server.


The facility to enable such a build system is apxs, which comes with 
htpd, and which can be asked about the original build flags used for 
httpd.


Our mod_jk configure asks apxs about the right flags, but then you are 
actually using a totally different toolchain (gcc based), than the one 
used to build apache httpd (Sun Studio). That's a hard and unstable 
way to go. You could try to write a gcc wraper named cc which tries to 
tralsate all used cc flags to gcc ones, but that's more an experiment 
than building production software.


So you should either: get the same toolchain, that was used to build 
your Apache httpd and use that toolchain to build your module. In your 
case: install Sun studio and take care, that configure does find 
/usr/ccs/bin/cc and nor /usr/sfw/bin/gcc. It could well be, that it's 
not enough to put /usr/ccs/bin in front f /zsr/sfw/bin in the PATH, 
but that you would furthermore need to temporarily remove/rename gcc, 
s.t. configure doesn't find it. Removing the whole /usr/sfw/bin from 
the PATH might be to string, because e.g. you'll need gmake form that 
path.


Or: you switch over to the gcc (/usr/sfw/) toolchain completely, which 
would mean starting with building Apache httpd with this toolchain (or 

Defining JDBC Data source

2008-03-05 Thread Sureka, Sushil
We are trying to port an application from Weblogic to Tomcat. Our JDBC
entry looks like this

bean id=the_dataSource
class=org.springframework.jndi.JndiObjectFactoryBean
property name=jndiName value=myJDBC /
/bean

The weblogic works fine with setup. The jdbc datasource is setup through
weblogic console.

On Tomcat, we noticed that we would have to modify the above entry like
this

bean id=the_dataSource
class=org.springframework.jndi.JndiObjectFactoryBean
property name=jndiName value=java:/comp/env/myJDBC
/
/bean 

But the above setup won't work for Weblogic. Any way we can reconcile
the difference. The Tomcat context.xml file contains an entry llike

Context

Resource name=myJDBC auth=container ./

/context

Sushil



Re: viewing servlets on Tomcat

2008-03-05 Thread Richard Dunne
Hi Chuck,

If it should be, it's not.  webapps contains docs, host-manager, manager and 
ROOT.  theres no examples folder which worries me if it should be there.  any 
suggestions?

Richard.





- Original Message 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 5, 2008 11:08:03 PM
Subject: RE: viewing servlets on Tomcat

 From: Richard Dunne [mailto:[EMAIL PROTECTED] 
 Subject: Re: viewing servlets on Tomcat
 
 I had a look at my localhost directory
 c:\Program Files\Apache Software Foundation\Tomcat 
 6.0\webapps\ROOT and there is no examples folder.

Nor should there be.  The webapps/ROOT directory contains the default
webapp; examples is under webapps/examples.

- Chuck


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

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


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread Rainer Jung

Hi Chris,

ChrisS schrieb:
I installed Sun Studio 11 and included it first in the $PATH env 
variable. This cleaned up the nasty warnings about CC. Then I built it 
with: gmake and then gmake clean this was also successful. Libtool was 
then used to pass the mod_jk.so file to its location in this case: 
/www/apache/libexec


I do however have one problem and it is a biggy. LoadModule along with 
LoadFile(testing) will not load the module into my 1.3.39 dist. The 
error message thrown is this:


../bin/apachectl start
Syntax error on line 237 of /www/apache/conf/httpd.conf:
Cannot load /www/connectors/jk/native/apache-1.3/mod_jk.so into 
server:ld.so.1: libhttpd.ep: fatal: relocation error: file 
/www/connectors/jk/native/apache-1.3/mod_jk.so: symbol ap_ctx_get: 
referenced symbol not found

../bin/apachectl start: httpd could not be started


The symbol ap_ctx_get, which is missing here is not included in a 
standard httpd 1.3. It comes with the extended API (EAPI) bundled with 
mod_ssl. mod_ssl for Apache httpd 1.3 mainly consists of the ssl module 
and a set of aditional patches for httpd 1.3, which extend the module 
API, s.t. the more complex ssl functionality fits into the httpd module 
API. In the following I'll not make a distinction between EAPI and mod_ssl.


Maybe the mod_jk.so you are trying to load here is the one on our 
project download page? Because that one explicitely states in the 
README, that it has been build against an EAPI enabled httpd. Or you 
build your mod_jk against an ssl enabled httpd and afterwards try to ue 
it inside one, which is a plain one.


Although mod_jk soesn't really have a dependency on ssl, there is one 
symbol, ap_default_port, that the patches for mod_ssl redefine (you can 
imagine, that the default port with ssl depends on the fact, if one uses 
ssl (443) or not (80)) and thus when mod_jk gets build against an ssl 
enabled httpd, the resulting mod_jk.so has a single additional 
dependency, namely ap_ctx_get().


Before trying to fix this reconsider your choice of httpd first. Version 
1.3 is now very outdated. The httpd project already officially 
announced, that they put a very high bar on patches they are going to 
apply to 1.3. Mainly they'll only fix critical security issues.


If I would start with something new today, I would really choose httpd 
2.2.x. This will provide you a much more future proof environment. It 
comed with builtin ssl support, ldap support, a much better reverse 
proxy, less 64 Bit problems (likely even no 64 Bit problems) and much more.



Please could you help me, I have tried compiling the Apache Dist with:

./configure --prefix=/www/apache
 --enable-module=most
 --enable-shared=max
 --enable-rule=SHARED_CORE
$ make
$ make install


Don't know about enable-rule, but it doesn't look wrong.

Believing that this would resolve my symbol issue. Symbols are in the 
table this was shown with: nm /www/apache/bin/httpd but none for

ap_ctx_get


Yes, because it's a non mod_ssl httpd 1.3.
But: nm on mod_jk.so should also show, that mod_jk does *not* want that 
symbol.




Kindest Regards

ps Thanks for all the help so far guys!!


Regards,

Rainer


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



Best Practices for JNDI DataSources/Authentication

2008-03-05 Thread pbdavey

I've been looking through a lot of tutorials regarding using JNDI for
datasources and ldap authentication and was wondering if someone could
explain things.

Most of what I've come across has authentication completely seperate from
the datasource, or, in the case of JDBCRealms, the user/credentials are
simply stored in the database. However, almost never do people use database
users, even though you can configure connection pools to not have
username/passwords and pass them through the getConnection() method. In the
few cases I've found with database users, they never mention how that
integrates with realms. Are there best practices, technological, or
someother reasons for this? Or am I just doing something very weird?

If someone could point me in the right direction, I'd very much appreciate
it!
-- 
View this message in context: 
http://www.nabble.com/Best-Practices-for-JNDI-DataSources-Authentication-tp15863919p15863919.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread ChrisS

Rainer Jung wrote:

Hi Chris,

ChrisS schrieb:
I installed Sun Studio 11 and included it first in the $PATH env 
variable. This cleaned up the nasty warnings about CC. Then I built 
it with: gmake and then gmake clean this was also successful. Libtool 
was then used to pass the mod_jk.so file to its location in this 
case: /www/apache/libexec


I do however have one problem and it is a biggy. LoadModule along 
with LoadFile(testing) will not load the module into my 1.3.39 dist. 
The error message thrown is this:


../bin/apachectl start
Syntax error on line 237 of /www/apache/conf/httpd.conf:
Cannot load /www/connectors/jk/native/apache-1.3/mod_jk.so into 
server:ld.so.1: libhttpd.ep: fatal: relocation error: file 
/www/connectors/jk/native/apache-1.3/mod_jk.so: symbol ap_ctx_get: 
referenced symbol not found

../bin/apachectl start: httpd could not be started


The symbol ap_ctx_get, which is missing here is not included in a 
standard httpd 1.3. It comes with the extended API (EAPI) bundled with 
mod_ssl. mod_ssl for Apache httpd 1.3 mainly consists of the ssl 
module and a set of aditional patches for httpd 1.3, which extend the 
module API, s.t. the more complex ssl functionality fits into the 
httpd module API. In the following I'll not make a distinction between 
EAPI and mod_ssl.


Maybe the mod_jk.so you are trying to load here is the one on our 
project download page? Because that one explicitely states in the 
README, that it has been build against an EAPI enabled httpd. Or you 
build your mod_jk against an ssl enabled httpd and afterwards try to 
ue it inside one, which is a plain one.


Although mod_jk soesn't really have a dependency on ssl, there is one 
symbol, ap_default_port, that the patches for mod_ssl redefine (you 
can imagine, that the default port with ssl depends on the fact, if 
one uses ssl (443) or not (80)) and thus when mod_jk gets build 
against an ssl enabled httpd, the resulting mod_jk.so has a single 
additional dependency, namely ap_ctx_get().


Before trying to fix this reconsider your choice of httpd first. 
Version 1.3 is now very outdated. The httpd project already officially 
announced, that they put a very high bar on patches they are going to 
apply to 1.3. Mainly they'll only fix critical security issues.


If I would start with something new today, I would really choose httpd 
2.2.x. This will provide you a much more future proof environment. It 
comed with builtin ssl support, ldap support, a much better reverse 
proxy, less 64 Bit problems (likely even no 64 Bit problems) and much 
more.



Please could you help me, I have tried compiling the Apache Dist with:

./configure --prefix=/www/apache
 --enable-module=most
 --enable-shared=max
 --enable-rule=SHARED_CORE
$ make
$ make install


Don't know about enable-rule, but it doesn't look wrong.

Believing that this would resolve my symbol issue. Symbols are in the 
table this was shown with: nm /www/apache/bin/httpd but none for

ap_ctx_get


Yes, because it's a non mod_ssl httpd 1.3.
But: nm on mod_jk.so should also show, that mod_jk does *not* want 
that symbol.




Kindest Regards

ps Thanks for all the help so far guys!!


Regards,

Rainer


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


Ok Rainer that solves that one, I do have a built in Apache Solaris 10 
dist this is:


bash-3.00# /usr/apache2/bin/httpd -l
Compiled in modules:
 core.c
 prefork.c
 http_core.c
 mod_so.c
bash-3.00# /usr/apache2/bin/httpd -v
Server version: Apache/2.0.63
Server built:   Feb  5 2008 11:13:45
bash-3.00#

Please recommend! almost forgot thanks helluvalot.

Would this config suffice mate!!!

ps I really wanted to get this sorted for a mate in work, we have a 
clustered setup not clustering between Tomcat nodes on a 1.3.39 setup, 
there are also session sharing issues with deployed apps, the idea was 
to lab the problem and try to find a resolve.


I would need to check the SSL status exactly but this is running/serving 
SSL requests on a Sparc SunBlaze server. Would the binary dist of mod_jk 
(current) work with this environment ? this being a great deal saner 
than this one I am using


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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread Rainer Jung
Unfortunately I have some difficulties to understand, what you want to 
tell me:


Ok Rainer that solves that one, I do have a built in Apache Solaris 10 


What solves what?


dist this is:

bash-3.00# /usr/apache2/bin/httpd -l
Compiled in modules:
 core.c
 prefork.c
 http_core.c
 mod_so.c
bash-3.00# /usr/apache2/bin/httpd -v
Server version: Apache/2.0.63
Server built:   Feb  5 2008 11:13:45
bash-3.00#

Please recommend! almost forgot thanks helluvalot.


Not sure, what you mean by recommend? I was suggesting 2.2.x, you have a 
2.0.x. That's not exactly the same :) Quite possible, that it's more 
important for you to use a Solaris bundled httpd instead of a self build 
one. If that is a wise decision depends on the importance Apache httpd 
has for you. If it is really important, I would not necessarily rely on 
the OS delivering company to provide needed updates in time.



Would this config suffice mate!!!


I don't get this, it's a question with exclamation marks, hm

ps I really wanted to get this sorted for a mate in work, we have a 
clustered setup not clustering between Tomcat nodes on a 1.3.39 setup, 
there are also session sharing issues with deployed apps, the idea was 
to lab the problem and try to find a resolve.


Aha, so then it makes sense to use the same versions, you also have in 
production.


I would need to check the SSL status exactly but this is running/serving 
SSL requests on a Sparc SunBlaze server. Would the binary dist of mod_jk 
(current) work with this environment ? this being a great deal saner 
than this one I am using


Which binary dist? The one from the ASF download page? Yes, that one 
will need an EAPI httpd, i.e. one build with ssl support.


Will this be saner? Not sure. Our binary dist is build with gcc and the 
httpd we are talking about might be build with Sun Studio (not sure, if 
we are talking about yet another httpd).


Regards,

Rainer

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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread ChrisS

Rainer Jung wrote:
Unfortunately I have some difficulties to understand, what you want to 
tell me:


Ok Rainer that solves that one, I do have a built in Apache Solaris 10 


What solves what?


dist this is:

bash-3.00# /usr/apache2/bin/httpd -l
Compiled in modules:
 core.c
 prefork.c
 http_core.c
 mod_so.c
bash-3.00# /usr/apache2/bin/httpd -v
Server version: Apache/2.0.63
Server built:   Feb  5 2008 11:13:45
bash-3.00#

Please recommend! almost forgot thanks helluvalot.


Not sure, what you mean by recommend? I was suggesting 2.2.x, you have 
a 2.0.x. That's not exactly the same :) Quite possible, that it's more 
important for you to use a Solaris bundled httpd instead of a self 
build one. If that is a wise decision depends on the importance Apache 
httpd has for you. If it is really important, I would not necessarily 
rely on the OS delivering company to provide needed updates in time.



Would this config suffice mate!!!


I don't get this, it's a question with exclamation marks, hm

ps I really wanted to get this sorted for a mate in work, we have a 
clustered setup not clustering between Tomcat nodes on a 1.3.39 
setup, there are also session sharing issues with deployed apps, the 
idea was to lab the problem and try to find a resolve.


Aha, so then it makes sense to use the same versions, you also have in 
production.


I would need to check the SSL status exactly but this is 
running/serving SSL requests on a Sparc SunBlaze server. Would the 
binary dist of mod_jk (current) work with this environment ? this 
being a great deal saner than this one I am using


Which binary dist? The one from the ASF download page? Yes, that one 
will need an EAPI httpd, i.e. one build with ssl support.


Will this be saner? Not sure. Our binary dist is build with gcc and 
the httpd we are talking about might be build with Sun Studio (not 
sure, if we are talking about yet another httpd).


Regards,

Rainer

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


The binary distribution referred to is mod_jk, I remember seeing one in 
the mirrors for a Sparc installation only! isn't there one for x86 or is 
that something going on between the Org and Sun Microsystems? Some typos 
in my response apologies only human still!


Would or could you recommend that the version I have: apache 2.0.63 be 
able to work with the jk_mod current connector module? I provide the 
output of 2.0.63 so that you may be able to see whether or not, 
compiling the mod_jk source against it would work. Or do I have to do 
something else like for example download another huge package to compile 
it with.


This is an Org and I recognise that so I keep in the frame of mind that 
if someone helps me then the favor is returned further down the line (I 
call this ethics and nice manners)


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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread ChrisS

ChrisS wrote:

Rainer Jung wrote:
Unfortunately I have some difficulties to understand, what you want 
to tell me:


Ok Rainer that solves that one, I do have a built in Apache Solaris 10 


What solves what?


dist this is:

bash-3.00# /usr/apache2/bin/httpd -l
Compiled in modules:
 core.c
 prefork.c
 http_core.c
 mod_so.c
bash-3.00# /usr/apache2/bin/httpd -v
Server version: Apache/2.0.63
Server built:   Feb  5 2008 11:13:45
bash-3.00#

Please recommend! almost forgot thanks helluvalot.


Not sure, what you mean by recommend? I was suggesting 2.2.x, you 
have a 2.0.x. That's not exactly the same :) Quite possible, that 
it's more important for you to use a Solaris bundled httpd instead of 
a self build one. If that is a wise decision depends on the 
importance Apache httpd has for you. If it is really important, I 
would not necessarily rely on the OS delivering company to provide 
needed updates in time.



Would this config suffice mate!!!


I don't get this, it's a question with exclamation marks, hm

ps I really wanted to get this sorted for a mate in work, we have a 
clustered setup not clustering between Tomcat nodes on a 1.3.39 
setup, there are also session sharing issues with deployed apps, the 
idea was to lab the problem and try to find a resolve.


Aha, so then it makes sense to use the same versions, you also have 
in production.


I would need to check the SSL status exactly but this is 
running/serving SSL requests on a Sparc SunBlaze server. Would the 
binary dist of mod_jk (current) work with this environment ? this 
being a great deal saner than this one I am using


Which binary dist? The one from the ASF download page? Yes, that one 
will need an EAPI httpd, i.e. one build with ssl support.


Will this be saner? Not sure. Our binary dist is build with gcc and 
the httpd we are talking about might be build with Sun Studio (not 
sure, if we are talking about yet another httpd).


Regards,

Rainer

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


The binary distribution referred to is mod_jk, I remember seeing one 
in the mirrors for a Sparc installation only! isn't there one for x86 
or is that something going on between the Org and Sun Microsystems? 
Some typos in my response apologies only human still!


Would or could you recommend that the version I have: apache 2.0.63 be 
able to work with the jk_mod current connector module? I provide the 
output of 2.0.63 so that you may be able to see whether or not, 
compiling the mod_jk source against it would work. Or do I have to do 
something else like for example download another huge package to 
compile it with.


This is an Org and I recognise that so I keep in the frame of mind 
that if someone helps me then the favor is returned further down the 
line (I call this ethics and nice manners)


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



Apache 2.0.63 Solaris 10 x86 works!

Steps taken:

0. Got loads of help from the guys at users@tomcat.apache.org (thanks guys!)
1. Download Sun Studio 11for x86 and install as su - root.  (Refer to 
www.sun.com for this)
2. Include /opt/SUNWspro/bin in the PATH environment variable 
(PATH=/opt/SUNWspro:$PATH)
3. Download Tomcat from http://tomcat.apache.org/ i am using 5.5.20.0 as 
of this writing.

Install Tomcat (see http://tomcat.apache.org for this)
4. svn checkout tomcatconnectors JK 1.2.26 refer to (google, 
http://tomcat.apache.org, etc ... for this) Subversion(svn) can be 
downloaded from http://www.sunfreeware.com. Apparently this release of 
mod_jk fixes some session sharing issues amongst other important issues 
between TomcatNodes(well thats how I read it anyway). Apache ant is 
required to build this so download that also(and follow instructions for 
using it). In order to use buildconf.sh you will require. autoconf, 
automake, autoheader, aclocal, libtoolize these can all be found at 
www.sunfreeware.com perl is also required. Make sure the fresh installs 
are referenced from the PATH variable. On my system these live in 
/usr/local/bin. Also make sure that /usr/sfw/bin isn't referenced in the 
PATH along with CC= not being set, don't forget to export ;).
5. When everything is set run buildconf.sh check the top_builddir 
variable in common and apache-2.0 subdirectories this should be: 
top_builddir = .. (note the spaces I think under common this was: 
top_builddir=.. this threw an error and took a while to track down)
6. Once step was completed I ran configure against apxs in the desired 
apache directory e.g. ./configure --with-apxs=/usr/apache2/bin/apxs  
This worked! I did try this against apache-1.3.39 dist but to no avail 
apparently symbol 

Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread quikpak

dont send me tomcat hereafter!!
- Original Message - 
From: Rainer Jung [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 06, 2008 5:56 AM
Subject: Re: mod_jk gmake recursion error on solaris 10 x86



Hi Chris,

ChrisS schrieb:
I installed Sun Studio 11 and included it first in the $PATH env 
variable. This cleaned up the nasty warnings about CC. Then I built it 
with: gmake and then gmake clean this was also successful. Libtool was 
then used to pass the mod_jk.so file to its location in this case: 
/www/apache/libexec


I do however have one problem and it is a biggy. LoadModule along with 
LoadFile(testing) will not load the module into my 1.3.39 dist. The error 
message thrown is this:


../bin/apachectl start
Syntax error on line 237 of /www/apache/conf/httpd.conf:
Cannot load /www/connectors/jk/native/apache-1.3/mod_jk.so into 
server:ld.so.1: libhttpd.ep: fatal: relocation error: file 
/www/connectors/jk/native/apache-1.3/mod_jk.so: symbol ap_ctx_get: 
referenced symbol not found

../bin/apachectl start: httpd could not be started


The symbol ap_ctx_get, which is missing here is not included in a standard 
httpd 1.3. It comes with the extended API (EAPI) bundled with mod_ssl. 
mod_ssl for Apache httpd 1.3 mainly consists of the ssl module and a set 
of aditional patches for httpd 1.3, which extend the module API, s.t. the 
more complex ssl functionality fits into the httpd module API. In the 
following I'll not make a distinction between EAPI and mod_ssl.


Maybe the mod_jk.so you are trying to load here is the one on our project 
download page? Because that one explicitely states in the README, that it 
has been build against an EAPI enabled httpd. Or you build your mod_jk 
against an ssl enabled httpd and afterwards try to ue it inside one, which 
is a plain one.


Although mod_jk soesn't really have a dependency on ssl, there is one 
symbol, ap_default_port, that the patches for mod_ssl redefine (you can 
imagine, that the default port with ssl depends on the fact, if one uses 
ssl (443) or not (80)) and thus when mod_jk gets build against an ssl 
enabled httpd, the resulting mod_jk.so has a single additional dependency, 
namely ap_ctx_get().


Before trying to fix this reconsider your choice of httpd first. Version 
1.3 is now very outdated. The httpd project already officially announced, 
that they put a very high bar on patches they are going to apply to 1.3. 
Mainly they'll only fix critical security issues.


If I would start with something new today, I would really choose httpd 
2.2.x. This will provide you a much more future proof environment. It 
comed with builtin ssl support, ldap support, a much better reverse proxy, 
less 64 Bit problems (likely even no 64 Bit problems) and much more.



Please could you help me, I have tried compiling the Apache Dist with:

./configure --prefix=/www/apache
 --enable-module=most
 --enable-shared=max
 --enable-rule=SHARED_CORE
$ make
$ make install


Don't know about enable-rule, but it doesn't look wrong.

Believing that this would resolve my symbol issue. Symbols are in the 
table this was shown with: nm /www/apache/bin/httpd but none for

ap_ctx_get


Yes, because it's a non mod_ssl httpd 1.3.
But: nm on mod_jk.so should also show, that mod_jk does *not* want that 
symbol.




Kindest Regards

ps Thanks for all the help so far guys!!


Regards,

Rainer


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




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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread quikpak

dont send me tomcat hereafter!!
- Original Message - 
From: ChrisS [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 06, 2008 6:57 AM
Subject: Re: mod_jk gmake recursion error on solaris 10 x86



Rainer Jung wrote:
Unfortunately I have some difficulties to understand, what you want to 
tell me:


Ok Rainer that solves that one, I do have a built in Apache Solaris 10 


What solves what?


dist this is:

bash-3.00# /usr/apache2/bin/httpd -l
Compiled in modules:
 core.c
 prefork.c
 http_core.c
 mod_so.c
bash-3.00# /usr/apache2/bin/httpd -v
Server version: Apache/2.0.63
Server built:   Feb  5 2008 11:13:45
bash-3.00#

Please recommend! almost forgot thanks helluvalot.


Not sure, what you mean by recommend? I was suggesting 2.2.x, you have 
a 2.0.x. That's not exactly the same :) Quite possible, that it's more 
important for you to use a Solaris bundled httpd instead of a self 
build one. If that is a wise decision depends on the importance Apache 
httpd has for you. If it is really important, I would not necessarily 
rely on the OS delivering company to provide needed updates in time.



Would this config suffice mate!!!


I don't get this, it's a question with exclamation marks, hm

ps I really wanted to get this sorted for a mate in work, we have a 
clustered setup not clustering between Tomcat nodes on a 1.3.39 
setup, there are also session sharing issues with deployed apps, the 
idea was to lab the problem and try to find a resolve.


Aha, so then it makes sense to use the same versions, you also have in 
production.


I would need to check the SSL status exactly but this is 
running/serving SSL requests on a Sparc SunBlaze server. Would the 
binary dist of mod_jk (current) work with this environment ? this 
being a great deal saner than this one I am using


Which binary dist? The one from the ASF download page? Yes, that one 
will need an EAPI httpd, i.e. one build with ssl support.


Will this be saner? Not sure. Our binary dist is build with gcc and 
the httpd we are talking about might be build with Sun Studio (not 
sure, if we are talking about yet another httpd).


Regards,

Rainer

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


The binary distribution referred to is mod_jk, I remember seeing one in 
the mirrors for a Sparc installation only! isn't there one for x86 or is 
that something going on between the Org and Sun Microsystems? Some typos 
in my response apologies only human still!


Would or could you recommend that the version I have: apache 2.0.63 be 
able to work with the jk_mod current connector module? I provide the 
output of 2.0.63 so that you may be able to see whether or not, 
compiling the mod_jk source against it would work. Or do I have to do 
something else like for example download another huge package to compile 
it with.


This is an Org and I recognise that so I keep in the frame of mind that 
if someone helps me then the favor is returned further down the line (I 
call this ethics and nice manners)


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



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



Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread quikpak

dont send me tomcat hereafter!! im not a member of t!!!.
- Original Message - 
From: ChrisS [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 06, 2008 7:57 AM
Subject: Re: mod_jk gmake recursion error on solaris 10 x86



ChrisS wrote:

Rainer Jung wrote:
Unfortunately I have some difficulties to understand, what you want to 
tell me:



Ok Rainer that solves that one, I do have a built in Apache Solaris 10


What solves what?


dist this is:

bash-3.00# /usr/apache2/bin/httpd -l
Compiled in modules:
 core.c
 prefork.c
 http_core.c
 mod_so.c
bash-3.00# /usr/apache2/bin/httpd -v
Server version: Apache/2.0.63
Server built:   Feb  5 2008 11:13:45
bash-3.00#

Please recommend! almost forgot thanks helluvalot.


Not sure, what you mean by recommend? I was suggesting 2.2.x, you have a 
2.0.x. That's not exactly the same :) Quite possible, that it's more 
important for you to use a Solaris bundled httpd instead of a self build 
one. If that is a wise decision depends on the importance Apache httpd 
has for you. If it is really important, I would not necessarily rely on 
the OS delivering company to provide needed updates in time.



Would this config suffice mate!!!


I don't get this, it's a question with exclamation marks, hm

ps I really wanted to get this sorted for a mate in work, we have a 
clustered setup not clustering between Tomcat nodes on a 1.3.39 setup, 
there are also session sharing issues with deployed apps, the idea was 
to lab the problem and try to find a resolve.


Aha, so then it makes sense to use the same versions, you also have in 
production.


I would need to check the SSL status exactly but this is 
running/serving SSL requests on a Sparc SunBlaze server. Would the 
binary dist of mod_jk (current) work with this environment ? this being 
a great deal saner than this one I am using


Which binary dist? The one from the ASF download page? Yes, that one 
will need an EAPI httpd, i.e. one build with ssl support.


Will this be saner? Not sure. Our binary dist is build with gcc and the 
httpd we are talking about might be build with Sun Studio (not sure, if 
we are talking about yet another httpd).


Regards,

Rainer

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


The binary distribution referred to is mod_jk, I remember seeing one in 
the mirrors for a Sparc installation only! isn't there one for x86 or is 
that something going on between the Org and Sun Microsystems? Some typos 
in my response apologies only human still!


Would or could you recommend that the version I have: apache 2.0.63 be 
able to work with the jk_mod current connector module? I provide the 
output of 2.0.63 so that you may be able to see whether or not, compiling 
the mod_jk source against it would work. Or do I have to do something 
else like for example download another huge package to compile it with.


This is an Org and I recognise that so I keep in the frame of mind that 
if someone helps me then the favor is returned further down the line (I 
call this ethics and nice manners)


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



Apache 2.0.63 Solaris 10 x86 works!

Steps taken:

0. Got loads of help from the guys at users@tomcat.apache.org (thanks 
guys!)
1. Download Sun Studio 11for x86 and install as su - root.  (Refer to 
www.sun.com for this)
2. Include /opt/SUNWspro/bin in the PATH environment variable 
(PATH=/opt/SUNWspro:$PATH)
3. Download Tomcat from http://tomcat.apache.org/ i am using 5.5.20.0 as 
of this writing.

Install Tomcat (see http://tomcat.apache.org for this)
4. svn checkout tomcatconnectors JK 1.2.26 refer to (google, 
http://tomcat.apache.org, etc ... for this) Subversion(svn) can be 
downloaded from http://www.sunfreeware.com. Apparently this release of 
mod_jk fixes some session sharing issues amongst other important issues 
between TomcatNodes(well thats how I read it anyway). Apache ant is 
required to build this so download that also(and follow instructions for 
using it). In order to use buildconf.sh you will require. autoconf, 
automake, autoheader, aclocal, libtoolize these can all be found at 
www.sunfreeware.com perl is also required. Make sure the fresh installs 
are referenced from the PATH variable. On my system these live in 
/usr/local/bin. Also make sure that /usr/sfw/bin isn't referenced in the 
PATH along with CC= not being set, don't forget to export ;).
5. When everything is set run buildconf.sh check the top_builddir variable 
in common and apache-2.0 subdirectories this should be: top_builddir = .. 
(note the spaces I think under common this was: top_builddir=.. this threw 

Re: mod_jk gmake recursion error on solaris 10 x86

2008-03-05 Thread Martin Gainty
favor is returned? I guess there's a first time for everything..

ap_ctx_get  is a mod_ssl function which can be downloaded at
http://www.modssl.org

#install as LoadModule in $APACHE_HOME/conf/httpd.conf e.g.
#Also make sure you have the correct mod_ssl.so for your Operating System!
LoadModule ssl_module modules/mod_ssl.so

# addional configurations can be configured via /conf/ssl.conf
# Bring in additional module-specific configurations
#
IfModule mod_ssl.c
Include conf/ssl.conf
/IfModule

#check out this ssl.conf sample from Matt Raible
http://www.raibledesigns.com/tomcat/ssl.conf

Martin-
- Original Message -
From: ChrisS [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 05, 2008 9:27 PM
Subject: Re: mod_jk gmake recursion error on solaris 10 x86


 ChrisS wrote:
  Rainer Jung wrote:
  Unfortunately I have some difficulties to understand, what you want
  to tell me:
 
  Ok Rainer that solves that one, I do have a built in Apache Solaris 10
 
  What solves what?
 
  dist this is:
 
  bash-3.00# /usr/apache2/bin/httpd -l
  Compiled in modules:
   core.c
   prefork.c
   http_core.c
   mod_so.c
  bash-3.00# /usr/apache2/bin/httpd -v
  Server version: Apache/2.0.63
  Server built:   Feb  5 2008 11:13:45
  bash-3.00#
 
  Please recommend! almost forgot thanks helluvalot.
 
  Not sure, what you mean by recommend? I was suggesting 2.2.x, you
  have a 2.0.x. That's not exactly the same :) Quite possible, that
  it's more important for you to use a Solaris bundled httpd instead of
  a self build one. If that is a wise decision depends on the
  importance Apache httpd has for you. If it is really important, I
  would not necessarily rely on the OS delivering company to provide
  needed updates in time.
 
  Would this config suffice mate!!!
 
  I don't get this, it's a question with exclamation marks, hm
 
  ps I really wanted to get this sorted for a mate in work, we have a
  clustered setup not clustering between Tomcat nodes on a 1.3.39
  setup, there are also session sharing issues with deployed apps, the
  idea was to lab the problem and try to find a resolve.
 
  Aha, so then it makes sense to use the same versions, you also have
  in production.
 
  I would need to check the SSL status exactly but this is
  running/serving SSL requests on a Sparc SunBlaze server. Would the
  binary dist of mod_jk (current) work with this environment ? this
  being a great deal saner than this one I am using
 
  Which binary dist? The one from the ASF download page? Yes, that one
  will need an EAPI httpd, i.e. one build with ssl support.
 
  Will this be saner? Not sure. Our binary dist is build with gcc and
  the httpd we are talking about might be build with Sun Studio (not
  sure, if we are talking about yet another httpd).
 
  Regards,
 
  Rainer
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  The binary distribution referred to is mod_jk, I remember seeing one
  in the mirrors for a Sparc installation only! isn't there one for x86
  or is that something going on between the Org and Sun Microsystems?
  Some typos in my response apologies only human still!
 
  Would or could you recommend that the version I have: apache 2.0.63 be
  able to work with the jk_mod current connector module? I provide the
  output of 2.0.63 so that you may be able to see whether or not,
  compiling the mod_jk source against it would work. Or do I have to do
  something else like for example download another huge package to
  compile it with.
 
  This is an Org and I recognise that so I keep in the frame of mind
  that if someone helps me then the favor is returned further down the
  line (I call this ethics and nice manners)
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 Apache 2.0.63 Solaris 10 x86 works!

 Steps taken:

 0. Got loads of help from the guys at users@tomcat.apache.org (thanks
guys!)
 1. Download Sun Studio 11for x86 and install as su - root.  (Refer to
 www.sun.com for this)
 2. Include /opt/SUNWspro/bin in the PATH environment variable
 (PATH=/opt/SUNWspro:$PATH)
 3. Download Tomcat from http://tomcat.apache.org/ i am using 5.5.20.0 as
 of this writing.
 Install Tomcat (see http://tomcat.apache.org for this)
 4. svn checkout tomcatconnectors JK 1.2.26 refer to (google,
 http://tomcat.apache.org, etc ... for this) Subversion(svn) can be
 downloaded from http://www.sunfreeware.com. Apparently this release of
 mod_jk fixes some session sharing issues amongst other important issues
 between TomcatNodes(well thats how I read it anyway). Apache ant is
 required to build this so download that also(and follow 

multiple domains

2008-03-05 Thread Angelo Chen

Hi guys,

I have this server that has two domains pointing at it, the tomcat server 5
is running there, I have two wep applications for the two domains, so i
like:

www.domain1.com will call the app1
www.domain2.com will call the app2

how to configure tomcat to work like this? thanks

Angelo
-- 
View this message in context: 
http://www.nabble.com/multiple-domains-tp15865530p15865530.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: multiple domains

2008-03-05 Thread quikpak

dont send me tomcat hereafter!!
- Original Message - 
From: Angelo Chen [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, March 06, 2008 8:29 AM
Subject: multiple domains




Hi guys,

I have this server that has two domains pointing at it, the tomcat server 
5

is running there, I have two wep applications for the two domains, so i
like:

www.domain1.com will call the app1
www.domain2.com will call the app2

how to configure tomcat to work like this? thanks

Angelo
--
View this message in context: 
http://www.nabble.com/multiple-domains-tp15865530p15865530.html

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


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




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



Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-05 Thread David Smithson
Hi all,

I was recently asked to create a way to analyze Tomcat performance.  I
decided to grab stats from the /manager/status?XML=true page and push
those metrics into rrdtool.  There are all sorts of other details to the
analysis which I will leave out.  In any case, I was wondering if
someone could have a look at the attached graph and tell me if I can
conclude that the performance directives in server.xml do not need to be
modified.  To me, this graph says that there are very few active Tomcat
threads and that there is no reason to go mucking around with the
settings in Tomcat server.xml.  Is this a fair analysis?

Thanks for your time.

--
David


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

RE: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-05 Thread David Smithson
I guess the list doesn't support attachments, so I've staged this on a
web server.  Here's the link to the graph:
https://littleblue.activsupport.com/tomcat_graph.png


-Original Message-
From: David Smithson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 10:18 PM
To: users@tomcat.apache.org
Subject: Tomcat Status Metrics: RRDTool Graph: Analysis

Hi all,

I was recently asked to create a way to analyze Tomcat performance.  I
decided to grab stats from the /manager/status?XML=true page and push
those metrics into rrdtool.  There are all sorts of other details to the
analysis which I will leave out.  In any case, I was wondering if
someone could have a look at the attached graph and tell me if I can
conclude that the performance directives in server.xml do not need to be
modified.  To me, this graph says that there are very few active Tomcat
threads and that there is no reason to go mucking around with the
settings in Tomcat server.xml.  Is this a fair analysis?

Thanks for your time.

--
David



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



Re: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-05 Thread David Rees
On Wed, Mar 5, 2008 at 7:26 PM, David Smithson
[EMAIL PROTECTED] wrote:
 I guess the list doesn't support attachments, so I've staged this on a
  web server.  Here's the link to the graph:
  https://littleblue.activsupport.com/tomcat_graph.png

404 Forbidden.

-Dave

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



Using tomcat to serve up directory

2008-03-05 Thread Frank Demion
Apologies if this is a really simple question. I want to use Tomcat to serve up 
an simple directory of files on a server. Basically, I want to be able the see 
the files on the file system by typing http://localhost:8080/myfiles where 
myfiles is a directory somewhere on the file system. In essence I want to use 
tomcat as a web server. I’ve tried adding a basic directory to the webapps dir 
but this doesn’t allow me to navigate the file system. What configuration files 
do I need to modify to achieve this? 
 
Thanks

F


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


RE: Tomcat Status Metrics: RRDTool Graph: Analysis

2008-03-05 Thread David Smithson
Oops.  Try now please.

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2008 10:44 PM
To: Tomcat Users List
Subject: Re: Tomcat Status Metrics: RRDTool Graph: Analysis

On Wed, Mar 5, 2008 at 7:26 PM, David Smithson
[EMAIL PROTECTED] wrote:
 I guess the list doesn't support attachments, so I've staged this on a
  web server.  Here's the link to the graph:
  https://littleblue.activsupport.com/tomcat_graph.png

404 Forbidden.

-Dave

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


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



RE: Using tomcat to serve up directory

2008-03-05 Thread Caldarale, Charles R
 From: Frank Demion [mailto:[EMAIL PROTECTED] 
 Subject: Using tomcat to serve up directory
 
 What configuration files do I need to modify to achieve this? 

Look at conf/web.xml in the DefaultServlet section. Set the value of
listings to true.

 - Chuck


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

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



RE: multiple domains

2008-03-05 Thread Caldarale, Charles R
 From: Angelo Chen [mailto:[EMAIL PROTECTED] 
 Subject: multiple domains
 
 www.domain1.com will call the app1
 www.domain2.com will call the app2

In conf/server.xml, configure two Host elements, one for each domain.
Create a separate appBase directory for each Host, and configure the
appBase in each appropriately.  Place app1 under domain1's appBase as
ROOT, app2 under domain2's appBase as ROOT.  You're done.

Doc references:
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - Chuck


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

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



RE: viewing servlets on Tomcat

2008-03-05 Thread Caldarale, Charles R
 From: Richard Dunne [mailto:[EMAIL PROTECTED] 
 Subject: Re: viewing servlets on Tomcat
 
 If it should be, it's not.  webapps contains docs, 
 host-manager, manager and ROOT. 

I think a reinstall is in your future.  I prefer installing from the
.zip rather than the .exe, since it gives you more options for running
Tomcat - the .zip includes .bat files for starting and stopping Tomcat
as well as running it as a service, whereas the .exe only installs as a
service.

 - Chuck


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

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



RE: Storing sessions to disk like Apache HTTP server

2008-03-05 Thread Caldarale, Charles R
 From: Andrew R Feller [mailto:[EMAIL PROTECTED] 
 Subject: RE: Storing sessions to disk like Apache HTTP server
 
 The student registration application's load consists of
 thousands of students pounding at a handful of servers 
 constantly in hopes they can schedule their classes before
 they fill up.

Yes, I've watched my son do it at his school.  (We used to do that with
punched cards, 40 years ago.  My then-roommate wrote the first automated
class registration system at Georgia Tech around that time.  Response
time was measured in days :-)

 1. Does Tomcat keep all session information strictly in 
 RAM or does it swap out to disk?

The standard session manager uses only the Java heap.  The persistent
manager sounds like it does what you want, but it's considered
experimental (and has been so for a long, long time).  I guess it's up
to you if you want to play with it.  The doc is here:
http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html

 2. What commonly used formulas are there to determine sufficient
 RAM based on load size?

There aren't any because the amount of heap used is very sensitive to
the specific applications deployed.  You'll need to measure it in a test
environment, scaling up the number of sessions to see the effect on the
heap.

 3. Is it better to split large clusters into smaller ones with 
 a few nodes replicating to the other clusters?

No experience here.  Perhaps Filip has suggestions.

 - Chuck


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

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



CVS check-out

2008-03-05 Thread Quodras, Naveen

Hi,
 Don't know if this would be the right place to ask this kinda
question.
 But would anybody out here know , How do I check-out only the
folder structure from CVS without checking-out the files that are within
those
 folders. (As I don't want my Disc to be cluttered with all those
files)

 
Thanks,
Naveen

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



RE: CVS check-out

2008-03-05 Thread Quodras, Naveen
 
Hi David,   Would you have any suggestions on the below query ??


-Original Message-
From: Quodras, Naveen 
Sent: Thursday, March 06, 2008 1:57 AM
To: 'Tomcat Users List'
Subject: CVS check-out


Hi,
 Don't know if this would be the right place to ask this kinda
question.
 But would anybody out here know , How do I check-out only the
folder structure from CVS without checking-out the files that are within
those
 folders. (As I don't want my Disc to be cluttered with all those
files)

 
Thanks,
Naveen

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



Re: Best Practices for JNDI DataSources/Authentication

2008-03-05 Thread Felix Schumacher
On Thu, March 6, 2008 1:40 am, pbdavey wrote:

 I've been looking through a lot of tutorials regarding using JNDI for
 datasources and ldap authentication and was wondering if someone could
 explain things.

 Most of what I've come across has authentication completely seperate from
 the datasource, or, in the case of JDBCRealms, the user/credentials are
 simply stored in the database. However, almost never do people use
 database
 users, even though you can configure connection pools to not have
 username/passwords and pass them through the getConnection() method. In
 the
 few cases I've found with database users, they never mention how that
 integrates with realms. Are there best practices, technological, or
 someother reasons for this? Or am I just doing something very weird?
Hi,

I think you want to try to couple the user/password pair used for login to
get a database/resource personalized to that user.
But you should consider the password part of the user something you don't
really have. If a user is logged into a realm, you will only get an object
which tells you the name and the roles this user has (you don't get a list
of roles, but you can ask if a user has a special role).

From there on you could personalize by using pre-configured resources for
the different roles of the user.

And please consider the password gone; maybe your realm has authenticated
your user without one (kerberos, OTP, openid, ...)

Bye
 Felix

 If someone could point me in the right direction, I'd very much appreciate
 it!
 --
 View this message in context:
 http://www.nabble.com/Best-Practices-for-JNDI-DataSources-Authentication-tp15863919p15863919.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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






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



file system session persistence in cluster

2008-03-05 Thread Taner Diler
Hi  all,

I try to use file system session persistence implementation in tomcat
cluster that has three member.
I'm confused a little bit about configuration.

The configuration for manager:

Manager className=org.apache.catalina.session.PersistentManager 
Store className=org.apache.catalina.session.FileStore
directory=c:\\sessions /
/Manager


1. Which configuration file must this manager configuration  be defined in?
conf/server.xml or webapplication/META-INF/context.xml

2. If I define that in conf/server.xml as
Cluster  managerClassName=org.apache.catalina.session.PersistentManager
Manager className=org.apache.catalina.session.PersistentManager 
Store className=org.apache.catalina.session.FileStore
directory=c:\\sessions /
/Manager
/Cluster
, this message is displayed on tomcat console
No Store element found,  persistence disabled when I start tomcat. Why?

3. If it needs to make that definition in conf/server.xml, must I define
same configuration to all cluster members?

Thank you

Best regards

Taner Diler