Re: How to get username

2003-12-09 Thread Atreya Basu
It should be HttpServletRequest.getRemoteUser()



Chaikin, Yaakov Y (US SSA) wrote:

Hi,

Does anyone know how to get back the username once the person logged in
with declarative security?
Thanks.

Yaakov Chaikin
Software Engineer
BAE SYSTEMS
301-838-6899 (phone)
301-838-6802 (fax)
[EMAIL PROTECTED]


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



--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Directory explaination

2003-12-09 Thread Atreya Basu
Could someone explain the directory structure of Tomcat to me?

bin <--the executable to run tomcat
conf <-- configuration file
common <--?
logs <-- log files
server <-- libraries for the server
shared <---?
temp <-- temp files
work <-- work files where compiled jsps are read from
webapps <-- where the web applications go...
Thanks,

Atreya

--
_________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Re: [OT}RE: directive.include problem

2003-12-08 Thread Atreya Basu
That's right.  The XML equivalent for <%@ include> is .  That's what I am having difficulty with. 

Anyone with experience using the above directive?

Atreya

David Evans wrote:

The <%@ include> directive includes the contents of the file before
compilation.
http://java.sun.com/products/jsp/tags/syntaxref.fm6.html#8772
dave
 



--
_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Re: [OT}RE: directive.include problem

2003-12-08 Thread Atreya Basu
The only problem with the include directive is that it actually outputs 
the result of a jsp rather than just the text. What I want to do is have 
some content in a another file, have the two file put together then 
compiled.

Is there a way to do that I wonder?

Michele Emmi wrote:

Try:

<%@ include file="..." %>

Michele


From: Atreya Basu <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: directive.include problem
Date: Mon, 08 Dec 2003 12:24:06 -0400
Hello,

I'm getting a weird error when using .

I get an jsp.error.badaction error.

I don't know maybe I'm using the the directive incorrectly. What I am 
trying to do is make my JSPs cleaner by moving some of the header and 
footer code onto a different file. Since I use the same header and 
footer code, I thought that I could use the directive.include 
element. But no luck.

Any help?

--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Cell phone ‘switch’ rules are taking effect — find out more here. 
http://special.msn.com/msnbc/consumeradvocate.armx

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



--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


directive.include problem

2003-12-08 Thread Atreya Basu
Hello,

I'm getting a weird error when using .

I get an jsp.error.badaction error.

I don't know maybe I'm using the the directive incorrectly.  What I am 
trying to do is make my JSPs cleaner by moving some of the header and 
footer code onto a different file.  Since I use the same header and 
footer code, I thought that I could use the directive.include element.  
But no luck.

Any help?

--
_________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Session invalidate question

2003-12-05 Thread Atreya Basu
Quick question;

When using a SessionListener does sessionDestroyed get called AFTER a 
session has been invalidated?

Thanks

--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


[OT] Global Variable Question

2003-12-05 Thread Atreya Basu
Hi,

This is off topic, but maybe someone can help me regardless.

I want to store some global variables in my web.xml file in the 
 element.

I have a class (extends Object) that I want having access to those 
parameters.  Is there any way for that class to access the parameters in 
the  element?

--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Re: Problem with httpsessionlistener

2003-12-04 Thread Atreya Basu
Okay,

So I have an idea of what's going on.  What is going on is that the 
session is being created before the user is authenticated.  Each time a 
user hits the login page a session is created.  However I want the 
session to be created after the user has logged in.  Is there anything I 
can do about that?  Maybe instead of the httpsessionlistener I should be 
using the attributelistener?

Any suggestions?

--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Re: Problem with httpsessionlistener

2003-12-04 Thread Atreya Basu
Sorry,

Shapira you are right.  There was a SESSION.ser file.  I got rid of it 
and it worked.

Now there is another problem

I'm trying:
   Object obj = session.getAttribute("j_username");
(I'm doing FORM based authentication and this definitely works.)
but I'm getting a null value for obj.
I know that I am authenticated because I see:
2003-12-04 14:09:45 Authenticator[/emissions]:  Calling authenticate()
2003-12-04 14:09:45 Authenticator[/emissions]: Already authenticated 'basu'
help?

Shapira, Yoav wrote:

Howdy,
Is it possible this session was persisted to disk and recreated on
tomcat startup (as opposed to newly created by a user request)?
Recreation of persisted sessions (correctly) does not trigger the
sessionCreated event.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 1:04 PM
To: Tomcat Users List
Subject: Problem with httpsessionlistener
Hello,

I'm having some difficulty with my session listener.  I set up a
   

session
 

listener in my web.xml file as such:

  
  com.gri.web.SessionTracker
  
Now when I go to the context that is under the listener method
sessionCreated doesn't get executed.  However a session is created
because my log says:
2003-12-04 13:58:26 Authenticator[/emissions]: Restore request from
session '46B9930847D159C904E53EE8C277B33A'
Can anyone tell me what I may be doing incorrectly.

--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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



--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Re: Problem with httpsessionlistener

2003-12-04 Thread Atreya Basu
That's helpful.  Any idea how I might verify this?  I haven't found a 
SESSION.ser file.

Atreya

Shapira, Yoav wrote:

Howdy,
Is it possible this session was persisted to disk and recreated on
tomcat startup (as opposed to newly created by a user request)?
Recreation of persisted sessions (correctly) does not trigger the
sessionCreated event.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-----
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 1:04 PM
To: Tomcat Users List
Subject: Problem with httpsessionlistener
Hello,

I'm having some difficulty with my session listener.  I set up a
   

session
 

listener in my web.xml file as such:

  
  com.gri.web.SessionTracker
  
Now when I go to the context that is under the listener method
sessionCreated doesn't get executed.  However a session is created
because my log says:
2003-12-04 13:58:26 Authenticator[/emissions]: Restore request from
session '46B9930847D159C904E53EE8C277B33A'
Can anyone tell me what I may be doing incorrectly.

--
_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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



--
_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Problem with httpsessionlistener

2003-12-04 Thread Atreya Basu
Hello,

I'm having some difficulty with my session listener.  I set up a session 
listener in my web.xml file as such:

   
   com.gri.web.SessionTracker
   
  
Now when I go to the context that is under the listener method 
sessionCreated doesn't get executed.  However a session is created 
because my log says:

2003-12-04 13:58:26 Authenticator[/emissions]: Restore request from 
session '46B9930847D159C904E53EE8C277B33A'

Can anyone tell me what I may be doing incorrectly.

--
_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Tomcat-Eclipse question

2003-12-03 Thread Atreya Basu
Hello,

I've got a question about integrating TOmcat and Eclipse together.  Has 
anyone done it? 
What I want to do is debug my Servlets as Tomcat is running.  I know the 
command line to start Tomcat but I can't figure out what the parameters 
are to start the JVM in debug mode and then attach to it from the 
Eclipse Debugger.

Anyone with experience or even suggestions?

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


Re: SessionListener

2003-12-01 Thread Atreya Basu
Hi,

Here is how I use the HttpSessionListener.

First I create a Class that implements HttpSessionListener:
package com.gri.web;
import javax.servlet.http.*;
public MySessionListener implements HttpSessionListener
{
  private static int num_sessions = 0;
  private HttpSession session = null;
  public void sessionCreated(HttpSessionEvent se)
   {
   num_sessions++;
   session = se.getSession();
   }
   public void sessionDestroyed(HttpSessionEvent se)
   { num_session--;}
   public static int getNumSessions() {return num_sessions; }
public static HttpSession getLastSession() { return session;}
}
Now include this in the web.xml for your context (directly after 
filter&filter-mapping but before Servlet element):

||
|||  com.gri.web.MySessionListener
||
now all you have to do is create a JSP:
http://java.sun.com/JSP/Page";>




|Last user in session:


MySessionListener.getLastSession().getAttribute("j_username")

|
|Username of current person


session.getAttribute("j_username")

|
|


Hart, Justin wrote:
Ok, still, I haven't found any documentation on how to add a SessionListener in the server.xml file, and adding one using the listener tags defined for web.xml files doesn't seem to work.

I also haven't seen how to get a user's credentials from a HttpSession, or how to get a Session from an HttpSessionListener.  Could you throw me a bone?

Justin

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:52 PM
To: Tomcat Users List
Subject: RE: SessionListener


Howdy,
A SessionListener of the org.apache.catalina variety would go in the
same place as all tomcat-specific features:
$CATALINA_HOME/conf/server.xml.  That means the class specified there
must be accessible to the server classloaders, i.e. must reside in
common/lib or higher on the classloader hierarchy.
The above is true for Valves, Realms, Listeners, etc, that are
proprietary to tomcat.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Hart, Justin [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 11:53 AM
To: Tomcat Users List
Subject: RE: SessionListener
Ok, so, the listener in there must implement HttpSessionListener, where
   

can
 

I use SessionListeners?

Justin

-Original Message-
From: Hart, Justin
Sent: Monday, December 01, 2003 11:34 AM
To: Tomcat Users List (E-mail)
Subject: SessionListener
My SessionListener doesn't seem to be firing, any help?

I have a SessionListener that I want to go off when a user
   

authenticates to
 

my web app (this is a correct usage, right?)

So, in the web.xml of my app, I would put the lines:




the class



This should fire off when the user signs in to the page, correct?

Justin

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





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


Re: SessionListener

2003-12-01 Thread Atreya Basu
Sorry,

I should have added to this earlier, but I thought that SessionListener 
should go in the web.xml document under the Listener element.  Or am I 
thinking about HttpSessionListener which is different

Anyways if it is HttpSessionListener that you are talking about I can 
provide some examples.

Cheers,

Shapira, Yoav wrote:

Howdy,

 

Ok, still, I haven't found any documentation on how to add a
SessionListener in the server.xml file, and adding one using the
   

listener
 

tags defined for web.xml files doesn't seem to work.
   

The XML is the similar but not quite the same to the portable one:
  There is a generic
example in the Engine configuration reference, and another more specific
example in the Host configuration reference.  Neither, however, is a
SessionListener example.
There IS one specific, full-features SessionListener example: the
SingleSignOn valve.  It's present (but commented out) in server.xml by
default, and you can take a look at the source code.  It's a more
complicated and confusing example because it's also a Valve ;(  But then
again, I wouldn't even bother with this whole approach when you have the
HttpSessionListener as part of the servlet specification.
where ... are attributes specific to your listener.  (The astute reader
would recognize the above as a commons Digester bean-based
initialization pattern).
 

I also haven't seen how to get a user's credentials from a HttpSession,
   

or
 

how to get a Session from an HttpSessionListener.  Could you throw me a
bone?
   

If the user is authenticated by the server, typically the information is
not in the session, it's in the request:
HttpServletRequest#getUserPrincipal.  A common use-case is to stuff this
in the session via a filter.
If you had an attribute called username that something was stuffing into
the session, i.e. something like a filter calling
session.setAttribute("username", "something"), then an
HttpSessionAttributeListener's attributeAdded would be called with the
attribute name and latest value.
Yoav



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

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

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


Form based authentication

2003-11-28 Thread Atreya Basu
Hi all,

I thought I would share some of my experiences with JDBCRealm 
authentication.

First what I wanted to do was see if JDBCRealm based authentication even 
worked.  All I got was Tomcat quitting.  My first problem was that my 
web.xml file wasn't in the right order.  I went to BEA's website and 
used their web.xml file explanation page to get all of the spelling and 
order of the elements right. 
But Tomcat still wasn't running.  It turned out my second problem was 
that for some reason the MySQL JDBC driver wasn't being found, even 
though I had placed it in the common\lib directory.  So I edited the 
catalina file manually and added in the jar file.

Next whenever I would authenticate I would get a stylesheet instead of 
my intended destination.  Then one time I authenticated and accidentally 
hit the login page.  It showed me a different styled login page.

That happened because my stylesheet was kept inside the context 
directory it wasn't being retrieved till I authenticated.  So instead of 
pulling up index.html after I authenticate it pulled up the stylesheet 
because my browser was waiting to load that file.  Solution of course 
was to place the stylesheet in an unsecure directory.

I hope that someone finds this useful.

Cheers,

--
_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


Confusion about Realm directive

2003-11-28 Thread Atreya Basu
Hi all,

I am trying to create a security realm.  I am confused as to where to 
put the Realm directive.  If I want to create a realm for a Context, 
would I place the directive before or inside of the Context directive?

Thanks in advance.

--
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca


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


RE: HTTP 404 response for directory listing

2003-11-25 Thread Atreya Basu
Just in case anyone is following this thread.

I don't' think that my problem lies in my configuration files.  It might
be the way I compiled the mod_jk2 module.  I am going to try and
recompile it.  I'll post my results once I do.

Cheers,

_________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-----
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: November 24, 2003 2:39 PM
To: 'Tomcat Users List'
Subject: RE: HTTP 404 response for directory listing

I am able to load JSPs and Servlets just fine.  

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Jared Priddy [mailto:[EMAIL PROTECTED] 
Sent: November 24, 2003 2:23 PM
To: 'Tomcat Users List'
Subject: RE: HTTP 404 response for directory listing

When you have the "LoadModule..." statement in httpd.conf, are you able
to
load .jsp pages, or do they fail as well?
 


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 11:54 AM
To: Tomcat Users List
Subject: Re: HTTP 404 response for directory listing


Atreya,
> In terms of URI directives that is the only one.  I don't have a 
> specific directive in httpd.conf to include workers2.properties, that 
> file gets loaded automatically when I load the jk2 module.
> Also I don't have any JkMount directives in my httpd.conf file.

Hmmm... this is very strange. I'm sorry I can't ofer any more help. If 
nobody else asks within, say, a day, go ahead and re-post with a bit 
more information (i.e. your JkMount directive and the fact that no 
others exist).

Good luck,
-chris


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



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




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



RE: HTTP 404 response for directory listing

2003-11-24 Thread Atreya Basu
I am able to load JSPs and Servlets just fine.  

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Jared Priddy [mailto:[EMAIL PROTECTED] 
Sent: November 24, 2003 2:23 PM
To: 'Tomcat Users List'
Subject: RE: HTTP 404 response for directory listing

When you have the "LoadModule..." statement in httpd.conf, are you able
to
load .jsp pages, or do they fail as well?
 


-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 11:54 AM
To: Tomcat Users List
Subject: Re: HTTP 404 response for directory listing


Atreya,
> In terms of URI directives that is the only one.  I don't have a 
> specific directive in httpd.conf to include workers2.properties, that 
> file gets loaded automatically when I load the jk2 module.
> Also I don't have any JkMount directives in my httpd.conf file.

Hmmm... this is very strange. I'm sorry I can't ofer any more help. If 
nobody else asks within, say, a day, go ahead and re-post with a bit 
more information (i.e. your JkMount directive and the fact that no 
others exist).

Good luck,
-chris


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



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



Re: HTTP 404 response for directory listing

2003-11-23 Thread Atreya Basu
Hi,

In terms of URI directives that is the only one.  I don't have a 
specific directive in httpd.conf to include workers2.properties, that 
file gets loaded automatically when I load the jk2 module.
Also I don't have any JkMount directives in my httpd.conf file.

I wonder if anyone is able to reproduce this problem.

I am running RH 9 using jk2 and unix sockets.  Apache 2.0.47 and some 
version of Tomcat 4.1.

Maybe there is something wrong with the way mod_jk2 was compiled...?

Christopher Schultz wrote:

Hmmm.. that *is* odd.

And you say that if you disable loading of the module altogether, it 
works?

What if you disable that single reclaration above? Is it possible that 
you have a more general declaration elsewhere in the 
workers2.properties file?

I don't have much experience with mod_jk2. Do you put anything in 
httpd.conf, or is it just a reference to the workers2.properties that 
mod_jk2 handles all by itself?

-chris

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

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


Re: HTTP 404 response for directory listing

2003-11-23 Thread Atreya Basu
That's the weird part.

My workers2.properties uri directive is just for .jsps.  It is as follows:

[uri:www.mysite.com/*.jsp]
group=ajp13:/usr/local/apache2/logs/jk2.socket
So I'm not sure why directory requests get forwarded to Tomcat.

Christopher Schultz wrote:

Atreya,

I want a directory listing of my files.


I am using mod_jk2 with Apache 2.0.4x. If I comment out the 
LoadModule mod_jk2 I can get a directory listing.  But if not, I get 
a 404 error in Apache and then I get a 404 error page generated by 
Tomcat.


It looks like Tomcat is handling the request for the "directory" and 
refusing to generate a listing for you. I know that both Apache and 
Tomcat are both capable of doing this.

Why one would you prefer to generate the list for you? I'm a fan of 
Apache handling everything that it can, and only having Tomcat run my 
application code. In that case, you'll want to reduce the range of 
URLs that Apache forwards to Tomcat via JkMount directives in 
httpd.conf (or whatever you include into httpd.conf).

For example, instead of:

JkMount /myApp myWorker

Consider:

JkMount /myApp/*.jsp myWorker
JkMount /myApp/myServlet myWorker
JkMount /myApp/myOtherServlet myWorker
With this reduces URL space mapped to Tomcat, Apache will serve the 
directory listings.

-chris

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

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


HTTP 404 response for directory listing

2003-11-23 Thread Atreya Basu
Hi,

I've been tackling this problem since September, I'm hoping someone can 
shed some light here.

I want a directory listing of my files e.g; 
http://www.somesite.com/directory/ -->outputs a dir listing. 
I am using mod_jk2 with Apache 2.0.4x. 
If I comment out the LoadModule mod_jk2 I can get a directory listing.  
But if not, I get a 404 error in Apache and then I get a 404 error page 
generated by Tomcat.

I am using Tomcat 4.1.

Could someone please help me?

Thanks.

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


Desprately need with Directory Listings

2003-09-25 Thread Atreya Basu
Hello,

I'm in desperate need of showing a file list.

In my httpd.conf file I have the following:

Options +Indexes
...

However when I go to '/sumdir'  I get the

HTTP Status 404 - /sumdir

Apache Tomcat/4.1.27
My workers2.properties file only has URI mapping for .jsp files:
[uri:www.website/*.jsp]

If I put an Index.html file, it gets read by apache.  But when there 
isn't one, Tomcat shows the above error.

I desperately need help with this.

Thanks.

Atreya

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


Re: quick question

2003-09-24 Thread Atreya Basu
Hi Steven,

You should be able to if your URI directive is something like, 
[uri:localhost/*.jsp].  The other thing that you need to do is set up 
the proper context for the JSP, so if you want to place them in 
/home/apache, you'll need to add the proper context directive in your 
server.xml file.

Atreya

Steven Garrett wrote:

Hi,

Can I envoke jsp from outside of the application directory.  For example, I
have /var/tomcat4/webapps/application/some.jsp.  Can I put some.jsp in
/home/apache/ (my apache docroot) and have it still work?
Thanks,

Steve

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

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


Question about Tomcat serving HTML pages

2003-08-25 Thread Atreya Basu
If I want to use Tomcat to serve all of my HTML pages, can I still use
things such as .htaccess where I can set up protected directories etc.?
 
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca
 


RE: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem

2003-08-25 Thread Atreya Basu
Hi,

I have the exact problem.  I'm not sure what's going on.

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Jason Symons [mailto:[EMAIL PROTECTED] 
Sent: August 25, 2003 3:24 PM
To: [EMAIL PROTECTED]
Subject: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem

I've run into a problem with my setup of Apache 2.0.47, Tomcat 4.1.27
LE, JDK1.4, and JK2 connected using JNI. If I stop the Apache service,
and then restart it, I get a 505 Server Error unless I either reload the
page a few times, or load a page that isn't passed to Tomcat first, once
that's done everything works fine. This problem only occurs if the
Apache service is stopped, if I reboot the machine, everything works
fine. Has anybody else encountered this problem, if so does anybody know
what is causing it, or is this just something I shouldn't worry about as
it's only a minor inconvenience?

JS




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



RE: Servlet re-load question

2003-08-25 Thread Atreya Basu
Hi,

Thanks for the suggestion.  This context is my root context.  So I don't
want to reach it via a sub-directory, I want to access it from the root
url.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED] 
Sent: August 25, 2003 6:13 AM
To: 'Tomcat Users List'
Subject: RE: Servlet re-load question

Atreya

Your code looks fine but it may be that you are ommiting the path
paramater
that is causing the problem:


Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: Atreya Basu [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, August 26, 2003 7:13 AM
:: To: Tomcat Users List; Atreya Basu
:: Subject: Servlet re-load question
:: 
:: I'm having trouble reloading servlets on Tomcat 4.1.27.
:: 
:: The log files indicate that Tomcat notices that the servlet has
:: changed.  First time, after updating the servlet, I hit up the
servlet I
:: get a 500 error and a stack trace.  Every time after that I get a
:: resource not available error.
:: My context looks something like this:
:: 
:: 
:: Can anyone please tell me what I can do?  This is pretty serious
because
:: I have to re-start Tomcat each time somone changes a servlet.
:: 
:: Thanks in advance.
:: 
:: 
:: Atreya
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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




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



Directory Listing problem Apache-Tomcat

2003-08-25 Thread Atreya Basu
Hello,

I'm having a problem getting a directory listing using Apache and Tomcat.

I have a directory that I want to display the contents of using Apache.  
However, when I access the directory (http://myhost.com/dir/) I get a 
404 error from Tomcat.

In my workers2.properties file I have the uri directive set to only 
allow .jsps:
[uri:myhost.com/*.jsp]
group=

And I have listings set to false in the conf/web.xml file.

Can anyone please give me any suggestions?

Oh,  I'm using Apache2 and Tomcat 4.1.27

Thanks,

Atreya

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


Servlet re-load question

2003-08-25 Thread Atreya Basu
I'm having trouble reloading servlets on Tomcat 4.1.27.

The log files indicate that Tomcat notices that the servlet has 
changed.  First time, after updating the servlet, I hit up the servlet I 
get a 500 error and a stack trace.  Every time after that I get a 
resource not available error.
My context looks something like this:


Can anyone please tell me what I can do?  This is pretty serious because 
I have to re-start Tomcat each time somone changes a servlet.

Thanks in advance.

Atreya

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


Re: problem installing basic app

2003-08-24 Thread Atreya Basu
What I do for this is the following:

HelloWorld
tutorials.ch1.HelloWorldServlet



HelloWorld
/helloworldservlet

Actually,

Because I use JK2 I just call all of my servlets with the .jsp extension 
so all of my servlets are hit up with something like: 
http://mydomain.com/tools/helloworld.jsp
So the url-pattern for me always ends in '.jsp'.

asolomon wrote:

How would you register a webapp's servlet and that servlet's  url-mapping
when the invoker servlet mapping is disabled...???   I hope that sounds
right.  I just uncommented the invoker mapping in conf/web.xml but if this
is a security risk I would like to know the other way to go about installing
new web apps


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



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


Re: servlet execution help

2003-08-21 Thread Atreya Basu
Vincent,

What are your servlet and servlet-mapping entries in the web.xml file in 
WEB-INF?

Vincent Yau wrote:

Sorry for my earlier post.  I found the answer in the release notes...

sorry

--Vincent

 



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


RE: RE: Java and tomcat issues

2003-08-08 Thread Atreya Basu
Also don't do:
'export $PATH=...'
Instead do:
'export PATH=...'

The '$' symbol is not supposed to be there.

_________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: August 5, 2003 3:33 PM
To: [EMAIL PROTECTED]
Subject: RE: RE: Java and tomcat issues

Okay this happens

bash-2.05b# export $PATH=$JAVA_HOME/bin
-bash: export:
`/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6
/bin
=/usr/java/j2sdk1.4.1_04//bin': not a valid identifier

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 2:18 PM
To: Tomcat Users List
Subject: Re: RE: Java and tomcat issues


Sure, APPEND the PATH variable with JAVA_HOME,
don't overwrite it!
Path=$PATH;JAVA_HOME/bin


- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, August 5, 2003 2:07 pm
Subject: RE: Java and tomcat issues

> Okay everytime I do it my commands don't work on the box like ls,
> cd, ll - the
> only command that works is the exit command
> 
> Any ideas?
> 
> -Original Message-
> From: Shapira, Yoav [EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 2:06 PM
> To: Tomcat Users List
> Subject: RE: Java and tomcat issues
> 
> 
> 
> Howdy,
> 
> >I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I keep
> getting
> >this message after I set the JAVA_HOME path
> >
> >-bash-2.05b# which java
> >/usr/bin/which: no java in
>
>(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R
> 6/bi
> >n
> >)
> >-bash-2.05b#
> 
> That's pretty clear, isn't it? ;)  Add $JAVA_HOME/bin to your $PATH.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business 
> communication, and may contain information that is confidential, 
> proprietaryand/or privileged.  This e-mail is intended only for the 
> individual(s) to whom it is addressed, and may not be saved, copied, 
> printed, disclosed or used by
> anyone else.  If you are not the(an) intended recipient, please 
> immediatelydelete this e-mail from your computer system and notify 
> the sender.  Thank you.
> 
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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




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



OT: Download Servlet question

2003-07-31 Thread Atreya Basu
Hello,

I have a slightly off topic question.

I have a servlet returns a file to a client.  It works for both MSIE and
Mozilla but for Mozilla it adds, '.jsp' to the end of the filename.

I set my headers:
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition","attachment;
filename="+fname);
response.setHeader("Cache-Control","no-cache");
response.setContentLength(available);

I am of course pre-compiling my JSP.  Any ideas anyone?

Thanks in advance.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



RE: Tomcat as Windows service on Windows XP

2003-07-25 Thread Atreya Basu
I think that there is an option during the Windows installation to set
Tomcat up as a service.  The other option is to use:
Sc.exe create
The program is well documented so  you shouldn't have any difficulty
using it.  Another option is to simply make an entry in the registry
under:
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControSet/Services



_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Me myself [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 2:26 PM
To: [EMAIL PROTECTED]
Subject: Tomcat as Windows service on Windows XP


How can i use tomcat as a windows service on XP ?

I cant find any documentation about this in the tomcat documentation.

Thanx.

_
Hotmail snakker ditt språk! 
http://www.hotmail.msn.com/cgi-bin/sbox?rru=dasp/lang.asp - Få Hotmail
på 
norsk i dag


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




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



RE: Servlet Caching question

2003-07-25 Thread Atreya Basu
Andrew,

Our JSP/Servlets perform some calculations based on some input from a
HTML Form.  These calculations are a little bit complicated so they take
time to perform.  However the output that they produce is relatively
small.  The majority of our users will give the same input, so the
output is also known for those cases.  If we can map the input given in
the form of a GET request (i.e. the URL) to a cache of outputs, we could
save a lot of time.

So that is why we would like to cache the output.

Another question I have is, once a Servlet is executed, does it get
stored in memory so that it doesn't have to be read off the disc next
time?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Bodycombe, Andrew [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 2:06 PM
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question

Just one question:
The output from a servlet/JSP is dynamic, so why would you want to cache
the
output?

-Original Message-----
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2003 18:03
To: 'Tomcat Users List'
Subject: RE: Servlet Caching question


Okay,

So if I want to do some caching for say: GET requests.  Is there a way
to cache output based on URL?  Is this kind of thing simply not
supported, and I will have to go to some other application server.

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: Servlet Caching question


Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Atreya Basu [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 25, 2003 12:42 PM
>To: [EMAIL PROTECTED]
>Subject: Servlet Caching question
>
>Hello,
>
>I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
>someone direct me to where I could find some information on that?
>
>_
>Atreya Basu
>Developer,
>Greenfield Research Inc.
>e-mail: atreya (at) greenfieldresearch (dot) ca
>



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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

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




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



RE: Servlet Caching question

2003-07-25 Thread Atreya Basu
Okay,

So if I want to do some caching for say: GET requests.  Is there a way
to cache output based on URL?  Is this kind of thing simply not
supported, and I will have to go to some other application server.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: Servlet Caching question


Howdy,
Basically, tomcat doesn't.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Atreya Basu [mailto:[EMAIL PROTECTED]
>Sent: Friday, July 25, 2003 12:42 PM
>To: [EMAIL PROTECTED]
>Subject: Servlet Caching question
>
>Hello,
>
>I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
>someone direct me to where I could find some information on that?
>
>_
>Atreya Basu
>Developer,
>Greenfield Research Inc.
>e-mail: atreya (at) greenfieldresearch (dot) ca
>



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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



Servlet Caching question

2003-07-25 Thread Atreya Basu
Hello,
 
I wanted to know how Tomcat caches the output of Servlets/JSPs.  Could
someone direct me to where I could find some information on that?
 
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca
 


RE: trouble precompiling JSPs

2003-07-21 Thread Atreya Basu
No unfortunately that didn't help.

Here is what I typed:
./jspc.sh /tmp/Stoichiometric.jsp

What I got in return was:
at org.apache.jasper.JspC.locateUriRoot(JspC.java:628)
at org.apache.jasper.JspC.execute(JspC.java:759)
at org.apache.jasper.JspC.main(JspC.java:823)


If I typed:
./jspc.sh -uriroot /usr/web/cfbcad/webapps/ROOT -d /tmp
/tmp/Stoichiometric.jsp

I got a file called Stoichiometric_jsp.java but it was empty.

What am I doing wrong?
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] 
Sent: July 21, 2003 4:59 AM
To: Tomcat Users List
Subject: RE: trouble precompiling JSPs


i think there should be no space between -d and the path, and no space
between the two paths, i think u must use ; to separate the paths ...

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: 21. juli 2003 06:09
To: Tomcat Users List
Subject: trouble precompiling JSPs


Hello,

I'm having some difficulty pre-compiling my JSPs.  Could anyone give 
some insight into this?

I type:
jspc -d d:/psx_apps/WEB_INF d:\Projects\PSX_Gotter_2\CheckStatus.jsp

and I get:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
at org.apache.jasper.JspC.locateUriRoot(JspC.java:628)
at org.apache.jasper.JspC.execute(JspC.java:759)
at org.apache.jasper.JspC.main(JspC.java:823)


Any ideas anyone?

-- 

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426




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


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




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



trouble precompiling JSPs

2003-07-20 Thread Atreya Basu
Hello,

I'm having some difficulty pre-compiling my JSPs.  Could anyone give 
some insight into this?

I type:
jspc -d d:/psx_apps/WEB_INF d:\Projects\PSX_Gotter_2\CheckStatus.jsp
and I get:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
   at org.apache.jasper.JspC.locateUriRoot(JspC.java:628)
   at org.apache.jasper.JspC.execute(JspC.java:759)
   at org.apache.jasper.JspC.main(JspC.java:823)
Any ideas anyone?

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Great,

Thanks for the feedback.  I'll add that to the HOWTO.

Atreya

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 4:02 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

OK, I think I've finally managed to fix it. What I did was change the
part of workers2.properties that read:

--- workers2.properties snip ---
# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/tomcat/lib
OPT=-Dtomcat.home=c:/tomcat
OPT=-Dcatalina.home=c:/tomcat
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log
--- workers2.properties snip ---

to...:

--- workers2.properties snip ---
# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:\tomcat\bin\tomcat-jni.jar
OPT=-Dtomcat.home=c:\tomcat
OPT=-Dcatalina.home=c:\tomcat
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=c:\Apache2\logs\stdout.log
stderr=c:\Apache2\logs\stderr.log
--- workers2.properties snip ---

The giveaway was that I didn't appear to have a \tomcat\lib directory!!
Now when I start apache, I can get to the examples folder, and run the
examples etc. So I'm hoping all will be good from now on.

Thank you very much Atreya and John for your support in this. I noticed
a post to the list that used the '
OPT=-Djava.class.path=c:\tomcat\bin\tomcat-jni.jar' so I thought I'd
give it a shot. I also changed a few slashes to backslashes seeing as
its windows. No idea why/how it now works, so I'm hoping this is all ok?
What do you reckon?

Thanks again for your time!

Tristan



-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2003 19:30
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Tristan,

I had a similar problem with ClassNotFoundException.

What I had to do was find all the jar files and uncompress them into the
lib directory.  That was about 10MB worth of Jar files and it took me
about 30 mins to do, but that was the only way to get it running.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 3:25 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Still no joy! :(

The line 'handler.list= apr,request,channelJni' was definitely in my
jk2.properties, but I must have deleted the line return when I emailed
it by accident.

When I start apache, http://localhost/examples gives me the same
Internal Server Error page. I've also noticed the following output in my
\Apache2\logs\error.log file:

[Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008
[Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running
[Fri Jul 18 19:18:29 2003] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed
for worker.jni:onStartup
[Fri Jul 18 19:18:29 2003] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed
for worker.jni:onShutdown
[Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0
[Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start
mutex.
[Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker
threads.

Thanks for the help, much appreciated,

Tristan

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2003 18:26
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Alright,

Those all look good.  But in your jk2.properties file you should put in:

handler.list= apr,request,channelJni


Next, if you installed the Apache there should be an applet on the
taskbar, next to the time.  You shouldn't have to start Tomcat
separately.  Simply click on the applet and choose to start Apache.
Wait about a minute for Tomcat to start.  Then hit up:
http://localhost/examples

That should show you a directory.  


_
Atreya Basu
Developer,
Greenfield Researc

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Tristan,

I had a similar problem with ClassNotFoundException.

What I had to do was find all the jar files and uncompress them into the
lib directory.  That was about 10MB worth of Jar files and it took me
about 30 mins to do, but that was the only way to get it running.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 3:25 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Still no joy! :(

The line 'handler.list= apr,request,channelJni' was definitely in my
jk2.properties, but I must have deleted the line return when I emailed
it by accident.

When I start apache, http://localhost/examples gives me the same
Internal Server Error page. I've also noticed the following output in my
\Apache2\logs\error.log file:

[Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008
[Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running
[Fri Jul 18 19:18:29 2003] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed
for worker.jni:onStartup
[Fri Jul 18 19:18:29 2003] [error] Can't find class
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed
for worker.jni:onShutdown
[Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0
[Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start
mutex.
[Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker
threads.

Thanks for the help, much appreciated,

Tristan

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2003 18:26
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Alright,

Those all look good.  But in your jk2.properties file you should put in:

handler.list= apr,request,channelJni


Next, if you installed the Apache there should be an applet on the
taskbar, next to the time.  You shouldn't have to start Tomcat
separately.  Simply click on the applet and choose to start Apache.
Wait about a minute for Tomcat to start.  Then hit up:
http://localhost/examples

That should show you a directory.  


_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 2:07 PM
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Atreya,

I've set all the environment variables, and have made the APACHE_HOME
addition at your recommendation. My .properties files are appended
below.

The directories are as follows

Apache 2c:\Apache2
Tomact 4.1  c:\tomcat
Java 1.4.2  c:\java

Thanks for your help!

Tristan
(jk2.properties and workers2.properties files attached below)

--- start jk2.properties ---

#Shared memory directive
shm.file=c:/Apache2/logs/jk2.shm
size=10485760

# Set the desired handler list handler.list=apr,request,channelJni

# added to resolve 1st issue in original email
apr.NativeSo=c:/Apache2/modules/jkjni.dll
# If set to inprocess the mod_jk2 will Register natives itself # This
will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess

--- end jk2.properties ---

--- start workers2.properties ---

[shm]
file=c:/Apache2/logs/jk2.shm
size=10485760

# Define the comunication channel 
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/tomcat/lib
OPT=-Dtomcat.home=c:/tomcat
OPT=-Dcatalina.home=c:/tomcat
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat. class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=c:/Apache2/logs/stdout.log stderr=c:/Apache2/logs/stderr.log

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat. class=org/apache/jk/apr/TomcatStarter
ARG=stop

# Uri mapping
[uri:/examples]
info=Example webapp in the default context.
context=/examples

[uri:/examples/*]
info=Map the whole webapp

[status:]
info=Status worker, displays runtime information
channel=channel.socket:localhost:8009

[uri:/status/*]
worker=status:localhost:8009
group=status:

--- end workers2.properties ---




-
To unsubscribe, e-mail: [E

RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Alright,

Those all look good.  But in your jk2.properties file you should put in:

handler.list= apr,request,channelJni


Next, if you installed the Apache there should be an applet on the
taskbar, next to the time.  You shouldn't have to start Tomcat
separately.  Simply click on the applet and choose to start Apache.
Wait about a minute for Tomcat to start.  Then hit up:
http://localhost/examples

That should show you a directory.  


_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 2:07 PM
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Atreya,

I've set all the environment variables, and have made the APACHE_HOME
addition at your recommendation. My .properties files are appended
below.

The directories are as follows

Apache 2c:\Apache2
Tomact 4.1  c:\tomcat
Java 1.4.2  c:\java

Thanks for your help!

Tristan
(jk2.properties and workers2.properties files attached below)

--- start jk2.properties ---

#Shared memory directive
shm.file=c:/Apache2/logs/jk2.shm
size=10485760

# Set the desired handler list handler.list=apr,request,channelJni

# added to resolve 1st issue in original email
apr.NativeSo=c:/Apache2/modules/jkjni.dll
# If set to inprocess the mod_jk2 will Register natives itself # This
will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess

--- end jk2.properties ---

--- start workers2.properties ---

[shm]
file=c:/Apache2/logs/jk2.shm
size=10485760

# Define the comunication channel 
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/tomcat/lib
OPT=-Dtomcat.home=c:/tomcat
OPT=-Dcatalina.home=c:/tomcat
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat. class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=c:/Apache2/logs/stdout.log stderr=c:/Apache2/logs/stderr.log

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat. class=org/apache/jk/apr/TomcatStarter
ARG=stop

# Uri mapping
[uri:/examples]
info=Example webapp in the default context.
context=/examples

[uri:/examples/*]
info=Map the whole webapp

[status:]
info=Status worker, displays runtime information
channel=channel.socket:localhost:8009

[uri:/status/*]
worker=status:localhost:8009
group=status:

--- end workers2.properties ---




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



RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Okay,

Probably leaving the connector for 8080 un-commented won't hurt anything
while testing.  The fist thing you want to do is make sure your
environment variables are set.  You should have:
JAVA_HOME
CATALINA_HOME
APACHE_HOME
TOMCAT_HOME

Also can you post your jk2.properties and workers2.properties files?
And what are the directories for Tomcat, Apache2 and Java?



_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 12:57 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Yes, I just have to uncomment the standalone section in server.xml, and
I can then access tomcat on http://localhost:8080. However, I really
need the two working in unison!

Cheers,

Tristan

-Original Message-----
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2003 16:08
To: 'Tomcat Users List'
Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help!

Tristan,

Can you start Tomcat on its own?  

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tristan [mailto:[EMAIL PROTECTED] 
Sent: July 17, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat4-1, Apache2, jk2 setup problem - help!

Hi,

I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and
jk2. However, I seem to be encountering some difficulties.

The problem is, I can't seem to get tomcat to start as a service when I
request a url (e.g. http://localhost/examples), it simply returns.

***
The servlet container is temporary unavailable or being upgraded 
Internal Server Error

--snip apache babble--

Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port
80
***

I noticed that starting Tomcat seems to throw some kind of java error,
but it closes the window too quickly for me to repeat exactly what it
reports. However, when I comment out the line

channelJni.disabled = 0

in my jk2.properties file, I can start tomcat standalone, and access the
examples etc through apache.

Can anyone tell me why I can not start tomcat as a process through
apache? I followed a how-to at:
http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

And believe I have made sure I have followed the instructions very
closely. Any help is very much appreciated.

Cheers,

Tristan




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



RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-18 Thread Atreya Basu
Tristan,

Can you start Tomcat on its own?  

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tristan [mailto:[EMAIL PROTECTED] 
Sent: July 17, 2003 12:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat4-1, Apache2, jk2 setup problem - help!

Hi,

I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and
jk2. However, I seem to be encountering some difficulties.

The problem is, I can't seem to get tomcat to start as a service when I
request a url (e.g. http://localhost/examples), it simply returns.

***
The servlet container is temporary unavailable or being upgraded 
Internal Server Error

--snip apache babble--

Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port
80
***

I noticed that starting Tomcat seems to throw some kind of java error,
but it closes the window too quickly for me to repeat exactly what it
reports. However, when I comment out the line

channelJni.disabled = 0

in my jk2.properties file, I can start tomcat standalone, and access the
examples etc through apache.

Can anyone tell me why I can not start tomcat as a process through
apache? I followed a how-to at:
http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

And believe I have made sure I have followed the instructions very
closely. Any help is very much appreciated.

Cheers,

Tristan


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



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



RE: Apache2 / Tomcat4-1 / mod_jk2.dll / XP setup issues

2003-07-18 Thread Atreya Basu
Tricky,

I got this problem a while ago. I think it has something to do with how
you are starting tomcat.  How are you starting it?  What are the
contents of your workers2.properties and jk2.properties files?

Atreya

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 18, 2003 11:36 AM
To: [EMAIL PROTECTED]
Subject: Apache2 / Tomcat4-1 / mod_jk2.dll / XP setup issues

Hi,

I emailed yesterday with my problems, I since followed the tutorial
provided very kindly by one of the respondents, but still no joy :(

So, what I'm trying to do is to get tomcat running as an apache process.
Tomcat appears to be sulking about this idea, and just won't have any of
it. Its perfectly happy running standalone if I uncomment the non-SSL
Coyote HTTP/1.1 Connector on port 8080 part of server.xml, but it seems
to take issue with the Coyote/JK2 AJP 1.3 Connector on port 8009.

If I run it as is from command prompt, without any of my further
attempts to fix it, I receive a 500 error in the browser. I noticed this
line in the Tomcat loading information:

INFO: APR not loaded, disabling jni components:
java.io.IOException: no jkjni in java.library.path

I found a jkjni.dll in the nightly jk2 builds folder, so thought I'd try
and see if a 'apr.NativeSo=c:/Apache2/modules/jkjni.dll' in the
jk2.properties line would smooth things over...

...it seemed to do something, as now when tomcat started it presented me
with a dialog box 'java.exe - Unable to Locate Component' with the
message 'This application has failed to start because libapr.dll was not
found. Re-installing the application might solve this problem' - I wish!
Anyway, I noticed this DLL was also in the jk2 nightly builds, so
dropped a copy in the tomcat/bin directory...

...but no. Tomcat now informs me of more problems :( such as:

[Fri Jul 18 15:24:25 2003] (error ) [jk_config_file.c (279)]
config.update(): Can't find config file
${serverRoot}/conf/workers2.properties
[Fri Jul 18 15:24:25 2003] (info ) [jk_config.c (246)]
config.setAttribute(): Error setting config: file
${serverRoot}/conf/workers2.properties
[Fri Jul 18 15:24:25 2003] (info ) [jk_logger_file.c (177)] Initializing
lof file stderr
[Fri Jul 18 15:24:25 2003] (error ) [jk_shm.c (333)] shm.init(): No file
[Fri Jul 18 15:24:25 2003] (info ) [jk_workerEnv.c (403)]
workerEnv.init() ok ${serverRoot}/conf/workers2.properties

and still throws the same 500 error in the browser (I wasn't entirely
surprised though, its been showing me that page for 3 long days now!!).
I even set a serverRoot in system properties (didn't work)...

So, can anyone shed some light? I'd really appreciate some guidance.
Thank you very much in advance.

Tristan


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




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



RE: Tomcat4-1, Apache2, jk2 setup problem - help!

2003-07-17 Thread Atreya Basu
Hi,

I have a HowTo document at:
http://www.greenfieldresearch.ca/technical/jk2_config.html

That doesn't have a troubleshooting section but if you follow the
directions you should be on your way without any problems.

Cheers

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tricky [mailto:[EMAIL PROTECTED] 
Sent: July 17, 2003 12:24 PM
To: [EMAIL PROTECTED]
Subject: Tomcat4-1, Apache2, jk2 setup problem - help!

Hi,

I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and
jk2. However, I seem to be encountering some difficulties.

The problem is, I can't seem to get tomcat to start as a service when I
request a url (e.g. http://localhost/examples), it simply returns.

***
The servlet container is temporary unavailable or being upgraded 
Internal Server Error

--snip apache babble--

Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port
80
***

I noticed that starting Tomcat seems to throw some kind of java error,
but it closes the window too quickly for me to repeat exactly what it
reports. However, when I comment out the line

channelJni.disabled = 0

in my jk2.properties file, I can start tomcat standalone, and access the
examples etc through apache.

Can anyone tell me why I can not start tomcat as a process through
apache? I followed a how-to at:
http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html

And believe I have made sure I have followed the instructions very
closely. Any help is very much appreciated.

Cheers,

Tristan


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




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



RE: Need your help about In-process jk2 connection between Tomcat andApache on Windows 2000

2003-07-16 Thread Atreya Basu
Hi Cui,

I think that you are missing the shm directive in workers2.properties
and jk2.properties.  Adding that directive should make everything go.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Cui Xiaojing-a13339 [mailto:[EMAIL PROTECTED] 
Sent: July 16, 2003 7:00 AM
To: Tomcat Users List
Subject: Need your help about In-process jk2 connection between Tomcat
and Apache on Windows 2000

Hello All,

I am doing in-process connection for Tomcat and Apache using jk2 on
Windows 2000. The installed components are as below:

Tomcat 4.1.24
Apache 2.0.46
mod_jk2-2.0.43.dll

I have done following operation:
1. Install Tomcat in E:\jartomcatflex, it is correct.
2. Install Apache in E:\Apache2.0.46\Apache2, it is correct.
3. copy mod_jk2-2.0.43.dll to
E:\Apache2.0.46\Apache2\modules\mod_jk2.dll
4. Add following command line in httpd.conf:
LoadModule jk2_module modules/mod_jk2.dll
5. Add workers2.properties file under E:\Apache2.0.46\Apache2\conf, it
likes below:

# Define the comunication channel 
[channel.jni:jni]
info=The jni channel, used if tomcat is started
inprocess

# Define the parameters for the Java Virtual
Machine
[vm:]
info=Parameters used to load a JVM in the server
process

OPT=-Djava.class.path=e:\jartomcatflex\bin\tomcat-jni.jar
OPT=-Dtomcat.home=e:\jartomcatflex
OPT=-Dcatalina.home=e:\jartomcatflex
OPT=-Xmx128M

# JNI worker startup handler
[worker.jni:onStartup]
info=Command to be executed by the VM on
startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
stdout=e:\Apache2.0.46\Apache2\logs\stdout.log
stderr=e:\Apache2.0.46\Apache2\logs\stderr.log

# JNI worker shutdown handler
[worker.jni:onShutdown]
info=Command to be executed by the VM on
shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop

# Map the Tomcat examples webapp to the Web
server uri space
[uri:/examples/*]
info=Map the whole webapp

6. Modify jk2.properties as below:
   # Add the apr and channelJni to the list of handlers
handler.list=apr,request,container,channelJni
# The native libraries will be registered by JK2
apr.jniModeSo=inprocess

7. Comments part I, uncomments part II in server.xml

Part I
 


Part II



8. Startup Apache using below command:

Apache -k start

9. Test using http://localhost/examples/, then shown:

Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete your request.
Please contact the server administrator,
[EMAIL PROTECTED] and inform them of the time the error occurred, and
anything you might have done that may have caused the error.

More information about this error may be
available in the server error log.
 _  
Apache/2.0.46 (Win32) mod_jk2/2.0.2 Server at
localhost Port 80

The error log file shows:
[Wed Jul 16 18:01:53 2003] [error]
lb.getWorker() reenable ajp13:jni
[Wed Jul 16 18:01:53 2003] [error]
workerEnv.init() create slot epStat.0 failed
[Wed Jul 16 18:01:54 2003] [error] lb.service()
worker failed 12 for ajp13:jni
[Wed Jul 16 18:01:54 2003] [error] lb.service()
unrecoverable error...
[Wed Jul 16 18:01:54 2003] [error]
mod_jk.handler() Error connecting to tomcat 12

The stderr log file shows:
TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try
org.apache.catalina.startup.BootstrapService
Starting
org.apache.catalina.startup.BootstrapService
Created catalinaLoader in:
e:\jartomcatflex\server\lib
2003-7-16 17:53:01
org.apache.commons.modeler.Registry loadRegistry
info: Loading registry information
2003-7-16 17:53:02
org.apache.commons.modeler.Registry getRegistry
info: Creating

Servlets take a long time to output

2003-07-14 Thread Atreya Basu
Hello,

A while back I saw some postings about Servlets taking a long time to
display (20sec or more).  I know of a website www.globeandmail.com where
that exact problem occurs.  I suspect that they are using Tomcat as
their Servlet container.  I missed most of the discussions about this,
would anyone care to recap?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



In Process JK2

2003-07-14 Thread Atreya Basu

Thanks to the WIKI page I've gotten almost everything working correctly
with JK2.

The only thing that I'm not able to do is start Tomcat inprocess.

When I try to start Tomcat inprocess I get an error saying that apache
couldn't find the libjvm.so file.

Here is the error:

[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2/jre/bin/classic/libjvm\
.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2/jre/bin/client/jvm.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() failed
/usr/java/j2sdk1.4.2/jre/lib/i386/classic/l\
ibjvm.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() trying
/usr/java/j2sdk1.4.2/jre/lib/i386/client/li\
bjvm.so
[Fri Jul 11 17:38:10 2003] [notice] jni.guessJvmDll() could not find
/usr/java/j2sdk1.4.2/jre/lib/i386/c\
lient/libjvm.so in the LD_LIBRARY_PATH
[Fri Jul 11 17:38:10 2003] [error] vm.init(): no jvm_dll_path, will use
LD_LIBRARY_PATH libjvm.so
[Fri Jul 11 17:38:10 2003] [error] Can't load native library libjvm.so :
libjvm.so: cannot open shared o\
bject file: No such file or directory
[Fri Jul 11 17:38:10 2003] [error] jni.loadJvm() Error - can't load jvm
dll


I've tried to edit the jk_vm_default.c file to search the correct
directory but that doesn't do anything.

Does anyone have any insight into this?  Has anyone gotten JK2 to start
inprocess?

_________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



Re: Please help with unusual configuration

2003-07-11 Thread Atreya Basu
Yhea,

I do something similar using the virtualhost directive.  It works great.

Rick Roberts wrote:

It doesn't sound like you are doing at all unusual.
It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.
Just have the firewall block port 80 traffic and have apache listen on 
ports 80 and 443.

Then outside traffic uses https://yoursite.gov (port 443) and inside 
traffic uses http://yoursite.gov (port 80)

1 Apache
1 Tomcat
1 computer
--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


RE: JNI and Servlet

2003-07-11 Thread Atreya Basu
Ke,

Why don't you get your Servlet to print out the current directory.  That
should give you some idea of where it is looking.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Ke Song [mailto:[EMAIL PROTECTED] 
Sent: July 10, 2003 6:28 PM
To: Tomcat Users List
Subject: JNI and Servlet



Hi, I have an Java Application that access native library via JNI. The
JNI native code opens a file and retrieve some info from the file. The
application works properly in stand alone mode. However, when I run it
as a Servlet, the native code is not able to find that file in the
specified path. 

Anybody has any clue about what could be done to fix this?

thanks.

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




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



URI Mapping question

2003-07-07 Thread Atreya Basu

I've got a quick question;

In the workers2.properties I am trying to map a URL.  

Does the mapping work like a regular expression?

Can I have something like:

[uri:www.myhost.com/*/hello/*]

will the above work?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



RE: Tomcat-Apache JSP compile error

2003-07-04 Thread Atreya Basu
Hey Tim,

Yup, I read through that exact thing.  I tried all of the things there
without any luck. I'm thinking that it is simply a configuration error.
So I will just re-install everything.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: July 4, 2003 9:04 AM
To: Tomcat Users List
Subject: Re: Tomcat-Apache JSP compile error

http://jakarta.apache.org/tomcat/faq/misc.html#compile
-Tim

Atreya Basu wrote:
> Hello,
> 
> I'm having a problem compiling JSPs dynamically when using mod_jk2.  
> When I change a JSP file and try to access it I get the following
error:
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: -1 in the jsp file: null
> 
> Generated servlet error:
>[javac] Since fork is true, ignoring compiler setting.
>[javac] Compiling 1 source file
>[javac] Since fork is true, ignoring compiler setting.
> 
> And then a stack trace.
> 
> If the JSP is already compiled then of course I'm not getting the 
> problem.  I can see the generated _jsp.java file but for some reason
it 
> won't compile.
> 
> If I use Tomcat alone everything works great.  I can then go back to 
> using the JK2 connector because the class files are up to date.
> 
> Does anyone have any ideas about this?  Or has anyone seen anything
like 
> this?
> 
> Atreya
> 


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




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



RE: Tomcat-Apache JSP compile error

2003-07-04 Thread Atreya Basu
Okay,

I looked at this and it seems to be an Ant script problem.  It appears
as if Ant can't find the javac executable.  I know that this is a common
problem because I've found some discussion about it on the Tomcat
website.  The thing is it almost seems that this problem hits only some
people.  Maybe I'll do a re-install and it'll go away.

Atreya

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-----
From: Atreya Basu [mailto:[EMAIL PROTECTED] 
Sent: July 3, 2003 11:39 PM
To: Tomcat Users List
Subject: Tomcat-Apache JSP compile error

Hello,

I'm having a problem compiling JSPs dynamically when using mod_jk2.  
When I change a JSP file and try to access it I get the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.

And then a stack trace.

If the JSP is already compiled then of course I'm not getting the 
problem.  I can see the generated _jsp.java file but for some reason it 
won't compile.

If I use Tomcat alone everything works great.  I can then go back to 
using the JK2 connector because the class files are up to date.

Does anyone have any ideas about this?  Or has anyone seen anything like

this?

Atreya

-- 

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426




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




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



Tomcat-Apache JSP compile error

2003-07-03 Thread Atreya Basu
Hello,

I'm having a problem compiling JSPs dynamically when using mod_jk2.  
When I change a JSP file and try to access it I get the following error:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
   [javac] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file
   [javac] Since fork is true, ignoring compiler setting.
And then a stack trace.

If the JSP is already compiled then of course I'm not getting the 
problem.  I can see the generated _jsp.java file but for some reason it 
won't compile.

If I use Tomcat alone everything works great.  I can then go back to 
using the JK2 connector because the class files are up to date.

Does anyone have any ideas about this?  Or has anyone seen anything like 
this?

Atreya

--

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426


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


RE: reply urgently tomcat installation query !!!!!!!

2003-07-03 Thread Atreya Basu
I don't think that the current version of Tomcat works with any JDK less
than 1.4.  So you may want to get the latest JDK (1.4.2 is the latest I
believe).

Give that a try first and then before you start tomcat check that the
environment variables are indeed set properly with 'set'.  That will
list your current settings.  

Good luck

_________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: harpreet kapur [mailto:[EMAIL PROTECTED] 
Sent: July 3, 2003 12:25 PM
To: [EMAIL PROTECTED]
Subject: reply urgently tomcat installation query !!!

sir/mam
i have tried to install tomcat on windows 98
several times and tht mens several timesss actuallly 20 times
but i am not able to install it
pl
cld u see the error its giving on startup command i ran on command mode
and let me know wht RE CHANGES REQUIRED IF ANY??pl help me out
I have noone to help me out as none of my aquaintances know java
hope someone replies sooon
 
I HAVE GIVEN THE RIGHT PATH AS FAR AS I KNOW 
I.E. in autoexec.bat file
i did the following:
 
 set JAVA_HOME =C:\jdk1.2
set CATALINA_HOME = C:\TOMCAT
set PATH = %PATH%;C:\jdk1.2\bin;C:\TOMCAT\bin
 
ERROR:
 
C:\Tomcat\bin>startup
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:
Invalid switch - -DJAVA.ENDORSED.DIRS=


SMS using the Yahoo! Messenger;Download latest version.



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



RE: New context

2003-07-03 Thread Atreya Basu
Okay,

So I guess you tried to use the Embedded version of Tomcat.  You should
have a look at http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
That should explain well how to dynamically load a new context.  The
other option is if you have a Tomcat server running is to use the
Manager Application.

You probably want to use it to deploy a new Web Application.  The thing
that you may want to do is use the HTTP command interface to upload a
WAR and deploy the application.  I think it would go:
http://host:port/manager?deploy=/context_path with the web app being
upload as a WAR file in a PUT request.  

This is pretty rough but have you checked out
"tomcat-docs/manager-howto.html" ?  That should give you an idea of what
is possible using the manager app.  There is also a GUI version of the
app but I'm guessing that you want to do this programmatically.



_________
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Elisabeth Rotbach [mailto:[EMAIL PROTECTED] 
Sent: July 3, 2003 7:25 AM
To: [EMAIL PROTECTED]
Subject: New context

Hello,

I would like to create (install) a new context (just a direcotry) from
my 
application
(in a ServletContextListener per exemple).

I had see the ServletManager source and had search in archive mail
whitout 
success.
If I use : org.apache.catalina.startup.Embedded, catalina.bat not found
this 
class !

Have you an idea to do this ?

Thanks,


Elisabeth J.
Toulouse

_
MSN Search, le moteur de recherche qui pense comme vous !  
http://search.msn.fr/


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




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



RE: can not build jk or jk2

2003-07-03 Thread Atreya Basu
Hi,

I tried building with ant also and got no end to errors.  I think that
the ANT build requires some extra libraries and some external ant tools
also.  The best way to do it is to use configure and then make.



_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Marc Muncke [mailto:[EMAIL PROTECTED] 
Sent: July 3, 2003 8:19 AM
To: [EMAIL PROTECTED]
Subject: can not build jk or jk2

Hi

I am can not get jk or jk2 connector compiled (ant).
I think, there are files missing in the package ?

when I use jk from :

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1
.2.4/

and type >ant
i recieve this error: 

BUILD FAILED
file:/home/mm/jakarta-tomcat-connectors-jk-1.2.4-src/jk/build.xml:139:
Warning: 
Could not find file /home/mm/jakarta-tomcat-connectors-jk-1.2.4-
src/coyote/build/lib/tomcat-coyote.jar to copy.

coyote directory is not in the archive...

when I try the same with j2k from :
http://jakarta.apache.org/builds/jakarta-tomcat-
connectors/jk2/release/v2.0.2/src/

and type ant in the directory where the archive was extracted to I
recieve :

coyote:

BUILD FAILED
file:/home/mm/jakarta-tomcat-connectors-jk2-2.0.2-src/build.xml:11: 
Basedir /home/mm/jakarta-tomcat-connectors-jk2-2.0.2-src/util does not
exist

--
can someone give me a hint where I get an archive that has all files
included 
that are needed for the build.xml to build j2k 2.0.2 ?

regards

Marc Muncke


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




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



RE: New context

2003-07-03 Thread Atreya Basu
Just to understand your question... You are trying to dynamically create
a new context?  Like when Tomcat has already started?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Elisabeth Rotbach [mailto:[EMAIL PROTECTED] 
Sent: July 3, 2003 7:25 AM
To: [EMAIL PROTECTED]
Subject: New context

Hello,

I would like to create (install) a new context (just a direcotry) from
my 
application
(in a ServletContextListener per exemple).

I had see the ServletManager source and had search in archive mail
whitout 
success.
If I use : org.apache.catalina.startup.Embedded, catalina.bat not found
this 
class !

Have you an idea to do this ?

Thanks,


Elisabeth J.
Toulouse

_
MSN Search, le moteur de recherche qui pense comme vous !  
http://search.msn.fr/


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




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



RE: Compensating for applet security restrictions

2003-07-03 Thread Atreya Basu

If you need to read and write to a file, just keep the files on the
server.  You can pull a resource off the originating server to read
something.  Writing to a file is probably going to be a problem however.
You could always sign the applet and then you would be able to read and
write all you wanted.  

The other option is to simply deploy it as a Java Application instead of
an Applet.  That seems a lot more appropriate for what you are trying to
do.

Atreya
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca
-Original Message-
From: Susan Hoddinott [mailto:[EMAIL PROTECTED] 
Sent: July 3, 2003 2:35 AM
To: Tomcat Users List
Subject: Compensating for applet security restrictions

Hello,
 
I currently have a JSP with an APPLET tag (including EMBED and OBJECT
references) which runs a JAR file located on my server.  The program
runs fine but because the APPLET is run by the Java plug-in whenever it
needs to read or write data it attempts to read or write the data from
or on the client machine, which is clearly inappropriate.  I do not want
to use servlets as I would like to distribute the APPLET and program
when I have finished and do not want to assume servlet support.
 
The jar file first program is a JApplet and this creates a JFrame using
a normal class file.  All other programs are normal classes (i.e.
non-applets).  I want to use the graphics environments on the client
machine as my own web server does not have an installed graphics
environment.
 
I have been investigating URLConnections, Sockets, Proxy Servers and RMI
and have been left feeling confused as I am unclear which is the best
approach and all seem very complicated to overcome what seems to be a
simple problem.  Furthermore, all examples seem to use a single text
file whereas I want to default all IO to the server rather than the
client.  Does anyone know a solution for this problem?
 
Regards,
Susan Hoddinott
http://www.hexworx.com
 



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



undefined symbol: apr_md5_final

2003-07-02 Thread Atreya Basu
My Tomcat works well but in the Catalina.out file I get the following
error:

INFO: APR not loaded, disabling jni components: java.io.IOException:
/usr/local/apache2/modules/jkjni.so:
/usr/local/apache2/modules/jkjni.so: undefined symbol: apr_md5_final


Anyone know what that might mean?


_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



RE: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with mod_jk)

2003-07-02 Thread Atreya Basu
I have Apache 2 and JK2 working but I get that annoying error:

jk_init() Can't find child 3993 in scoreboard

Which file was it that you had to make writeable?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Yishay Mor [mailto:[EMAIL PROTECTED] 
Sent: July 2, 2003 2:59 PM
To: Tomcat Users List
Cc: Gordon Simpson
Subject: Re: The notorious RH8+Apache2.0.4+Mod_jk2 (was: Re: HELP with
mod_jk)

Yeee Ha!!! Hallelujah!  :-)

yup. that was it. now you can see the good 'ol tomcat ring tone at 
http://www.weblabs.eu.com/index.jsp

Next time you're in London, let me buy you a beer.

thanks!

- Yishay

p.s.

So, I guess if anyone else has the same problem, this config should work

for you too...

Eric J. Pinnell wrote:

>I think JkSet config.file needs a full path.  You can't short cut it
like
>you can with a LoadModule.
>
>JkSet config.file /path/to/apache/conf/workers2.properties.
>
>I think right now it's not seeing your config file.
>
>Dunno...  try it.
>
>-e
>
>On Wed, 2 Jul 2003, Yishay Mor wrote:
>
>  
>
>>I've read the thread(s), gone through the jakarta docs, read a dozen
>>how-tos, still no go.
>>
>>Platform:
>>
>>* RedHat 8, with its -
>>* custom Apache (2.0.4 w/ modifications?)
>>* Tomcat 4.1
>>* mod_jk2  binaries for RH from
http://www.jpackage.org/rpm.php?id=1133
>>
>>Situation:
>>===
>>Tomcat works, on 8080 (although the  admin app is bogus, but that's on
>>another thread)
>>Apache identifies mod_jk2, but then fails on
>>[error] shm.init(): No file
>>[error] jk2_init() Can't find child 3993 in scoreboard
>>
>>I've actually managed to hook them up using ProxyPass, but that's too
>>crude a hack to satisfy me,
>>
>>Analysis
>>==
>>If  I could get the shm to work, my life will be given back to me.
>>
>>I've cut & paste relevant sections of our config files on the admin
wiki:
>>http://www.weblabs.eu.com/cgi-bin/wiki.pl?AdminPage/Scratch
>>
>>Here's a summary:
>> httpd.conf: ---
>>LoadModule jk2_module modules/mod_jk2.so
>>JkSet config.file conf/workers2.properties
>>
>> jk2.properties: ---
>>handler.list=channelSocket,request
>>channelSocket.port=8009
>>shm.file=/etc/httpd/logs/jk2.shm
>>
>>--- workers2.properties: -
>>[shm]
>>file=/etc/httpd/logs/shm.file
>>size=1048576
>>
>># Example socket channel, override port and host.
>>[channel.socket:localhost:8009]
>>port=8009
>>host=localhost
>>
>># define the worker
>>[ajp13:localhost:8009]
>>channel=channel.socket:localhost:8009
>>
>># Uri mapping
>>[uri:*.jsp]
>>worker=ajp13:localhost:8009
>>
>># Map the Tomcat examples webapp to the Web server uri space
>>[uri:/examples/*]
>>info=Map the whole webapp worker=ajp13:localhost:8009
>>
>>
>>--- server.xml: 
>>
>>
>>>   port="8009" minProcessors="5" maxProcessors="75"
>>   enableLookups="true" redirectPort="8443"
>>   acceptCount="10" debug="0" connectionTimeout="20"
>>   useURIValidationHack="false"
>>
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>
>>
>>
>>>   port="8007" minProcessors="5" maxProcessors="75"
>>   acceptCount="10" debug="0"/>
>>
>>
>>-- error.log 
>>
>>[error] shm.init(): No file
>>[error] jk2_init() Can't find child 3993 in scoreboard
>>[error] shm.init(): No file
>>[error] mod_jk child init 1 -2
>>[error] jk2_init() Can't find child 3994 in scoreboard
>>:
>>[error] mod_jk child init 1 -2
>>[notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal
>>operations
>>
>>
>>- Yishay
>>
>>--
>>**
>>Yishay Mor
>>
http://ioewebserver.ioe.ac.uk/ioe/cms/get.asp?cid=4381&4381_0=7303
>> [EMAIL PROTECTED]  Ph +44(0)20 7612 6963 F +44(0)20 7612 6964
>> AIM,Yahoo: yishaym; Jabber: [EMAIL PROTECTED]; ICQ:
179772099
>>
>> If this helped you, please take the time to rate the value of
this post:
>> h

RE: Apache-Tomcat configuration question

2003-07-02 Thread Atreya Basu
Could I do the following:

[uri:myDir/Servlet/*]
context=myDir



Is that the proper use of the URI directive?

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: July 2, 2003 12:53 PM
To: Tomcat Users List
Subject: Re: Apache-Tomcat configuration question


Most people don't mix servlets and JSP, in which case you would use 
something like

[uri:/myDir/servlet/*]
worker=ajp13:localhost:8009
 In the case of something like Struts, servlets are mapped to URLs
ending 
in *.do, so you would do the same as with JSP:

[uri:/myDir/*.do]
worker=ajp13:localhost:8009

John

On Wed, 02 Jul 2003 12:46:04 -0300, Atreya Basu 
<[EMAIL PROTECTED]> wrote:

> Could I ask you to elaborate a bit more?
>
> Say I have the following, would it be correct?
>
> [httpd.conf]
> Alias /myDir /var/web/someDir
>
> [server.xml]
> 
>
> [workers2.proeprties]
> [uri:/myDir/*.jsp]
> worker=ajp13:localhost:8009
> context=myDir
>
> In that case what about the Servlet mapping?
>
>
> _
> Atreya Basu
> Developer,
> Greenfield Research Inc.
> e-mail: atreya (at) greenfieldresearch (dot) ca
>
> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2,
2003 
> 12:34 PM
> To: Tomcat Users List
> Subject: Re: Apache-Tomcat configuration question
>
>
> Use a map.
>
> JK example:
>
> JkMount /*.jsp ajp13
>
> JK2 example
>
> [uri:/examples/*.jsp]
> worker=ajp13:localhost:8009
>
> John
>
> On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu 
> <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> Is it possible to have a directory where all the HTML files and file
>> permissions etc. are handled by Apache and all the JSPs and servlets
>> handled by Tomcat?
>>
>> I have Tomcat and Apache working successfully using JK2.  What I want
> to
>> do is the following:
>>
>> Say I have a directory: /mydirectory
>>
>> And I want to access HTML pages (handled by Apache) via:
>> http://myhost/mydirectory/
>> But I want to access servlets and JSPs also (handled by Tomcat) via:
>> http://myhost/mydirectory/
>>
>> Is there any way to do this without having to create a separate
>> directory for the JSPs and servlets?
>> _
>> Atreya Basu
>> Developer,
>> Greenfield Research Inc.
>> e-mail: atreya (at) greenfieldresearch (dot) ca
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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




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



RE: Apache-Tomcat configuration question

2003-07-02 Thread Atreya Basu
Could I ask you to elaborate a bit more?

Say I have the following, would it be correct?

[httpd.conf]
Alias /myDir /var/web/someDir

[server.xml]


[workers2.proeprties]
[uri:/myDir/*.jsp]
worker=ajp13:localhost:8009
context=myDir

In that case what about the Servlet mapping?


_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: July 2, 2003 12:34 PM
To: Tomcat Users List
Subject: Re: Apache-Tomcat configuration question


Use a map.

JK example:

JkMount /*.jsp ajp13

JK2 example

[uri:/examples/*.jsp]
worker=ajp13:localhost:8009

John

On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu 
<[EMAIL PROTECTED]> wrote:

> Hello,
>
> Is it possible to have a directory where all the HTML files and file
> permissions etc. are handled by Apache and all the JSPs and servlets
> handled by Tomcat?
>
> I have Tomcat and Apache working successfully using JK2.  What I want
to
> do is the following:
>
> Say I have a directory: /mydirectory
>
> And I want to access HTML pages (handled by Apache) via:
> http://myhost/mydirectory/
> But I want to access servlets and JSPs also (handled by Tomcat) via:
> http://myhost/mydirectory/
>
> Is there any way to do this without having to create a separate
> directory for the JSPs and servlets?
> _
> Atreya Basu
> Developer,
> Greenfield Research Inc.
> e-mail: atreya (at) greenfieldresearch (dot) ca
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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




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



Apache-Tomcat configuration question

2003-07-02 Thread Atreya Basu
Hello,

Is it possible to have a directory where all the HTML files and file
permissions etc. are handled by Apache and all the JSPs and servlets
handled by Tomcat?

I have Tomcat and Apache working successfully using JK2.  What I want to
do is the following:

Say I have a directory: /mydirectory

And I want to access HTML pages (handled by Apache) via:
http://myhost/mydirectory/
But I want to access servlets and JSPs also (handled by Tomcat) via:
http://myhost/mydirectory/

Is there any way to do this without having to create a separate
directory for the JSPs and servlets?
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



RE: Help. how to get ServletContext ?

2003-06-27 Thread Atreya Basu
Try calling getServletContext().  But I think you have to set
CrossContext to 'true' in the Context element of Server.xml

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Antony [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2003 5:18 AM
To: tomcat mail list
Subject: Help. how to get ServletContext ?

Hi,
I have a class which implements HttpSessionBindingListener
interface.
The class is put in the session scope. I have to get the ServletContext
from
inside this class. How to get it ?. I don't know much about servlets and
Java.
Antony

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




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



jk/jk2: can't locate VM error

2003-06-26 Thread Atreya Basu
I'm getting a weird error where it says:

[Fri Jun 20 17:05:34 2003] [error] env.createBean2(): Factory error
creating vm: ( vm, )
[Fri Jun 20 17:05:34 2003] [error] config.update(): Can't create vm:

Anyone have any ideas about this?
_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca




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



Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-24 Thread Atreya Basu
Hi Mark,

I had a similar problem with classNotFoundException.  My only option was 
to find every single .jar file and class file and extract/copy them into 
the server/lib directory.  I'm not sure what the problem was but that 
seemed to have fixed it.

Mark Hayes wrote:

I tried two suggestions (don't use LFN's. Comment out MBeans support) but
symptom persists. See env var settings below.  I have not made any changes
to jar's in the endorsed directory.
C:\Program Files\Apache Group\Tomcat 4.1\bin>catalina run
Using CATALINA_BASE:   C:\Progra~1\Apache~1\Tomcat~1.1
Using CATALINA_HOME:   C:\Progra~1\Apache~1\Tomcat~1.1
Using CATALINA_TMPDIR: C:\Progra~1\Apache~1\Tomcat~1.1\temp
Using JAVA_HOME:   C:\j2sdk1~1.1_0
Jun 25, 2003 9:28:55 AM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
Installation Directories:
C:\Program Files\Apache Group\Tomcat 4.1\bin
C:\j2sdk1.4.1_03
Env Var's:
CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.1
JAVA_HOME=C:\j2sdk1~1.1_0


I too am getting an uneasy feeling that Windows (registry?) is confused.  I
tried all this on another machine at home and it worked OK.  If I recall, I
may have installed the TC 1.4.1_03 exe before uninstalling the TC 4.0.1 exe.
I have since uninstalled all TC installs and installed only the TC 1.4.1_03
exe.  I have looked threw the Win registry for things that might be out of
wack, but most of the entries seem rather benign.
Pray tell this does not require a windows reinstall.
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 3:03 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000
It sounds like it is getting confused with your various Tomcat installs,
what
are the environment variables you have got set?
A post in the archive suggested editing out the JMX MBeans stuff in
server.xml
and it worked for the original poster, so if you don't need it (if you don't
know what it is it is likely that you don't) so in server.xml comment out
the
following:

 
 
I would be more tempted to look more at the environment variables and
possible
problems from the long paths though as a proper solution.
Regards,
--
Jason Bainbridge
http://jblinux.org
On Tue, 24 Jun 2003 17:32, Mark Hayes wrote:
 

Unable to start Tomcat 4.1.24 with sdk 1.4.1_03 on Windows 2000

ClassNotFoundException: org.apache.catalina.core.StandardServer

C:\Program Files\Apache Group\Tomcat 4.1\bin>catalina run
Using CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME:   C:\j2sdk1.4.1_03
Jun 24, 2003 5:22:15 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
Have struggled with this for 2 days. Symptom occurs with LE version,
   

non-LE
 

version, exe version, and zip version  Symptom occurs with earlier version
of TC 4.1.x (4.1.12).  TC 4.0.1 starts OK on sdk 1.4.1_03
I am using "catalina run" to invoke Tomcat from the Tomcat bin directory.
JAVA_HOME and CATALINA_HOME are both set.
StandardServer is in C:\Program Files\Apache Group\Tomcat
4.1\server\lib\catalina.jar
Has anyone encountered this?  Have tried numerous uninstall/reinstall and
search hi and low with no success.


- -
COL Ltd in Hong Kong has checked this message for all
known viruses using SkyScan-AV powered by MessageLabs.
For information on this service e-mail [EMAIL PROTECTED]
or visit www.col.com.hk
- -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- -
COL Ltd in Hong Kong has checked this message for all
known viruses using SkyScan-AV powered by MessageLabs.
For information on this service e-mail [EMAIL PROTECTED]
or visit www.col.com.hk
- -
- -
COL Ltd in Hong Kong has checked this message for all 
known viruses using SkyScan-AV powered by MessageLabs. 
For information on this service e-mail [EMAIL PROTECTED] 
or visit www.col.com.hk
- -

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

--

Developer
Greenfield Research 

RE: How use an external C program in a Servlet

2003-06-24 Thread Atreya Basu
Hi Holger,

There are two things that you can do.  If your programme is a Library
then you can use JNI to create native wrappers then just call them from
the servlet.  This is pretty straightforward and I use them.

The other is to use: Runtime.getRuntime().exec();
That will just execute a programme, you can get the Process object and
get it's InputStream and OutputStream.

Good Luck,

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Holger Klawitter [mailto:[EMAIL PROTECTED] 
Sent: June 24, 2003 6:46 AM
To: Tomcat Users List
Subject: Re: How use an external C program in a Servlet

Am Dienstag, 24. Juni 2003 11:13 schrieb Michel Jubault:
> Thanks, I try it straight away !
> What kind of problem could occur with security ?

It depends on your situation. If any user may upload servlets, these
servlets 
may execute every program on that machine - with the rights of the
tomcat 
account, which might be root! Same problem if the arguments to the C
program 
are not sufficiently checked.

Mit freundlichem Gruß / With kind regards
Holger Klawitter
--
[EMAIL PROTECTED]


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



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



RE: installing a servlet

2003-06-24 Thread Atreya Basu
Yhea,

That's what I meant.  Getting Tomcat to work with Apache.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: June 24, 2003 10:25 AM
To: Tomcat Users List
Subject: RE: installing a servlet


Howdy,

>There seems to be a great deal of discussion about JK2.  I know that
JK2
>is the outstanding issue for me in getting Tomcat running.   Maybe it

JK2 is not required to get tomcat running.  It's one option that you can
use if you want to connect Apache to tomcat.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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




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



RE: installing a servlet

2003-06-24 Thread Atreya Basu
There seems to be a great deal of discussion about JK2.  I know that JK2
is the outstanding issue for me in getting Tomcat running.   Maybe it
would be a good idea to share everyone's experiences about JK2, like
what works and what doesn't.  Then we could at least have something to
go on.  Maybe we could post our .properties files somewhere along with
the log and see if we can either reproduce the error or learn from it.



_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Tony Grant [mailto:[EMAIL PROTECTED] 
Sent: June 24, 2003 10:02 AM
To: Tomcat Users List
Subject: Re: installing a servlet

On Tue, 2003-06-24 at 14:42, John Turner wrote:
> Donwgrading and using mod_webapp is the WORST thing you could do, for
all 
> sorts of reasons.  Security, for one.  Performance, for another.
Future 
> extensibility and growth, for another.

My question was: downgrade to mod_jk? (I have read that mod_webapp is
depreciated)

> Mod_jk and mod_jk2 work.  This is a fact.  

I believe you and they do even on my server! But only for JSP and I
can't see what _I_ am doing wrong. So John please, all the fault is
mine! I took the time to learn how to install Tomcat a few years back. I
moved up through the versions. I documented how I got it working and
published my HOWTO which got 3500 hits the day it appeared in Apache
week (so I guess I gave a little bit back to the comunity...).

What went wrong was moving up to Apache2 and Tomcat 4.1.24. I am at the
bottom of the learning curve again.

Should I drop mod_jk2 and try mod_jk? 

Cheers

Tony Grant
-- 
www.tgds.net Library management software toolkit, 
redhat linux on Sony Vaio C1XD, 
Dreamweaver MX with Tomcat and PostgreSQL


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




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



RE: easy question

2003-06-24 Thread Atreya Basu
The easiest thing to do is the following:

Put Test into a package.  Then copy the proper package directory
structure into WEB-INF/classes.

Then add the fully qualified class-name of Test into your JSP.  This
will work. 

If you have a class that is not in a package you will have a hard time
resolving it.  
_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: David Zellhoefer [mailto:[EMAIL PROTECTED] 
Sent: June 24, 2003 6:29 AM
To: [EMAIL PROTECTED]
Subject: easy question

Hello!

I have a easy question for you:

1)I have written a class called Test, compiled it and placed it in
~/WEB-INF/classes/
2) Now I want to use objects from Test in a JSP, but if I try to use
Test Tomcat always tells me that it is not able to resolve the symbol.

What shall I do? Do I need to change the web.xml?

Thanks,

David

PS: I've restarted Tomcat 4.1.12 everytime I changed something in the
WEB-INF directory.


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


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



RE: Need help on deploying application

2003-06-23 Thread Atreya Basu
Charles,

Try deploying it without the web.xml file.  

Can you maybe post the login.jsp file that you are trying to use?  I can
see if I can reproduce the problem on my machine.

Another thing that you may try doing is copying a directory in
\webapps\examples\jsp.  Just copy the directory right out into
\webapps\.  Then restart Tomcat.  If you get an error try putting
in a WEB-INF directory along with a web.xml file.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 12:20 PM
To: [EMAIL PROTECTED]
Subject: Need help on deploying application

I have installed Tomcat on my workstation and I'm able to access the
applications supplied with the distribution. I have two Tomcat books and
I'm trying to deploy an application from one of them as a tool to learn
Tomcat basics. I am unable to get to the application. Below is what I
believe to be the essential facts of my situation. I would appreciate
someone looking over this and telling me where I've gone wrong or
offering suggestions on other debugging techniques. Thanks.

Here is the information from the Tomcat Manager page:
Tomcat version: Apache Tomcat/4.1.24 
JVM version:
1.4.1_02-b06
JVM supplier:
Sun Microsystems Inc. 
OS:
Windows XP 
OS version:
5.1 
Processor architecture:
x86 

My CATALINA_HOME environment variable points to:
D:\Program Files\Apache Group\Tomcat 4.1

My application is at this path location:
D:\Program Files\Apache Group\Tomcat 4.1\webapps\apress

I have the files "login.jsp" and "welcome.jsp" in this directory.

I have this web.xml file in apress\WEB-INF:


http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'>



  
login
chapter2.login
  

  
/apress
/WEB-INF/lib/taglib.tld
  



I have this context element in my server.xml file:


When I point my browser at "http://localhost:8080/apress/login.jsp";, I
get this error message:
"The requested resource (/apress/login.jsp) is not available."

When I use the Tomcat Manager application to start the "/apress"
application, I get this error message:
"FAIL - Application at context path /apress could not be started"

Can anyone point out where I've gone wrong? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

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


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



RE: Where to place the tomcat distribution in file system

2003-06-23 Thread Atreya Basu
I put Tomcat in the same place where Apache likes to go:  /usr/local.

I don't make symbolic links anywhere because they are a pain to clean up
later and I like everything to be in one place.  But that may just be
because I'm from a Windows background where everything (should go)goes
in /Program Files.

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Hayo Schmidt [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 10:25 AM
To: Tomcat Users List
Subject: Where to place the tomcat distribution in file system

Neil Zanella schrieb:

>[...]
>
>
>This sets CATALINA_HOME correctly according to the current installation
of 
>tomcat4 under /var/tomcat4 (whose correctness according to FHS I am not
>yet convinced of).
>  
>
What's the official recommendation?

The RedHat rpm, which BTW is not marked as RedHat in jakarta download 
area, installs in /var/tomcat4. UnitedLinux 1.0 installs in 
/opt/jakarta/tomcat. I thought it would be a good idea to install in 
/usr/java/tomcat.

Hayo


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


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



RE: JK2 config

2003-06-23 Thread Atreya Basu
Hi Nikola,

The document that you are referring to, I think, is incomplete or wrong.
When I tried it I found that some sections were in correct or
misleading, or just didn't work.  So I found it best to just ignore that
document.  

As a side note, is there any reason why version 2.0.2 of JK2 doesn't
include a Linux binary?  I've built one myself but shouldn't there be a
binary?  Are there some settings that are hard coded when the library
gets compiled?

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 9:39 AM
To: Tomcat Users List
Subject: Re: JK2 config

> There are plenty of examples of both JK and JK2 configurations in the
list 
> archives.  The topic comes up DAILY, and frankly, I don't think you
can 
> blame people when they tire of posting the same thing day in and day
out to 
> essentially the same questions.

Hi John.

I have found a link to Tomcat's site which holds a very good explanation
for JK2. I'd sugest you place it into the distribution of TC and also
add it to the newly created FAQ.

Basically, what we all need is just what that doc gives
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

Hope this helps.

Nix.


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



RE: JK2 config

2003-06-23 Thread Atreya Basu
Dan,

I've had success using JK2 on WinXP using both 1.4.1 and 1.4.2.  
I'm currently trying 1.4.2 on RH9.  So I'm not too sure if the JVM is
the problem here.  I'm suspecting it has something to do with the
environment settings.

_____
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Dan BECHEANU [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 6:53 AM
To: Tomcat Users List
Subject: RE: JK2 config


probably because RH9 works only with jdk1.4.1 and up

-Original Message-----
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 6:21 AM
To: [EMAIL PROTECTED]
Subject: Re: JK2 config

Unfortunately I have had no luck getting it to work under RH9.  I always

get some kind of error saying scoreboard and then it can't find some 
libjvm.so or something.  I'm not sure what it all means.  If anyone has 
got mod_jk2 to work undre linux I'd really like to hear about it.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: JK2 config

2003-06-23 Thread Atreya Basu
Okay,

The website for the JK2 document is:
http://www.greenfieldresearch.ca/technical/jk2_config.html

This document is a raw, so I would very much appreciate feedback on how
to make it better.

Please note that this was written using WinXP Pro SP1, with Apache
2.0.45 and Tomcat 4.1.24 and the Beta JRE 1.4.2.

I would very much appreciate any feedback/suggestions or comments.

I will put my workers2.properties and jk2.properties file up shortly.

Thanks

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 7:47 AM
To: Tomcat Users List
Subject: Re: JK2 config

On Mon, 23 Jun 2003 11:21, Atreya Basu wrote:
> I've had some success in setting up mod_jk2 but only on winXP.  I was
> able to do it with  the JNI/inprocess and via sockets.  I even wrote
up
> a document outling the steps I took.  If anyone wants I can post that
or
> even post my workers2.properties and jk2.properties file.

Do you feel like putting a quick web page together with your
documentation or 
sending it to the list? The more doco we can get on that particular
subject 
the better. :)

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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


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



Re: JK2 config

2003-06-23 Thread Atreya Basu
Hi,

I've had some success in setting up mod_jk2 but only on winXP.  I was 
able to do it with  the JNI/inprocess and via sockets.  I even wrote up 
a document outling the steps I took.  If anyone wants I can post that or 
even post my workers2.properties and jk2.properties file.

Unfortunately I have had no luck getting it to work under RH9.  I always 
get some kind of error saying scoreboard and then it can't find some 
libjvm.so or something.  I'm not sure what it all means.  If anyone has 
got mod_jk2 to work undre linux I'd really like to hear about it.

Atreya



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