RE: Problem adding new servlets under Tomcat 4.0.3

2002-04-25 Thread Ken Miller

Jake,

Got it working...thanks for the help.

Ken


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Bug ?!? redirector - cookies

2002-04-25 Thread Maarten Eerdekens

Dear all,

Yesterday I found out this problem:

I wrote a servlet setting and retrieving cookies. To make sure the value of the 
cookies does not contain strange characters, I en/decode this value as Base64.
I tested the servlet on a development machine (W2K - tomcate 4.0.1 standalone) and 
every thing went well.
Next I deployed the webapp containing my servlet on a production server (W2K server 
prof. - tomcat 4.0.1 - isapi redirector) and appearently the values of the retrieved 
cookies came back as sent but url-encoded.
As you all now, this shouldn't cause a problem (because it was base64 endoded) except 
for that last '=' character base64 strings often end with.
When I accessed the webapp through port 8080 (not through IIS) the values of the 
cookies entered normal again.

Looks to me as a bug in the redirector.

Greetings, Maarten




EmbededTomcat in Tomcat 3.2.3

2002-04-25 Thread Xavier Marjou

Hello, 

I tried to embed Tomcat3.2.3 in the following class:

import org.apache.tomcat.startup.EmbededTomcat;
import javax.servlet.ServletContext;
import java.net.URL;

public class MyEmbeddedTomcat {

 public static void main(String args[]) {
  try {
   EmbededTomcat tc = new EmbededTomcat();
   tc.setWorkDir(C:/Progra~1/jakarta-tomcat-3.2.3);
   ServletContext sctx = tc.addContext(examples, new
URL(file:C:/Progra~1/jakarta-tomcat-3.2.3/webapps/examples));
   tc.initContext(sctx);
   tc.addEndpoint(8080, null, null);
   tc.start();
  }
  catch(Throwable t) {
   t.printStackTrace();
  }
 }
}

When I try it I have the following error:

java -cp .;webserver.jar;servlet.jar MyEmbeddedTomcat
ContextManager: Adding context Ctx( examples )
cannot process configuration web service using
examples
C:/Progra~1/jakarta-tomcat-3.2.3/webapps/examples
Security init for Context
C:/Progra~1/jakarta-tomcat-3.2.3/webapps/examples
failed
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createClassLoader)
at
java.security.AccessControlContext.checkPermission(Unknown
Source)
at
java.security.AccessController.checkPermission(Unknown
Source)
at java.lang.SecurityManager.checkPermission(Unknown
Source)
at
java.lang.SecurityManager.checkCreateClassLoader(Unknown
Source)
at java.lang.ClassLoader.init(Unknown Source)
at
org.apache.tomcat.loader.AdaptiveClassLoader.init(AdaptiveClassLoader.java:213)
at
org.apache.tomcat.loader.AdaptiveServletLoader.init(AdaptiveServletLoader.java:88)
at
org.apache.tomcat.context.LoaderInterceptor.contextInit(LoaderInterceptor.java:93)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at
org.apache.tomcat.startup.EmbededTomcat.initContext(EmbededTomcat.java:283)
at EmbeddedTomcat.main(EmbeddedTomcat.java:14)
PoolTcpConnector: Starting HttpConnectionHandler on
8080

Can anyone help me ?

Thank you,
Xavier Marjou

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to detect Timeout and take action consequently

2002-04-25 Thread Raphael Di Cicco

Hi

my web application has a timeout of 15 minutes. I'm trying to figure out how 
to check whether there is a timeout, and in this case warn the user to come 
back to the login page (instead of a horrible NullPointerException).

Did anyone come up with a JSP that's working with this ?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat/apache with ALIASES (Was canonical names)

2002-04-25 Thread Hamish Marson

Brian Bernardo wrote:

 I am trying to use canonical names under apache 1.3.20 to work with tomcat
 4.01.  Right now when I go to http://cname1.domain/webapps

Small correction... Sorry... It's the pedant in me...

What you're using (Or trying to use)  is aliases... The DNS records (CNAME etc
al) are named after what they point AT (or more accurately) resolve to. Thus
the CNAME record (Canonical name) points or resolves to the REAL name of the
host. (Literally, the dictionary term for canonical is the real one). Just like
the A record resolves TO the address...





 http://cname1.domain/webapps  I get forwarded to http://servername/webapps
 http://servername/webapps  where servername is the ServerName set within
 the apache global config.  I want to be able to use canonical names with DNS
 to send cname1, cname2 and cname3 to ServerName, but keep the user supplied
 URL (usecanonicalname off).  With this setup static pages work great, but
 tomcat supplied pages break:

 http://cname1.domain/webapps http://cname1.domain/webapps   ends up being
 redirected to http://servername/webapps http://servername/webapps

 Is there a way around this?  I really need to keep the user supplied domain
 prefix (cname) their entire session.

 This is running on a Solaris 8 box and here is my WebAppDeploy line.  It
 appears to deploy under whatever the ServerName name is as its targetHost
 and cannot deviate from that.

 IfModule mod_webapp.c
 WebAppConnection conn warp localhost:8008
 WebAppDeploy../../../../webapps   conn/webapps/
 /IfModule

 -Brian

--

I don't suffer from Insanity... | Linux User #16396
I enjoy every minute of it...   |
|
http://www.travellingkiwi.com/  |




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSP compile fails to find class

2002-04-25 Thread Steve D George

Thanks for the assistance. I think others have had this problem before cos
I managed to find a similar posting in the archive after posting this. Just
in case anyone finds this in the future, I added import statements for the
two bean classes and sure enough it works fine now.

Cheers.

Steve George
Wireless Accelerator Team
IBM Certified for e-business - Solution Designer
e-business Innovation Centre, Hursley -  Mail Point 193,
Int: 246793 ext: 01962 816793 e-mail: [EMAIL PROTECTED]



   
  
  Todd Kaplinger 
  
  todd_kaplinger@hTo:   
[EMAIL PROTECTED]  
  otmail.com  cc: 
  
   Subject:  RE: JSP compile fails to find 
class 
  25/04/2002 00:32 
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  




The problem is due to the change with regards to package names in 4.0.  All
jsp's are now part of the package org.apache.jsp.  If one needs to
reference
beans that are in the default package (ie no package), you need to import
each of the bean classes explicitly.


From: Leonard Crowe [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JSP compile fails to find class
Date: Wed, 24 Apr 2002 13:57:37 -0500

Steve,

Is the jsp that your having problems compiling an include for another jsp
page (By that I mean %@ include file=???.jsp %)?  If so that your
having the same problem I'm trying to track down.  When the included file
changes but the parent file does not, Tomcat does not seem to be trying to
compile the parent page but instead tries to compile the included file on
it's own and fails because it's not really a complete servlet.  In your
case
it does not have the imports for the classes you are trying to reference.
I
don't really have an answer for you but we might be having the same
problem.

Leonard

-Original Message-
From: Steve D George [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 11:38 AM
To: [EMAIL PROTECTED]
Subject: JSP compile fails to find class


Hi, I've tried hunting through the archive but no success as yet so can
anyone help with this please.

I have a webapp that was working just fine on 3.2. I've just installed
tomcat 4 and I'm trying to get the same webapp to work.
I have created a new web.xml based around the example one that comes with
T4. Then I've copied over the whole of the directory structure for the
webapp that I'm migrating. I think this is all I need to do.

The first JSP page in my web app makes use of a couple of classes. One of
these is referenced as follows:

jsp:useBean id=trackerState scope=session class=TrackerStateBean/

the other is referenced like this:

%
   new HistoryController().retrieveUsers(trackerState);
%

Both the TrackerStateBean and HistoryController classes are in the
WEB-INF\classes directory for the web app but when the JSP is compiling I
get an error saying that class org.apache.jspTrackerStateBean cannot be
found. The same is true of the HistoryController class. It appears to be
looking for both classes in the org.apache.jsp package but these classes
aren't in any package at all?

The error trace is below. Any help much appreciated,

Cheers,

Steve.

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

An error occurred at line: 1 in the jsp file: /trackerentry.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\localhost\locationtracker\trackerentry$jsp.java:57: Class
org.apache.jsp.TrackerStateBean not found.
 TrackerStateBean trackerState = null;
 ^


An error occurred at line: 1 in the jsp file: /trackerentry.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\localhost\locationtracker\trackerentry$jsp.java:60: Class
org.apache.jsp.TrackerStateBean not found.
 trackerState= (TrackerStateBean)
^


An error occurred at line: 1 in the jsp file: /trackerentry.jsp

Generated servlet error:
C:\Program Files\Apache 

Tomcat multiple instances

2002-04-25 Thread Heart Prince

hi,
I am developing an application service provider site. different people can register 
there, and they will get their own homepage and data (sensitive data like credit card 
info etc). currently i have created different folders for each user and gave it names 
(DNS) like user1.mysite.com, user2.mysite.com etc. from that folders index page users 
will reach www.mysite.com:8080/login.jsp. (/var/tomcat4/web-apps/ROOT/login.jsp)
now i want to customize the code for each user, so i am planning to use multiple 
instances of tomcat. what are the disadvantages of using multiple instances of tomcat? 
later if i want to move one user to another server will there be any problem (because 
i don't want to change the url for that user, ie that should be user1.mysite.com 
always.)
and I need SSL also, how multiple instance of tomcat will effect SSl enabling of my 
site?
thanx in advance
Robert AndreaGet more from the Web.  FREE MSN Explorer download : 
http://explorer.msn.com



Re: tomcat/apache with ALIASES (Was canonical names)

2002-04-25 Thread Oki DZ

On 04/25 15:33 Hamish Marson wrote:
 What you're using (Or trying to use)  is aliases... The DNS records (CNAME
 etc
 al) are named after what they point AT (or more accurately) resolve to. Thus
 the CNAME record (Canonical name) points or resolves to the REAL name of the
 host. (Literally, the dictionary term for canonical is the real one). Just
 like
 the A record resolves TO the address...

I think I have the same problems...
So, how do you set up virtual hosts in Tomcat?
I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs 
in them. It seemed that any hosts in the service would resolve to the same 
contexts contained in the service (even though I have supplied different URLs; 
ie: different FQDNs).

I guess the answer would be: just use A records (that point to the same IP 
number). Is it correct...?

Oki

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Error compiling mod_webapp for debian Linux

2002-04-25 Thread Simon Stewart

On Wed, Apr 24, 2002 at 03:53:34PM -0400, Andy Carlisle wrote:
 For purposes of recording this on the user group so that others may 
 benefit (if they bother to check first that is ;- ), here is exactly 
 what I did:
 
 Thank you, Jeffrey, for posting the steps needed to get mod_webapp built
 for Debian. I was able to walk through the steps and (for the first time)
 got everything installed. I could not start the httpd server, however, as
 the following complaint occurs:
 
 Syntax error on line 126 of /opt/apache-2.0.35/conf/ssl.conf:
 Invalid port number (p1) No Port statement found

You've done the hard part, but if you include the port that apache
should listen on in the ServerName directive, you'll get rid of this
error:

ServerName localhost:80

is what I have in my httpd.conf

Cheers,

Simon

-- 
We were informed that the user interface was exactly the same as being at
 the desktop, but using our visual senses we detected a somewhat different
 story. --- The Register

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




OT: RE: oci8 driver problem on Linux

2002-04-25 Thread Wolfgang Stein

 -Original Message-
 From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
 First of all, the classes12.zip is not the same for Oracle9i 
 and 8i, so
 you must ensure that you've downloaded the correct one (from
 otn.oracle.com).
 


Hi,
we have a problem with our jdbc-connection
(sql-exception: protocol violation). 
We plan to use a newer jdbc driver.

Oracle recommends to upgrade to the *latest* 
jdbc-driver (see quoting below).

Do you have practical experiences that backup your 
suggestion to use an exact *version matching* driver ?

Thanks in advance
Wolfgang Stein


 quoting from metalink.oracle.com 
Last Revision Date:  21-JAN-2002 

Problem Solution


Upgrade the JDBC Driver to the latest version available. 

Note, if you are using the JDBC OCI driver, you are limited by the
Oracle client 
version on your machine.

If you are using the JDBC Thin driver, you are not constrained by the
client 
software version and the latest JDBC Thin driver has been certified 
to run against all prior database versions from 7.3.3, as long as you do
not
try and use features related to a later database version.
 /quoting from metalink.oracle.com 



 

 -Original Message-
 From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 23, 2002 5:16 PM
 To: Tomcat Users List
 Subject: RE: oci8 driver problem on Linux
 
 
 hi, 
 maybe some of these comments you've seen in previous replies to your
 question. 
 
 First of all, the classes12.zip is not the same for Oracle9i 
 and 8i, so
 you must ensure that you've downloaded the correct one (from
 otn.oracle.com).
 
 You must install the Oracle Client Software to use OCI driver 
 and set up
 connections and such, as it uses TNSNames.ora to create connection to
 the database server.
 
 There are two drivers in the classes12.zip one is the OCI and 
 the other
 is the thin driver. 
 
 I have used the thin driver most the time, it works fine, and I think
 most cases it is sufficient to use that one.
 
 
 remember to rename the zip file to .jar.
 
 hope it helps
 -reynir
 
 
 
 
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




servlet in multiple Tomcat-instances

2002-04-25 Thread it

Hi,

I'm using multiple instances of Tomcat 3.2.4. The problem is, that I can
access servlets of one instance even if the servlet is NOT in the
webapps-directory of another instance. This is very confusing during the
development of the servlet, because it still lives in the other instances
although I shut down the right instance.

The main instance of Tomcat lsitens on Port 8087:
http://www.mydomain.com:8087/Community/Poll
The servlet Poll ist configured to run this instance:
server.xml:
Context path=/Community
 docBase=webapps/Community
 crossContext=false
 debug=0
 reloadable=true 
/Context

web.xml:
   servlet-mapping
servlet-name
Poll
/servlet-name
url-pattern
/Poll
/url-pattern
/servlet-mapping

and it is loaded correct during the startup of this TC-instance:
tomcat.log:
2002-04-25 11:25:04 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance:
TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
cd $TOMCAT_HOME
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/jakarta-tomcat-3.2.4/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

so far, so good.

BUT:
I can access this servlet with an other TC-instance, which listens on Port
9015: http://www.mydomain.com:9015/Community/Poll

in this instance, there is NO entry in server.xml which points on the
servlet Poll. Even the directory webapps/Community does not exist in
this instance!
...and it is loaded during the startup :((
2002-04-25 11:24:16 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance, which uses the same binaries but an other
server.xml:
TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/tc-324-i2125/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

Any ideas how I can stop this behaviour ?

Many thanks !
Kay


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat/apache with ALIASES (Was canonical names)

2002-04-25 Thread Hamish Marson

Oki DZ wrote:

 On 04/25 15:33 Hamish Marson wrote:
  What you're using (Or trying to use)  is aliases... The DNS records (CNAME
  etc
  al) are named after what they point AT (or more accurately) resolve to. Thus
  the CNAME record (Canonical name) points or resolves to the REAL name of the
  host. (Literally, the dictionary term for canonical is the real one). Just
  like
  the A record resolves TO the address...

 I think I have the same problems...
 So, how do you set up virtual hosts in Tomcat?
 I have tried to have Host ../ elements in a Tomcat service and I used CNAMEs
 in them. It seemed that any hosts in the service would resolve to the same
 contexts contained in the service (even though I have supplied different URLs;
 ie: different FQDNs).

 I guess the answer would be: just use A records (that point to the same IP
 number). Is it correct...?


As far as tomcat working using virtual hosts goes, I don't see that it would
affect whether you're using DNS A records, CNAME's, or even local host file
lookups on the client... The server makes the decision on which virtual host to
use based on the host: header that the client (Browser) sends in the
HTTP request. The browser gets that literally from the URL. It shouldn't be
making any lookups to resolve it except when openeing the TCP stream to the
server...

As long as your browser is supplying the host: header from your URL that you type
in, then the engine (As documented in the server.xml file) will examinme the host
header to determine which host to send it to. If the host doesn't exist, I think
it uses the default virtual host...

Hamish.


--

I don't suffer from Insanity... | Linux User #16396
I enjoy every minute of it...   |
|
http://www.travellingkiwi.com/  |




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Get the HttpSession from sessioncontext using sessionid

2002-04-25 Thread Yaman Kumar

Hi,

I have a case where I would like to get the session from sessioncontext
using sessionid.
As 2.3 spec says thatthe below method is deprecated and has no
replacement
and returns null.
String sessID = request.getParameter(sessid);
HttpSession foriegnsession = sessionContext.getSession(sessID); //deprecated
and returning null

I have used above approach in my prev projects and was successful, And now
this is deprecated,
Is there any approach to get the HttpSession object using sessionid.?
If not are tomcat-users / application-developers cheated?

bye
rayaku


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




configuration doubt

2002-04-25 Thread Mandar Pohnekar

Dear Sir,

does the Tomcat-IIS configuration for 4.0.1v is
avaible?
I m using tomcat 4.0.1 and I want to configure it with
IIS webserver.
Please guide me with this respect.

Is there any way to upload .php files in tomcat?

Thanking U,

Mandar P.

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mod_jk Catalina 4.0.2 communication problem

2002-04-25 Thread Denel Laurent

Hi all,

I'm currently having troubles with the couple Catalina 4.0.2 and Apache
1.3.17.
It seems that the connection between mod_jk and the jvm is not stable enough
to
handle the load.

Our machines (there are two of them) are Netra X1 from Sun, running solaris
8:
5.8 Generic_108528-10.
The JVM we use are JDK 1.3.1 02. I've checked the 1.3.1 03 doesn't seem to
correct
anything in that field, or does it ?

Here are some outputs:

Tomcat stdout.log :
Ajp13Processor[9000][85] process: invoke
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:484)

Mod_jk.log :
[Wed Apr 24 17:26:11 2002]  [jk_ajp_common.c (932)]: Error
ajp_process_callback - write failed
[Wed Apr 24 17:26:25 2002]  [jk_ajp_common.c (932)]: Error
ajp_process_callback - write failed
[Wed Apr 24 17:26:33 2002]  [jk_ajp_common.c (932)]: Error
ajp_process_callback - write failed
[Wed Apr 24 17:26:33 2002]  [jk_ajp_common.c (932)]: Error
ajp_process_callback - write failed
[Wed Apr 24 17:26:58 2002]  [jk_ajp_common.c (932)]: Error
ajp_process_callback - write failed
[Wed Apr 24 17:29:30 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (843)]: Error connecting to the
Tomcat process.
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 0
[Wed Apr 24 17:29:30 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (843)]: Error connecting to the
Tomcat process.
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 1
[Wed Apr 24 17:29:30 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 146
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (598)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 146
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (843)]: Error connecting to the
Tomcat process.
[Wed Apr 24 17:29:30 2002]  [jk_ajp_common.c (1149)]: In
jk_endpoint_t::service, ajp_send_request failed in send loop 2


JVM truss logs (lots of these) :
25955/46:   read(51, 12 4\0\0, 4) = 4
25955/46:   send(51,  A B\003061FFA, 7, 0)= 7
25955/46:   read(51, 12 4\0\0, 4) = 4
25955/46:   send(51,  A B\003061FFA, 7, 0)= 7
25955/46:   read(51, 12 4\0\0, 4) = 4
25955/46:   send(51,  A B\003061FFA, 7, 0)= 7
25955/46:   read(51, 12 4\0\0, 4) = 4
25955/46:   send(51,  A B\003061FFA, 7, 0)= 7
25955/46:   read(51, 12 4\0\0, 4) = 4
25955/46:   send(51,  A B\003061FFA, 7, 0)= 7
25955/46:   read(51, 12 4\0\0, 4) = 4
25955/46:   send(51,  A B\003061FFA, 7, 0)= 7
25955/46:   read(51, 12 4\0\0, 4) = 4
25955/46:   send(51,  A B\003061FFA, 7, 0)= 7


Httpd truss log (lots of these) :
26417/1:send(7, 12 4\0\0, 4, 0)   = 4
26417/1:recv(7,  A B\003, 4, 0)   = 4
26417/1:recv(7, 061FFA, 3, 0) = 3
26417/1:send(7, 12 4\0\0, 4, 0)   = 4
26417/1:recv(7,  A B\003, 4, 0)   = 4
26417/1:recv(7, 061FFA, 3, 0) = 3
26417/1:send(7, 12 4\0\0, 4, 0)   = 4
26417/1:recv(7,  A B\003, 4, 0)   = 4
26417/1:recv(7, 061FFA, 3, 0) = 3
26417/1:send(7, 12 4\0\0, 4, 0)   = 4
26417/1:recv(7,  A B\003, 4, 0)   = 4
26417/1:recv(7, 061FFA, 3, 0) = 3
26417/1:send(7, 12 4\0\0, 4, 0)   = 4
26417/1:recv(7,  A B\003, 4, 0)   = 4
26417/1:recv(7, 061FFA, 3, 0) = 3
26417/1:send(7, 12 4\0\0, 4, 0)   = 4

It appears that the socket between the two 

multiple Tomcat-instances and a confused servlet...

2002-04-25 Thread klingenauber

Hi,

I'm using multiple instances of Tomcat 3.2.4. The problem is, that I can
access servlets of one instance even if the servlets is in the
webapps-directory of another instance. This is very confusing during the
development of the servlet, because it still lives in the other instances
although I shut down the right instance.

The main instance of Tomcat lsitens on Port 8087:
http://www.mydomain.com:8087/Community/Poll
The servlet Poll ist configured to run this instance:
server.xml:
Context path=/Community
 docBase=webapps/Community
 crossContext=false
 debug=0
 reloadable=true 
/Context

web.xml:
   servlet-mapping
servlet-name
Poll
/servlet-name
url-pattern
/Poll
/url-pattern
/servlet-mapping

and it is loaded correct during the startup of this TC-instance:
tomcat.log:
2002-04-25 11:25:04 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance:
TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
cd $TOMCAT_HOME
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/jakarta-tomcat-3.2.4/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

so far, so good.

BUT:
I can access this servlet with an other TC-instance, which listens on Port
9015: http://www.mydomain.com:9015/Community/Poll

in this instance, there is NO entry in server.xml which points on the
servlet Poll. Even the directory webapps/Community does not exist in
this instance!
...and it is loaded during the startup :((
2002-04-25 11:24:16 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance, which uses the same binaries but an other
server.xml:
TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/tc-324-i2125/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

Any ideas how I can stop this behaviour ?

Many thanks !
Kay


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




org.apache.jasper.JasperException: Unable to compile (class jsp.MoniBean not found)

2002-04-25 Thread chuck amadi


  Error: 500


Location: /volapp/jsp/registerProcess.jsp

*Internal Servlet Error:*

org.apache.jasper.JasperException: Unable to compile 
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:76: Class 
jsp.MoniBean not found.
MoniBean formHandler = null;
^
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:79: Class 
jsp.MoniBean not found.
formHandler= (MoniBean)
  ^
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:84: Class 
jsp.MoniBean not found.
  formHandler = (MoniBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), MoniBean);
 ^
3 errors

at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
Source)
at java.lang.Thread.run(Thread.java:498)

Hi as you see from my Error stack class jsp.MoniBean not found.
Firstly in my MoniBean.class/java there is no package reference to package jsp; in my 
bean.

Secondly i have restarted tomcat3.3a on each occasion and checked the startup.sh script
seems fine.

thirdly my MoniBean is in my Web-Inf/classes dir as it should be.
and again there isn't a sub-directory named Web-inf/classes/jsp/MoniBean.

Fourthly my jsp pages and solo htm page are in jsp folder in my webapps like such
Tomcat3.3.a/volapss/jsp/.

Any suggestions as it's getting beyond a joke.
I'm starting to talk to myself and verbally ( nearly ) abuse my workstation.

Cheers Chuck Amadi

Systems Programmer
Rhaglennydd Systemau





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: org.apache.jasper.JasperException: Unable to compile (class jsp.MoniBeannot found)

2002-04-25 Thread Todd Kaplinger

Thisis similar to a recent post for 4.0.
Here is what appears to be going on.
url requested -- /volapp/jsp/registerProcess.jsp
context root -- /volapp
creates a class file who's package is jsp. (If you keep the generated java, 
this will be pretty obvious).
Since your bean is not in a package, you need to explicitly import that java 
bean.  When referencing without the import, it assumes it is in the same 
package as your jsp (jsp).



From: chuck amadi [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED],   taglibs-user-help 
[EMAIL PROTECTED],   steve.lloyd 
[EMAIL PROTECTED]
Subject: org.apache.jasper.JasperException: Unable to compile (class 
jsp.MoniBean not found)
Date: Thu, 25 Apr 2002 12:08:24 +0100


  Error: 500


Location: /volapp/jsp/registerProcess.jsp

*Internal Servlet Error:*

org.apache.jasper.JasperException: Unable to compile 
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:76: 
Class jsp.MoniBean not found.
MoniBean formHandler = null;
^
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:79: 
Class jsp.MoniBean not found.
formHandler= (MoniBean)
  ^
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:84: 
Class jsp.MoniBean not found.
  formHandler = (MoniBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), MoniBean);
 ^
3 errors

   at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
   at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
   at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
   at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
   at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
   at org.apache.tomcat.core.ContextManager.service(Unknown Source)
   at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown 
Source)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
Source)
   at java.lang.Thread.run(Thread.java:498)

Hi as you see from my Error stack class jsp.MoniBean not found.
Firstly in my MoniBean.class/java there is no package reference to package 
jsp; in my bean.

Secondly i have restarted tomcat3.3a on each occasion and checked the 
startup.sh script
seems fine.

thirdly my MoniBean is in my Web-Inf/classes dir as it should be.
and again there isn't a sub-directory named Web-inf/classes/jsp/MoniBean.

Fourthly my jsp pages and solo htm page are in jsp folder in my webapps 
like such
Tomcat3.3.a/volapss/jsp/.

Any suggestions as it's getting beyond a joke.
I'm starting to talk to myself and verbally ( nearly ) abuse my 
workstation.

Cheers Chuck Amadi

Systems Programmer
Rhaglennydd Systemau





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





---
Todd Kaplinger
mailTo:[EMAIL PROTECTED]


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Class jsppages.MoniBean not found. SORTED MYSELF CHEERS ALL

2002-04-25 Thread chuck amadi

chuck amadi wrote:


*Hi there any reason for this as i i haven't got jsppages in
my classes path or as a package in my MoniBea*


*jsp:useBean id=formHandler scope=request
class=MoniBean/**
**jsp:setProperty name=formHandler property=*/*
*Error: 500*


*Location: /volapp/jsppages/registerProcess.jsp*


*Internal Servlet Error:*

 org.apache.jasper.JasperException: Unable to compile 
 /home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProcess_1.java:72: 
 Class jsppages.MoniBean not found.
MoniBean formHandler = null;
^
 /home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProcess_1.java:75: 
 Class jsppages.MoniBean not found.
formHandler= (MoniBean)
  ^
 /home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProcess_1.java:80: 
 Class jsppages.MoniBean not found.
  formHandler = (MoniBean) 
 java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
 MoniBean);
 ^
 3 errors

 at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
 at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown 
 Source)
 at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
 at org.apache.tomcat.core.ContextManager.processRequest(Unknown 
 Source)
 at org.apache.tomcat.core.ContextManager.internalService(Unknown 
 Source)
 at org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at 
 org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown 
 Source)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
 Source)
 at java.lang.Thread.run(Thread.java:498)

 Please help as i have had to to do a reinstall of tomcat 3.3a as i 
 couldn't sort the behaviour issue as i kept
 getting cannot creat Bean.So thid is better than the previous errors.

 Cheers Chuck Amadi
 Systems Programmer

Gathered all my jsp's and htm and placed them in the same level as my webapp
Cheers Chuck Amadi

Systems Programmer
Rhaglennydd Systemau







--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: org.apache.jasper.JasperException: Unable to compile (class jsp.MoniBeannot found)

2002-04-25 Thread Steve D George

This sounds very similar to my problem except that my JSP was in the root
of the context so I got a slightly different error message. (See my posting
from earlier today)

Try adding this to the top of your JSP:

%@page import =MoniBean%

It worked for me!

Cheers.

Steve George



   
  
  Todd Kaplinger 
  
  todd_kaplinger@hTo:   
[EMAIL PROTECTED], 
  otmail.com   [EMAIL PROTECTED],  
  
[EMAIL PROTECTED]  
  
  25/04/2002 12:12 cc: 
  
  Please respond toSubject:  Re: 
org.apache.jasper.JasperException: Unable to
  Tomcat Users compile (class jsp.MoniBean not found) 
  
  List
  
   
  
   
  




Thisis similar to a recent post for 4.0.
Here is what appears to be going on.
url requested -- /volapp/jsp/registerProcess.jsp
context root -- /volapp
creates a class file who's package is jsp. (If you keep the generated java,
this will be pretty obvious).
Since your bean is not in a package, you need to explicitly import that
java
bean.  When referencing without the import, it assumes it is in the same
package as your jsp (jsp).



From: chuck amadi [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED],
taglibs-user-help
[EMAIL PROTECTED],   steve.lloyd
[EMAIL PROTECTED]
Subject: org.apache.jasper.JasperException: Unable to compile (class
jsp.MoniBean not found)
Date: Thu, 25 Apr 2002 12:08:24 +0100


  Error: 500


Location: /volapp/jsp/registerProcess.jsp

*Internal Servlet Error:*

org.apache.jasper.JasperException: Unable to compile
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:76:
Class jsp.MoniBean not found.
MoniBean formHandler = null;
^
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:79:
Class jsp.MoniBean not found.
formHandler= (MoniBean)
  ^
/home/chucka/tomcat/work/DEFAULT/volapp/jsp/registerProcess_1.java:84:
Class jsp.MoniBean not found.
  formHandler = (MoniBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
MoniBean);
 ^
3 errors

 at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
 at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown
Source)
 at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
 at org.apache.tomcat.core.ContextManager.processRequest(Unknown
Source)
 at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
 at org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown

Source)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
 at java.lang.Thread.run(Thread.java:498)

Hi as you see from my Error stack class jsp.MoniBean not found.
Firstly in my MoniBean.class/java there is no package reference to package
jsp; in my bean.

Secondly i have restarted tomcat3.3a on each occasion and checked the
startup.sh script
seems fine.

thirdly my MoniBean is in my Web-Inf/classes dir as it should be.
and again there isn't a sub-directory named Web-inf/classes/jsp/MoniBean.

Fourthly my jsp pages and solo htm page are in jsp folder in my webapps
like such
Tomcat3.3.a/volapss/jsp/.

Any suggestions as it's getting beyond a joke.
I'm starting to talk to myself and verbally ( nearly ) abuse my
workstation.

Cheers Chuck Amadi

Systems Programmer
Rhaglennydd Systemau





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





---
Todd Kaplinger
mailTo:[EMAIL PROTECTED]


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


lib dirs - How do they work???

2002-04-25 Thread Steve D George

Hi, got a question about how the 'lib' directories are used.

I have a webapp that makes use of a bunch of classes that generate images
of maps (ie. streetmaps) that can be embedded in web pages. To make use of
the mapping API, you need to access a number of jar files and therefore
I've dumped these in the WEB-INF/lib directory. Point to note is that the
bunch of jar files includes xerces.jar and xalan.jar as the mapping product
uses these classes to do its stuff.

Until a couple of days ago I was running the web app on 3.2.29 but I've
just migrated to 4.0. I copied over the whole of the web app and suddenly,
when I get to the point in my app where the mapping API is called to build
a map image I get an error saying

NoClassDefFound: javax/xml/transform/Source

This class is in the xalan.jar file that is in the web apps WEB-INF/lib
directory so I don't get why it isn't being found.

I started sniffing around and thought about putting the xalan.jar into the
/common/lib dir and see if it gets picked up in there. That brought to my
attention the fact that xerces.jar is already present in that dir so I'm
thinking that maybe the mapping product isn't actually using the xerces.jar
in the WEB-INF/lib directory and is using the common one instead? Anyway, I
dumped the xalan.jar in the common/lib dir and restarted and it all works
fine now.

I don't quite understand why though?

Will my web app be using the xerces.jar in the common/lib dir or the one in
the WEB-INF/lib directory?
What difference should it make anyway (assuming they are both of the
appropriate version)?
And why didn't the Source class get found in the xalan.jar file in my
WEB-INF/lib dir?

Thanks for any help.

See ya.

Steve George



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




A Bit Off topic: UTF-8

2002-04-25 Thread Gregor Kovaè

Hi!

I noticed a while ago that some of you had to use UTF-8 on your database.
I'm just wondering how did you specify your collating sequence to be ok and 
not let it use byte - by - byte collating?

Best regards,   
Kovi


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Stopping directory indexing

2002-04-25 Thread Allen Harper

How do I stop directory indexing?  In other words, how do I stop the user from typing 
a URL pointing to a directory and getting the directory listing.  Also, by default, if 
a user types the URL pointing to a .jar file, they can retrieve that .jar file... How 
can you stop that?

Allen



Re: Stopping directory indexing

2002-04-25 Thread Gary McGowan

Allen

In web.xml there will be

init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param

Set the value to false and this will stop directory listing

Gary
- Original Message -
From: Allen Harper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 1:21 PM
Subject: Stopping directory indexing


How do I stop directory indexing?  In other words, how do I stop the user
from typing a URL pointing to a directory and getting the directory listing.
Also, by default, if a user types the URL pointing to a .jar file, they can
retrieve that .jar file... How can you stop that?

Allen



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Stopping directory indexing

2002-04-25 Thread Vinay Singh

-For Stopping directory listing look for following in server.xml of tomcat

***
 RequestInterceptor
className=org.apache.tomcat.request.StaticInterceptor
debug=0 suppress=false /  
***
Change to suppress=true

-If you jar are lying in /WEB-INF/lib/ users cannot brows to that


-Please provide context as what are you working with. tomcat !  apache !
solaris ! linux ! visual basic :)


-Original Message-
From: Allen Harper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 5:52 PM
To: [EMAIL PROTECTED]
Subject: Stopping directory indexing


How do I stop directory indexing?  In other words, how do I stop the user
from typing a URL pointing to a directory and getting the directory listing.
Also, by default, if a user types the URL pointing to a .jar file, they can
retrieve that .jar file... How can you stop that?

Allen



SOAP

2002-04-25 Thread Martin Mauri

Hi, can anyone here suggest me a good place to download a good tutorial
about SOAP?

thanks you.

Martin


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Visual café Ajp13Connector problems

2002-04-25 Thread Alexander Höglind

Hi,
just wanted to let you know that there might be a problem in Ajp13Connector.class when 
you are running Tomcat 4.03 as a standalone service in debugmode in Visual café 4.1 a 
with jdk 1.2.2  VM. Ajp13Connector uses setKeepAlive that isn't included in that 
version of the Socket class. I just commented out socket.setKeepAlive(true) in 
Ajp13Connector.java. I don't know if there are any problems with doing that, but if 
you don't you can't run jsp files with that jdk. Maybe you could replace the Socket 
package in the jdk 1.2.2 that come's with Visual Café 4.1a with a Socket package that 
comes with 1.4 (or 1.3)  if it doesn't use any new native methods.

Does anyone know any other VM issues concerning VCafé 4.1 and Tomcat 4.03 (ie jdk 
1.2.2 and 1.4)?

Alexander Höglind
[EMAIL PROTECTED]



Re: How to detect Timeout and take action consequently

2002-04-25 Thread Raphael Di Cicco

I have found the answer so I give the contribution :


//put this code in every page with a @page include
%
long timeout = (new Date()).getTime() - session.getLastAccessedTime();
if(session==null || (timeout  session.getMaxInactiveInterval()*1000))
{
throw new MyException(Session has expired : A HREF=' + 
response.encodeURL(login.jsp) + 'reconnect/A);
}
%

then catch the exception in error.jsp and print the message



On Thursday 25 April 2002 10:16, Raphael Di Cicco wrote:
 Hi

 my web application has a timeout of 15 minutes. I'm trying to figure out
 how to check whether there is a timeout, and in this case warn the user to
 come back to the login page (instead of a horrible NullPointerException).

 Did anyone come up with a JSP that's working with this ?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Réf. : SOAP

2002-04-25 Thread staginfo-ar



www.xmethods.com/gettingstarted/apache.html
Here is a small tutorial for beginning. Next use the apache tutorial. I
have another link but I've forgotten it, I contact a friend and send it to
you in a few days if you want.
Jc


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Réf. : SOAP

2002-04-25 Thread Martin Mauri

I'll appreciate that.

thank you.

- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 10:46 AM
Subject: Réf. : SOAP




 www.xmethods.com/gettingstarted/apache.html
 Here is a small tutorial for beginning. Next use the apache tutorial. I
 have another link but I've forgotten it, I contact a friend and send it to
 you in a few days if you want.
 Jc


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: MIME types in 3.3

2002-04-25 Thread Larry Isaacs

Hi Keith,

The only alternative I'm aware of, other than cut and paste,
is to build your own Tomcat 3.3.x and re-enable the
the readDefaultWebXml() call in the contextInit() method
of WebXmlReader.java.

Cheers,
Larry

 -Original Message-
 From: Keith Wannamaker [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, April 24, 2002 6:33 PM
 To: [EMAIL PROTECTED]
 Subject: MIME types in 3.3
 
 
 Since the default web.xml has been done away with,
 what is the best way to set up thirty or forty
 default mime type mappings for all webapps, without
 repeating this information in every webapps' web.xml?
 
 Keith
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Réf. : Re: Réf. : SOAP

2002-04-25 Thread staginfo-ar


http://www.soapware.org/directory/4/tutorials

Try this. About 10 links to soap tutorials.
Good luck!!!

garsJC



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: How to detect Timeout and take action consequently

2002-04-25 Thread Jacob Kjome

That's fine, but why would you need to warn the user that the session is 
almost expired?  As long as they are active any time within the 15 minutes 
they will have another 15 minutes from the time last accessed.  This isn't 
really something you need to keep track of.  The only thing you really need 
to worry about is to have checks for session==null when you are using the 
session object and, if so, do the appropriate thing.

If you code with proper null checks, you should never run into a 
NullPointerException.

Jake

At 03:25 PM 4/25/2002 +0200, you wrote:
I have found the answer so I give the contribution :


//put this code in every page with a @page include
%
long timeout = (new Date()).getTime() - session.getLastAccessedTime();
if(session==null || (timeout  session.getMaxInactiveInterval()*1000))
{
 throw new MyException(Session has expired : A HREF=' +
response.encodeURL(login.jsp) + 'reconnect/A);
}
%

then catch the exception in error.jsp and print the message



On Thursday 25 April 2002 10:16, Raphael Di Cicco wrote:
  Hi
 
  my web application has a timeout of 15 minutes. I'm trying to figure out
  how to check whether there is a timeout, and in this case warn the user to
  come back to the login page (instead of a horrible NullPointerException).
 
  Did anyone come up with a JSP that's working with this ?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



Re: Visual café Ajp13Connector problems

2002-04-25 Thread Alexander Höglind

H. 
I did a lot of work here but I just found out that I was terrible wrong about this!! 
Just forget about this message and make sure that you connect on port 8080!   

 ( ; D)=(
   ||
o===o

Alexander Höglind
[EMAIL PROTECTED]


- Original Message - 
From: Alexander Höglind [EMAIL PROTECTED]
To: Tomcat User [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 3:11 PM
Subject: Visual café  Ajp13Connector problems


Hi,
just wanted to let you know that there might be a problem in Ajp13Connector.class when 
you are running Tomcat 4.03 as a standalone service in debugmode in Visual café 4.1 a 
with jdk 1.2.2  VM. Ajp13Connector uses setKeepAlive that isn't included in that 
version of the Socket class. I just commented out socket.setKeepAlive(true) in 
Ajp13Connector.java. I don't know if there are any problems with doing that, but if 
you don't you can't run jsp files with that jdk. Maybe you could replace the Socket 
package in the jdk 1.2.2 that come's with Visual Café 4.1a with a Socket package that 
comes with 1.4 (or 1.3)  if it doesn't use any new native methods.

Does anyone know any other VM issues concerning VCafé 4.1 and Tomcat 4.03 (ie jdk 
1.2.2 and 1.4)?

Alexander Höglind
[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: multiple Tomcat-instances and a confused servlet...

2002-04-25 Thread Larry Isaacs

In server.xml, ContextInterceptor className=...AutoSetup
will automatically add subdirectories of TOMCAT_HOME/webapps
as contexts, using the subdirectory name as the context
name.  Context declarations in server.xml can override the
settings for the auto-added contexts.  If you don't want
a web application automatically served, move it outside of
the TOMCAT_HOME/webapps or remove the interceptor so no
contexts are automatically served.

Cheers,
Larry

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, April 25, 2002 6:06 AM
 To: [EMAIL PROTECTED]
 Subject: multiple Tomcat-instances and a confused servlet...
 
 
 Hi,
 
 I'm using multiple instances of Tomcat 3.2.4. The problem is, 
 that I can
 access servlets of one instance even if the servlets is in the
 webapps-directory of another instance. This is very confusing 
 during the
 development of the servlet, because it still lives in the 
 other instances
 although I shut down the right instance.
 
 The main instance of Tomcat lsitens on Port 8087:
 http://www.mydomain.com:8087/Community/Poll
 The servlet Poll ist configured to run this instance:
 server.xml:
 Context path=/Community
  docBase=webapps/Community
  crossContext=false
  debug=0
  reloadable=true 
 /Context
 
 web.xml:
servlet-mapping
 servlet-name
 Poll
 /servlet-name
 url-pattern
 /Poll
 /url-pattern
 /servlet-mapping
 
 and it is loaded correct during the startup of this TC-instance:
 tomcat.log:
 2002-04-25 11:25:04 - Ctx( /Community ): Mapping with 
 unregistered servlet
 Poll
 
 start-script of this instance:
 TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
 TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
 export JAVA_HOME=/usr/local/jdk1.3.1_02
 export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
 cd $TOMCAT_HOME
 /usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
 /usr/local/jakarta-tomcat-3.2.4/conf/server.xml $TOMCATLOG 
 2$TOMCATLOG2
 
 so far, so good.
 
 BUT:
 I can access this servlet with an other TC-instance, which 
 listens on Port
 9015: http://www.mydomain.com:9015/Community/Poll
 
 in this instance, there is NO entry in server.xml which points on the
 servlet Poll. Even the directory webapps/Community does 
 not exist in
 this instance!
 ...and it is loaded during the startup :((
 2002-04-25 11:24:16 - Ctx( /Community ): Mapping with 
 unregistered servlet
 Poll
 
 start-script of this instance, which uses the same binaries 
 but an other
 server.xml:
 TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
 TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
 export JAVA_HOME=/usr/local/jdk1.3.1_02
 export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
 /usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
 /usr/local/tc-324-i2125/conf/server.xml $TOMCATLOG 2$TOMCATLOG2
 
 Any ideas how I can stop this behaviour ?
 
 Many thanks !
 Kay
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: SOAP

2002-04-25 Thread Elizabeth Barham

Martin Mauri [EMAIL PROTECTED] writes:

 Hi, can anyone here suggest me a good place to download a good
 tutorial about SOAP?

James Goodwill has some nice articles (on about SOAP):

http://www.onjava.com/pub/ct/33

There are probably others on the site as well.

Regards, Elizabeth

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




TLD crashing in Tomcat

2002-04-25 Thread Javier Urbaneja Fan

I´m using Tomcat 4.0.3
I have written a tag library descriptor that fit the current Sun's DTD 
(web-jsptaglibrary_1_2.dtd), with the names of the elements according with the XML 
recomendation (i.e., tlib-version), it originates the next Parse Error when starting 
Tomcat:

org.xml.sax.SAXParseException: Element type tlib-version must be declared

However, if I write the TLD according to the previous version 
(web-jsptaglibrary_1_1.dtd, tlibversion instead o tlib-version) that doesn't validate 
against the DTD, it works perfectly.

I´ve seen that in the Tomcat's servlet.jar there are both DTDs.
Where I can configure which one I want Tomcat to work with?



Apache 2, Tomcat 4 and mod_jk2

2002-04-25 Thread Simon Stewart

Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out
that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on
Linux (and therefore probably other UNIX flavours)

It's linked from http://www.pubbitch.org/jboss

Regards,

Simon

-- 
I'm moving to Mars next week, so if you have any boxes...
 Steven Wright

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Class jsppages.MoniBean not found. SORTED MYSELF CHEERS ALL

2002-04-25 Thread Larry Isaacs

I don't think moving all the pages to the base directory
of your web application is the best solution.  The
important point about:

jsp:useBean id=formHandler scope=request class=MoniBean/

is that MoniBean is declared to be in the default package,
i.e. it has no package. If you don't declare this fact to the
JSP page, the JSP compiler will assume MoniBean is in the
*same* package as the JSP's java file.

In Tomcat 3.x, the package that JSP's are placed in is equal
to the subdirectory structure from the base of the web
application.  Thus a JSP page in the jsppages subdirectory
will be placed in the jsppages package.  Hence the error
stating that Class jsppages.MoniBean not found.  Note the
package name on the class.  Tomcat 3.x's behavior also means
that JSP pages in the base directory of your web application
are placed in the default package, causing MoniBean to become
visible by luck.  There is no guarantee about what package
any JSP will be placed in, so you can't count on this.  In
fact, it is guaranteed to not work with Tomcat 4.x.

The best solution is to declare that MoniBean is in the
default package rather than allowing the JSP compiler
to assume it is in the same package as the JSP.  To to
this, add:

%@ page import=MoniBean %

This will allow your JSP page to work in any directory and
any servlet container, including Tomcat 4.x.

Cheers,
Larry



 -Original Message-
 From: chuck amadi [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, April 25, 2002 7:22 AM
 To: Tomcat Users List; taglibs-user-help
 Subject: Re: Class jsppages.MoniBean not found. SORTED MYSELF 
 CHEERS ALL
 
 
 chuck amadi wrote:
 
 
 *Hi there any reason for this as i i haven't got 
 jsppages in
 my classes path or as a package in my MoniBea*
 
 
 *jsp:useBean id=formHandler scope=request
 class=MoniBean/**
 **jsp:setProperty name=formHandler property=*/*
 *Error: 500*
 
 
 *Location: /volapp/jsppages/registerProcess.jsp*
 
 
 *Internal Servlet Error:*
 
  org.apache.jasper.JasperException: Unable to compile 
  
 /home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProce
 ss_1.java:72: 
  Class jsppages.MoniBean not found.
 MoniBean formHandler = null;
 ^
  
 /home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProce
 ss_1.java:75: 
  Class jsppages.MoniBean not found.
 formHandler= (MoniBean)
   ^
  
 /home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProce
 ss_1.java:80: 
  Class jsppages.MoniBean not found.
   formHandler = (MoniBean) 
  java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
  MoniBean);
  ^
  3 errors
 
  at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
  at 
 org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown 
  Source)
  at 
 org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
  at org.apache.tomcat.core.ContextManager.processRequest(Unknown 
  Source)
  at 
 org.apache.tomcat.core.ContextManager.internalService(Unknown 
  Source)
  at org.apache.tomcat.core.ContextManager.service(Unknown Source)
  at 
  
 org.apache.tomcat.modules.server.Http10Interceptor.processConn
 ection(Unknown 
  Source)
  at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
  at 
  
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
  Source)
  at java.lang.Thread.run(Thread.java:498)
 
  Please help as i have had to to do a reinstall of tomcat 3.3a as i 
  couldn't sort the behaviour issue as i kept
  getting cannot creat Bean.So thid is better than the 
 previous errors.
 
  Cheers Chuck Amadi
  Systems Programmer
 
 Gathered all my jsp's and htm and placed them in the same 
 level as my webapp
 Cheers Chuck Amadi
 
 Systems Programmer
 Rhaglennydd Systemau
 
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Multiple tomcat instances - disadvantages

2002-04-25 Thread Heart Prince

  
hi,
I am developing an application service provider site. different people can register 
there, and they will get their own homepage and data (sensitive data like credit card 
info etc). currently i have created different folders for each user and gave it names 
(DNS) like user1.mysite.com, user2.mysite.com etc. from that folders index page users 
will reach www.mysite.com:8080/login.jsp. (/var/tomcat4/web-apps/ROOT/login.jsp)
now i want to customize the code for each user, so i am planning to use multiple 
instances of tomcat. what are the disadvantages of using multiple instances of tomcat? 
later if i want to move one user to another server will there be any problem (because 
i don't want to change the url for that user, ie that should be user1.mysite.com 
always.)
and I need SSL also, how multiple instance of tomcat will effect SSl enabling of my 
site?
thanx in advance
Robert AndreaGet more from the Web.  FREE MSN Explorer download : 
http://explorer.msn.com



RE: JSP compile fails to find class

2002-04-25 Thread Leonard Crowe

Is there a standard name for these static includes?  Just thought I'd ask
before making something up.

-Original Message-
From: Todd Kaplinger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 7:05 PM
To: [EMAIL PROTECTED]
Subject: RE: JSP compile fails to find class


If the included resource is used for only static includes, I would suggest 
changing the name to something other than .jsp since it cannot stand on it's

own.  This would prevent the jsp compiler from attempting to compile this 
resource.



From: Leonard Crowe [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: JSP compile fails to find class
Date: Wed, 24 Apr 2002 18:59:37 -0500

At least in my case these JSP's compile and run without any problems at all
except for in the case where the included file changes and the parent
document does not.  Actually if you look in the output directory you will
see that the servelet for the parent jsp was generated and compiled with 
the
included page, but the included page is process separately as well causing
the error.  If I try to run the page again it works correctly.

-Original Message-
From: Todd Kaplinger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 6:33 PM
To: [EMAIL PROTECTED]
Subject: RE: JSP compile fails to find class


The problem is due to the change with regards to package names in 4.0.  All
jsp's are now part of the package org.apache.jsp.  If one needs to 
reference

beans that are in the default package (ie no package), you need to import
each of the bean classes explicitly.


 From: Leonard Crowe [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: JSP compile fails to find class
 Date: Wed, 24 Apr 2002 13:57:37 -0500
 
 Steve,
 
 Is the jsp that your having problems compiling an include for another jsp
 page (By that I mean %@ include file=???.jsp %)?  If so that your
 having the same problem I'm trying to track down.  When the included file
 changes but the parent file does not, Tomcat does not seem to be trying 
to
 compile the parent page but instead tries to compile the included file on
 it's own and fails because it's not really a complete servlet.  In your
 case
 it does not have the imports for the classes you are trying to reference.
 I
 don't really have an answer for you but we might be having the same
 problem.
 
 Leonard
 
 -Original Message-
 From: Steve D George [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 24, 2002 11:38 AM
 To: [EMAIL PROTECTED]
 Subject: JSP compile fails to find class
 
 
 Hi, I've tried hunting through the archive but no success as yet so can
 anyone help with this please.
 
 I have a webapp that was working just fine on 3.2. I've just installed
 tomcat 4 and I'm trying to get the same webapp to work.
 I have created a new web.xml based around the example one that comes with
 T4. Then I've copied over the whole of the directory structure for the
 webapp that I'm migrating. I think this is all I need to do.
 
 The first JSP page in my web app makes use of a couple of classes. One of
 these is referenced as follows:
 
 jsp:useBean id=trackerState scope=session class=TrackerStateBean/
 
 the other is referenced like this:
 
 %
new HistoryController().retrieveUsers(trackerState);
 %
 
 Both the TrackerStateBean and HistoryController classes are in the
 WEB-INF\classes directory for the web app but when the JSP is compiling I
 get an error saying that class org.apache.jspTrackerStateBean cannot be
 found. The same is true of the HistoryController class. It appears to be
 looking for both classes in the org.apache.jsp package but these classes
 aren't in any package at all?
 
 The error trace is below. Any help much appreciated,
 
 Cheers,
 
 Steve.
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: 1 in the jsp file: /trackerentry.jsp
 
 Generated servlet error:
 C:\Program Files\Apache Tomcat
 4.0\work\localhost\locationtracker\trackerentry$jsp.java:57: Class
 org.apache.jsp.TrackerStateBean not found.
  TrackerStateBean trackerState = null;
  ^
 
 
 An error occurred at line: 1 in the jsp file: /trackerentry.jsp
 
 Generated servlet error:
 C:\Program Files\Apache Tomcat
 4.0\work\localhost\locationtracker\trackerentry$jsp.java:60: Class
 org.apache.jsp.TrackerStateBean not found.
  trackerState= (TrackerStateBean)
 ^
 
 
 An error occurred at line: 1 in the jsp file: /trackerentry.jsp
 
 Generated servlet error:
 C:\Program Files\Apache Tomcat
 4.0\work\localhost\locationtracker\trackerentry$jsp.java:65: Class
 org.apache.jsp.TrackerStateBean not found.
  trackerState = (TrackerStateBean)
 java.beans.Beans.instantiate(this.getClass().getClassLoader(),
 TrackerStateBean);
 

Using JCE with Tomcat 4.0

2002-04-25 Thread Debra Mendelson, CCE

I am trying to do some encryption and decryption inside of my servlets.

I am running JDK 1.3 with Tomcat 4.0.3  I have added jce1_2-do.jar into my
common/lib subdirectory in Tomcat and introduced it to my JDK by adding the
line

security.provider.3=com.sun.crypto.provider.SunJCE

to /usr/java/jdk1.3.1_02/jre/lib/security/java.security

This all works fine when I run crypto code from the command line.

When I run the same code from within Tomcat I get exceptions that suggest it
can't find the correct algorithm.

Does anyone know what I need to do inside of Tomcat to either give myself
permission to use this class package or to find it?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




secure connections with SSL

2002-04-25 Thread Sidney Barbosa Ansaloni

Hi,

I'm using TomCat 4.0.3-LE and J2SDK 1.4.0 in a Win98 PC. I've been deploying a
web application and I would like that only certain pages run under SSL in my
application (I've already configurated my TomCat to work with SSL). These pages
absolutely require a secure connection. So, how can I check the protocol type
associated with the page request and take the appropriate action for it?

Thanks in advance,

Sidney

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




My Tomcat server doesn't run??????

2002-04-25 Thread Suresh Akula

Hi All
I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my 
D:drive. When i start the tomcat server by clicking on
D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
problem???. I tried to download the latest version jakarta-tomcat-4.0.3 it 
also had the same problem. I am using tomcat to implement SOAP services 
using XML.Can anyone help me why the server doesn't run.My aim is if server 
runs ..i will configure server to use apache soap and set the server 
classpath to use apache xerces and soap.jar to implement soap services using 
xml in tomcat..
Thanks much in advance



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TLD crashing in Tomcat

2002-04-25 Thread Douglas, Rory

You might try changing the DTD referenced in your web.xml as well ( ie
change/check that is 2.3 not 2.2)?? Otherwise move to 4.0.4b2. I've been
using that for a while now, and I haven't had any weird tag library issues.
It also fixes a bug in 4.0.3 that makes my app hang on certain redirects
through a gateway!

-Original Message-
From: Javier Urbaneja Fan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 10:54 AM
To: Tomcat Users List
Subject: TLD crashing in Tomcat


I´m using Tomcat 4.0.3
I have written a tag library descriptor that fit the current Sun's DTD
(web-jsptaglibrary_1_2.dtd), with the names of the elements according with
the XML recomendation (i.e., tlib-version), it originates the next Parse
Error when starting Tomcat:

org.xml.sax.SAXParseException: Element type tlib-version must be declared

However, if I write the TLD according to the previous version
(web-jsptaglibrary_1_1.dtd, tlibversion instead o tlib-version) that doesn't
validate against the DTD, it works perfectly.

I´ve seen that in the Tomcat's servlet.jar there are both DTDs.
Where I can configure which one I want Tomcat to work with?



Re: tomcat/apache with ALIASES (Was canonical names)

2002-04-25 Thread Joseph Molnar

No. I use A and CNAMES depending on the situation.  Do you have proper
aliases set up in Apache?


Joe

- Original Message -
From: Oki DZ [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 2:28 AM
Subject: Re: tomcat/apache with ALIASES (Was canonical names)


On 04/25 15:33 Hamish Marson wrote:
 What you're using (Or trying to use)  is aliases... The DNS records (CNAME
 etc
 al) are named after what they point AT (or more accurately) resolve to.
Thus
 the CNAME record (Canonical name) points or resolves to the REAL name of
the
 host. (Literally, the dictionary term for canonical is the real one). Just
 like
 the A record resolves TO the address...

I think I have the same problems...
So, how do you set up virtual hosts in Tomcat?
I have tried to have Host ../ elements in a Tomcat service and I used
CNAMEs
in them. It seemed that any hosts in the service would resolve to the same
contexts contained in the service (even though I have supplied different
URLs;
ie: different FQDNs).

I guess the answer would be: just use A records (that point to the same IP
number). Is it correct...?

Oki

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Class jsppages.MoniBean not found. Im Digesting

2002-04-25 Thread chuck amadi

Larry Isaacs wrote:

I don't think moving all the pages to the base directory
of your web application is the best solution.  The
important point about:

jsp:useBean id=formHandler scope=request class=MoniBean/

is that MoniBean is declared to be in the default package,
i.e. it has no package. If you don't declare this fact to the
JSP page, the JSP compiler will assume MoniBean is in the
*same* package as the JSP's java file.

In Tomcat 3.x, the package that JSP's are placed in is equal
to the subdirectory structure from the base of the web
application.  Thus a JSP page in the jsppages subdirectory
will be placed in the jsppages package.  Hence the error
stating that Class jsppages.MoniBean not found.  Note the
package name on the class.  Tomcat 3.x's behavior also means
that JSP pages in the base directory of your web application
are placed in the default package, causing MoniBean to become
visible by luck.  There is no guarantee about what package
any JSP will be placed in, so you can't count on this.  In
fact, it is guaranteed to not work with Tomcat 4.x.

The best solution is to declare that MoniBean is in the
default package rather than allowing the JSP compiler
to assume it is in the same package as the JSP.  To to
this, add:

%@ page import=MoniBean %

This will allow your JSP page to work in any directory and
any servlet container, including Tomcat 4.x.

Cheers,
Larry



-Original Message-
From: chuck amadi [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 7:22 AM
To: Tomcat Users List; taglibs-user-help
Subject: Re: Class jsppages.MoniBean not found. SORTED MYSELF 
CHEERS ALL


chuck amadi wrote:

   *Hi there any reason for this as i i haven't got 

jsppages in

   my classes path or as a package in my MoniBea*


   *jsp:useBean id=formHandler scope=request
   class=MoniBean/**
   **jsp:setProperty name=formHandler property=*/*
   *Error: 500*


   *Location: /volapp/jsppages/registerProcess.jsp*


   *Internal Servlet Error:*

org.apache.jasper.JasperException: Unable to compile 

/home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProce
ss_1.java:72: 

Class jsppages.MoniBean not found.
   MoniBean formHandler = null;
   ^

/home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProce
ss_1.java:75: 

Class jsppages.MoniBean not found.
   formHandler= (MoniBean)
 ^

/home/chucka/tomcat/work/DEFAULT/volapp/jsppages/registerProce
ss_1.java:80: 

Class jsppages.MoniBean not found.
 formHandler = (MoniBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
MoniBean);
^
3 errors

at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
at 

org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown 

Source)
at 

org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)

at org.apache.tomcat.core.ContextManager.processRequest(Unknown 
Source)
at 

org.apache.tomcat.core.ContextManager.internalService(Unknown 

Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at 

org.apache.tomcat.modules.server.Http10Interceptor.processConn
ection(Unknown 

Source)
at 

org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)

at 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 

Source)
at java.lang.Thread.run(Thread.java:498)

Please help as i have had to to do a reinstall of tomcat 3.3a as i 
couldn't sort the behaviour issue as i kept
getting cannot creat Bean.So thid is better than the 

previous errors.

Cheers Chuck Amadi
Systems Programmer

Gathered all my jsp's and htm and placed them in the same 
level as my webapp
Cheers Chuck Amadi

Systems Programmer
Rhaglennydd Systemau





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

Cheers for you reply it now dawns on me that my previous work project 
had a dir path from the WE-Inf /classes/breconbeacons/org/it/Beans.

Albiet most of that was done by my boss.I had tried the page import 
directive albeit it took my one step beyond and thus i hit another hurdle.

Anyway i have this reply copied to my dev folder and will digest over 
the weekend.

Cheers again as i will remember this episode.

Chuck Amadi
Systems Programmer
Rhaglennydd Systemau





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Using JCE with Tomcat 4.0

2002-04-25 Thread John W. Warner

If you're heavy on security you should be using JDK 1.4.0 and it will
cut out this middle step you are experiencing.
Technically, the JCE is deprecated in favor of the JDK itself since
1.4.0 incorporated the security work.

Probably the preferred method would be to inside your constructor put 
  java.security.Security.addProvider(new sun.crypto.provider.SunJCE());

I have a class for encryption and a class for decryption in the
constructor for each I dynamically load whatever provider I need.

John Warner
Senior Engineer
Gryphon Technologies - Naval Research Laboratory


-Original Message-
From: Debra Mendelson, CCE [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 11:01 AM
To: [EMAIL PROTECTED]
Subject: Using JCE with Tomcat 4.0

I am trying to do some encryption and decryption inside of my servlets.

I am running JDK 1.3 with Tomcat 4.0.3  I have added jce1_2-do.jar into
my
common/lib subdirectory in Tomcat and introduced it to my JDK by adding
the
line

security.provider.3=com.sun.crypto.provider.SunJCE

to /usr/java/jdk1.3.1_02/jre/lib/security/java.security

This all works fine when I run crypto code from the command line.

When I run the same code from within Tomcat I get exceptions that
suggest it
can't find the correct algorithm.

Does anyone know what I need to do inside of Tomcat to either give
myself
permission to use this class package or to find it?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: getRemoteUser(), getAuthType() returning empty string insteadof NULL?

2002-04-25 Thread James Garrison

Ignacio J. Ortega wrote:
 Did you tried with tomcatAuthentication=true?
 
 This way works for me ..
 

Still fails the same way.

-- 
James GarrisonAthens Group, Inc.
mailto:[EMAIL PROTECTED]5608 Parkcrest Dr
http://www.athensgroup.comAustin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: secure connections with SSL

2002-04-25 Thread Simon Stewart

On Thu, Apr 25, 2002 at 12:15:58PM -0300, Sidney Barbosa Ansaloni wrote:
 Hi,
 
 I'm using TomCat 4.0.3-LE and J2SDK 1.4.0 in a Win98 PC. I've been deploying a
 web application and I would like that only certain pages run under SSL in my
 application (I've already configurated my TomCat to work with SSL). These pages
 absolutely require a secure connection. So, how can I check the protocol type
 associated with the page request and take the appropriate action for it?

You can do a request.isSecure() at the head of your servlet doGet()
and doPost() methods and redirect as appropriate.

As an aside, is it possible that if you want to start a new thread,
rather than simply replying to someone else's post and deleting the
subject, etc. you start a fresh email? For those of us with threading
mail clients[1] that respect the In-Reply-To header your new query
appeared in the middle of a thread, and so could have been missed by
someone who could help you.

Regards,

Simon

[1] mutt in my case

-- 
Everything's working, try again in half an hour.-chorus.net tech
support

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Compiling mod_jk on Win2K, anyone?

2002-04-25 Thread Douglas, Rory

Hello
 
It seems some people are having success getting mod_jk2 compiled on Linux
platforms. Is this the only way?
 
Compiling the java side of the connector is, of course, painless and works
like a charm. The native side appears to be somewhat confusing. I have
downloaded Cygwin which gave me some of the missing include files, however,
now the compiler wants sys/socketvar.h which doesn't exist in either
VC++'s or Cygwin's include directories.
 
Any ideas would be welcome
Rory Douglas
Sun Chemical Corporation
(201) 224-4600 x178
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 



RE: Using JCE with Tomcat 4.0

2002-04-25 Thread Debra Mendelson, CCE

Thanks,

That did the trick.  Your advice about migrating to JDK 1.4.0 is well taken.
Does JDK 1.4 come with any providers?

-Original Message-
From: John W. Warner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:26 AM
To: 'Tomcat Users List'
Subject: RE: Using JCE with Tomcat 4.0


If you're heavy on security you should be using JDK 1.4.0 and it will
cut out this middle step you are experiencing.
Technically, the JCE is deprecated in favor of the JDK itself since
1.4.0 incorporated the security work.

Probably the preferred method would be to inside your constructor put
  java.security.Security.addProvider(new sun.crypto.provider.SunJCE());

I have a class for encryption and a class for decryption in the
constructor for each I dynamically load whatever provider I need.

John Warner
Senior Engineer
Gryphon Technologies - Naval Research Laboratory


-Original Message-
From: Debra Mendelson, CCE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:01 AM
To: [EMAIL PROTECTED]
Subject: Using JCE with Tomcat 4.0

I am trying to do some encryption and decryption inside of my servlets.

I am running JDK 1.3 with Tomcat 4.0.3  I have added jce1_2-do.jar into
my
common/lib subdirectory in Tomcat and introduced it to my JDK by adding
the
line

security.provider.3=com.sun.crypto.provider.SunJCE

to /usr/java/jdk1.3.1_02/jre/lib/security/java.security

This all works fine when I run crypto code from the command line.

When I run the same code from within Tomcat I get exceptions that
suggest it
can't find the correct algorithm.

Does anyone know what I need to do inside of Tomcat to either give
myself
permission to use this class package or to find it?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Spoofing Tomcat

2002-04-25 Thread adrianthiele

Does anyone know how to spoof the identification on Tomcat ?
So that it responds as a different server type and/or version.


Adrian



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: secure connections with SSL

2002-04-25 Thread Sidney Barbosa Ansaloni

Thanks,

I'm a newbie in this list... I'll start a new thread next time.

[]'s

Sidney


Simon Stewart wrote:
 
 On Thu, Apr 25, 2002 at 12:15:58PM -0300, Sidney Barbosa Ansaloni wrote:
  Hi,
 
  I'm using TomCat 4.0.3-LE and J2SDK 1.4.0 in a Win98 PC. I've been deploying a
  web application and I would like that only certain pages run under SSL in my
  application (I've already configurated my TomCat to work with SSL). These pages
  absolutely require a secure connection. So, how can I check the protocol type
  associated with the page request and take the appropriate action for it?
 
 You can do a request.isSecure() at the head of your servlet doGet()
 and doPost() methods and redirect as appropriate.
 
 As an aside, is it possible that if you want to start a new thread,
 rather than simply replying to someone else's post and deleting the
 subject, etc. you start a fresh email? For those of us with threading
 mail clients[1] that respect the In-Reply-To header your new query
 appeared in the middle of a thread, and so could have been missed by
 someone who could help you.
 
 Regards,
 
 Simon
 
 [1] mutt in my case
 
 --
 Everything's working, try again in half an hour.-chorus.net tech
 support
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Compiling mod_jk on Win2K, anyone?

2002-04-25 Thread Tim Cronin

this is for mod_jk but it might help...

http://www.acg-gmbh.de/mod_jk/

-Original Message-
From: Douglas, Rory [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:06 AM
To: Tomcat Users List (E-mail)
Subject: Compiling mod_jk on Win2K, anyone?


Hello
 
It seems some people are having success getting mod_jk2 compiled on Linux
platforms. Is this the only way?
 
Compiling the java side of the connector is, of course, painless and works
like a charm. The native side appears to be somewhat confusing. I have
downloaded Cygwin which gave me some of the missing include files, however,
now the compiler wants sys/socketvar.h which doesn't exist in either
VC++'s or Cygwin's include directories.
 
Any ideas would be welcome
Rory Douglas
Sun Chemical Corporation
(201) 224-4600 x178
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat/apache with ALIASES (Was canonical names)

2002-04-25 Thread Brian Bernardo

First of all, I am very proficient with DNS; that was not the question.  I
want users who go to http://name.domain/webapps to have the same
webappdeployment as http://name2.domain/webapps.  It is important that
however they got there (domain prefix) be maintained throughout their
session.  This works fine for static content, but as soon as anyone goes to
http://name?.domain/webapps they get redirected over to
http://ServerName/webapps.  ServerName is defined within the apache
httpd.conf file (same with vitualhost name).  That is not good.  There has
to be a way to have either virtual hosts or some method for tomcat to serve
the same dynamic content regardless of how they got there without
redirecting.  

Any one know how to accomplish this?

B


-Original Message-
From: Joseph Molnar [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 25, 2002 8:28 AM
To: Tomcat Users List
Subject: Re: tomcat/apache with ALIASES (Was canonical names)

No. I use A and CNAMES depending on the situation.  Do you have proper
aliases set up in Apache?


Joe

- Original Message -
From: Oki DZ [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 2:28 AM
Subject: Re: tomcat/apache with ALIASES (Was canonical names)


On 04/25 15:33 Hamish Marson wrote:
 What you're using (Or trying to use)  is aliases... The DNS records (CNAME
 etc
 al) are named after what they point AT (or more accurately) resolve to.
Thus
 the CNAME record (Canonical name) points or resolves to the REAL name of
the
 host. (Literally, the dictionary term for canonical is the real one). Just
 like
 the A record resolves TO the address...

I think I have the same problems...
So, how do you set up virtual hosts in Tomcat?
I have tried to have Host ../ elements in a Tomcat service and I used
CNAMEs
in them. It seemed that any hosts in the service would resolve to the same
contexts contained in the service (even though I have supplied different
URLs;
ie: different FQDNs).

I guess the answer would be: just use A records (that point to the same IP
number). Is it correct...?

Oki

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Compiling mod_jk on Win2K, anyone?

2002-04-25 Thread Simon Stewart

On Thu, Apr 25, 2002 at 12:06:17PM -0400, Douglas, Rory wrote:
 Hello
  
 It seems some people are having success getting mod_jk2 compiled on Linux
 platforms. Is this the only way?

There is a site with a Win32 DLL on it for mod_jk somewhere, but I
can't remember where. It's been mentioned in the last week or so,
though, so perhaps you can trawl the archives?

 Compiling the java side of the connector is, of course, painless and works
 like a charm. The native side appears to be somewhat confusing. I have
 downloaded Cygwin which gave me some of the missing include files, however,
 now the compiler wants sys/socketvar.h which doesn't exist in either
 VC++'s or Cygwin's include directories.

I'd seriously consider moving to mod_webapp if you're using Apache
2. IME, mod_jk doesn't work at all (well, it loads, but doesn't
connect to Tomcat properly or serve content) and mod_jk2 likes to
throw itself into an infinite loop, sucking up memory until something
dies. Not good. This is under Linux, though, so perhaps you'll have
more luck

Cheers,

Simon

-- 
A friend of mine is into Voodoo Acupuncture. You don't have to
go. You'll just be walking down the street, and...ohh,
that's much better... --- Steven Wright

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[Q] Using IBM JDK with tomcat 3.3

2002-04-25 Thread Sudhakar Chandra

Hi,

Here is my setup:

tomcat: 
3.3a
mod_jk: 
3.3a
Sun JDK: 1.1.8v1
IBM JDK: 1.1.8
OS: Debian GNU/Linux testing

When I use Sun's JDK, the ajp12 and ajp13 workers start accepting 
connections.  Here are relevant bits from the log files:

Jdk11Compat: Installing jar protocol handler
2002-04-25 09:17:17 - SessionIdGenerator: Opening /dev/urandom
2002-04-25 09:17:24 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml
2002-04-25 09:17:24 - PathSetter: home=/usr/share/tomcat
2002-04-25 09:17:25 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-04-25 09:17:25 - Ctx(/jsp) : Setting debug to 1
2002-04-25 09:17:25 - AutoWebApp: Auto-Adding DEFAULT:/
2002-04-25 09:17:25 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-04-25 09:17:25 - ContextManager: Tomcat configured and in stable state
2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/examples
2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/jsp
2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/ROOT

thaths@daemon:[51] ~ $ telnet localhost 8007
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
thaths@daemon:[52] ~ $ telnet localhost 8009
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

However, when I start tomcat using IBM's JDK, ajp12 and ajp13 workers 
do not accept connections.  They don't even start up as far as I can 
tell.  Here are relevant bits from the log files:

Jdk11Compat: Installing jar protocol handler
2002-04-25 09:21:52 - SessionIdGenerator: Opening /dev/urandom
2002-04-25 09:22:02 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml
2002-04-25 09:22:02 - PathSetter: home=/usr/share/tomcat
2002-04-25 09:22:03 - ContextXmlReader: Context
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-04-25 09:22:03 - Ctx(/jsp) : Setting debug to 1
2002-04-25 09:22:03 - AutoWebApp: Auto-Adding DEFAULT:/
2002-04-25 09:22:03 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-04-25 09:22:04 - ContextManager: Tomcat configured and in stable state
2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/examples
2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/jsp
2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/ROOT

thaths@daemon:[55] ~ $ telnet localhost 8007
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
thaths@daemon:[56] ~ $ telnet localhost 8009
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

I'd really like to work using the IBM JDK.  What am I doing wrong?  The 
configurations remain the same in both cases.  Your help would be 
greatly appreciated.

Thanks.

Thaths
-- 
Lisa:  I'm studying for the math fair.  If I win, I'll bring home a
brand new protractor.
Homer: Too bad we don't live on a farm.
thaths at aunet.org   Slacker At Large   http://www.aunet.org/~thaths/
Key fingerprint = 8A 84 2E 67 10 9A 64 03  24 38 B6 AB 1B 6E 8C E4


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Question about web.xml

2002-04-25 Thread IvanLatysh

Hi All.

I have small problem and I couldn't decide what to do.
My application (JSP + Servelt) using dns server to perform dns lookup.
I want to put dns server name into some external configuration file for convience.
It seems that file web.xml could be used for this.

Please help with idea where to put some configuration parameters for application.

Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: My Tomcat server doesn't run??????

2002-04-25 Thread Tim Cronin

read RUNNING.txt in the root of the tomcat directory

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat 
server on windows XP and the error is JAVA_HOME is not defined..when i set 
that variable to the parent directory where my java is installed(JAVA_HOME =

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is 
not defined correctly..help on this is highly appreciated
THANKS MUCH


From: Suresh Akula [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 15:17:28 +

Hi All
I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
D:drive. When i start the tomcat server by clicking on
D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
problem???. I tried to download the latest version jakarta-tomcat-4.0.3 it
also had the same problem. I am using tomcat to implement SOAP services
using XML.Can anyone help me why the server doesn't run.My aim is if server
runs ..i will configure server to use apache soap and set the server
classpath to use apache xerces and soap.jar to implement soap services 
using
xml in tomcat..
Thanks much in advance



_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: [Q] Using IBM JDK with tomcat 3.3

2002-04-25 Thread Larry Isaacs

Tomcat 3.3.x doesn't get a lot of testing against any 1.1.8
JDK.  What little testing it does get is done with Sun's
JDK 1.1.8.  This testing is done with a Tomcat that is built
with Sun's JDK 1.1.8.  The binary distribution is built
with Sun's JDK 1.3.1.  You might try building Tomcat 3.3 with
IBM's JDK and see if this succeeds and if so, does it still
run any better than the binary distribution you are using now.

Cheers,
Larry


 -Original Message-
 From: Sudhakar Chandra [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, April 25, 2002 12:37 PM
 To: [EMAIL PROTECTED]
 Subject: [Q] Using IBM JDK with tomcat 3.3
 
 
 Hi,
 
 Here is my setup:
 
 tomcat: 
 3.3a
 mod_jk: 
 3.3a
 Sun JDK: 1.1.8v1
 IBM JDK: 1.1.8
 OS: Debian GNU/Linux testing
 
 When I use Sun's JDK, the ajp12 and ajp13 workers start accepting 
 connections.  Here are relevant bits from the log files:
 
 Jdk11Compat: Installing jar protocol handler
 2002-04-25 09:17:17 - SessionIdGenerator: Opening /dev/urandom
 2002-04-25 09:17:24 - ServerXmlReader: 
 Config=$TOMCAT_HOME/conf/server.xml
 2002-04-25 09:17:24 - PathSetter: home=/usr/share/tomcat
 2002-04-25 09:17:25 - ContextXmlReader: Context 
 config=$TOMCAT_HOME/conf/apps-examples.xml
 2002-04-25 09:17:25 - Ctx(/jsp) : Setting debug to 1
 2002-04-25 09:17:25 - AutoWebApp: Auto-Adding DEFAULT:/
 2002-04-25 09:17:25 - AutoWebApp: Loaded from config: 
 DEFAULT:/examples
 2002-04-25 09:17:25 - ContextManager: Tomcat configured and 
 in stable state
 2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/examples
 2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/jsp
 2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/ROOT
 
 thaths@daemon:[51] ~ $ telnet localhost 8007
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 Connection closed by foreign host.
 thaths@daemon:[52] ~ $ telnet localhost 8009
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 Connection closed by foreign host.
 
 However, when I start tomcat using IBM's JDK, ajp12 and ajp13 
 workers 
 do not accept connections.  They don't even start up as far as I can 
 tell.  Here are relevant bits from the log files:
 
 Jdk11Compat: Installing jar protocol handler
 2002-04-25 09:21:52 - SessionIdGenerator: Opening /dev/urandom
 2002-04-25 09:22:02 - ServerXmlReader: 
 Config=$TOMCAT_HOME/conf/server.xml
 2002-04-25 09:22:02 - PathSetter: home=/usr/share/tomcat
 2002-04-25 09:22:03 - ContextXmlReader: Context
 config=$TOMCAT_HOME/conf/apps-examples.xml
 2002-04-25 09:22:03 - Ctx(/jsp) : Setting debug to 1
 2002-04-25 09:22:03 - AutoWebApp: Auto-Adding DEFAULT:/
 2002-04-25 09:22:03 - AutoWebApp: Loaded from config: 
 DEFAULT:/examples
 2002-04-25 09:22:04 - ContextManager: Tomcat configured and 
 in stable state
 2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/examples
 2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/jsp
 2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/ROOT
 
 thaths@daemon:[55] ~ $ telnet localhost 8007
 Trying 127.0.0.1...
 telnet: Unable to connect to remote host: Connection refused
 thaths@daemon:[56] ~ $ telnet localhost 8009
 Trying 127.0.0.1...
 telnet: Unable to connect to remote host: Connection refused
 
 I'd really like to work using the IBM JDK.  What am I doing 
 wrong?  The 
 configurations remain the same in both cases.  Your help would be 
 greatly appreciated.
 
 Thanks.
 
 Thaths
 -- 
 Lisa:  I'm studying for the math fair.  If I win, I'll bring home a
 brand new protractor.
 Homer: Too bad we don't live on a farm.
 thaths at aunet.org   Slacker At Large   http://www.aunet.org/~thaths/
 Key fingerprint = 8A 84 2E 67 10 9A 64 03  24 38 B6 AB 1B 6E 8C E4
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: My Tomcat server doesn't run??????

2002-04-25 Thread Lecaros, Noel

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat 
server on windows XP and the error is JAVA_HOME is not defined..when i set 
that variable to the parent directory where my java is installed(JAVA_HOME =

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is 
not defined correctly..help on this is highly appreciated
THANKS MUCH


From: Suresh Akula [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 15:17:28 +

Hi All
I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
D:drive. When i start the tomcat server by clicking on
D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
problem???. I tried to download the latest version jakarta-tomcat-4.0.3 it
also had the same problem. I am using tomcat to implement SOAP services
using XML.Can anyone help me why the server doesn't run.My aim is if server
runs ..i will configure server to use apache soap and set the server
classpath to use apache xerces and soap.jar to implement soap services 
using
xml in tomcat..
Thanks much in advance



_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: getRemoteUser(), getAuthType() returning empty string insteadof NULL?

2002-04-25 Thread James Garrison

James Garrison wrote:
 Ignacio J. Ortega wrote:
 
 Did you tried with tomcatAuthentication=true?

 This way works for me ..

I'm willing to look through the Tomcat code to try
and debug this.  Can you suggest where to start?

-- 
James GarrisonAthens Group, Inc.
mailto:[EMAIL PROTECTED]5608 Parkcrest Dr
http://www.athensgroup.comAustin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: My Tomcat server doesn't run??????

2002-04-25 Thread Suresh Akula

I am beginner on tomcat..i havent got any solution yet..i am running tomcat 
server on windows XP and the error is JAVA_HOME is not defined..when i set 
that variable to the parent directory where my java is installed(JAVA_HOME = 
D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is 
not defined correctly..help on this is highly appreciated
THANKS MUCH


From: Suresh Akula [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 15:17:28 +

Hi All
I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
D:drive. When i start the tomcat server by clicking on
D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
problem???. I tried to download the latest version jakarta-tomcat-4.0.3 it
also had the same problem. I am using tomcat to implement SOAP services
using XML.Can anyone help me why the server doesn't run.My aim is if server
runs ..i will configure server to use apache soap and set the server
classpath to use apache xerces and soap.jar to implement soap services 
using
xml in tomcat..
Thanks much in advance



_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Apache 2.0, mod_webapp, Redhat 7.2 build problem

2002-04-25 Thread Ford, Richard

Well, I can't seem to get mod_webapp built under RedHat 7.2. 
I can't build the connector, and I'm not entirely sure why. I'm
using Apache 2.0.35, which builds fine with no errors, and the 
latest snapshot of apr. mod_webapp is from the 4.0.2-01 bundle
of the connectors.

Apache was build with --prefix=/usr/local/apache --enable-so.
For mod_webapp, I tried --with-apache-apxs=/usr/local/apache/bin/apxs
--with-apr= etc. However, I always get an error from libtool:

Compiling and Linking Apache 2.0 WebApp Module
/usr/local/apache2/bin/apxs -I../include -c -L ../lib -lwebapp mod_webapp.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc   
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -D_SVID_SOURCE -g -O2 -pthread -I/usr/local/apache2/include -I../include 
 -c -o mod_webapp.lo mod_webapp.c  touch mod_webapp.slo
mod_webapp.c: In function `wam_invoke':
mod_webapp.c:482: warning: initialization discards qualifiers from pointer target type
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_webapp.la -rpath 
/usr/local/apache2/modules -module -avoid-version -I../include  -L../lib -lwebapp  
mod_webapp.lo

*** Warning: This library needs some functionality provided by -lwebapp.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module mod_webapp.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
make[2]: Leaving directory 
`/home/root/pkgs/pkgs/jakarta-tomcat-connectors-4.0.2-01-src/webapp/apache-2.0'
make[1]: Exiting directory apache-2.0
make[1]: Leaving directory 
`/home/root/pkgs/pkgs/jakarta-tomcat-connectors-4.0.2-01-src/webapp'

Of course, no .so gets produced.

I did a search of the archives and couldn't find an answer. libtool is pretty recent:

[root@localhost webapp]# libtool --version
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

Any idea what is happening?

Richard

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: getRemoteUser(), getAuthType() returning empty string instead of NULL?

2002-04-25 Thread Ignacio J. Ortega

 De: James Garrison [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves 25 de abril de 2002 18:52

 I'm willing to look through the Tomcat code to try
 and debug this.  Can you suggest where to start?


http://cvs.apache.org/viewcvs/~checkout~/jakarta-tomcat-connectors/jk/ja
va/org/apache/ajp/tomcat4/Ajp13Request.java 

Saludos ,
Ignacio J. Ortega



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Catalina - Memory Usage always accumulating after one week

2002-04-25 Thread Rick Fincher

Hi Albert,

There is a memory leak in the javac compiler in JDK 1.4.0.  This is
described in the release notes with Catalina.

You can work around it by using jspc to precompile your JSP's or by dropping
back to JDK 1.3.1.

Hopefully it will be fixed in JDK1.4.1.

Rick

 Hi Tomcat User,

 I use catalina for my application. Everything seems good, but everyday,
the
 memory usage
 accumulating, until every one week 99% memory has been usage. I must
always
 restart my Catalina
 and everything back to normal again.

 Do any body knows what happens ? Is it because my program ? or any body
 encountered the same problem in Catalina ?

 thanks

 Albert Oscarina








 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache 2.0, mod_webapp, Redhat 7.2 build problem

2002-04-25 Thread Michael Delamere

Hi,

have a look at the HOWTO produced by Simon.

http://www.pubbitch.org/jboss/

bye Michael Delamere


- Original Message -
From: Ford, Richard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 25, 2002 7:05 PM
Subject: Apache 2.0, mod_webapp, Redhat 7.2 build problem


 Well, I can't seem to get mod_webapp built under RedHat 7.2.
 I can't build the connector, and I'm not entirely sure why. I'm
 using Apache 2.0.35, which builds fine with no errors, and the
 latest snapshot of apr. mod_webapp is from the 4.0.2-01 bundle
 of the connectors.

 Apache was build with --prefix=/usr/local/apache --enable-so.
 For mod_webapp, I tried --with-apache-apxs=/usr/local/apache/bin/apxs
 --with-apr= etc. However, I always get an error from libtool:

 Compiling and Linking Apache 2.0 WebApp Module
 /usr/local/apache2/bin/apxs -I../include -c -L ../lib -lwebapp
mod_webapp.c
 /usr/local/apache2/build/libtool --silent --mode=compile
c   -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=
500 -D_BSD_SOURCE -D_SVID_SOURCE -g -O2 -pthread -I/usr/local/apache2/includ
e -I../include  -c -o mod_webapp.lo mod_webapp.c  touch mod_webapp.slo
 mod_webapp.c: In function `wam_invoke':
 mod_webapp.c:482: warning: initialization discards qualifiers from pointer
target type
 /usr/local/apache2/build/libtool --silent --mode=link gcc -o
mod_webapp.la -rpath
/usr/local/apache2/modules -module -avoid-version -I../include  -L../lib -lw
ebapp  mod_webapp.lo

 *** Warning: This library needs some functionality provided by -lwebapp.
 *** I have the capability to make that library automatically link in when
 *** you link to this library.  But I can only do this if you have a
 *** shared version of the library, which you do not appear to have.

 *** Warning: libtool could not satisfy all declared inter-library
 *** dependencies of module mod_webapp.  Therefore, libtool will create
 *** a static module, that should work as long as the dlopening
 *** application is linked with the -dlopen flag.
 make[2]: Leaving directory
`/home/root/pkgs/pkgs/jakarta-tomcat-connectors-4.0.2-01-src/webapp/apache-2
.0'
 make[1]: Exiting directory apache-2.0
 make[1]: Leaving directory
`/home/root/pkgs/pkgs/jakarta-tomcat-connectors-4.0.2-01-src/webapp'

 Of course, no .so gets produced.

 I did a search of the archives and couldn't find an answer. libtool is
pretty recent:

 [root@localhost webapp]# libtool --version
 ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)

 Any idea what is happening?

 Richard

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Configuration of Tomcat for Netscape Enterprise Server

2002-04-25 Thread Yerragunta, Manjunath (Infosys)

Hi,
  We have a website running on Netscape Enterprise Server ( ver 3.63 ). So
far we have been having only static content on the site. Now the new
requirements need that we use JSPs as well. We are looking at integrating
Tomcat with the existing installation of NES 3.63. The webserver is running
on Sun Solaris 2.6. While your site gives details of setting up Tomcat for
Win NT, I am not very sure as to how I go about with installing Tomcat in a
Unix environment. Could you please help ?

Thanks in advance,
Manjunath

---
Phone: 650-577-1070 (Home)
   650-312-4916 (Work)
   408-396-1932 ( Cell )
Fax: 561-325-3707
E-Mail: [EMAIL PROTECTED]
   [EMAIL PROTECTED]



Re: compiled jk2 at last :-)

2002-04-25 Thread Pascal Forget

Michael Delamere wrote:

Hi guys!

After a lot of testing and doing silly things (last resort stuff), I finally
managed to get jk2 compiled.   And it works!  YES!!!

Here is what I did:

1.  download
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/jakar
ta-tomcat-connectors-4.0.2-01-src.tar.gz

2. cd to the src/jk/native2/server/apache2 directory

3. edit the above lines of the Makefile to suit your configuration making
sure that the APACHE2_HOME and the build.properties can be found.  (I just
copied the build.properties.sample from the src/jk directory into the
src/jk/native2/server/apache2 directory and changed the location
accordingly).  You need to edit the build.properties of course


I also had to add -I$JAVA_HOME/include/linux




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




stand alone tomcat

2002-04-25 Thread hagemanusa

I can't for the past two weeks use tomcat as standalone. I set mircsoft as my
default browser. the local8080 index.html states that I have installed tomcat
correctly. However, when the stand alone tomcat server appears after the fourth line 
the carrot blinks like it is waiting for input but nothing
happens. How do I correct this problem?
art hageman at [EMAIL PROTECTED] 


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




(another) question regarding JNDI + JDBC + null DataSource

2002-04-25 Thread Keith O'Connell (Work)

I've currently got a fairly simple app running which has been using 
DriverManager.getConnection() in order to connect to a database.  I'd like 
to move this over to a JNDI-based DataSource solution; however, I'm having 
some problems, which I've seen have popped up for several people 
before.  Essentially, it seems that Tomcat never actually connects, or 
tries to connect, to the database; the DataSource returned by the Context's 
lookup() method is always null.

Code within the servlet:
 Context ctx = new InitialContext();
 Context envCtx = (Context) ctx.lookup(java:comp/env);
 DataSource ds = (DataSource)envCtx.lookup(jdbc/cw);
 Connection con = ds.getConnection();

The associated portion of server.xml is as follows:

Resource name=jdbc/cw auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/cw
 parameter
 namedriverClassName/name
 valuecom.sybase.jdbc2.jdbc.SybDataSource/value
 /parameter
 parameter
 nameuser/name
 valuedummy_user/value
 /parameter
 parameter
 namepassword/name
 valuedummy_passwd/value
 /parameter
 parameter
 namedriverName/name
 valuejdbc:sybase:Tds:dbserv:2638/value
 /parameter
/ResourceParams

I've put these two nodes both within a Context node and within a 
DefaultContext node, neither seemed to have any impact.

I've also tried this using the parameters listed in the docs for the 
SybDataSource class (serverName, portNumber, databaseName, networkProtocol) 
in various combinations, both with and without the driverName parameter; 
nothing seemed to have an effect.

The section in my web.xml file from the web application is:
resource-ref
 res-ref-namejdbc/cw/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref

Now, I've examined the envCtx variable created in the code, and it does 
seem to have a binding for jdbc/cw to a javax.sql.DataSource at runtime, 
but that binding always returns null from a lookup.

I have a vague idea that the problem may be with the sybase JDBC drivers 
(jConnect V 5.5), but the documentation that comes with the drivers is 
surprisingly sparse on this subject, and I haven't been able to track down 
anyone else having similar problems connecting sybase to tomcat.  So, at 
this point, I'm not certain whether it's the JDBC driver, the JNDI config 
in server.xml, the webapp resource config in web.xml, or some other thing I 
haven't even thought of.

Any advice or input would be *greatly* appreciated!

cheers,

Keith



--
Keith O'Connell
4empowerment
[EMAIL PROTECTED]
512.528.0383


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Servlet killing tracking

2002-04-25 Thread Neale Rudd

Hi Jacqueline,

If your servlet is being destroyed, you can either do a
stack trace dump to the log file in your destroy() method...

new Exception().printStackTrace();

.. and then see which part of tomcat is killing the servlet,
or alternatively do something else (depending on the problems
caused by the servlet being destroyed and your specific
application requirements).

Having the servlet destroyed is a problem, but if you can't
upgrade to Tomcat 4, and the trace doesn't help, then maybe
you can create some workarounds so that the destroy()
doesn't affect the clients.

Best Regards,
Neale Rudd
metawerx
http://www.metawerx.net



- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, 25 April 2002 3:21
Subject: Re: Servlet killing tracking


 My problem is not a deadlock. My problem is that the service is
running on
 an other computer 100km from me, it runs 24 hours a day, and
sometines
 (rarely) it crashes because Tomcat killed the servlet.

 So I can only debug using logs this king of bug tracking. Using a
debug tool
 is not possible...

 Thanks for your help

 - Original Message -
 From: Jay Gardner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Sent: Wednesday, April 24, 2002 7:14 PM
 Subject: RE: Servlet killing tracking


  Hi,
 
  I don't have an answer for your deadlock?? Problem, but you might
try
  downloading either Netbeans or Forte for Java. They have a
debugger that
  works well for debugging servlets. They are both free and come
with an
  integrated tomcat  3.2 container. With the debugger you may be
able to
  validate whether you have an application deadlock.
 
  http://www.netbeans.org
 
  Best of luck,
 
  --Jay Gardner
 
  -Original Message-
  From: JACQUELINE Nicolas - REN ( [EMAIL PROTECTED] )
  [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, April 24, 2002 10:44 AM
  To: Tomcat Users List
  Subject: Re: Servlet killing tracking
 
  I'm not using SingleThreadModel, and as I'm using Tomcat in a
professional
  context, I cant upgrade to a newer version. That's why I need to
track
 what
  makes Tomcat destroy my servlet.
 
  Any idea ?
 
  
 
   it has been my experience that tomcat 3.2.x is pretty poor at
managing
   the servlet lifecycle generally.  For instance, it does not
respect
   SingleThreadModel at all, and i've had other funkiness like
you're
   describing.
  
   I recommend you try a newer version of tomcat (as tomcat 4 is
MUCH
   higher throughput than 3).
  
  
  
   At Wednesday, 24 April 2002, you wrote:
  
   Hi everybody,
   
   I'm using Tomcat 3.2.3 on a linux system to run a servlet-based
   service.
   This application must support a high number of connected people
(about
   1000).
   
   The service works fine, but sometimes Tomcat kills my servlet
(calls
   Servlet.destroy) for no reason. How could I track why Tomcat
killed my
   servlet ?!
   
   Thanks,
   
   Nicolas JACQUELINE
   
   --
   To unsubscribe:
mailto:[EMAIL PROTECTED]
   For additional commands:
mailto:[EMAIL PROTECTED]
   Troubles with the list:
mailto:[EMAIL PROTECTED]
   
  
  
  
  
  
 
  --
  To unsubscribe:
mailto:[EMAIL PROTECTED]
  For additional commands:
mailto:[EMAIL PROTECTED]
  Troubles with the list:
mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache 2.0, mod_webapp, Redhat 7.2 build problem

2002-04-25 Thread Jeffrey Bonevich

Ford, Richard wrote:

 Well, I can't seem to get mod_webapp built under RedHat 7.2. 
 I can't build the connector, and I'm not entirely sure why. I'm
 using Apache 2.0.35, which builds fine with no errors, and the 
 latest snapshot of apr. mod_webapp is from the 4.0.2-01 bundle
 of the connectors.
 
 Apache was build with --prefix=/usr/local/apache --enable-so.
 For mod_webapp, I tried --with-apache-apxs=/usr/local/apache/bin/apxs
 --with-apr= etc. However, I always get an error from libtool:
 
 Compiling and Linking Apache 2.0 WebApp Module
 /usr/local/apache2/bin/apxs -I../include -c -L ../lib -lwebapp mod_webapp.c
 /usr/local/apache2/build/libtool --silent --mode=compile gcc   
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -D_SVID_SOURCE -g -O2 -pthread -I/usr/local/apache2/include 
-I../include  -c -o mod_webapp.lo mod_webapp.c  touch mod_webapp.slo
 mod_webapp.c: In function `wam_invoke':
 mod_webapp.c:482: warning: initialization discards qualifiers from pointer target 
type
 /usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_webapp.la -rpath 
/usr/local/apache2/modules -module -avoid-version -I../include  -L../lib -lwebapp  
mod_webapp.lo
 
 *** Warning: This library needs some functionality provided by -lwebapp.
 *** I have the capability to make that library automatically link in when
 *** you link to this library.  But I can only do this if you have a
 *** shared version of the library, which you do not appear to have.
 
 *** Warning: libtool could not satisfy all declared inter-library
 *** dependencies of module mod_webapp.  Therefore, libtool will create
 *** a static module, that should work as long as the dlopening
 *** application is linked with the -dlopen flag.
 make[2]: Leaving directory 
`/home/root/pkgs/pkgs/jakarta-tomcat-connectors-4.0.2-01-src/webapp/apache-2.0'
 make[1]: Exiting directory apache-2.0
 make[1]: Leaving directory 
`/home/root/pkgs/pkgs/jakarta-tomcat-connectors-4.0.2-01-src/webapp'
 
 Of course, no .so gets produced.
 
 I did a search of the archives and couldn't find an answer. libtool is pretty recent:


Obviously not very deep a search.  There is a *ton* of postings from the 
last two weeks covering this issue.  The short of it is: Go here and 
follow the instructions, it works.

http://www.pubbitch.org/jboss.html


 
 [root@localhost webapp]# libtool --version
 ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
 
 Any idea what is happening?
 
 Richard
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: My Tomcat server doesn't run??????

2002-04-25 Thread Suresh Akula

these are the steps i took
1)extracted jakarta-tomcat-4.0.3.zip onto D: drive
2)set environment variable JAVA_HOME = D:\j2sdk1.4.0
2)Run startup.bat from D:\jakarta-tomcat-4.0.3\bin folder
I get the following error:

D:\jakarta-tomcat-4.0.3\binstartup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   D:\jd2sdk1.4.0

followed by error dialog

-Djava.endorsed.dirs=(Title of the error dialog)
windows can't find '-Djava.endorsed.dirs='.. make sure you typed the name 
correctly, and then try again.
To search for a file, click the Start button, and then click Search

Once i click ok button on this error dialog i get the last error line on 
command prompt which is

The system cannot find the file -Djava.endorsed.dirs=.

I have no clue. My friend runs the same tomcat on windows 200 and it works 
fine. i doubt setting up variables in windows XP???

Please help me

Thanks


From: Lecaros, Noel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 13:02:53 -0400

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat
server on windows XP and the error is JAVA_HOME is not defined..when i set
that variable to the parent directory where my java is installed(JAVA_HOME 
=

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is
not defined correctly..help on this is highly appreciated
THANKS MUCH


 From: Suresh Akula [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: My Tomcat server doesn't run??
 Date: Thu, 25 Apr 2002 15:17:28 +
 
 Hi All
 I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
 D:drive. When i start the tomcat server by clicking on
 D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
 problem???. I tried to download the latest version jakarta-tomcat-4.0.3 
it
 also had the same problem. I am using tomcat to implement SOAP services
 using XML.Can anyone help me why the server doesn't run.My aim is if 
server
 runs ..i will configure server to use apache soap and set the server
 classpath to use apache xerces and soap.jar to implement soap services
 using
 xml in tomcat..
 Thanks much in advance
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re[2]: My Tomcat server doesn't run??????

2002-04-25 Thread Jacob Kjome

Hello Suresh,

You also need to specify CATALINA_HOME as an environment variable and
set this to D:\jakarta-tomcat-4.0.3

Jake

Thursday, April 25, 2002, 12:17:08 PM, you wrote:

SA these are the steps i took
SA 1)extracted jakarta-tomcat-4.0.3.zip onto D: drive
SA 2)set environment variable JAVA_HOME = D:\j2sdk1.4.0
SA 2)Run startup.bat from D:\jakarta-tomcat-4.0.3\bin folder
SA I get the following error:

SA D:\jakarta-tomcat-4.0.3\binstartup
SA The JAVA_HOME environment variable is not defined correctly
SA This environment variable is needed to run this program
SA The system cannot find the batch label specified - end
SA Using CATALINA_BASE:   ..
SA Using CATALINA_HOME:   ..
SA Using CATALINA_TMPDIR: ..\temp
SA Using JAVA_HOME:   D:\jd2sdk1.4.0

SA followed by error dialog

SA -Djava.endorsed.dirs=(Title of the error dialog)
SA windows can't find '-Djava.endorsed.dirs='.. make sure you typed the name 
SA correctly, and then try again.
SA To search for a file, click the Start button, and then click Search

SA Once i click ok button on this error dialog i get the last error line on 
SA command prompt which is

SA The system cannot find the file -Djava.endorsed.dirs=.

SA I have no clue. My friend runs the same tomcat on windows 200 and it works 
SA fine. i doubt setting up variables in windows XP???

SA Please help me

SA Thanks


From: Lecaros, Noel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 13:02:53 -0400

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat
server on windows XP and the error is JAVA_HOME is not defined..when i set
that variable to the parent directory where my java is installed(JAVA_HOME 
=

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is
not defined correctly..help on this is highly appreciated
THANKS MUCH


 From: Suresh Akula [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: My Tomcat server doesn't run??
 Date: Thu, 25 Apr 2002 15:17:28 +
 
 Hi All
 I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
 D:drive. When i start the tomcat server by clicking on
 D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
 problem???. I tried to download the latest version jakarta-tomcat-4.0.3 
it
 also had the same problem. I am using tomcat to implement SOAP services
 using XML.Can anyone help me why the server doesn't run.My aim is if 
server
 runs ..i will configure server to use apache soap and set the server
 classpath to use apache xerces and soap.jar to implement soap services
 using
 xml in tomcat..
 Thanks much in advance
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





SA _
SA MSN Photos is the easiest way to share and print your photos: 
SA http://photos.msn.com/support/worldwide.aspx


SA --
SA To unsubscribe:   mailto:[EMAIL PROTECTED]
SA For additional commands: mailto:[EMAIL PROTECTED]
SA Troubles with the list: mailto:[EMAIL PROTECTED]



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: My Tomcat server doesn't run??????i found it out

2002-04-25 Thread Suresh Akula

thanks...i found out the solution..it is running now


From: Suresh Akula [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 17:17:08 +

these are the steps i took
1)extracted jakarta-tomcat-4.0.3.zip onto D: drive
2)set environment variable JAVA_HOME = D:\j2sdk1.4.0
2)Run startup.bat from D:\jakarta-tomcat-4.0.3\bin folder
I get the following error:

D:\jakarta-tomcat-4.0.3\binstartup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   D:\jd2sdk1.4.0

followed by error dialog

-Djava.endorsed.dirs=(Title of the error dialog)
windows can't find '-Djava.endorsed.dirs='.. make sure you typed the name
correctly, and then try again.
To search for a file, click the Start button, and then click Search

Once i click ok button on this error dialog i get the last error line on
command prompt which is

The system cannot find the file -Djava.endorsed.dirs=.

I have no clue. My friend runs the same tomcat on windows 200 and it works
fine. i doubt setting up variables in windows XP???

Please help me

Thanks


From: Lecaros, Noel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 13:02:53 -0400

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running 
tomcat
server on windows XP and the error is JAVA_HOME is not defined..when i set
that variable to the parent directory where my java is installed(JAVA_HOME
=

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is
not defined correctly..help on this is highly appreciated
THANKS MUCH


 From: Suresh Akula [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: My Tomcat server doesn't run??
 Date: Thu, 25 Apr 2002 15:17:28 +
 
 Hi All
 I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
 D:drive. When i start the tomcat server by clicking on
 D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
 problem???. I tried to download the latest version jakarta-tomcat-4.0.3
it
 also had the same problem. I am using tomcat to implement SOAP services
 using XML.Can anyone help me why the server doesn't run.My aim is if
server
 runs ..i will configure server to use apache soap and set the server
 classpath to use apache xerces and soap.jar to implement soap services
 using
 xml in tomcat..
 Thanks much in advance
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




_
Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: My Tomcat server doesn't run??????

2002-04-25 Thread Jay Gardner



-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??

these are the steps i took
1)extracted jakarta-tomcat-4.0.3.zip onto D: drive
2)set environment variable JAVA_HOME = D:\j2sdk1.4.0
2)Run startup.bat from D:\jakarta-tomcat-4.0.3\bin folder
I get the following error:

D:\jakarta-tomcat-4.0.3\binstartup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   D:\jd2sdk1.4.0
 looks like JAVA_HOME is not what you think.


followed by error dialog

-Djava.endorsed.dirs=(Title of the error dialog)
windows can't find '-Djava.endorsed.dirs='.. make sure you typed the name
correctly, and then try again.
To search for a file, click the Start button, and then click Search

Once i click ok button on this error dialog i get the last error line on
command prompt which is

The system cannot find the file -Djava.endorsed.dirs=.

I have no clue. My friend runs the same tomcat on windows 200 and it works
fine. i doubt setting up variables in windows XP???

Please help me

Thanks


From: Lecaros, Noel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 13:02:53 -0400

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat
server on windows XP and the error is JAVA_HOME is not defined..when i set
that variable to the parent directory where my java is installed(JAVA_HOME
=

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is
not defined correctly..help on this is highly appreciated
THANKS MUCH


 From: Suresh Akula [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: My Tomcat server doesn't run??
 Date: Thu, 25 Apr 2002 15:17:28 +
 
 Hi All
 I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
 D:drive. When i start the tomcat server by clicking on
 D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
 problem???. I tried to download the latest version jakarta-tomcat-4.0.3
it
 also had the same problem. I am using tomcat to implement SOAP services
 using XML.Can anyone help me why the server doesn't run.My aim is if
server
 runs ..i will configure server to use apache soap and set the server
 classpath to use apache xerces and soap.jar to implement soap services
 using
 xml in tomcat..
 Thanks much in advance
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Apache 2.0, mod_webapp, Redhat 7.2 build problem

2002-04-25 Thread Ford, Richard

 Obviously not very deep a search.  There is a *ton* of 
 postings from the 
 last two weeks covering this issue.  The short of it is: Go here and 
 follow the instructions, it works.
 
 http://www.pubbitch.org/jboss.html

Heh. Type mod_webapp in the search engine and see what gets returned :)

Richard

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Apache 2.0, mod_webapp, Redhat 7.2 build problem

2002-04-25 Thread Ford, Richard

 Hi,
 
 have a look at the HOWTO produced by Simon.
 
 http://www.pubbitch.org/jboss/

This is great, thanks!

Richard

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: My Tomcat server doesn't run??????

2002-04-25 Thread Lecaros, Noel

You might have misspelled your JAVA_HOME, assuming this was a direct
cut-and-paste from the command window.  You also need to set CATALINA_HOME
to your Tomcat install directory.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??


these are the steps i took
1)extracted jakarta-tomcat-4.0.3.zip onto D: drive
2)set environment variable JAVA_HOME = D:\j2sdk1.4.0
2)Run startup.bat from D:\jakarta-tomcat-4.0.3\bin folder
I get the following error:

D:\jakarta-tomcat-4.0.3\binstartup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   D:\jd2sdk1.4.0

followed by error dialog

-Djava.endorsed.dirs=(Title of the error dialog)
windows can't find '-Djava.endorsed.dirs='.. make sure you typed the name 
correctly, and then try again.
To search for a file, click the Start button, and then click Search

Once i click ok button on this error dialog i get the last error line on 
command prompt which is

The system cannot find the file -Djava.endorsed.dirs=.

I have no clue. My friend runs the same tomcat on windows 200 and it works 
fine. i doubt setting up variables in windows XP???

Please help me

Thanks


From: Lecaros, Noel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 13:02:53 -0400

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat
server on windows XP and the error is JAVA_HOME is not defined..when i set
that variable to the parent directory where my java is installed(JAVA_HOME 
=

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is
not defined correctly..help on this is highly appreciated
THANKS MUCH


 From: Suresh Akula [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: My Tomcat server doesn't run??
 Date: Thu, 25 Apr 2002 15:17:28 +
 
 Hi All
 I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
 D:drive. When i start the tomcat server by clicking on
 D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
 problem???. I tried to download the latest version jakarta-tomcat-4.0.3 
it
 also had the same problem. I am using tomcat to implement SOAP services
 using XML.Can anyone help me why the server doesn't run.My aim is if 
server
 runs ..i will configure server to use apache soap and set the server
 classpath to use apache xerces and soap.jar to implement soap services
 using
 xml in tomcat..
 Thanks much in advance
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




SystemOutLogger by context?

2002-04-25 Thread Miriam Blake

I've seen this asked but never answered...

Is there a way to configure tomcat to use SystemOutLogger by context 
instead of having all stdout messages log into catalina.out?

Thx.
Miriam


--
Miriam Blake
Library Without Walls
Los Alamos National Laboratory Research Library
Voice: 505-665-5724
Fax: 505-665-6452
http://lib-www.lanl.gov/lww/welcome.html


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache 2.0, mod_webapp, Redhat 7.2 build problem

2002-04-25 Thread Simon Stewart

The build process is buggy. This is something that has been discussed
a lot recently, and there's a HOWTO that I've knocked up from my own
experiences and those on the list. Take a look at
http://www.pubbitch.org/jboss/ for the document.

HTH!

Cheers,

Simon

-- 
You know, I've gone to a lot of psychics, and they've told me a lot of different 
things, but
 not one of them has ever told me 'You are an undercover policewoman here to arrest 
me.'
--- anonymous New York City undercover policewoman

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: My Tomcat server doesn't run??????

2002-04-25 Thread Zachary Kuhn

Hey your problem is a misspelling. In your message it says

Using JAVA_HOME:   D:\jd2sdk1.4.0

notice that this is the wrong spelling. It
should be
D:\j2sdk1.4.0
you have an extra d in there

Zak

-Original Message-
From: Lecaros, Noel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 10:37 AM
To: 'Tomcat Users List'
Subject: RE: My Tomcat server doesn't run??


You might have misspelled your JAVA_HOME, assuming this was a direct
cut-and-paste from the command window.  You also need to set CATALINA_HOME
to your Tomcat install directory.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??


these are the steps i took
1)extracted jakarta-tomcat-4.0.3.zip onto D: drive
2)set environment variable JAVA_HOME = D:\j2sdk1.4.0
2)Run startup.bat from D:\jakarta-tomcat-4.0.3\bin folder
I get the following error:

D:\jakarta-tomcat-4.0.3\binstartup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   D:\jd2sdk1.4.0

***
My comment





followed by error dialog

-Djava.endorsed.dirs=(Title of the error dialog)
windows can't find '-Djava.endorsed.dirs='.. make sure you typed the name
correctly, and then try again.
To search for a file, click the Start button, and then click Search

Once i click ok button on this error dialog i get the last error line on
command prompt which is

The system cannot find the file -Djava.endorsed.dirs=.

I have no clue. My friend runs the same tomcat on windows 200 and it works
fine. i doubt setting up variables in windows XP???

Please help me

Thanks


From: Lecaros, Noel [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: My Tomcat server doesn't run??
Date: Thu, 25 Apr 2002 13:02:53 -0400

Could you outline the steps you took?  We can help you better if we knew
exactly what you did.

Cheers,
Sponks

-Original Message-
From: Suresh Akula [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: My Tomcat server doesn't run??


I am beginner on tomcat..i havent got any solution yet..i am running tomcat
server on windows XP and the error is JAVA_HOME is not defined..when i set
that variable to the parent directory where my java is installed(JAVA_HOME
=

D:\j2sdk1.4.0) still it doesn't work but the error message is JAVA_HOME is
not defined correctly..help on this is highly appreciated
THANKS MUCH


 From: Suresh Akula [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: My Tomcat server doesn't run??
 Date: Thu, 25 Apr 2002 15:17:28 +
 
 Hi All
 I have downloaded jakarta-tomcat-3.1.1.zip and installed tomcat onto my
 D:drive. When i start the tomcat server by clicking on
 D:\jakarta-tomcat\bin\starttup.bat ..server doesn't run..wut is the
 problem???. I tried to download the latest version jakarta-tomcat-4.0.3
it
 also had the same problem. I am using tomcat to implement SOAP services
 using XML.Can anyone help me why the server doesn't run.My aim is if
server
 runs ..i will configure server to use apache soap and set the server
 classpath to use apache xerces and soap.jar to implement soap services
 using
 xml in tomcat..
 Thanks much in advance
 
 
 
 _
 Join the world's largest e-mail service with MSN Hotmail.
 http://www.hotmail.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat-4.1-dev not expanding .war file in webapps dir on startup if I explicitly specify a Context in Server.xml

2002-04-25 Thread Jacob Kjome


I'm probably just missing something, but it seems like my .war file,
which I place in the $TOMCAT_HOME/webapps directory should be expanded
upon startup of Tomcat, but it isn't when I specify a Context in
Server.xml.  In fact, it is expanded when I let Tomcat create a
Context for it both at startup and when I drop the .war file in the
webapps directly while Tomcat is running.

Is there something else I need to add to the Context tag to make it
autoexpand the .war file upon startup?

Here is the relevant configuration:

Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true

Context path=/myapp docBase=myapp
 debug=0
I have a Logger and a Resource with ResourceParams for Database
access defined in here...
/Context


Is there something I'm missing?  I'm using a nightly build from April
4th.

Jake

  

-- 
Best regards,
 Jacob  mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: getRemoteUser(), getAuthType() returning empty string insteadof NULL?

2002-04-25 Thread James Garrison

Ignacio J. Ortega wrote:
De: James Garrison [mailto:[EMAIL PROTECTED]]
Enviado el: jueves 25 de abril de 2002 18:52
 
 
I'm willing to look through the Tomcat code to try
and debug this.  Can you suggest where to start?
 
 
 
 http://cvs.apache.org/viewcvs/~checkout~/jakarta-tomcat-connectors/jk/ja
 va/org/apache/ajp/tomcat4/Ajp13Request.java 

Look at the diff between 1.7 and 1.8.

In 1.7 the test starting at line 112 is:

if ((remoteUser != null)  (!(remoteUser.equals(

In 1.8, this has been wrapped in the test for getTomcatAuthentication(),
but the comparison with the empty string has been omitted.  The net
result is as follows:

1.7 - If the remote user is null OR blank, setUserPrincipal(null) is called

1.8 - setUserPrincipal(null) is called only if remote user is null.  If
   remote user is blank, setUserPrincipal() is called instead.

This explains EXACTLY the behavior we are seeing.  I think all that has to
happen is to add back the [  (!(remoteUser.equals())) ] clause to
the test at line 112.

What do you think?

-- 
James GarrisonAthens Group, Inc.
mailto:[EMAIL PROTECTED]5608 Parkcrest Dr
http://www.athensgroup.comAustin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache 2.0, mod_webapp, tomcat 4.x integration

2002-04-25 Thread digital synapse

i've managed to load tomcat and apache 2.035 fine with your supplied 
mod_webapp.so file Simon. I both tomcat and apache work on problem on their 
own however when i go to www.liquidshell.net/examples

it gives me a

Object not found!
error 404.

? What's goin down this time hrm...

-digitalsy

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




request resource not available

2002-04-25 Thread Eric J. Meisler

I keep getting an error
The request resource (/test/Login) is not available.

I have no idea what is going wrong.

I found an error that reads Exception intitializing TldLocationsCache: 
XML parsing error on file /WEB-INF/web.xml (line 3, col 9): Element type 
webapp must be declared

my web.xml file looks like this



?xml version=1.0 encoding=ISO-8859-1?

webapp

servlet
servlet-nameLogin/servlet-name
servlet-classcom.test.Login/servlet-class
/servlet

servlet-mapping
servlet-nameLogin/servlet-name
url-pattercom.test.Login/url-pattern
/servlet-mapping
  
/webapp


Any help would be appreciated.

Eric


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Request Interceptor

2002-04-25 Thread Subir Sengupta

Here's an example of a filter.  This will run (after you put in the correct
package) as is.  It doesn't do anything terribly useful, but it should show
you how a filter works.

package xx.xx.xx;

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class ExampleFilter implements Filter {

  private FilterConfig config = null;

  public void init(FilterConfig config) throws ServletException {
this.config = config;
  }

  public void destroy() {
config = null;
  }

  public void doFilter(ServletRequest request, ServletResponse response,
 FilterChain chain) throws IOException, ServletException
{
System.out.println(Increment your counter here);
chain.doFilter(request, response);
System.out.println(Decrement your counter here);
  }
}

In your web.xml add these statements.  Put them before any servlet elements.

filter
filter-nameExampleFilter/filter-name
filter-classxx.xx.xx.ExampleFilter/filter-class
/filter
filter-mapping
filter-nameExampleFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

BTW, what does request.getFacade() do?  I'm converting some Tomcat 3.x code
to T4 and it looks like that method doesn't exist in T4.  Since I didn't
write the T3 code in not sure how to replace it.

Subir

-Original Message-
From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 6:03 PM
To: [EMAIL PROTECTED]
Subject: RE: Request Interceptor


Hi Subir,

I had the following interceptor class for Tomcat 3.2.2

public class CountRequest extends BaseInterceptor
{


static int noOfRequests=0;
public CountRequest()
{
super();
}


   public int preService(Request request, Response response) {
try{
HttpServletRequest req =request.getFacade();

if
(request.getServletPath().equalsIgnoreCase(/servlet/Read)){
noOfRequests++;
System.out.println(/servlet/Read
+noOfRequests);

}

if
(request.getServletPath().equalsIgnoreCase(/servlet/LoadTest)) {
Integer load = new Integer(noOfRequests);
req.setAttribute(load,load.toString());
System.out.println(/servlet/LoadTest
=+noOfRequests);
}
   } catch (Exception e){System.out.println(Exception is
Performance 
Interceptor);}
return 0;
}


/*postService is invoked right after service() is invoked on the actual 
servlet*/
public int postService(Request request, Response response) {

if
(request.getServletPath().equalsIgnoreCase(/examples/servlet/Read))
noOfRequests--;
return 0;
}


}



I used to increment noOfRequests in preService and decrement it in 
postService. But, How do I do the same in Tomcat 4.0

Thanks
Venky












Original Message Follows
From: Subir Sengupta [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Request Interceptor
Date: Wed, 24 Apr 2002 17:53:42 -0700

T4 doesn't have interceptors.  It sounds like you can do what you need to do
with a filter.

Hope that helps,
Subir

-Original Message-
From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 5:03 PM
To: [EMAIL PROTECTED]
Subject: Request Interceptor


Hi,
can any body please tell me where do put my request iterceptor in Tomcat 4
I could easily do this using Tomcat 3.2.2 in server.xml file.

I need to intercept request to measure the load in the tomcat server. ie I
need to count the number of requests at any point in time..

I already have written the progrom and the interceptor is working fine with
Tomcat 3.2.2.
But Can any body please tell me how do I do the same using Tomcat 4.0.3

RequestInterceptor class=CountRequests /


Thanks
Venky


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




...Phir Bhi Dil Hai Hindustani

Venkatesh Sangam,
1207, E 8th Street,
Apt #114,
Tempe, AZ, 85281
Ph:480-736-9392


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the 

RE: Using JCE with Tomcat 4.0

2002-04-25 Thread Ganey, Todd

It is basically the same as JCE 1.2 just it is internal to JDK 1.4 .  So
providers will not have changed for you. For the JCE in JDK 1.4 you might
want to get the Unlimited Strength (at least I think that is the name they
give it) policy files.

Todd

-Original Message-
From: Debra Mendelson, CCE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:05 AM
To: Tomcat Users List
Subject: RE: Using JCE with Tomcat 4.0


Thanks,

That did the trick.  Your advice about migrating to JDK 1.4.0 is well taken.
Does JDK 1.4 come with any providers?

-Original Message-
From: John W. Warner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:26 AM
To: 'Tomcat Users List'
Subject: RE: Using JCE with Tomcat 4.0


If you're heavy on security you should be using JDK 1.4.0 and it will
cut out this middle step you are experiencing.
Technically, the JCE is deprecated in favor of the JDK itself since
1.4.0 incorporated the security work.

Probably the preferred method would be to inside your constructor put
  java.security.Security.addProvider(new sun.crypto.provider.SunJCE());

I have a class for encryption and a class for decryption in the
constructor for each I dynamically load whatever provider I need.

John Warner
Senior Engineer
Gryphon Technologies - Naval Research Laboratory


-Original Message-
From: Debra Mendelson, CCE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:01 AM
To: [EMAIL PROTECTED]
Subject: Using JCE with Tomcat 4.0

I am trying to do some encryption and decryption inside of my servlets.

I am running JDK 1.3 with Tomcat 4.0.3  I have added jce1_2-do.jar into
my
common/lib subdirectory in Tomcat and introduced it to my JDK by adding
the
line

security.provider.3=com.sun.crypto.provider.SunJCE

to /usr/java/jdk1.3.1_02/jre/lib/security/java.security

This all works fine when I run crypto code from the command line.

When I run the same code from within Tomcat I get exceptions that
suggest it
can't find the correct algorithm.

Does anyone know what I need to do inside of Tomcat to either give
myself
permission to use this class package or to find it?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache 2.0, mod_webapp, tomcat 4.x integration

2002-04-25 Thread Simon Stewart

On Thu, Apr 25, 2002 at 01:49:33PM -0400, digital synapse wrote:
 i've managed to load tomcat and apache 2.035 fine with your supplied 
 mod_webapp.so file Simon. I both tomcat and apache work on problem on their 
 own however when i go to www.liquidshell.net/examples
 
 it gives me a
 
 Object not found!
 error 404.
 
 ? What's goin down this time hrm...

First things first. When you started apache, did you see it connect in
the Tomcat logs? It should have been reasonably obvious if it did.

Cheers,

Simon

-- 
See, what they didn't tell you in Terminator 2 is that Sky-Net was originally
designed to handle helpdesk calls. No wonder it went nuts and tried to kill us
all.  (Ed R. Zahurak)

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: [Q] Using IBM JDK with tomcat 3.3

2002-04-25 Thread Greg Bailey

I'm not familiar with Debian but if it's a 2.4 Linux kernel, you may
need to set the environment variable LD_ASSUME_KERNEL=2.2.5 to get Java
applications (like Tomcat) to work.  Some JDK's (like IBM JDK 1.3 and
1.3.1) do this for you automatically.  I use IBM's JDK 1.3 with Tomcat
3.3a and 3.3.1 on a RedHat 7.2 system and it works great...

Greg Bailey


Subject:
[Q] Using IBM JDK with tomcat 3.3
From:
Sudhakar Chandra [EMAIL PROTECTED]
Date:
Thu, 25 Apr 2002 09:36:38 -0700
To:
[EMAIL PROTECTED]


Hi,

Here is my setup:

tomcat: 3.3a
mod_jk: 3.3a
Sun JDK: 1.1.8v1
IBM JDK: 1.1.8
OS: Debian GNU/Linux testing

When I use Sun's JDK, the ajp12 and ajp13 workers start accepting 
connections.  Here are relevant bits from the log files:

Jdk11Compat: Installing jar protocol handler
2002-04-25 09:17:17 - SessionIdGenerator: Opening /dev/urandom
2002-04-25 09:17:24 - ServerXmlReader: 
Config=$TOMCAT_HOME/conf/server.xml
2002-04-25 09:17:24 - PathSetter: home=/usr/share/tomcat
2002-04-25 09:17:25 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-04-25 09:17:25 - Ctx(/jsp) : Setting debug to 1
2002-04-25 09:17:25 - AutoWebApp: Auto-Adding DEFAULT:/
2002-04-25 09:17:25 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-04-25 09:17:25 - ContextManager: Tomcat configured and in stable 
state
2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/examples
2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/jsp
2002-04-25 09:17:25 - ContextManager: Adding  DEFAULT:/ROOT

thaths@daemon:[51] ~ $ telnet localhost 8007
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
thaths@daemon:[52] ~ $ telnet localhost 8009
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

However, when I start tomcat using IBM's JDK, ajp12 and ajp13 
workers do not accept connections.  They don't even start up as far 
as I can tell.  Here are relevant bits from the log files:

Jdk11Compat: Installing jar protocol handler
2002-04-25 09:21:52 - SessionIdGenerator: Opening /dev/urandom
2002-04-25 09:22:02 - ServerXmlReader: 
Config=$TOMCAT_HOME/conf/server.xml
2002-04-25 09:22:02 - PathSetter: home=/usr/share/tomcat
2002-04-25 09:22:03 - ContextXmlReader: Context
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-04-25 09:22:03 - Ctx(/jsp) : Setting debug to 1
2002-04-25 09:22:03 - AutoWebApp: Auto-Adding DEFAULT:/
2002-04-25 09:22:03 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-04-25 09:22:04 - ContextManager: Tomcat configured and in stable 
state
2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/examples
2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/jsp
2002-04-25 09:22:04 - ContextManager: Adding  DEFAULT:/ROOT

thaths@daemon:[55] ~ $ telnet localhost 8007
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
thaths@daemon:[56] ~ $ telnet localhost 8009
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

I'd really like to work using the IBM JDK.  What am I doing wrong?  
The configurations remain the same in both cases.  Your help would be 
greatly appreciated.

Thanks.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: request resource not available

2002-04-25 Thread Jacob Kjome

Hello Eric,

You misspelled url-pattern as url-patter + why do a URL mapping to
map it right back to the package + className?  Why don't you do
something like:

servlet-mapping
servlet-nameLogin/servlet-name
url-pattern/login/url-pattern
/servlet-mapping

Jake

Thursday, April 25, 2002, 1:06:39 PM, you wrote:

EJM I keep getting an error
EJM The request resource (/test/Login) is not available.

EJM I have no idea what is going wrong.

EJM I found an error that reads Exception intitializing TldLocationsCache: 
EJM XML parsing error on file /WEB-INF/web.xml (line 3, col 9): Element type 
EJM webapp must be declared

EJM my web.xml file looks like this



EJM ?xml version=1.0 encoding=ISO-8859-1?

EJM webapp

EJM servlet
EJM servlet-nameLogin/servlet-name
EJM servlet-classcom.test.Login/servlet-class
EJM /servlet

EJM servlet-mapping
EJM servlet-nameLogin/servlet-name
EJM url-pattercom.test.Login/url-pattern
EJM /servlet-mapping
  
EJM /webapp


EJM Any help would be appreciated.

EJM Eric


EJM --
EJM To unsubscribe:   mailto:[EMAIL PROTECTED]
EJM For additional commands: mailto:[EMAIL PROTECTED]
EJM Troubles with the list: mailto:[EMAIL PROTECTED]



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat and SSL (keyfile password)

2002-04-25 Thread Dave North

Hello,
After a few hours trying to get this working, I've finally got
my tomcat server working with a certificate signed by Verisign.  This
all works great.  However, to do this, I need to configure the
keyfilePass into the server.xml file.  This is bad as our security
policy is thou shall not have any passwords in plain text.  We also
use SSL on our iPlanet server and it prompts at start time for the
password (they use the term software token but it's the same).  So, the
question is: is it possible to have tomcat prompt for this and/or how
have others got around keeping this in plain text?

BTW: if anyone's interested, I have the complete step-by-step of how I
got the versign cert working...the info is out there but it seems to be
all over the place.

Thanks

Dave

Dave North
SIGNIANT Inc.
Trusted Data Transfer Services
www.signiant.com
Phone: 613-761-3623
Mobile: 613-294-3231
Fax: 613-761-3629
Email: [EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat and SSL (keyfile password)

2002-04-25 Thread bm

Hi Dave

 ohhh...good to know that.

 I need to set up the tomcat 4.0.3 with verisign.

Can you please send those doc to me ?

I appreciate your help

thanks in advance
BM

Dave North wrote:

 Hello,
 After a few hours trying to get this working, I've finally got
 my tomcat server working with a certificate signed by Verisign.  This
 all works great.  However, to do this, I need to configure the
 keyfilePass into the server.xml file.  This is bad as our security
 policy is thou shall not have any passwords in plain text.  We also
 use SSL on our iPlanet server and it prompts at start time for the
 password (they use the term software token but it's the same).  So, the
 question is: is it possible to have tomcat prompt for this and/or how
 have others got around keeping this in plain text?

 BTW: if anyone's interested, I have the complete step-by-step of how I
 got the versign cert working...the info is out there but it seems to be
 all over the place.

 Thanks

 Dave

 Dave North
 SIGNIANT Inc.
 Trusted Data Transfer Services
 www.signiant.com
 Phone: 613-761-3623
 Mobile: 613-294-3231
 Fax: 613-761-3629
 Email: [EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat and SSL (keyfile password)

2002-04-25 Thread Tim Cronin

your how-to would be very beneficial.

thanks

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 1:25 PM
To: [EMAIL PROTECTED]
Subject: tomcat and SSL (keyfile password)


Hello,
After a few hours trying to get this working, I've finally got
my tomcat server working with a certificate signed by Verisign.  This
all works great.  However, to do this, I need to configure the
keyfilePass into the server.xml file.  This is bad as our security
policy is thou shall not have any passwords in plain text.  We also
use SSL on our iPlanet server and it prompts at start time for the
password (they use the term software token but it's the same).  So, the
question is: is it possible to have tomcat prompt for this and/or how
have others got around keeping this in plain text?

BTW: if anyone's interested, I have the complete step-by-step of how I
got the versign cert working...the info is out there but it seems to be
all over the place.

Thanks

Dave

Dave North
SIGNIANT Inc.
Trusted Data Transfer Services
www.signiant.com
Phone: 613-761-3623
Mobile: 613-294-3231
Fax: 613-761-3629
Email: [EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: getRemoteUser(), getAuthType() returning empty string instead of NULL?

2002-04-25 Thread Ignacio J. Ortega

 What do you think?

From the code if you used tomcatAuthentication=true you will get the
expected behavior, that is Tomcat will not see any auth done in IIS (
was it  or any valid name ), so your test case should work as
expected, what i dont understand, why you see  when
tomcatAuthentication=true, my dont, so something is broken in your
test because from the code it's clear that you will get a nul set
principal if tA=true, so i suspect you are not trying with the correct
version of this Ajp13Request.java, Please try with a nigthly from
jakarta-tomcat-connectors or 4.0.4 b2..

Yeccckkk , just observed the tags in that version, and it not has the
4_0_3 one, only 4.0.4 b2 and others, so i'm sure this code it's not on
4.0.3 only in 4.0.4 b2.. :) mistery resolved 

Saludos ,
Ignacio J. Ortega



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat and SSL (keyfile password)

2002-04-25 Thread Dave North

OK, here's what I did (this was using a test versign cert but the
procedure is the same for a real production cert):

STEP A - generate your private key

Pre-req: JDK must be installed

1) cd to $JAVA_HOME/jre/bin

2) run ./keytool -genkey -alias tomcat -keyalg RSA -keystore FULL PATH
TO KEYSTORE

3) You will be prompted for a password for the keystore

3) at the prompts, enter: 

What is your first and last name?
  [Unknown]:  DO NOT USE NAME - ENTER THE NAME OF YOUR MACHINE AS IT'S
KNOWN TO VISITORS
What is the name of your organizational unit?
  [Unknown]:  WHATEVER YOU LIKE
What is the name of your organization?
  [Unknown]:  TYPICALLY COMPANY NAME
What is the name of your City or Locality?
  [Unknown]:  YOUR CITY
What is the name of your State or Province?
  [Unknown]:  STATE OR PROV
What is the two-letter country code for this unit?
  [Unknown]:  COUNTRY CODE

4) You will then be prompted for another password - use the same (ie.
Press ENTER)

STEP B - Generate a Certificate Request

1) cd to  $JAVA_HOME/jre/bin

2) ./keytool -certreq -alias tomcat -file csr.txt -keystore FULL PATH
TO SAME KEYSTORE CREATED IN STEP A

STEP C - Get the new cert from Verisign

www.versign.com has all the info here

STEP D - Install the Verisign ROOT CA cert AND your server cert

When you get your cert in step C, they will provide you with the root
cert

1) cd to  $JAVA_HOME/jre/bin

2) ./keytool -import -alias verisign -file FILE THAT CONTAINS THE
VERSIGN ROOT CA CERT -keystore PATH TO KEYSTORE

3) ./keytool -import -trustcacerts -alias tomcat -file FILE THAT
CONTAINS YOUR CERT FROM VERISIGN -keystore PATH TO KEYSTORE


STEP E - Configure an SSL listener for tomcat

1) edit $JAKARTA_HOME/conf/server.xml and add the following:

!-- Define an SSL HTTP/1.1 Connector on port 443 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=10 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=false protocol=TLS
   keystoreFile=FULL PATH TO KEYSTORE FILE
keystorePass=PASSWORD HERE/
/Connector

2) Stop and start the tomcat server

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 2:29 PM
To: Tomcat Users List
Subject: Re: tomcat and SSL (keyfile password)


Hi Dave

 ohhh...good to know that.

 I need to set up the tomcat 4.0.3 with verisign.

Can you please send those doc to me ?

I appreciate your help

thanks in advance
BM

Dave North wrote:

 Hello,
 After a few hours trying to get this working, I've finally got
 my tomcat server working with a certificate signed by Verisign.  This
 all works great.  However, to do this, I need to configure the
 keyfilePass into the server.xml file.  This is bad as our security
 policy is thou shall not have any passwords in plain text.  We also
 use SSL on our iPlanet server and it prompts at start time for the
 password (they use the term software token but it's the same).  So,
the
 question is: is it possible to have tomcat prompt for this and/or how
 have others got around keeping this in plain text?

 BTW: if anyone's interested, I have the complete step-by-step of how I
 got the versign cert working...the info is out there but it seems to
be
 all over the place.

 Thanks

 Dave

 Dave North
 SIGNIANT Inc.
 Trusted Data Transfer Services
 www.signiant.com
 Phone: 613-761-3623
 Mobile: 613-294-3231
 Fax: 613-761-3629
 Email: [EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat and SSL (keyfile password)

2002-04-25 Thread Richard C . Dunn

Dave,

I would be interested, too. Thanks.

Rich Dunn
Arkona, Inc.

On Thursday 25 April 2002 12:25 pm, you wrote:
 Hello,
   After a few hours trying to get this working, I've finally got
 my tomcat server working with a certificate signed by Verisign.  This
 all works great.  However, to do this, I need to configure the
 keyfilePass into the server.xml file.  This is bad as our security
 policy is thou shall not have any passwords in plain text.  We also
 use SSL on our iPlanet server and it prompts at start time for the
 password (they use the term software token but it's the same).  So, the
 question is: is it possible to have tomcat prompt for this and/or how
 have others got around keeping this in plain text?

 BTW: if anyone's interested, I have the complete step-by-step of how I
 got the versign cert working...the info is out there but it seems to be
 all over the place.

 Thanks

 Dave

 Dave North
 SIGNIANT Inc.
 Trusted Data Transfer Services
 www.signiant.com
 Phone: 613-761-3623
 Mobile: 613-294-3231
 Fax: 613-761-3629
 Email: [EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Apache 2.0, mod_webapp, tomcat 4.x integration

2002-04-25 Thread Ken Anderson

Did you try www.liquidshell.net/examples/ (the last slash is important)
Ken


Simon Stewart wrote:
 On Thu, Apr 25, 2002 at 01:49:33PM -0400, digital synapse wrote:
 
i've managed to load tomcat and apache 2.035 fine with your supplied 
mod_webapp.so file Simon. I both tomcat and apache work on problem on their 
own however when i go to www.liquidshell.net/examples

it gives me a

Object not found!
error 404.

? What's goin down this time hrm...
 
 
 First things first. When you started apache, did you see it connect in
 the Tomcat logs? It should have been reasonably obvious if it did.
 
 Cheers,
 
 Simon
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




  1   2   >