RE: Hi, Using Tomcat for the first time:

2001-02-13 Thread Vijayanand Sukumar

You can alter the server.xml portion under 


to look like something like this

   








this might help

cheers
vijay

-Original Message-
From: Andrew Stewart [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:42 PM
To: '[EMAIL PROTECTED]'
Subject: Hi, Using Tomcat for the first time:


and I have to say I am impressed so far

I've tried three other Java VM's and have had very dissapointing
experiences with them (Caucho's Resin, NA's ServletExec, and Allaire's
JRun).

Anyway, one of the few questions I'd like to ask is if there's anyway to
control the number of threads (or workers) that come up when Tomcat is
run.

I tried looking for a setting something like MinServers / MaxServers
akin to Apache but no dice, any help would be appreciated.

Thanks in advance.

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

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




Re: HttpUtil

2001-02-13 Thread sun

yes, it is working. Thank you very much.

rgds
sun


-Original Message-
From: CPC Livelink Admin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, February 13, 2001 9:43 PM
Subject: RE: HttpUtil


>
>Well, I just changed the form from "get" to "post" in the sample I posted
>(which is still below) and I got exactly the same results. I don't know
what
>your problem is - are you doing anything special beyond what's in the
>example below.
>
>Regards,
>Paul
>
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 14, 2001 10:15 AM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>yes, for get method, it is working, but I have to use post method.
>
>rgds
>sun
>
>
>-Original Message-
>From: CPC Livelink Admin <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Tuesday, February 13, 2001 9:15 AM
>Subject: RE: HttpUtil
>
>
>>
>>It works for me as well. The only caveat is that with text boxes (which I
>>thought you said you were not using) the browser sends an empty string for
>>some of the boxes.
>>
>>Here is some sample JSP code :
>>
>> 
>> 
>> 
>><%
>> String []vals = request.getParameterValues("foo");
>> if (vals != null)
>> {
>> for (int i = 0; i < vals.length; i++)
>> {
>> %>
>> [<%= vals[i] %>]
>> <%
>> }
>> }
>>%>
>>
>> 
>>
>> 
>> Foo
>> Foo
>> Foo
>> Foo
>> Foo
>> Foo
>>
>> 
>> 
>>
>>
>>
>>
>>-Original Message-
>>From: Randy Layman [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, February 13, 2001 7:35 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: HttpUtil
>>
>>
>>
>> Then your HTML or web browser is not correct.  I use this method for
>>exactly what you are trying to do and it works just fine.
>>
>> Randy
>>
>>-Original Message-
>>From: sun [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, February 13, 2001 1:58 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: HttpUtil
>>
>>
>>I tried, in array, it contains 5 values, 1,2,3,4,5, cann't get exactly
>which
>>I selected.
>>
>>-Original Message-
>>From: CPC Livelink Admin <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>Date: Monday, February 12, 2001 9:56 PM
>>Subject: RE: HttpUtil
>>
>>
>>
>>
>>A quick read of the docs for Interface ServletRequest reveal a snippet in
>>the description of function getParameter :
>>
>>You should only use this method when you are sure the parameter has only
>one
>>value. If the parameter might have more than one value, use
>>getParameterValues(java.lang.String).
>>
>>
>>getParameterValues
>>public java.lang.String[] getParameterValues(java.lang.String name)
>>Returns an array of String objects containing all of the values the given
>>request parameter has, or null if the parameter does not exist.
>>If the parameter has a single value, the array has a length of 1.
>>Parameters:
>>name - a String containing the name of the parameter whose value is
>>requested
>>Returns:
>>an array of String objects containing the parameter's values
>>See Also:
>>getParameter(java.lang.String)
>>
>>-Original Message-
>>From: sun [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, February 13, 2001 12:45 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: HttpUtil
>>
>>
>>I only get one, paraname=1, actually I checked 4 boxes, in terms of posted
>>inputstream, I should get a array of value, it should be paraname=1,2,4,5.
>>that is why I have to use HttpUtil, but now it is not working, so where is
>>wrong? maybe I should use servlet instead of jsp, than inputstream will
not
>>be corrupted.
>>
>>
>>-Original Message-
>>From: Chris Janicki <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>Date: Monday, February 12, 2001 9:34 PM
>>Subject: Re: HttpUtil
>>
>>
>>String paraname = request.getParameter("checkboxName"); // 'request' is a
>>built-in JSP object
>>
>>
 Original Message <<
>>
>>On 2/13/01, 12:21:40 PM, "sun" <[EMAIL PROTECTED]> wrote regarding Re:
>>HttpUtil:
>>
>>
>>> but how to get parameter value passed from previous page, 5 checkbox
with
>>> same name different value, I want to get paraname=1,2,4,5 if I selected
4
>>> boxes.
>>
>>
>>> -Original Message-
>>> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>>> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>> Date: Monday, February 12, 2001 9:14 PM
>>> Subject: Re: HttpUtil
>>
>>
>>> >sun wrote:
>>> >
>>> >> no, I didn't call request before using HttpUtil, HttpUtil was put at
>>> first
>>> >> line in .jsp.
>>> >>
>>> >
>>> >But the JSP page did it for you (that is, the generated servlet did).
>>> >
>>> >Simply use the standard JSP mechanisms to retrieve request attributes
>>and
>>> you
>>> >should be fine.  If you *really* want to process the input data
>>yourself,
>>> you
>>> >should be using a servlet instead of a JSP page.
>>> >
>>> >Craig McClanahan
>>> >
>>> >
>>> >>
>>> >> -Original Message-
>>> >> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>>> >> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>> >> Date: Mond

Correct order for starting tomcat and apache

2001-02-13 Thread Peter B. West

What is the correct order for starting apache and tomcat, and why?

I currently have a linux redhat 7.0 system, and the chkconfig values for
/etc/rc.d/init.d/tomcat and /httpd are
# chkconfig: 345 80 20
 and
# chkconfig: 345 85 15
respectively.  I.e., tomcat starts first and finishes second.  This
seems to work, and I suppose that it then makes sense that I seem to
have problems if I just stop and restart tomcat while apache (httpd) is
still running.  Is this to be expected?  What if I stop and restart
httpd while tomcat is running?  Should I expect problems?

Peter
-- 
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"

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




RE: search display problem

2001-02-13 Thread Vikramjit Singh

thanx randy for ur ideas.
 what i am doing is that i am getting all the records from the database and
storing in a vector. and that vector i am storing in a session. Now this
session is being passed on to the next page where i get all the records. my
next and previous links are working but whenever i press the refresh button
by default the next 10 or previous 10 records are shown. 
i know that this is not a good idea and the last idea you suggested me i
have also thought about it and i have also thought of using HashTable. But
still i am not sure whether this will solve my problem
anyway thanx for ur ideas
bye
vikram

> -Original Message-
> From: Randy Layman [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 4:34 AM
> To:   [EMAIL PROTECTED]
> Subject:  RE: search display problem
> 
> 
>   This probably isn't the proper forum for this, but I'll answer
> anyways.
> 
>   You could just put the ResultSet into your session.  This is
> probably a bad idea since you would be keeping database connections open
> for
> long periods of time.
> 
>   You could keep an index you're at as part of the session/parameter,
> then on every time you return to the page you would perform the query
> again,
> skip the appropriate number of rows and continue.  (Depending upon your
> database server you might be able to indicate to it not to return the
> extra
> rows).  The problem with this is that you are querying the database every
> time and probably going to be bringing back extra data.
> 
>   You could suck in all of the resultset into some data holding object
> (List of basically C-style structs) and store this in the session.  Then
> use
> a current page variable to select the correct rows.  This would probably
> waste lots of memory but would limit the number of database accesses.
> 
>   Another way would be to suck in all the records on the first access
> and include them in the web page by JavaScript.  The JavaScript would then
> control the page display.  This would be ultra-fast and would eliminate
> server access, but it would take longer to download each page.
> 
>   There are several other alternatives available by mixing several of
> these methods.  It seems to me that typical access will be to look at the
> first several pages more frequently, so you might pull in those records
> into
> memory and only have to go back to the database when they request
> something
> like page 5 or 6.  (Fetch X pages of records at a time).  This hybrid
> would
> also work well with the last solution - send the user 4 pages of results
> and
> then to move to the next age you need to access the server.
> 
>   Just some quick thoughts.
> 
>   Randy
> 
> -Original Message-
> From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 12:54 AM
> To: [EMAIL PROTECTED]
> Subject: search display problem
> 
> 
> hello everybody,
> i have a problem. i am making a search page in which all the records are
> being displayed from the database. Now what my problem is that i want to
> make it look like Google site. in which every page has 10records and when
> i
> click on the link then i get to see the records with 10 pages. if anybody
> of
> you has gone through this then plz tell me how to do it. any idea is
> welcome
> bye
> vikram
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

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




Custom made error page to replace Error 500 page??

2001-02-13 Thread John Tan

Hi guys,

well i m currently developing this registration form with a backend 
processing file that will handle the procedures of updating datas that are 
typed in the registration page. But the thing is whenever there's a item in 
the registration page not filled in, tomcat "famous" error 500 will be 
displayed telling the user that some items are not filled in or data 
mismatch. what i was thinking was can i have a customed made error page 
called error.jsp to handle all these errors instead of letting the user see 
this error 500 page, he will see a nice error page asking him to do whenever 
necessary. Thanks for any suggestions on how i can go about doing this error 
page.
Attached are the two files..the registration page is CarltonReg.jsp
and the processing page is CarltonAddC.jsp.

thanks again
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Title: 
RegistrationPage



<%@ page language="java" import="java.sql.*" %>

	
	








 
 

 
 

 
 

 
 



  
Online Reservation Form
   
  


  
  Reservation
  Information

  
  
  

  Guest Name :
  


		
<% 

	  	  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
   	  	  Connection myConn = DriverManager.getConnection("jdbc:odbc:Clientdb1");
	   	  Statement stmt = myConn.createStatement();
		  ResultSet myResultSet = stmt.executeQuery("select * from title");

		  if (myResultSet != null)
		{
		while (myResultSet.next()) {
		   String dpid = myResultSet.getString("stid");
		   String dpname = myResultSet.getString("name");
		%>
		   '><%= dpname %>
		<%
		   } /* of while */
		   }  /* of if */

		%>
		   
  



  
  Email Address :

  

**IMPORTANT**





  Address :(optional)

  





  





  Telephone No :

  



  





  Fax No :

  



  




   



  



  
Reservation Details


  



 

Types of Rooms Required :

  


<% 

  myResultSet = stmt.executeQuery("select * from Carlton_RoomType");

  if (myResultSet != null)
{
while (myResultSet.next()) {
   String typeid = myResultSet.getString("Room_TypeId");
   String typenum = myResultSet.getString("Room_Type");
%>
   '><%= typenum %>
<%
   } /* of while */
   }  /* of if */

%>



**IMPORTANT**
 





  Number of Rooms Required :

  



  





    Please

also furnish names of the guests for the additional rooms
		   (Please put NA if it is not avaliable.)

 





  




   

  Date of check in :

  


<% 
		
		  myResultSet = stmt.executeQuery("select * from Day");
		
		  if (myResultSet != null)
		{
		while (myResultSet.next()) {
		   String dayid = myResultSet.getString("Dayid");
		   String daynum = myResultSet.getString("DayNum");
%>
		   '><%= daynum %>
<%
		   } /* of while */
		   }  /* of if */
		
%>




<% 

  myResultSet = stmt.executeQuery("select * from Month");

  if (myResultSet != null)
{
while (myResultSet.next()) {
   String monthid = myResultSet.getString("Monthid");
   String monthnum = myResultSet.getString("Month");
%>
   '><%= monthnum %>
<%
   } /* of while */
   }  /* of if */

%>




<% 

  myResultSet = stmt.executeQuery("select * from Year");

  if (myResultSet != null)
{
while (myResultSet.next()) {
   String yearid = myResultSet.getString("Yearid");
   String yearnum = myResultSet.getString("Year");
%>
   '><%= yearnum %>
<%
   } /* of while */
   }  /* of if */

%>


**IMPORTANT**
 





  Days of Stay :

  



<% 
		
		  myResultSet = stmt.executeQuery("select * from Duration");
		
		  if (myResultSet != null)
		{
		while (myResultSet.next()) {
		   String dayid = myResultSet.getString("Durationid");
		   String daynum = myResultSet.getString("Number_o

RE: HttpUtil

2001-02-13 Thread CPC Livelink Admin


Well, I just changed the form from "get" to "post" in the sample I posted
(which is still below) and I got exactly the same results. I don't know what
your problem is - are you doing anything special beyond what's in the
example below.

Regards,
Paul


-Original Message-
From: sun [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: Re: HttpUtil


yes, for get method, it is working, but I have to use post method.

rgds
sun


-Original Message-
From: CPC Livelink Admin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, February 13, 2001 9:15 AM
Subject: RE: HttpUtil


>
>It works for me as well. The only caveat is that with text boxes (which I
>thought you said you were not using) the browser sends an empty string for
>some of the boxes.
>
>Here is some sample JSP code :
>
> 
> 
> 
><%
> String []vals = request.getParameterValues("foo");
> if (vals != null)
> {
> for (int i = 0; i < vals.length; i++)
> {
> %>
> [<%= vals[i] %>]
> <%
> }
> }
>%>
>
> 
>
> 
> Foo
> Foo
> Foo
> Foo
> Foo
> Foo
>
> 
> 
>
>
>
>
>-Original Message-
>From: Randy Layman [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 7:35 AM
>To: [EMAIL PROTECTED]
>Subject: RE: HttpUtil
>
>
>
> Then your HTML or web browser is not correct.  I use this method for
>exactly what you are trying to do and it works just fine.
>
> Randy
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 1:58 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I tried, in array, it contains 5 values, 1,2,3,4,5, cann't get exactly
which
>I selected.
>
>-Original Message-
>From: CPC Livelink Admin <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:56 PM
>Subject: RE: HttpUtil
>
>
>
>
>A quick read of the docs for Interface ServletRequest reveal a snippet in
>the description of function getParameter :
>
>You should only use this method when you are sure the parameter has only
one
>value. If the parameter might have more than one value, use
>getParameterValues(java.lang.String).
>
>
>getParameterValues
>public java.lang.String[] getParameterValues(java.lang.String name)
>Returns an array of String objects containing all of the values the given
>request parameter has, or null if the parameter does not exist.
>If the parameter has a single value, the array has a length of 1.
>Parameters:
>name - a String containing the name of the parameter whose value is
>requested
>Returns:
>an array of String objects containing the parameter's values
>See Also:
>getParameter(java.lang.String)
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 12:45 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I only get one, paraname=1, actually I checked 4 boxes, in terms of posted
>inputstream, I should get a array of value, it should be paraname=1,2,4,5.
>that is why I have to use HttpUtil, but now it is not working, so where is
>wrong? maybe I should use servlet instead of jsp, than inputstream will not
>be corrupted.
>
>
>-Original Message-
>From: Chris Janicki <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:34 PM
>Subject: Re: HttpUtil
>
>
>String paraname = request.getParameter("checkboxName"); // 'request' is a
>built-in JSP object
>
>
>>> Original Message <<
>
>On 2/13/01, 12:21:40 PM, "sun" <[EMAIL PROTECTED]> wrote regarding Re:
>HttpUtil:
>
>
>> but how to get parameter value passed from previous page, 5 checkbox with
>> same name different value, I want to get paraname=1,2,4,5 if I selected 4
>> boxes.
>
>
>> -Original Message-
>> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> Date: Monday, February 12, 2001 9:14 PM
>> Subject: Re: HttpUtil
>
>
>> >sun wrote:
>> >
>> >> no, I didn't call request before using HttpUtil, HttpUtil was put at
>> first
>> >> line in .jsp.
>> >>
>> >
>> >But the JSP page did it for you (that is, the generated servlet did).
>> >
>> >Simply use the standard JSP mechanisms to retrieve request attributes
>and
>> you
>> >should be fine.  If you *really* want to process the input data
>yourself,
>> you
>> >should be using a servlet instead of a JSP page.
>> >
>> >Craig McClanahan
>> >
>> >
>> >>
>> >> -Original Message-
>> >> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>> >> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> >> Date: Monday, February 12, 2001 2:48 PM
>> >> Subject: Re: HttpUtil
>> >>
>> >> >sun wrote:
>> >> >
>> >> >> yes, I tried that, got same error, "short read",
>> >> >> in terms of docs, it means posted inputstream is invalid, but I am
>not
>> >> sure
>> >> >> about that.
>> >> >>
>> >> >
>> >> >One reason you could get a "short read" response is if the servlet
>> >> container
>> >> >has already read the input stream's contents.  Fo

RE: Error on startup any ideas???

2001-02-13 Thread McDermid, Ian

These are the 2 offending lines"

tcp0  0 *:webcache  *:* LISTEN
tcp0  0 *:www   *:* LISTEN

What they are saying is that both port 80(www) used by apache, and port
8080(webcache) used by tomcat are being used.

run ps exa |grep apache to see if another instance of apache is running.

Ian

-Original Message-
From: aras [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 2:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Error on startup any ideas???


Thanks for the showing me netstat, although I have no idea what the output
is
telling me.  I ran httpd stop and ran netstat Here's the output.  By the way
I'm on RH6.2

If you see the offending line let me know what it is.  Also, I won't keep
coming back to you.  I always exhaust all options before giving in.  Thanks
for
the help.


1  0 localhost.localdom:1054 localhost.localdoma:www CLOSE_WAIT
tcp1  0 localhost.localdom:1051 localhost.localdoma:www
CLOSE_WAIT
tcp1  0 localhost.localdom:1050 localhost.localdoma:www
CLOSE_WAIT
tcp0  0 *:1038  *:* LISTEN
tcp0  0 *:1037  *:* LISTEN
tcp0  0 *:1036  *:* LISTEN
tcp0  0 *:1035  *:* LISTEN
tcp0  0 *:1034  *:* LISTEN
tcp0  0 *:1033  *:* LISTEN
tcp0  0 *:1027  *:* LISTEN
tcp0  0 *:1025  *:* LISTEN
tcp0  0 *:6000  *:* LISTEN
tcp0  0 *:webcache  *:* LISTEN
tcp0  0 *:www   *:* LISTEN
tcp0  0 *:smtp  *:* LISTEN
tcp0  0 *:printer   *:* LISTEN
tcp0  0 *:linuxconf *:* LISTEN
tcp0  0 *:finger*:* LISTEN
tcp0  0 *:login *:* LISTEN
tcp0  0 *:shell *:* LISTEN
tcp0  0 *:telnet*:* LISTEN
tcp0  0 *:ftp   *:* LISTEN
tcp0  0 *:auth  *:* LISTEN
tcp0  0 *:905   *:* LISTEN
tcp0  0 *:1024  *:* LISTEN
tcp0  0 *:sunrpc*:* LISTEN
udp0  0 *:ntalk *:*
udp0  0 *:talk  *:*
udp0  0 *:903   *:*
udp0  0 *:1024  *:*
udp0  0 *:sunrpc*:*
raw0  0 *:icmp  *:* 7
raw0  0 *:tcp   *:* 7
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags   Type   State I-Node Path
unix  1  [ ] STREAM CONNECTED 54233  @006a
unix  1  [ ] STREAM CONNECTED 734@0028
unix  0  [ ACC ] STREAM LISTENING 728/tmp/.X11-unix/X0
unix  0  [ ACC ] STREAM LISTENING 929
/tmp/orbit-root/orb-748360074379341804
unix  1  [ ] STREAM CONNECTED 779@002f
unix  1  [ ] STREAM CONNECTED 730@0027
unix  1  [ ] STREAM CONNECTED 1038   @005b
unix  0  [ ACC ] STREAM LISTENING 987
/tmp/orbit-root/orb-1450921500846518630
unix  1  [ ] STREAM CONNECTED 976@004a
unix  1  [ ] STREAM CONNECTED 770@002c
unix  0  [ ACC ] STREAM LISTENING 620/tmp/.s.PGSQL.8080
unix  0  [ ACC ] STREAM LISTENING 506/dev/printer
unix  0  [ ACC ] STREAM LISTENING 1005
/tmp/orbit-root/orb-9071657312032714538
unix  1  [ ] STREAM CONNECTED 979@004b
unix  8  [ ] DGRAM411/dev/log
unix  1  [ ] STREAM CONNECTED 54614  @006e
unix  1  [ ] STREAM CONNECTED 54213  @0068
unix  1  [ ] STREAM CONNECTED 1047   @005d
unix  1  [ ] STREAM CONNECTED 1032   @0059
unix  0  [ ACC ] STREAM LISTENING 1029
/tmp/orbit-root/orb-5658099401442766632
unix  1  [ ] STREAM CONNECTED 981@004c
unix  0  [ ACC ] STREAM LISTENING 565/dev/gpmctl
unix  1  [ ] STREAM CONNECTED  

Re: Error on startup any ideas???

2001-02-13 Thread aras

Thanks for the showing me netstat, although I have no idea what the output is
telling me.  I ran httpd stop and ran netstat Here's the output.  By the way
I'm on RH6.2

If you see the offending line let me know what it is.  Also, I won't keep
coming back to you.  I always exhaust all options before giving in.  Thanks for
the help.


1  0 localhost.localdom:1054 localhost.localdoma:www CLOSE_WAIT
tcp1  0 localhost.localdom:1051 localhost.localdoma:www CLOSE_WAIT
tcp1  0 localhost.localdom:1050 localhost.localdoma:www CLOSE_WAIT
tcp0  0 *:1038  *:* LISTEN
tcp0  0 *:1037  *:* LISTEN
tcp0  0 *:1036  *:* LISTEN
tcp0  0 *:1035  *:* LISTEN
tcp0  0 *:1034  *:* LISTEN
tcp0  0 *:1033  *:* LISTEN
tcp0  0 *:1027  *:* LISTEN
tcp0  0 *:1025  *:* LISTEN
tcp0  0 *:6000  *:* LISTEN
tcp0  0 *:webcache  *:* LISTEN
tcp0  0 *:www   *:* LISTEN
tcp0  0 *:smtp  *:* LISTEN
tcp0  0 *:printer   *:* LISTEN
tcp0  0 *:linuxconf *:* LISTEN
tcp0  0 *:finger*:* LISTEN
tcp0  0 *:login *:* LISTEN
tcp0  0 *:shell *:* LISTEN
tcp0  0 *:telnet*:* LISTEN
tcp0  0 *:ftp   *:* LISTEN
tcp0  0 *:auth  *:* LISTEN
tcp0  0 *:905   *:* LISTEN
tcp0  0 *:1024  *:* LISTEN
tcp0  0 *:sunrpc*:* LISTEN
udp0  0 *:ntalk *:*
udp0  0 *:talk  *:*
udp0  0 *:903   *:*
udp0  0 *:1024  *:*
udp0  0 *:sunrpc*:*
raw0  0 *:icmp  *:* 7
raw0  0 *:tcp   *:* 7
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags   Type   State I-Node Path
unix  1  [ ] STREAM CONNECTED 54233  @006a
unix  1  [ ] STREAM CONNECTED 734@0028
unix  0  [ ACC ] STREAM LISTENING 728/tmp/.X11-unix/X0
unix  0  [ ACC ] STREAM LISTENING 929
/tmp/orbit-root/orb-748360074379341804
unix  1  [ ] STREAM CONNECTED 779@002f
unix  1  [ ] STREAM CONNECTED 730@0027
unix  1  [ ] STREAM CONNECTED 1038   @005b
unix  0  [ ACC ] STREAM LISTENING 987
/tmp/orbit-root/orb-1450921500846518630
unix  1  [ ] STREAM CONNECTED 976@004a
unix  1  [ ] STREAM CONNECTED 770@002c
unix  0  [ ACC ] STREAM LISTENING 620/tmp/.s.PGSQL.8080
unix  0  [ ACC ] STREAM LISTENING 506/dev/printer
unix  0  [ ACC ] STREAM LISTENING 1005
/tmp/orbit-root/orb-9071657312032714538
unix  1  [ ] STREAM CONNECTED 979@004b
unix  8  [ ] DGRAM411/dev/log
unix  1  [ ] STREAM CONNECTED 54614  @006e
unix  1  [ ] STREAM CONNECTED 54213  @0068
unix  1  [ ] STREAM CONNECTED 1047   @005d
unix  1  [ ] STREAM CONNECTED 1032   @0059
unix  0  [ ACC ] STREAM LISTENING 1029
/tmp/orbit-root/orb-5658099401442766632
unix  1  [ ] STREAM CONNECTED 981@004c
unix  0  [ ACC ] STREAM LISTENING 565/dev/gpmctl
unix  1  [ ] STREAM CONNECTED 54616  @006f
unix  1  [ ] STREAM CONNECTED 54211  @0067
unix  1  [ ] STREAM CONNECTED 1045   @005c
unix  1  [ ] STREAM CONNECTED 989@004d
unix  1  [ ] STREAM CONNECTED 931@0049
unix  1  [ ] STREAM CONNECTED 762@002b
unix  0  [ ACC ] STREAM LISTENING 757/tmp/.ICE-unix/768
unix  1  [ ] STREAM CONNECTED 1021   @0057
unix  1  [ ] STREAM CONNECTED 921@00

Re: Error on startup any ideas???

2001-02-13 Thread Jan Labanowski

Do a
   netstat -a -n | more
and see if something is using and port which you have given in server.xml
(do 
grep port server.xml
 to find all port assignments in your server.xml)
Looking at your log something us using port 397.

Do not be confused... Tomcat is a server (i.e., opens ports for listening
for mod_jk/mod_jserv [e.g., 8007] and for serving pages by itself on HTTP port
[ e.g., 8080 ], or serving pages on HTTPS port [ e.g., 8447 ] ),
and Apache is a client (talks to Tomcat first via mod_jk/mod_jserv).
Now... Server should in principle be always started before client, so start
tomcat first, and then start Apache. Killing apache will not cure your problem.
If apache uses port 397 for something, it means that this port cannot be used
by Tomcat. Only one process can listen to a given port. Ports cannot be shared
among different processes. 

The BindException


On Tue, 13 Feb 2001, aras wrote:

> Well I'm learning more and more.  I stopped appache with *httpd stop* and tried to 
>start TomCat and I still get the error.  Am I correct that TomCat should be started 
>first then apache?  I'll have to do more research on the ports, but if you have any 
>ideas I'd appreciated it.
> 
> 
> 
> 
> Jeff Lansing wrote:
> 
> > Hi,
> > Yes, some other process is using port 80 (or whatever port you have Tomcat 
>configured to listen on).
> > Jeff
> >
> > aras wrote:
> >
> > > I think I have everything setup correctly (probably not).  Here's the error:
> > > FATAL:java.net.BindException: Address already in use
> > >
> > > Here's the complete output
> > >
> > > in tomcat.sh
> > > Using classpath:
> > > 
>/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar:.:/usr/local/jdk/j2sdk1.3/lib/classes.zip:/usr/lib/pgsql/jdbc7.0-1.2.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar
> > >
> > > [root@localhost bin]# 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(
> > > /examples )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /admin )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1: )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1:/examples )
> > > Starting tomcat. Check logs/tomcat.log for error messages
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(  )
> > > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /test )
> > > FATAL:java.net.BindException: Address already in use
> > > java.net.BindException: Address already in use
> > >  at java.net.PlainSocketImpl.socketBind(Native Method)
> > >  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




RE: Error on startup any ideas???

2001-02-13 Thread McDermid, Ian

Tomcat must be started first if you are importing
"/$TOMCAT_HOME/conf/mod_jk.conf-auto" to setup your apache/tomcat
environment.

By default tocat uses 8080 (httpproxy) and 8007 executing "netstat-a" will
tell you what ports are listening on your machine. If you see 80(http) or
8080(httpproxy) then that is your problem.

I assume you are using freeBDS, or a Linux variant.

Ian

-Original Message-
From: aras [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: Error on startup any ideas???


Well I'm learning more and more.  I stopped appache with *httpd stop* and
tried to start TomCat and I still get the error.  Am I correct that TomCat
should be started first then apache?  I'll have to do more research on the
ports, but if you have any ideas I'd appreciated it.




Jeff Lansing wrote:

> Hi,
> Yes, some other process is using port 80 (or whatever port you have Tomcat
configured to listen on).
> Jeff
>
> aras wrote:
>
> > I think I have everything setup correctly (probably not).  Here's the
error:
> > FATAL:java.net.BindException: Address already in use
> >
> > Here's the complete output
> >
> > in tomcat.sh
> > Using classpath:
> >
/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/
lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakar
ta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.j
ar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/
lib/webserver.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar:.:/usr/local/jdk/j2s
dk1.3/lib/classes.zip:/usr/lib/pgsql/jdbc7.0-1.2.jar:/usr/local/jdk/j2sdk1.3
/lib/tools.jar
> >
> > [root@localhost bin]# 2001-02-13 08:21:14 - ContextManager: Adding
context Ctx(
> > /examples )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /admin )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1: )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(
127.0.0.1:/examples )
> > Starting tomcat. Check logs/tomcat.log for error messages
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(  )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /test )
> > FATAL:java.net.BindException: Address already in use
> > java.net.BindException: Address already in use
> >  at java.net.PlainSocketImpl.socketBind(Native Method)
> >  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

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




Re: Error on startup any ideas???

2001-02-13 Thread aras

Well I'm learning more and more.  I stopped appache with *httpd stop* and tried to 
start TomCat and I still get the error.  Am I correct that TomCat should be started 
first then apache?  I'll have to do more research on the ports, but if you have any 
ideas I'd appreciated it.




Jeff Lansing wrote:

> Hi,
> Yes, some other process is using port 80 (or whatever port you have Tomcat 
>configured to listen on).
> Jeff
>
> aras wrote:
>
> > I think I have everything setup correctly (probably not).  Here's the error:
> > FATAL:java.net.BindException: Address already in use
> >
> > Here's the complete output
> >
> > in tomcat.sh
> > Using classpath:
> > 
>/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar:.:/usr/local/jdk/j2sdk1.3/lib/classes.zip:/usr/lib/pgsql/jdbc7.0-1.2.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar
> >
> > [root@localhost bin]# 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(
> > /examples )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /admin )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1: )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1:/examples )
> > Starting tomcat. Check logs/tomcat.log for error messages
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(  )
> > 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /test )
> > FATAL:java.net.BindException: Address already in use
> > java.net.BindException: Address already in use
> >  at java.net.PlainSocketImpl.socketBind(Native Method)
> >  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Using the /amin context in tomcat

2001-02-13 Thread McDermid, Ian

Hi,

I have setup postgresql on my RH6.2 machine. Apache and mod_jk are working
with all the jsp and servlet examples.

I have set up a database called authority with the following attributes:

Welcome to psql, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
   \h for help with SQL commands
   \? for help on internal slash commands
   \g or terminate with semicolon to execute query
   \q to quit

authority=# \d
   List of relations
Name| Type  |  Owner
+---+--
 roles  | table | postgres
 user_roles | table | postgres
 users  | table | postgres
(3 rows)

authority=# select * from users;
 user_name | user_pass
---+---
 tomcat| tomcat
 user1 | tomcat
 user2 | tomcat
 user3 | tomcat
 admin | password
(5 rows)
 
authority=# select * from user_roles;
 user_name | role_name
---+
 user1 | tomcatRole
 tomcat| tomcatRole
 user2 | otherRole
 tomcat| otherRole
 admin | tomcatRole
 admin | otherRole
(6 rows)
 
authority=# select * from roles;
 role_name

 tomcatRole
 otherRole
(2 rows)
 
authority=# 

When I try to use the admin pages I get the following messages:

ot@eLaptop conf]# 2001-02-14 03:27:51 - ContextManager: JDBCRealm:
Authentication successful for user admin
2001-02-14 03:27:51 - ContextManager: JDBCRealm: Auth ok, user=admin
2001-02-14 03:27:51 - ContextManager: JDBCRealm: Controled access for admin
R( /admin + /contextAdmin/contextAdmin.jsp + null) Ct
(jsp(org.apache.jasper.servlet.JspServlet/null) )
2001-02-14 03:27:51 - ContextManager: JDBCRealm: Auth ok, first
role=otherRole
2001-02-14 03:27:51 - ContextManager: JDBCRealm: UnAuthorized admin 

server.xml has the following entries:

  
Can anyone point me in the right direction

Ian



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




RE: Stopping Tomcat

2001-02-13 Thread Jan Labanowski

I did not follow this thread from the beginning, but the first thing I would
try is to see if ajp12 is enabled. Even if you use ajp13 for communication
with apache you need ajp12  for shutting down the Tomcat. Never remove
ajp12 from server.xml, only add ajp13.

So, you have to have a 





in your server.xml. Put something which is not used as port value (4006 in my
case)

Jan
Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




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




RE: Mod_jk and Apache

2001-02-13 Thread Andrew Stewart

It is in the user guide, try poking around a bit more

you need to compile mod_jk from the Source of Tomcat and add it with
apxs using Apache.

What platform are you on and what trouble are you having ?

-Original Message-
From: Michael Welch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: Mod_jk and Apache


How do you get Tomcat,  Mod_Jk, and Apache to talk to each to other? The

user guide doesn't cover os-specific issues, please help?


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

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




Mod_jk and Apache

2001-02-13 Thread Michael Welch

How do you get Tomcat,  Mod_Jk, and Apache to talk to each to other? The 
user guide doesn't cover os-specific issues, please help?


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




Re: Error on startup any ideas???

2001-02-13 Thread Jeff Lansing

Hi,
Yes, some other process is using port 80 (or whatever port you have Tomcat configured 
to listen on).
Jeff

aras wrote:

> I think I have everything setup correctly (probably not).  Here's the error:
> FATAL:java.net.BindException: Address already in use
>
> Here's the complete output
>
> in tomcat.sh
> Using classpath:
> 
>/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar:.:/usr/local/jdk/j2sdk1.3/lib/classes.zip:/usr/lib/pgsql/jdbc7.0-1.2.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar
>
> [root@localhost bin]# 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(
> /examples )
> 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /admin )
> 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1: )
> 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1:/examples )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(  )
> 2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /test )
> FATAL:java.net.BindException: Address already in use
> java.net.BindException: Address already in use
>  at java.net.PlainSocketImpl.socketBind(Native Method)
>  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Error on startup any ideas???

2001-02-13 Thread aras

I think I have everything setup correctly (probably not).  Here's the error:
FATAL:java.net.BindException: Address already in use

Here's the complete output

in tomcat.sh
Using classpath:
/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/lib/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/lib/servlet.jar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/local/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar:.:/usr/local/jdk/j2sdk1.3/lib/classes.zip:/usr/lib/pgsql/jdbc7.0-1.2.jar:/usr/local/jdk/j2sdk1.3/lib/tools.jar

[root@localhost bin]# 2001-02-13 08:21:14 - ContextManager: Adding context Ctx(
/examples )
2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /admin )
2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1: )
2001-02-13 08:21:14 - ContextManager: Adding context Ctx( 127.0.0.1:/examples )
Starting tomcat. Check logs/tomcat.log for error messages
2001-02-13 08:21:14 - ContextManager: Adding context Ctx(  )
2001-02-13 08:21:14 - ContextManager: Adding context Ctx( /test )
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)




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




Re: Hi, Using Tomcat for the first time:

2001-02-13 Thread Geoff Lane

Yes, there are max_threads, min_spare_threads and max_spare_threads.
See:
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html
under 'Configuring thread pools'

Example:








Andrew Stewart wrote:
> 
> and I have to say I am impressed so far
> 
> I've tried three other Java VM's and have had very dissapointing
> experiences with them (Caucho's Resin, NA's ServletExec, and Allaire's
> JRun).
> 
> Anyway, one of the few questions I'd like to ask is if there's anyway to
> control the number of threads (or workers) that come up when Tomcat is
> run.
> 
> I tried looking for a setting something like MinServers / MaxServers
> akin to Apache but no dice, any help would be appreciated.
> 
> Thanks in advance.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 

Geoff Lane <[EMAIL PROTECTED]>
(650) 969-5000 x104

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




Re: HttpUtil

2001-02-13 Thread sun

yes, for get method, it is working, but I have to use post method.

rgds
sun


-Original Message-
From: CPC Livelink Admin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, February 13, 2001 9:15 AM
Subject: RE: HttpUtil


>
>It works for me as well. The only caveat is that with text boxes (which I
>thought you said you were not using) the browser sends an empty string for
>some of the boxes.
>
>Here is some sample JSP code :
>
> 
> 
> 
><%
> String []vals = request.getParameterValues("foo");
> if (vals != null)
> {
> for (int i = 0; i < vals.length; i++)
> {
> %>
> [<%= vals[i] %>]
> <%
> }
> }
>%>
>
> 
>
> 
> Foo
> Foo
> Foo
> Foo
> Foo
> Foo
>
> 
> 
>
>
>
>
>-Original Message-
>From: Randy Layman [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 7:35 AM
>To: [EMAIL PROTECTED]
>Subject: RE: HttpUtil
>
>
>
> Then your HTML or web browser is not correct.  I use this method for
>exactly what you are trying to do and it works just fine.
>
> Randy
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 1:58 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I tried, in array, it contains 5 values, 1,2,3,4,5, cann't get exactly
which
>I selected.
>
>-Original Message-
>From: CPC Livelink Admin <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:56 PM
>Subject: RE: HttpUtil
>
>
>
>
>A quick read of the docs for Interface ServletRequest reveal a snippet in
>the description of function getParameter :
>
>You should only use this method when you are sure the parameter has only
one
>value. If the parameter might have more than one value, use
>getParameterValues(java.lang.String).
>
>
>getParameterValues
>public java.lang.String[] getParameterValues(java.lang.String name)
>Returns an array of String objects containing all of the values the given
>request parameter has, or null if the parameter does not exist.
>If the parameter has a single value, the array has a length of 1.
>Parameters:
>name - a String containing the name of the parameter whose value is
>requested
>Returns:
>an array of String objects containing the parameter's values
>See Also:
>getParameter(java.lang.String)
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 12:45 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I only get one, paraname=1, actually I checked 4 boxes, in terms of posted
>inputstream, I should get a array of value, it should be paraname=1,2,4,5.
>that is why I have to use HttpUtil, but now it is not working, so where is
>wrong? maybe I should use servlet instead of jsp, than inputstream will not
>be corrupted.
>
>
>-Original Message-
>From: Chris Janicki <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:34 PM
>Subject: Re: HttpUtil
>
>
>String paraname = request.getParameter("checkboxName"); // 'request' is a
>built-in JSP object
>
>
>>> Original Message <<
>
>On 2/13/01, 12:21:40 PM, "sun" <[EMAIL PROTECTED]> wrote regarding Re:
>HttpUtil:
>
>
>> but how to get parameter value passed from previous page, 5 checkbox with
>> same name different value, I want to get paraname=1,2,4,5 if I selected 4
>> boxes.
>
>
>> -Original Message-
>> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> Date: Monday, February 12, 2001 9:14 PM
>> Subject: Re: HttpUtil
>
>
>> >sun wrote:
>> >
>> >> no, I didn't call request before using HttpUtil, HttpUtil was put at
>> first
>> >> line in .jsp.
>> >>
>> >
>> >But the JSP page did it for you (that is, the generated servlet did).
>> >
>> >Simply use the standard JSP mechanisms to retrieve request attributes
>and
>> you
>> >should be fine.  If you *really* want to process the input data
>yourself,
>> you
>> >should be using a servlet instead of a JSP page.
>> >
>> >Craig McClanahan
>> >
>> >
>> >>
>> >> -Original Message-
>> >> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>> >> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> >> Date: Monday, February 12, 2001 2:48 PM
>> >> Subject: Re: HttpUtil
>> >>
>> >> >sun wrote:
>> >> >
>> >> >> yes, I tried that, got same error, "short read",
>> >> >> in terms of docs, it means posted inputstream is invalid, but I am
>not
>> >> sure
>> >> >> about that.
>> >> >>
>> >> >
>> >> >One reason you could get a "short read" response is if the servlet
>> >> container
>> >> >has already read the input stream's contents.  For example, if you
are
>> >> >processing a POST request and you have already called something like
>> >> >request.getParameter(), the contents of the input stream would have
>> already
>> >> >been processed.
>> >> >
>> >> >Craig McClanahan
>> >> >
>> >> >
>> >> >
>> >> >-
>> >> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >For addition

Re: HttpUtil

2001-02-13 Thread sun

Randy:
I am not sure what is problem, if because of HTML, what is possible issues?
I tried on different server, different browser, all get same error: short
read.

rgds
sun


-Original Message-
From: Randy Layman <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, February 13, 2001 7:10 AM
Subject: RE: HttpUtil


>
> Then your HTML or web browser is not correct.  I use this method for
>exactly what you are trying to do and it works just fine.
>
> Randy
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 1:58 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I tried, in array, it contains 5 values, 1,2,3,4,5, cann't get exactly
which
>I selected.
>
>-Original Message-
>From: CPC Livelink Admin <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:56 PM
>Subject: RE: HttpUtil
>
>
>
>
>A quick read of the docs for Interface ServletRequest reveal a snippet in
>the description of function getParameter :
>
>You should only use this method when you are sure the parameter has only
one
>value. If the parameter might have more than one value, use
>getParameterValues(java.lang.String).
>
>
>getParameterValues
>public java.lang.String[] getParameterValues(java.lang.String name)
>Returns an array of String objects containing all of the values the given
>request parameter has, or null if the parameter does not exist.
>If the parameter has a single value, the array has a length of 1.
>Parameters:
>name - a String containing the name of the parameter whose value is
>requested
>Returns:
>an array of String objects containing the parameter's values
>See Also:
>getParameter(java.lang.String)
>
>-Original Message-
>From: sun [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 13, 2001 12:45 PM
>To: [EMAIL PROTECTED]
>Subject: Re: HttpUtil
>
>
>I only get one, paraname=1, actually I checked 4 boxes, in terms of posted
>inputstream, I should get a array of value, it should be paraname=1,2,4,5.
>that is why I have to use HttpUtil, but now it is not working, so where is
>wrong? maybe I should use servlet instead of jsp, than inputstream will not
>be corrupted.
>
>
>-Original Message-
>From: Chris Janicki <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Monday, February 12, 2001 9:34 PM
>Subject: Re: HttpUtil
>
>
>String paraname = request.getParameter("checkboxName"); // 'request' is a
>built-in JSP object
>
>
>>> Original Message <<
>
>On 2/13/01, 12:21:40 PM, "sun" <[EMAIL PROTECTED]> wrote regarding Re:
>HttpUtil:
>
>
>> but how to get parameter value passed from previous page, 5 checkbox with
>> same name different value, I want to get paraname=1,2,4,5 if I selected 4
>> boxes.
>
>
>> -Original Message-
>> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> Date: Monday, February 12, 2001 9:14 PM
>> Subject: Re: HttpUtil
>
>
>> >sun wrote:
>> >
>> >> no, I didn't call request before using HttpUtil, HttpUtil was put at
>> first
>> >> line in .jsp.
>> >>
>> >
>> >But the JSP page did it for you (that is, the generated servlet did).
>> >
>> >Simply use the standard JSP mechanisms to retrieve request attributes
>and
>> you
>> >should be fine.  If you *really* want to process the input data
>yourself,
>> you
>> >should be using a servlet instead of a JSP page.
>> >
>> >Craig McClanahan
>> >
>> >
>> >>
>> >> -Original Message-
>> >> From: Craig R. McClanahan <[EMAIL PROTECTED]>
>> >> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>> >> Date: Monday, February 12, 2001 2:48 PM
>> >> Subject: Re: HttpUtil
>> >>
>> >> >sun wrote:
>> >> >
>> >> >> yes, I tried that, got same error, "short read",
>> >> >> in terms of docs, it means posted inputstream is invalid, but I am
>not
>> >> sure
>> >> >> about that.
>> >> >>
>> >> >
>> >> >One reason you could get a "short read" response is if the servlet
>> >> container
>> >> >has already read the input stream's contents.  For example, if you
are
>> >> >processing a POST request and you have already called something like
>> >> >request.getParameter(), the contents of the input stream would have
>> already
>> >> >been processed.
>> >> >
>> >> >Craig McClanahan
>> >> >
>> >> >
>> >> >
>> >> >-
>> >> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >For additional commands, email: [EMAIL PROTECTED]
>> >> >
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, email: [EMAIL PROTECTED]
>> >
>> >
>> >-
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, email: [EMAIL PROTECTED]
>> >
>
>
>> -
>> To unsubscribe, e-mail

Re: HttpUtil

2001-02-13 Thread sun
Title: RE: HttpUtil




yes, I can get String[] paranames, 
five values, 1,2,3,4,5, but I only checked 1,2,4, how can I get these three 
values? if use HttpUtil, I can get directly checkboxname=1,2,4

-Original Message-From: 
Cox, Charlie <[EMAIL PROTECTED]>To: '[EMAIL PROTECTED]' 
<[EMAIL PROTECTED]>Date: 
Tuesday, February 13, 2001 6:48 AMSubject: RE: 
HttpUtil
you should actually use : 
String[] paranames = 
request.getParameterValues("checkboxName"); 
then you should be able to use 
paranames[0],paranames[1]...to get your values. 
-Original Message- From: sun 
[mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 13, 2001 12:45 PM To: [EMAIL PROTECTED] Subject: 
Re: HttpUtil 
I only get one, paraname=1, actually I checked 4 boxes, in 
terms of posted inputstream, I should get a array of 
value, it should be paraname=1,2,4,5. that is why I 
have to use HttpUtil, but now it is not working, so where is 
wrong? maybe I should use servlet instead of jsp, than 
inputstream will not be corrupted. 
-Original Message- From: 
Chris Janicki <[EMAIL PROTECTED]> To: 
[EMAIL PROTECTED] <[EMAIL PROTECTED]> 
Date: Monday, February 12, 2001 9:34 PM Subject: Re: HttpUtil 
String paraname = 
request.getParameter("checkboxName"); // 'request' is a 
built-in JSP object 
>> 
Original Message 
<< 

On 2/13/01, 12:21:40 PM, "sun" 
<[EMAIL PROTECTED]> wrote regarding Re: HttpUtil: 
> but how to get parameter value passed from previous 
page, 5 checkbox with > same name different 
value, I want to get paraname=1,2,4,5 if I selected 4 > boxes. 
> -Original Message- > 
From: Craig R. McClanahan <[EMAIL PROTECTED]> 
> To: [EMAIL PROTECTED] 
<[EMAIL PROTECTED]> > Date: 
Monday, February 12, 2001 9:14 PM > Subject: Re: 
HttpUtil 
> >sun wrote: > > 
> >> no, I didn't call request before using 
HttpUtil, HttpUtil was put at > first 
> >> line in .jsp. > 
>> > > > 
>But the JSP page did it for you (that is, the generated servlet 
did). > > > 
>Simply use the standard JSP mechanisms to retrieve request 
attributes and > 
you > >should be fine.  If you *really* 
want to process the input data yourself, 
> you > >should be using a 
servlet instead of a JSP page. > > 
> >Craig McClanahan > 
> > > > 
>> > >> -Original 
Message- > >> From: Craig R. McClanahan 
<[EMAIL PROTECTED]> > >> 
To: [EMAIL PROTECTED] 
<[EMAIL PROTECTED]> > >> 
Date: Monday, February 12, 2001 2:48 PM > 
>> Subject: Re: HttpUtil > >> 
> >> >sun wrote: > 
>> > > >> >> yes, I tried 
that, got same error, "short read", > 
>> >> in terms of docs, it means posted inputstream is invalid, 
but I am not > >> 
sure > >> >> about that. 
> >> >> > 
>> > > >> >One reason you could 
get a "short read" response is if the servlet > >> container > >> >has 
already read the input stream's contents.  For example, if you 
are > >> >processing a POST request and 
you have already called something like > >> 
>request.getParameter(), the contents of the input stream would 
have > already > 
>> >been processed. > >> 
> > >> >Craig McClanahan 
> >> > > >> 
> > >> > > 
>> 
>- 
> >> >To unsubscribe, e-mail: 
[EMAIL PROTECTED] > 
>> >For additional commands, email: 
[EMAIL PROTECTED] > >> 
> > >> > 
>> 
- 
> >> To unsubscribe, e-mail: 
[EMAIL PROTECTED] > 
>> For additional commands, email: 
[EMAIL PROTECTED] > > 
> > > 
>- 
> >To unsubscribe, e-mail: 
[EMAIL PROTECTED] > 
>For additional commands, email: 
[EMAIL PROTECTED] > > 

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

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



Re: Setting up server.xml

2001-02-13 Thread Craig R. McClanahan

janis wrote:

> "Ignacio J. Ortega" wrote:
>
> >
> >
> > You need to read those ugly specs ( in
> > http://java.sun.com/products/servlets ) to get your webapp security to
> > work, JDBCRealm has nothing to do with web.xml, it's only a way to store
> > usernames & passwords for a webapp, you need to configure your web.xml
> > to see it in action... Please send your web.xml if you want some help
> > with it 
> >
> > Please check ( and understand ) the url
> > http://localhost:8080/examples/jps/security to look at working example,
> > look at the web.xml file of the examples webapp to look at a working
> > config...
>
> Thank you for recommendations! I'll read them.
>
> When I make a request to the url mentioned above I get an authenication
> form.
> When I provide the username tomcat and password tomcat (role tomcat is
> defined in tomcat-users.xml) I get an login error.
>

If you have declared that you are using the JDBCRealm instead of the default
one, the tomcat-users.xml file is no longer consulted.  Be sure that you have
added users into the database table configured in your  entry in order
to be able to log on to the protected page in the examples application.

>
> I have seen a some messages on this list there people have discussed this
> issue.
> They were talking about a context attribute setting to trusted=true in the
> connection
> with the manager webapp included in Tomcat 4.0 - b1 distribution.
>

The "trusted" attribute only exists on Tomcat 3.2 -- not on 4.0.  In order to
use the manager application of Tomcat 4.0, all you need is a defined user
(again, in your database table if you're using a JDBCRealm) with a role of
"manager".

>
> But where to specify the Context if Tomcat is not used in standalone mode.
>

There are likely to be bugs in trying to use container-managed security
through mod_webapp.  Could you post the relevant portion of your server.xml
file?

Craig


>
> I tried to put a  tag between  tags, but it resulted in
> error
> messages for WarpContext.
>
> The web.xml file I used is here:
> ?xml version="1.0" encoding="ISO-8859-1"?>
>
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
>
> 
>
>   
> 
>   XSLTAGS
> 
> 
>   /WEB-INF/xsl.tld
> 
>   
>
>   
> Wap Security Constraint
> 
>   Protected Area
>   /test/*
> 
> 
>   tomcat
>   role1
> 
>   
>
>   
> FORM
> Wap Form-based Authentication Area
> 
>   /test/login/login.jsp
>   /test/login/error.jsp
> 
>   
>
> 
>
> >
> >
> > Saludos ,
> > Ignacio J. Ortega
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Hi, Using Tomcat for the first time:

2001-02-13 Thread Andrew Stewart

and I have to say I am impressed so far

I've tried three other Java VM's and have had very dissapointing
experiences with them (Caucho's Resin, NA's ServletExec, and Allaire's
JRun).

Anyway, one of the few questions I'd like to ask is if there's anyway to
control the number of threads (or workers) that come up when Tomcat is
run.

I tried looking for a setting something like MinServers / MaxServers
akin to Apache but no dice, any help would be appreciated.

Thanks in advance.

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




RE: Admin User Name and Password????

2001-02-13 Thread Nael Mohammad

One more thing might help you:

Simple,

using the tomcat admin feature, you can specify the context to be whatever
you like. To access the admin feature, you need to set it first using the
tomcat-user.xml file located in your conf directory. An example that I have
below works just fine for me. After that then you should be able to add the
context you like anywhere so long as tomcat knows where it's going.  

In Linux: /tomcat/conf/tomcat-user.xml


 


  
  


After that got http://localhost:8080/admin and bam... you should now be able
to access the admin feature. 

Now you should be able to login. 

The above file is the exact content in the tomcat-user.xml file. 


Nael

-Original Message-
From: Vijayanand Sukumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:08 PM
To: '[EMAIL PROTECTED]'
Subject: Admin User Name and Password


Hi All,
I tried to login under the context http://localhost://8080/admin. The values
given in the tomcat-users.xml did not work 
Can Anyone Help !!!
Thanks in Advance.

Vijay

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

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




RE: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss?

2001-02-13 Thread Nael Mohammad

Simple,

using the tomcat admin feature, you can specify the context to be whatever
you like. To access the admin feature, you need to set it first using the
tomcat-user.xml file located in your conf directory. An example that I have
below works just fine for me. After that then you should be able to add the
context you like anywhere so long as tomcat knows where it's going.  

In Linux: /tomcat/conf/tomcat-user.xml


 


  
  


After that got http://localhost:8080/admin and bam... you should now be able
to access the admin feature. 

After you login, just follow the examples that are already in place and you
should figure how to add the context. If worse comes to worse, result to the
manual. 

Nael

-Original Message-
From: Tye, Timothy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 2:37 PM
To: [EMAIL PROTECTED]
Subject: How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss?


I am trying to run Tomcat 4.0 and JBoss on separate virtual machines.
How do I get the JNDI context in Tomcat to look in JBoss JNDI context for
the  Remote object ?
 
Tim Tye
Computer Associates
Senior Software Developer
tel: +1 972 801-6436
fax: none
pager: none
mobile: +1 214 924-6396
[EMAIL PROTECTED]  
 

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

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




Can't get the faq

2001-02-13 Thread Clifford Lang

I am trying to get the faq at: [EMAIL PROTECTED] but it 
won't return.  Has anything changed?

Cliff

Trying to avoid those stupid questions!


Try Ematic.com
Where everyone can buy, or sell, new or used, products online in safe and secure 
manner.  Accept credit cards on your web site (no merchant account required). Get free 
email, web hosting, e-commerce, affiliate program and more at http://www.ematic.com.

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




Re: Syntax of web.xml

2001-02-13 Thread John Clark L. Naldoza

> Jefferson Oliveira Andrade wrote:
> 
> Where can I find a reference of the web.xml file for Tomcat 3.2.1?
> 
> Thanks,
> Jefferson.

Try to check out the 

web.dtd which should be found under your $TOMCAT_HOME/conf


-- 
 /) John Clark Naldoza y Lopez   (\
/ )Software Design Engineer II   ( \
  _( (__  Web-Application Development_) )_
 (((\ \>  /_>Cable Modem Network Management System <_\  


RE: Automatic reloading of modified .jar/.class files

2001-02-13 Thread Jeff Crawford

I received this from a collegue:  

--
6.4 Automatic Servlet Reloading

Tomcat 3.2 includes a feature whereby you can ask it to automatically
reload servlet classes (loaded from either the WEB-INF/classes directory
or a JAR file in the WEB-INF/lib directory) that have been changed.  This
feature is experimental, and may not be completely functional.  In
particular,
changes to classes other than the servlet you are requesting do not trigger
class reloads -- you will need to restart Tomcat to reflect changes in those
classes.

Reloading is enabled by including a reloadable="true" attribute on the
 element in the "conf/server.xml" file.  Note that automatic
reload support is not recommended for production applications because of
its experimental nature, and the extra overhead required to perform the
necessary checks on every request.
---

Peer Digital, Inc.
Jeff Crawford
Configuration Manager
Senior Software Engineer
4001 Discovery Drive · Suite 270 
Boulder, CO 80303 
Direct:  303 544-7547
Main:  303 415 3550 
Fax:  303 415 3540 
www.peerdigital.com



-Original Message-
From: yt [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 03, 2001 4:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Automatic reloading of modified .jar/.class files


If it is enabled by default, how come my classes arenever 
automatically reloaded when I transfer them over to tomcat ? How 
do you disable it btw ? I didn't know it impacts performance that 
much .. Thanks.

On 3 Feb 2001, at 14:53, Geoff Lane wrote:

> Yes it does, but it is a significant performance impact to enable it
> (it's enabled by default).
> Tomcat does not (that I know of) have a way of rereading configuration
> files on the without a restart though.
> 
> James Bucanek wrote:
> > 
> > Greetings,
> > 
> > I'm a complete newbie to Tomcat.  I glanced through the documentation
> > and FAQs and didn't find an answer to this.  So, now I'll annoy the
> > list.  ;)
> > 
> > My ISP has just installed Tomcat and I plan to move several servlets
> > that have been running under Sun's JSWDK reference server over to it.
> > 
> > One really annoying problem (actually the lack of a feature) under
> > the JSWDK server is that the servlet's class loader wasn't smart
> > enough to recognized when a .jar or .class file had been modified and
> > know to reload those Classes.
> > 
> > The end result was, whenever I made a change to my servlet, I had to
> > kill the server and start it up again.  Rather rude to those users
> > with active sessions!
> > 
> > So, does Tomcat's class loader do this?  If not, is there some other
> > way of forcing it to reload the servlet code?  That is, some way
> > accessible to a mere user, and not one that requires root/admin
> > privileges?
> > 
> > Thanks in advance,
> > 
> > James
> > 
> > __
> > James Bucanek
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> -- 
> ---
> Geoff Lane  <[EMAIL PROTECTED]>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 



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

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




RE: Admin User Name and Password????

2001-02-13 Thread Nael Mohammad

According to the documentation, it indicates that you have to change one of
the values to "admin". For example, you would want to change the values for
tomcat to say admin instead of default user tomcat. Change anything that
says tomcat to admin and then set the password to what ever you want it to
be. 

Regards,
Nael

-Original Message-
From: Vijayanand Sukumar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:08 PM
To: '[EMAIL PROTECTED]'
Subject: Admin User Name and Password


Hi All,
I tried to login under the context http://localhost://8080/admin. The values
given in the tomcat-users.xml did not work 
Can Anyone Help !!!
Thanks in Advance.

Vijay

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

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




IIS 5 won't play nice

2001-02-13 Thread Conrad Gustafson

Hi all,

I have everything working fine as described in the Tomcat-IIS howto.

When I start things up and try to hit
http://localhost/examples/jsp/index.html, I get the standard HTTP 404 error
message.  The last line in the IIS logfile is : 00:08:03 127.0.0.1 GET
/jakarta/isapi_redirect.dll+ 404.

Everything is cool when I hit Tomcat directly.

Any ideas?

Gratefully,

Conrad


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




Admin User Name and Password????

2001-02-13 Thread Vijayanand Sukumar

Hi All,
I tried to login under the context http://localhost://8080/admin. The values
given in the tomcat-users.xml did not work 
Can Anyone Help !!!
Thanks in Advance.

Vijay

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




Client authentication with Tomcat + SSL

2001-02-13 Thread Jeff Lansing

Hi,

I am trying to set up client authentication for IE5 https client to
Tomcat. I followed the steps in the documentation and arrived at the
situation where IE5 shows an empty list of certs in its Client
Authentication dialog.

Since then I have set up OpenSSL and have tried their test for this:
openssl -s_client -connect :443 -prexit
and I see that under "acceptable client certificate CA names" Tomcat has
given the info of the certificate which I created when following the
steps in the documentation.

So it seems that IE5 doesn't know about any certs which are acceptable
to Tomcat, so it doesn't show any in the dialog.
Does anyone know what the process is for giving IE such a certificate?

Thanks,

Jeff


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




Urgent Problem with servler

2001-02-13 Thread Carlos López M.


Hi im using Tomcat 3.2.2 Apache and mod_jk. Everithing works fine but when i
call a file I get this error

Method Not Allowed
The requested method POST is not allowed for the URL
/administracion/mail/UploadTest.java.





Apache/1.3.14 Server at www.domain.com Port 80

Could somebody help me


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




Re: ajp12 vs ajp13 & mod_jk.conf-auto

2001-02-13 Thread Filip Hanik

> Now, if I could just get someone to tell me why apache
> Alias and Rewrites are not working with tomcat...

tell us what you are trying to do and send us some sample config files and
how your environment is setup. is becomes much easier than to answer the
question above, because alias works very well for me :)

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
- Original Message -
From: "Mel Martinez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 3:11 PM
Subject: Re: ajp12 vs ajp13 & mod_jk.conf-auto


> Thanks, Filip.
>
> I'll try the changes you suggested.
>
> Now, if I could just get someone to tell me why apache
> Alias and Rewrites are not working with tomcat...
>
>
> Mel
>
>
>
> --- Filip Hanik <[EMAIL PROTECTED]> wrote:
> > yes,
> > the JkMount command looks like this
> >
> > JkMount context workername
> >
> > so the autogenerated ajp12 is just the worker name
> > "ajp12"
> >
> > in the workers.properties file you can change the
> > protocol that the worker
> > is using.
> > the property file has the following format
> >
> > worker..=
> > worker.ajp12.port=8007
> > worker.ajp12.host=localhost
> > worker.ajp12.type=ajp13
> >
> > so just change the last line to use ajp13. now you
> > have to modify server.xml
> > to start a ajp13 connector on the port 8007 and
> > change the port for ajp12.
> >
> > the nice thing with the autogenerated file is that
> > your webapps can be
> > dynamic.
> > but if you need to do a lot of fancy stuff, you
> > should create your own file
> > for the mod_jk configuration.
> >
> > try playing around with it, and if you have a
> > specific problem let me know
> > and I can help you out.
> >
> > Filip
> >
> > ~
> > Namaste - I bow to the divine in you
> > ~
> > Filip Hanik
> > Software Architect
> > [EMAIL PROTECTED]
> > www.filip.net
> > - Original Message -
> > From: "Mel Martinez" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 13, 2001 2:32 PM
> > Subject: ajp12 vs ajp13 & mod_jk.conf-auto
> >
> >
> > > Question:
> > >
> > > what determines whether ajp12 or ajp13 will be
> > > specified for a jkmount statement in the
> > > auto-generated mod_jk.conf-auto file?
> > >
> > > I.E., it always generates statements like:
> > >
> > > JkMount /myapp/servlet/* ajp12
> > > JkMount /myapp/*.jsp ajp12
> > >
> > > I've even tried disabling all reference to ajp12
> > from
> > > server.xml and workers.properties but that had no
> > > effect.
> > >
> > > Is the only way to force the use of Ajp13 to
> > manually
> > > edit the mod_jk.conf file?
> > >
> > > Should I even be worrying about this?
> > >
> > > Thanks,
> > >
> > > mel
> > >
> > > __
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail
> > - only $35
> > > a year!  http://personal.mail.yahoo.com/
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, email:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, email:
> > [EMAIL PROTECTED]
> >
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




RE: mod_jk.so

2001-02-13 Thread GOMEZ Henri

>With the following command.
>/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
>-I/usr/local/jdk1.
>1.8/include/freebsd -DFREEBSD -I/usr/local/include/apache -I../jk
>mod_jk.c ../jk/*.c
>
>and
>
>gcc -shared -o mod_jk.so *.o
>
>jk_ajp12_worker.o   jk_jni_worker.o jk_nwmain.o
>jk_util.o
>jk_ajp13.o  jk_lb_worker.o  jk_pool.o
>jk_worker.o
>jk_ajp13_worker.o   jk_map.ojk_sockbuf.o
>mod_jk.o
>jk_connect.ojk_msg_buff.o   jk_uri_worker_map.o
>
>Everything compiles and looks good. but httpd simply wont start with
>mod_jk enabled and configtest runs fine.

Why not just do :

apxs -I../jk -I/usr/local/include/apache -DFREEBSD -c -o mod_jk.so mod_jk.c
../jk*.c ?

What's strange is that map_name_at in jk_map as nothing specific to OS 

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




Re: ajp12 vs ajp13 & mod_jk.conf-auto

2001-02-13 Thread Mel Martinez

Thanks, Filip.

I'll try the changes you suggested.

Now, if I could just get someone to tell me why apache
Alias and Rewrites are not working with tomcat...


Mel



--- Filip Hanik <[EMAIL PROTECTED]> wrote:
> yes,
> the JkMount command looks like this
> 
> JkMount context workername
> 
> so the autogenerated ajp12 is just the worker name
> "ajp12"
> 
> in the workers.properties file you can change the
> protocol that the worker
> is using.
> the property file has the following format
> 
> worker..=
> worker.ajp12.port=8007
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp13
> 
> so just change the last line to use ajp13. now you
> have to modify server.xml
> to start a ajp13 connector on the port 8007 and
> change the port for ajp12.
> 
> the nice thing with the autogenerated file is that
> your webapps can be
> dynamic.
> but if you need to do a lot of fancy stuff, you
> should create your own file
> for the mod_jk configuration.
> 
> try playing around with it, and if you have a
> specific problem let me know
> and I can help you out.
> 
> Filip
> 
> ~
> Namaste - I bow to the divine in you
> ~
> Filip Hanik
> Software Architect
> [EMAIL PROTECTED]
> www.filip.net
> - Original Message -
> From: "Mel Martinez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 13, 2001 2:32 PM
> Subject: ajp12 vs ajp13 & mod_jk.conf-auto
> 
> 
> > Question:
> >
> > what determines whether ajp12 or ajp13 will be
> > specified for a jkmount statement in the
> > auto-generated mod_jk.conf-auto file?
> >
> > I.E., it always generates statements like:
> >
> > JkMount /myapp/servlet/* ajp12
> > JkMount /myapp/*.jsp ajp12
> >
> > I've even tried disabling all reference to ajp12
> from
> > server.xml and workers.properties but that had no
> > effect.
> >
> > Is the only way to force the use of Ajp13 to
> manually
> > edit the mod_jk.conf file?
> >
> > Should I even be worrying about this?
> >
> > Thanks,
> >
> > mel
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> - only $35
> > a year!  http://personal.mail.yahoo.com/
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, email:
> [EMAIL PROTECTED]
> >
> >
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




Re: ajp12 vs ajp13 & mod_jk.conf-auto

2001-02-13 Thread Filip Hanik

yes,
the JkMount command looks like this

JkMount context workername

so the autogenerated ajp12 is just the worker name "ajp12"

in the workers.properties file you can change the protocol that the worker
is using.
the property file has the following format

worker..=
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp13

so just change the last line to use ajp13. now you have to modify server.xml
to start a ajp13 connector on the port 8007 and change the port for ajp12.

the nice thing with the autogenerated file is that your webapps can be
dynamic.
but if you need to do a lot of fancy stuff, you should create your own file
for the mod_jk configuration.

try playing around with it, and if you have a specific problem let me know
and I can help you out.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
- Original Message -
From: "Mel Martinez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 2:32 PM
Subject: ajp12 vs ajp13 & mod_jk.conf-auto


> Question:
>
> what determines whether ajp12 or ajp13 will be
> specified for a jkmount statement in the
> auto-generated mod_jk.conf-auto file?
>
> I.E., it always generates statements like:
>
> JkMount /myapp/servlet/* ajp12
> JkMount /myapp/*.jsp ajp12
>
> I've even tried disabling all reference to ajp12 from
> server.xml and workers.properties but that had no
> effect.
>
> Is the only way to force the use of Ajp13 to manually
> edit the mod_jk.conf file?
>
> Should I even be worrying about this?
>
> Thanks,
>
> mel
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: address incorrect error

2001-02-13 Thread Warner Onstine

Might want to take a look at the generated logs, that might give a better
clue.

-warner
- Original Message -
From: "Matt Shostak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 2:45 PM
Subject: address incorrect error


> Hi all,
>
> I am trying to run a new servlet that I wrote today.
>
> I have it in the same area as all my other servlets, yet when I run it I
get
> this
> error message:
>
> The page you are looking for cannot be displayed because the address is
> incorrect.
>
> I simply don't understand how the address could be incorrect, because it
is
> the same
> path as my other servlets that work just fine.  My source code resides in
> the same area,
> I compile it with the same compile command, and the only difference that I
> can see between
> the ones that work and the one that doesn't is the actual name of the
> servlet itself and
> the code therein.  Since the code compiles just fine and is a copy of a
> book's example,
> I am pretty confident in it and don't think it has any errors.
> Any suggestions as to what I am missing?
>
> Thanks,
>
> Matt
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




address incorrect error

2001-02-13 Thread Matt Shostak

Hi all,

I am trying to run a new servlet that I wrote today.

I have it in the same area as all my other servlets, yet when I run it I get
this
error message:

The page you are looking for cannot be displayed because the address is
incorrect. 

I simply don't understand how the address could be incorrect, because it is
the same
path as my other servlets that work just fine.  My source code resides in
the same area,
I compile it with the same compile command, and the only difference that I
can see between
the ones that work and the one that doesn't is the actual name of the
servlet itself and
the code therein.  Since the code compiles just fine and is a copy of a
book's example,
I am pretty confident in it and don't think it has any errors. 
Any suggestions as to what I am missing?

Thanks,

Matt




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




How do I connect JNDI in Tomcat 4.0 to JNDI in JBoss?

2001-02-13 Thread Tye, Timothy

I am trying to run Tomcat 4.0 and JBoss on separate virtual machines.
How do I get the JNDI context in Tomcat to look in JBoss JNDI context for the 
 Remote object ?
 
Tim Tye
Computer Associates
Senior Software Developer
tel: +1 972 801-6436
fax: none
pager: none
mobile: +1 214 924-6396
[EMAIL PROTECTED]  
 

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




ajp12 vs ajp13 & mod_jk.conf-auto

2001-02-13 Thread Mel Martinez

Question:

what determines whether ajp12 or ajp13 will be
specified for a jkmount statement in the
auto-generated mod_jk.conf-auto file?

I.E., it always generates statements like:

JkMount /myapp/servlet/* ajp12
JkMount /myapp/*.jsp ajp12

I've even tried disabling all reference to ajp12 from
server.xml and workers.properties but that had no
effect.

Is the only way to force the use of Ajp13 to manually
edit the mod_jk.conf file?

Should I even be worrying about this?

Thanks,

mel

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




RE: EARGENT!

2001-02-13 Thread John Golubenko

Well, the Jserv and Tomcat and Apache is all different things. The Jserv 
was
the first project (I believe) of Apache Group to handle the Servlets. 
While
Tomcat is completely different project, which handles Servlets, and 
JSP's.
You probably can't start the tomcat by apache, since the tomcat has to be
started first. But you do can start the apache from tomcat, by modifying 
the
tomcat.sh, and adding the apaches startup script at the end, or better 
modifying
the /etc/rc.d/rc.httpd (booting script) and add tomcat and then apache 
startup
scripts. What you need to do, is, fallow the Jserv installation process 
(I think you've
done it already), make sure that mod_jser.o is loaded into apache at 
startup.
Then, include the $TOMCAT_HOME/conf/apache-tomcat.conf into the bottom of 
Apache's $APACHE/conf/httpd.conf file. (Include 
/path/to/apache-tomcat.conf)
Modify the $TOMCAT_HOME/conf/server.xml file, to fit your need. 
Move all properties from jserv.properties into $WWW_ROOT/WEB-INF/web.xml 
file. 
(read 
http://jakarta.apache.org/jyve-faq/Turbine/screen/MainMenu/action/SetAll
/screen/DisplayTopics/faq_id/12/project_id/2;jsessionid=7yjh5swq41 ).
After setting things up, run both or 1 (tomcat) servers. You should be 
able to do
everything in Tomcat, w/o even using apache.
Probably starting from scratch is best | fastest way to go.
Also, this stuff you have, where did you got it? Was it working before? 
You may want to back-up, and see when things went wrong.
Good Luck.
 - John.



>> Original Message <<

On 2/13/01, 11:49:44 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE: 
EARGENT!:


> Can I have apache starts Tomcat while not having JServ running? How do I
> turn JServ off then? You are right, the only thing I care about is 
Tomcat,
> but I also need it be started automaticly by Apache. I thought what I do 
was
> the only way to get that happen.

> Thanks.

> Lifeng

> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: EARGENT!


> Ok, I've looked at configs (a bit),
> first question comes in mind:
> Why do you run Jserv and Tomcat?
> The Tomcat is the one you should run, and disable Jserv.
> Jserv is only needed (if you need Tomcat+Apache as all have) to
> get mod_jserv.o library, to use ajp12 protocol.
> If you look at server.xml, and jserv.conf, both servers are using
> same 8007 port to connect. You should shutdown the Jserv, uncomment
> this in server.xml of Tomcat:

> 

> Then load the pages like:

> localhost:8080/path/to/pages


> Where 8080 is the port it uses to serve the pages.
> The stuff you got in jserv.properties all goes into
> /path/to/web_root/WEB-INF/web.xml
> file.
> I'm going for lunch now, I'll be back, and may help (if I do so) more.
> While im out, please check the FAQ on tomcat's web-site, about web.xml
> file,
> and how to move configuration from jserv.properties to it.
>  Till then,
> John.

> P.S. People, help him out!



> >> Original Message <<

> On 2/13/01, 11:11:46 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE:
> EARGENT!:


> > John,

> > Thank you again for your help!
> > My Tomcat can start. I can run some of my jsps through Tomcat, but not
> all
> > of them.
> > Attached is all of my configuration files.
> > The httpd.com is located in /usr/local/apache/conf directory, the
> > mod_jserv.log is in .../apache/logs, and the rest of them are located in
> > /opt/MemberLink_IAS/com/rims/memberlink/conf directory.

> > Thank you very much

> > Lifeng

> > -Original Message-
> > From: John Golubenko [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 12:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: EARGENT!


> > Probably not. It's clear that you got problems between two of those. The
> > AJP12 protocol
> > tomcat uses to communicate with Apache (that's why you load mod_jser.o in
> > Apache),
> > First thing to do, is try to load the pages using the Tomcat's default
> > port 8080, like
> > localhost:8080/path/to/jsp , /examples, /path/to/servlet/ServletName,
> > etc. If 8080
> > port isn't working, check the $TOMCAT_HOME/conf/server.xml file. (or
> > check by running:
> > cat $TOMCAT_HOME/conf/server.xml | grep 80, this will show the 80* ports
> > you have, if any at all.). If you got your pages loaded under 8080, then
> > it's a Apaches->Tomcat problem. The configuration file maybe not valid.
> > You may send the apache's httpd.conf and tomcats server.xml file here, so
> > we can take a look at it. Because I personally
> > have no idea what's going on there.
> >  - John.
> > P.S.
> > This is why I think it is:

> > > > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > > > ...(EMERGENCY) ajp12: function connection fail.

> >  And:

> > >
> >
> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
> > > on
> > > > (Ajp12ConnectionHandler.j

Re: JDK support....

2001-02-13 Thread Rick Roberts

I just converted several applications from Netscape (ahem, iPlanet)  and 
Oracle to Apache/Tomcat and PostgreSQL.  The first of these are running fine, 
although they have not been running for very long.  I still have a coupe to 
go.  Basically, everything is working pretty good.   Using JSP, Servlets, 
JDBC, JDK1.2.2, Tomcat 3.2.1, Apache 1.3.12, PostgreSQL 6.3.5, Red Hat 6.2.

Netscape is pretty good, now, but the first cuts at JSP were really, really, 
bad.  I have never had any trouble with Netscape's servlets though.  They 
also won't update the SGI / IRIX version, which is why I decided to look for 
options.  Thanks Tomcat!

Rick

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




RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


What system are you using?  I'm wondering if your might be using
Kaffe as your JVM or on HP-UX?  I believe that boht of these have problems
with shuting down.

After looking at the code, it seems that you are right, -f is used
for both.  I am assuming that you have one server.xml file and one
server2.xml file.   Try swapping the files and seeing if you can shutdown
the opposite server.  If so, then there's a bug in the shutdown mechanism
(for some reason its defaulting to use server.xml for stop no matter what
you say).  If not, as in you still shutdown the same server then either
there's a problem with your xml file (not creating a Apj connector perhaps
or its running on the same port as another service and not able to be
created) or one of your servlets is hanging the JVM to prevent shutdown.
How that would happen I'm not really sure, but it sounds possible (maybe
endless loops, or somehow accessing the java.awt.Toolkit to start the AWT
thread??)

Randy

-Original Message-
From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Stopping Tomcat


Thanks Randy 
I dug through the code and it looks like Tomcat uses -f for starting AND
stopping. I added the -f for stopping, still no joy.
O well there is always kill. 
> -Original Message- 
> From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:27 PM 
> To: [EMAIL PROTECTED] 
> Subject: RE: Stopping Tomcat 
> 
> 
> 
>   Probably so.  Looking at the batch file on NT (which 
> should be very 
> similar to the sh on UNIX) both start and stop are handled by the same 
> class.  I would guess that it processes the arguments the 
> same.  If not, I 
> would suggest looking at the source for 
> org.apache.tomcat.startup.Tomcat 
> (method main) to see where it gets its configuration if its 
> passed a -stop 
> as its first argument - that will tell you how to send it a 
> configuration to 
> make the second one stop. 
> 
>   If that doesn't seem to be what you want, you could 
> create a shell 
> script/batch file that moves the server.xml file around so 
> that one stop 
> uses one server.xml and one uses the other.  (Something like 
> cp server1.xml 
> server.xml, stop tomcat, cp server2.xml server.xml, stop tomcat) 
> 
>   Randy 
> 
> -Original Message- 
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:50 PM 
> To: '[EMAIL PROTECTED]' 
> Subject: RE: Stopping Tomcat 
> 
> 
> Thanks Randy 
> I understand, I don't mind people telling me to read the 
> manual, a little 
> help on which would be great, I have done plenty searching, 
> else I wouldn't 
> have tried the list... let me not dwell on that. 
> OK your are correct I have two server.xml's. I start with -f 
> server1.xml and 
> -f server2.xml - that much is in the manual. 
> I can't find anything in the manual regarding shutdown. Can I 
> use -f for 
> shutdown as well? 
> > -Original Message- 
> > From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:46 PM 
> > To: [EMAIL PROTECTED] 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > 
> >   The problem probably stems from the fact that you have 
> > two different 
> > server.xml files to start Tomcat with, but you are only 
> > calling one of them 
> > to stop it. 
> > 
> >   By the way, if you're on this list for very long, you 
> > will discover 
> > that probably 90% of people's problems are due to a lack of 
> > reading the 
> > manuals.  The regulars get pretty tired of answering the same 
> > questions over 
> > and over again. 
> > 
> >   Randy 
> > 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 2:08 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > Hell now this is a good start to the mailing list!!! :-( 
> >  
> > So allow me...   :-) 
> >  
> > Have you read the the documentation? Yes I have. 
> > Which docs? 
> > - The user guide that comes with Tomcat 
> > - the FAQ's on the Tomcat web site 
> >  
> > So... which docs should I read? 
> > -Original Message- 
> > From: Nael Mohammad [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:51 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > READ the documentation 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 10:43 AM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: Stopping Tomcat 
> > 
> > 
> > Folks 
> > I'm have new to Tomcat so bear with me please. 
> > I have set up Apache and Tomcat to use 2 virtual server and 
> to use two 
> > instance of Tomcat running on two different port. 
> > Questions: 
> > 1. How do I shutdown both instances of tomcat, the regular 
> > shutdown only 
> > shuts down the one 
> > 2. Sometimes the second 

Re: JSPs only reload sometimes - Help ! Tomcat 3.2.1

2001-02-13 Thread Rick Roberts


Some times you are going to need to clear out the cache directory.
A simple script will come in handy for that.

Rick

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




RE: EARGENT!

2001-02-13 Thread Lifeng Xu

Thanks John, for your help.
Yes, the configuration I have was working before -- actually, it's still
working, for most of our jsp & ejbs, except the bean that causing the
problem. It's just recently we changed our ejb container, so we need to
modified the configuration to work with the new pieces. The guy who
origionally developed this has gone, but we know it worked.

Thanks again.

Lifeng

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 3:41 PM
To: [EMAIL PROTECTED]
Subject: RE: EARGENT!


Well, the Jserv and Tomcat and Apache is all different things. The Jserv 
was
the first project (I believe) of Apache Group to handle the Servlets. 
While
Tomcat is completely different project, which handles Servlets, and 
JSP's.
You probably can't start the tomcat by apache, since the tomcat has to be
started first. But you do can start the apache from tomcat, by modifying 
the
tomcat.sh, and adding the apaches startup script at the end, or better 
modifying
the /etc/rc.d/rc.httpd (booting script) and add tomcat and then apache 
startup
scripts. What you need to do, is, fallow the Jserv installation process 
(I think you've
done it already), make sure that mod_jser.o is loaded into apache at 
startup.
Then, include the $TOMCAT_HOME/conf/apache-tomcat.conf into the bottom of 
Apache's $APACHE/conf/httpd.conf file. (Include 
/path/to/apache-tomcat.conf)
Modify the $TOMCAT_HOME/conf/server.xml file, to fit your need. 
Move all properties from jserv.properties into $WWW_ROOT/WEB-INF/web.xml 
file. 
(read 
http://jakarta.apache.org/jyve-faq/Turbine/screen/MainMenu/action/SetAll
/screen/DisplayTopics/faq_id/12/project_id/2;jsessionid=7yjh5swq41 ).
After setting things up, run both or 1 (tomcat) servers. You should be 
able to do
everything in Tomcat, w/o even using apache.
Probably starting from scratch is best | fastest way to go.
Also, this stuff you have, where did you got it? Was it working before? 
You may want to back-up, and see when things went wrong.
Good Luck.
 - John.



>> Original Message <<

On 2/13/01, 11:49:44 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE: 
EARGENT!:


> Can I have apache starts Tomcat while not having JServ running? How do I
> turn JServ off then? You are right, the only thing I care about is 
Tomcat,
> but I also need it be started automaticly by Apache. I thought what I do 
was
> the only way to get that happen.

> Thanks.

> Lifeng

> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:31 PM
> To: [EMAIL PROTECTED]
> Subject: RE: EARGENT!


> Ok, I've looked at configs (a bit),
> first question comes in mind:
> Why do you run Jserv and Tomcat?
> The Tomcat is the one you should run, and disable Jserv.
> Jserv is only needed (if you need Tomcat+Apache as all have) to
> get mod_jserv.o library, to use ajp12 protocol.
> If you look at server.xml, and jserv.conf, both servers are using
> same 8007 port to connect. You should shutdown the Jserv, uncomment
> this in server.xml of Tomcat:

> 

> Then load the pages like:

> localhost:8080/path/to/pages


> Where 8080 is the port it uses to serve the pages.
> The stuff you got in jserv.properties all goes into
> /path/to/web_root/WEB-INF/web.xml
> file.
> I'm going for lunch now, I'll be back, and may help (if I do so) more.
> While im out, please check the FAQ on tomcat's web-site, about web.xml
> file,
> and how to move configuration from jserv.properties to it.
>  Till then,
> John.

> P.S. People, help him out!



> >> Original Message <<

> On 2/13/01, 11:11:46 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE:
> EARGENT!:


> > John,

> > Thank you again for your help!
> > My Tomcat can start. I can run some of my jsps through Tomcat, but not
> all
> > of them.
> > Attached is all of my configuration files.
> > The httpd.com is located in /usr/local/apache/conf directory, the
> > mod_jserv.log is in .../apache/logs, and the rest of them are located in
> > /opt/MemberLink_IAS/com/rims/memberlink/conf directory.

> > Thank you very much

> > Lifeng

> > -Original Message-
> > From: John Golubenko [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 12:23 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: EARGENT!


> > Probably not. It's clear that you got problems between two of those. The
> > AJP12 protocol
> > tomcat uses to communicate with Apache (that's why you load mod_jser.o
in
> > Apache),
> > First thing to do, is try to load the pages using the Tomcat's default
> > port 8080, like
> > localhost:8080/path/to/jsp , /examples, /path/to/servlet/ServletName,
> > etc. If 8080
> > port isn't working, check the $TOMCAT_HOME/conf/server.xml file. (or
> > check by running:
> > cat $TOMCAT_HOME/conf/server.xml | grep 80, this will show the 80* ports
> > you have, if any at all.). If you got your pages loaded under 8080, then
> > 

important note about tomcat.

2001-02-13 Thread John Golubenko

Now go read manual.

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


We've been there and done that.  The problem is that using the two
server.xml files, the second server does not shutdown when using the -f
option as it seems it should from the source.

I think we've narrowed the problem down to three options: (see my
other email for details about this)
1.  Bug in Tomcat
2.  Error in server.xml files
3.  Problem with a servlet keeping Tomcat from shutting down

Randy

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: RE: Stopping Tomcat


Well, the /org/apache/tomcat/startup/Tomcat.java
(org.apache.tomcat.startup.Tomcat -start | -stop)
should do the job. Just run it from command line. (look in sourses)



Original Message dated 2/13/01, 1:00:24 PM
Author: "Nortje, Andrew" <[EMAIL PROTECTED]>
Re: RE: Stopping Tomcat:






Thanks Randy 
I dug through the code and it looks like Tomcat uses -f for starting AND
stopping. I added the -f for stopping, still no joy.
O well there is always kill. 
> -Original Message- 
> From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:27 PM 
> To: [EMAIL PROTECTED] 
> Subject: RE: Stopping Tomcat 
> 
> 
> 
>   Probably so.  Looking at the batch file on NT (which 
> should be very 
> similar to the sh on UNIX) both start and stop are handled by the same 
> class.  I would guess that it processes the arguments the 
> same.  If not, I 
> would suggest looking at the source for 
> org.apache.tomcat.startup.Tomcat 
> (method main) to see where it gets its configuration if its 
> passed a -stop 
> as its first argument - that will tell you how to send it a 
> configuration to 
> make the second one stop. 
> 
>   If that doesn't seem to be what you want, you could 
> create a shell 
> script/batch file that moves the server.xml file around so 
> that one stop 
> uses one server.xml and one uses the other.  (Something like 
> cp server1.xml 
> server.xml, stop tomcat, cp server2.xml server.xml, stop tomcat) 
> 
>   Randy 
> 
> -Original Message- 
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:50 PM 
> To: '[EMAIL PROTECTED]' 
> Subject: RE: Stopping Tomcat 
> 
> 
> Thanks Randy 
> I understand, I don't mind people telling me to read the 
> manual, a little 
> help on which would be great, I have done plenty searching, 
> else I wouldn't 
> have tried the list... let me not dwell on that. 
> OK your are correct I have two server.xml's. I start with -f 
> server1.xml and 
> -f server2.xml - that much is in the manual. 
> I can't find anything in the manual regarding shutdown. Can I 
> use -f for 
> shutdown as well? 
> > -Original Message- 
> > From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:46 PM 
> > To: [EMAIL PROTECTED] 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > 
> >   The problem probably stems from the fact that you have 
> > two different 
> > server.xml files to start Tomcat with, but you are only 
> > calling one of them 
> > to stop it. 
> > 
> >   By the way, if you're on this list for very long, you 
> > will discover 
> > that probably 90% of people's problems are due to a lack of 
> > reading the 
> > manuals.  The regulars get pretty tired of answering the same 
> > questions over 
> > and over again. 
> > 
> >   Randy 
> > 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 2:08 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > Hell now this is a good start to the mailing list!!! :-( 
> >  
> > So allow me...   :-) 
> >  
> > Have you read the the documentation? Yes I have. 
> > Which docs? 
> > - The user guide that comes with Tomcat 
> > - the FAQ's on the Tomcat web site 
> >  
> > So... which docs should I read? 
> > -Original Message- 
> > From: Nael Mohammad [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:51 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > READ the documentation 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 10:43 AM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: Stopping Tomcat 
> > 
> > 
> > Folks 
> > I'm have new to Tomcat so bear with me please. 
> > I have set up Apache and Tomcat to use 2 virtual server and 
> to use two 
> > instance of Tomcat running on two different port. 
> > Questions: 
> > 1. How do I shutdown both instances of tomcat, the regular 
> > shutdown only 
> > shuts down the one 
> > 2. Sometimes the second instance of Tomcat does not boot 
> > properly and does 
> > not work (I know this is not a lot to work on but maybe 
> > someone has come 
> > across this before.) 
> > Thanks in advance 
> > Andrew 
> > 
> > 
> --

apache Alias&Rewrites vs tomcat?

2001-02-13 Thread Mel Martinez

I'm trying to assertain just how Apache and Tomcat
interact regarding aliases and rewrites.

I'm using Apache 1.3.14 and tomcat 3.2.1 with
mod_jk.c.  I don't know if the latter is the 'latest'
version.

If I have apache configured to apply an alias or a
rewrite rule to a reqest, I can tell from the logs
that it is indeed getting applied:

 (2) init rewrite engine with requested uri
/myapp/folder1/common/mypage.jsp
 (3) applying pattern '^/myapp/(.*)/common/(.*)' to
uri '/myapp/folder1/common/mypage.jsp'
 (2) rewrite /myapp/folder1/common/mypage.jsp ->
/myapp/common/mypage.jsp
 (2) local path result: /myapp/common/mypage.jsp
 (1) go-ahead with /myapp/common/mypage.jsp [OK]

The idea here is simple: the request

/myapp/folder1/common/mypage.jsp

should result in a request for

/myapp/common/mypage.jsp

The rewrite rule works great.  This works great for
static stuff served up by Apache.

The problem is that Tomcat is not getting the
translated request, it is getting the original one. 
Since no file in that path actually exists, naturally
it returns a file not found error.

Could someone please tell me if this behavior is
correct or if this is a bug in mod_jk?  Should I be
using apj13? (I just noticed that the mod_jk.conf-auto
has the contexts mounted to apj12 so I'll try changing
that).

I seem to recall that JServ obeyed the results of
rewrites.  Should I try using tomcat with mod_jserv? 
'Would seem like walking backwards...

Please help clear this up so I don't spend too much
more time banging my head against this.

Thanks,

Mel


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

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




RE: Stopping Tomcat

2001-02-13 Thread John Golubenko

It's true. The MANUAL is essential. 

>> Original Message <<

On 2/13/01, 10:46:10 AM, "Randy Layman" <[EMAIL PROTECTED]> wrote 
regarding RE: Stopping Tomcat:


>   The problem probably stems from the fact that you have two 
different
> server.xml files to start Tomcat with, but you are only calling one of 
them
> to stop it.

>   By the way, if you're on this list for very long, you will discover
> that probably 90% of people's problems are due to a lack of reading the
> manuals.  The regulars get pretty tired of answering the same questions 
over
> and over again.

>   Randy

> -Original Message-
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stopping Tomcat


> Hell now this is a good start to the mailing list!!! :-(

> So allow me...   :-)

> Have you read the the documentation? Yes I have.
> Which docs?
> - The user guide that comes with Tomcat
> - the FAQ's on the Tomcat web site

> So... which docs should I read?
> -Original Message-
> From: Nael Mohammad [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:51 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stopping Tomcat


> READ the documentation
> -Original Message-
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 10:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: Stopping Tomcat


> Folks
> I'm have new to Tomcat so bear with me please.
> I have set up Apache and Tomcat to use 2 virtual server and to use two
> instance of Tomcat running on two different port.
> Questions:
> 1. How do I shutdown both instances of tomcat, the regular shutdown only
> shuts down the one
> 2. Sometimes the second instance of Tomcat does not boot properly and 
does
> not work (I know this is not a lot to work on but maybe someone has come
> across this before.)
> Thanks in advance
> Andrew

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

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




RE: Stopping Tomcat

2001-02-13 Thread John Golubenko
Title: RE: Stopping Tomcat




Well, the /org/apache/tomcat/startup/Tomcat.java 
(org.apache.tomcat.startup.Tomcat -start | -stop)should do the job.
Just run it from command line. (look in sourses)

Original Message dated 2/13/01, 1:00:24
PM
Author: "Nortje, Andrew"
<[EMAIL PROTECTED]>
Re: RE: Stopping Tomcat:



Thanks Randy 

I dug through the code and it looks like Tomcat uses -f
for starting AND stopping. I added the -f for stopping, still no joy.
O well there is always kill. 

> -Original Message- >
From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:27 PM
> To: [EMAIL PROTECTED] >
Subject: RE: Stopping Tomcat > >
> >  
Probably so.  Looking at the batch file on NT (which >
should be very > similar to the sh on UNIX)
both start and stop are handled by the same >
class.  I would guess that it processes the arguments the >
same.  If not, I > would suggest
looking at the source for >
org.apache.tomcat.startup.Tomcat > (method
main) to see where it gets its configuration if its >
passed a -stop > as its first argument -
that will tell you how to send it a >
configuration to > make the second one stop.
> >  
If that doesn't seem to be what you want, you could >
create a shell > script/batch file that
moves the server.xml file around so > that
one stop > uses one server.xml and one uses
the other.  (Something like > cp
server1.xml > server.xml, stop tomcat, cp
server2.xml server.xml, stop tomcat) > >
  Randy > >
-Original Message- > From: Nortje,
Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:50 PM
> To: '[EMAIL PROTECTED]' >
Subject: RE: Stopping Tomcat > >
> Thanks Randy >
I understand, I don't mind people telling me to read the >
manual, a little > help on which would be
great, I have done plenty searching, > else
I wouldn't > have tried the list... let me
not dwell on that. > OK your are correct I
have two server.xml's. I start with -f >
server1.xml and > -f server2.xml - that much
is in the manual. > I can't find anything in
the manual regarding shutdown. Can I > use
-f for > shutdown as well? >
> -Original Message- > > From:
Randy Layman [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 1:46
PM > > To: [EMAIL PROTECTED]
> > Subject: RE: Stopping Tomcat >
> > > > >
> >  
The problem probably stems from the fact that you have >
> two different > > server.xml files
to start Tomcat with, but you are only > >
calling one of them > > to stop it. >
> > >  
By the way, if you're on this list for very long, you >
> will discover > > that probably 90%
of people's problems are due to a lack of >
> reading the > > manuals.  The
regulars get pretty tired of answering the same >
> questions over > > and over again.
> > > >  
Randy > > > >
-Original Message- > > From:
Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 2:08
PM > > To:
'[EMAIL PROTECTED]' > >
Subject: RE: Stopping Tomcat > > >
> > > Hell now this is a good start to
the mailing list!!! :-( > >  >
> So allow me...   :-) > > 
> > Have you read the the documentation?
Yes I have. > > Which docs? >
> - The user guide that comes with Tomcat >
> - the FAQ's on the Tomcat web site > > 
> > So... which docs should I read? >
> -Original Message- > > From:
Nael Mohammad [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 1:51
PM > > To:
'[EMAIL PROTECTED]' > >
Subject: RE: Stopping Tomcat > > >
> > > READ the documentation >
> -Original Message- > > From:
Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001
10:43 AM > > To:
'[EMAIL PROTECTED]' > >
Subject: Stopping Tomcat > > >
> > > Folks >
> I'm have new to Tomcat so bear with me please. >
> I have set up Apache and Tomcat to use 2 virtual server and >
to use two > > instance of Tomcat running
on two different port. > > Questions: >
> 1. How do I shutdown both instances of tomcat, the regular >
> shutdown only > > shuts down the one
> > 2. Sometimes the second instance of
Tomcat does not boot > > properly and
does > > not work (I know this is not a
lot to work on but maybe > > someone has
come > > across this before.) >
> Thanks in advance > > Andrew >
> > > >
-
> > To unsubscribe, e-mail:
[EMAIL PROTECTED] >
> For additional commands, email:
[EMAIL PROTECTED] > >
> >
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED] >
For additional commands, email: [EMAIL PROTECTED]
> 



NOTICE:  This communication may contain confidential or other privileged information.  If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information.  Also, please indicate to the sender that you have received this email in error, and delete the copy you received.  Any communication tha

RE: Stopping Tomcat

2001-02-13 Thread Nortje, Andrew
Title: RE: Stopping Tomcat





Thanks Randy


I dug through the code and it looks like Tomcat uses -f for starting AND stopping. I added the -f for stopping, still no joy.

O well there is always kill.


> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:27 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Stopping Tomcat
> 
> 
> 
>   Probably so.  Looking at the batch file on NT (which 
> should be very
> similar to the sh on UNIX) both start and stop are handled by the same
> class.  I would guess that it processes the arguments the 
> same.  If not, I
> would suggest looking at the source for 
> org.apache.tomcat.startup.Tomcat
> (method main) to see where it gets its configuration if its 
> passed a -stop
> as its first argument - that will tell you how to send it a 
> configuration to
> make the second one stop.
> 
>   If that doesn't seem to be what you want, you could 
> create a shell
> script/batch file that moves the server.xml file around so 
> that one stop
> uses one server.xml and one uses the other.  (Something like 
> cp server1.xml
> server.xml, stop tomcat, cp server2.xml server.xml, stop tomcat)
> 
>   Randy
> 
> -Original Message-
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stopping Tomcat
> 
> 
> Thanks Randy 
> I understand, I don't mind people telling me to read the 
> manual, a little
> help on which would be great, I have done plenty searching, 
> else I wouldn't
> have tried the list... let me not dwell on that.
> OK your are correct I have two server.xml's. I start with -f 
> server1.xml and
> -f server2.xml - that much is in the manual.
> I can't find anything in the manual regarding shutdown. Can I 
> use -f for
> shutdown as well? 
> > -Original Message- 
> > From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:46 PM 
> > To: [EMAIL PROTECTED] 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > 
> >   The problem probably stems from the fact that you have 
> > two different 
> > server.xml files to start Tomcat with, but you are only 
> > calling one of them 
> > to stop it. 
> > 
> >   By the way, if you're on this list for very long, you 
> > will discover 
> > that probably 90% of people's problems are due to a lack of 
> > reading the 
> > manuals.  The regulars get pretty tired of answering the same 
> > questions over 
> > and over again. 
> > 
> >   Randy 
> > 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 2:08 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > Hell now this is a good start to the mailing list!!! :-( 
> >  
> > So allow me...   :-) 
> >  
> > Have you read the the documentation? Yes I have. 
> > Which docs? 
> > - The user guide that comes with Tomcat 
> > - the FAQ's on the Tomcat web site 
> >  
> > So... which docs should I read? 
> > -Original Message- 
> > From: Nael Mohammad [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 1:51 PM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: RE: Stopping Tomcat 
> > 
> > 
> > READ the documentation 
> > -Original Message- 
> > From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, February 13, 2001 10:43 AM 
> > To: '[EMAIL PROTECTED]' 
> > Subject: Stopping Tomcat 
> > 
> > 
> > Folks 
> > I'm have new to Tomcat so bear with me please. 
> > I have set up Apache and Tomcat to use 2 virtual server and 
> to use two 
> > instance of Tomcat running on two different port. 
> > Questions: 
> > 1. How do I shutdown both instances of tomcat, the regular 
> > shutdown only 
> > shuts down the one 
> > 2. Sometimes the second instance of Tomcat does not boot 
> > properly and does 
> > not work (I know this is not a lot to work on but maybe 
> > someone has come 
> > across this before.) 
> > Thanks in advance 
> > Andrew 
> > 
> > 
> - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, email: [EMAIL PROTECTED] 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 





Re: JSPs only reload sometimes - Help ! Tomcat 3.2.1

2001-02-13 Thread Phillip Kuzma


JSP files are recompiled depending on the time STAMP on the jsp file.
 
"Craig R. McClanahan" wrote:
Steve Quail wrote:
>  We've got reloadable set true in server.xml
and it recompiles the
>  changed JSP *sometimes* but not all
the time, generally after the
>  first change then never again.
>
The "reloadable" flag has nothing to do with whether JSP pages are recompiled
or not -- they always are.
The only exception to this rule is if you are using an <%@ include
%>
directive to include a file into a JSP page -- changes to the outer
page are
detected, but not changes to the included text.
Craig McClanahan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-- 
CONFIDENTIALITY NOTICE
This electronic mail transmission and any accompanying documents 
contain information belonging to the sender ("Information") that 
may be confidential and legally privileged.   If you are not the 
intended recipient,  any disclosure,  copying,  distribution  or 
action  taken  in  reliance  on   the  Information  is  strictly 
prohibited.  If  you  have received  the  Information in  error, 
please contact the sender  by reply email and destroy all copies 
of the original email.

Phillip Kuzma
[EMAIL PROTECTED]
 


Tomcat 4.0-beta 1 problems

2001-02-13 Thread janis


Maybe this is more appropriate to post to the developers list?

I have made some attempts on tomcat users list without a luck.

I would like to use Tomcat 4.0 and WARP more permanently but
I have experienced some fundamental problems with Tomcat 4.0-beta
configured together with Apache web server (WARP connector):

- using POST method in my forms (HTML),
request.getParameter("fromPOSTform")
return null both directly from the jsp context and a bean

 - scope in jsp:useBean method does'nt work as expected (session
does not persist)

- I have posted a bug for a behaviour when no response can be
obtained on the first
request after a restart of Tomcat and Apache

I also would like to hear about Tomcat standalone contra Tomcat NOT
standalone. In
which direction the development of the Tomcat will go? Will there be
more new connectors
to deal with?

with hope to hear from somebody
janis


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




Re: xsl java extensions won't work in tomcat

2001-02-13 Thread William Brogden



[EMAIL PROTECTED] wrote:
> 
> hi all,
> 
> i have an xsl stylesheet that includes calls to a java class of my own
> devising.  when i call this stylesheet via the command line (bypassing
> tomcat), everything works just swell.  However, when the same thing is
> called from within a jsp page, i get the following error:
> 
> Call to extension function failed: File
> 
>"file:/home/dschneid/cvs/cms/rosebud20/com/thestreet/cms/stylesheet/com.thestreet.cms.stylesheet.StylesheetDBHandler"

. clip
> the stylesheet and the class file are in the same directory.

That is the key point. Web resources such as style sheets, images, 
applet class files can NOT be served from the WEB-INF/ directories
The simplest thing to do is to specify a  URL pointing to
a URL where these resources live.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




RE: WinNT file name too long - JSP File naming algorithm

2001-02-13 Thread Marc Saegesser

It most likely isn't going to get fixed in Tomcat 3.2.2.  The jsp file
naming scheme has been cleaned up somewhat in Tomcat 3.3 but the path size
limitation may still be reached.

Recent changes to Jasper in Tomcat 4.0 should resolve this completely.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: WinNT file name too long - JSP File naming algorithm
>
>
> I am trying to bypass the problem Tomcat 3.2.1 has when it attempts to
> create file names under the 'work' directory that contain too many
> characters on a WinNT machine (>255). Has anyone created a work-around for
> this? New algorithm? Is this going to be fixed in the next release?
>
> Thanks in advance,
>
> Bob
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Re: JSPs only reload sometimes - Help ! Tomcat 3.2.1

2001-02-13 Thread Craig R. McClanahan

Steve Quail wrote:

>  We've got reloadable set true in server.xml and it recompiles the
>  changed JSP *sometimes* but not all the time, generally after the
>  first change then never again.
>

The "reloadable" flag has nothing to do with whether JSP pages are recompiled
or not -- they always are.

The only exception to this rule is if you are using an <%@ include %>
directive to include a file into a JSP page -- changes to the outer page are
detected, but not changes to the included text.

Craig McClanahan



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




RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


Probably so.  Looking at the batch file on NT (which should be very
similar to the sh on UNIX) both start and stop are handled by the same
class.  I would guess that it processes the arguments the same.  If not, I
would suggest looking at the source for org.apache.tomcat.startup.Tomcat
(method main) to see where it gets its configuration if its passed a -stop
as its first argument - that will tell you how to send it a configuration to
make the second one stop.

If that doesn't seem to be what you want, you could create a shell
script/batch file that moves the server.xml file around so that one stop
uses one server.xml and one uses the other.  (Something like cp server1.xml
server.xml, stop tomcat, cp server2.xml server.xml, stop tomcat)

Randy

-Original Message-
From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 2:50 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Stopping Tomcat


Thanks Randy 
I understand, I don't mind people telling me to read the manual, a little
help on which would be great, I have done plenty searching, else I wouldn't
have tried the list... let me not dwell on that.
OK your are correct I have two server.xml's. I start with -f server1.xml and
-f server2.xml - that much is in the manual.
I can't find anything in the manual regarding shutdown. Can I use -f for
shutdown as well? 
> -Original Message- 
> From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 1:46 PM 
> To: [EMAIL PROTECTED] 
> Subject: RE: Stopping Tomcat 
> 
> 
> 
>   The problem probably stems from the fact that you have 
> two different 
> server.xml files to start Tomcat with, but you are only 
> calling one of them 
> to stop it. 
> 
>   By the way, if you're on this list for very long, you 
> will discover 
> that probably 90% of people's problems are due to a lack of 
> reading the 
> manuals.  The regulars get pretty tired of answering the same 
> questions over 
> and over again. 
> 
>   Randy 
> 
> -Original Message- 
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 2:08 PM 
> To: '[EMAIL PROTECTED]' 
> Subject: RE: Stopping Tomcat 
> 
> 
> Hell now this is a good start to the mailing list!!! :-( 
>  
> So allow me...   :-) 
>  
> Have you read the the documentation? Yes I have. 
> Which docs? 
> - The user guide that comes with Tomcat 
> - the FAQ's on the Tomcat web site 
>  
> So... which docs should I read? 
> -Original Message- 
> From: Nael Mohammad [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 1:51 PM 
> To: '[EMAIL PROTECTED]' 
> Subject: RE: Stopping Tomcat 
> 
> 
> READ the documentation 
> -Original Message- 
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, February 13, 2001 10:43 AM 
> To: '[EMAIL PROTECTED]' 
> Subject: Stopping Tomcat 
> 
> 
> Folks 
> I'm have new to Tomcat so bear with me please. 
> I have set up Apache and Tomcat to use 2 virtual server and to use two 
> instance of Tomcat running on two different port. 
> Questions: 
> 1. How do I shutdown both instances of tomcat, the regular 
> shutdown only 
> shuts down the one 
> 2. Sometimes the second instance of Tomcat does not boot 
> properly and does 
> not work (I know this is not a lot to work on but maybe 
> someone has come 
> across this before.) 
> Thanks in advance 
> Andrew 
> 
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, email: [EMAIL PROTECTED] 
> 

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




Re: jsp:getProperty parse error

2001-02-13 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

> [line 22:] 
>

Change this to



The "id" attribute is used when you are *creating* a bean reference, but "name" is 
used everywhere else.

Craig McClanahan



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




RE: mod_jk.so (apxs, fdatasync, snprintf)

2001-02-13 Thread mikhail malamud



1) apxs didn't work and it took me hours to find the fix in the PHP FAQ.
http://www.php.net/FAQ.php#6.11

What was wrong with apxs, maybe there is something wrong with mine?
This included upgrading apache to 1.3.17 in the hope that apxs was fixed
(it wasn't). I also messed around a fair bit with Tomcat and Java.

2) Couldn't join the jakarta-tomcat FAQ-O-MATIC to add my solution to
(1)

I found a different place to query tomcat-user
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg06117.html



3) Mailing list archives give you '20 out of a possible 20' matches so
you
have to do a jillion queries to try and narrow out information but you
don't

know whether your queries are actually narrowing the results.

Keep me updated. I am working basically on the same things as you are.

I got the failure to load the fdatasync problem which was solved by
adding
-lposix4 to the apxs command line.

Right now I am replacing my gcc in the hopes that it will give me a
libc.so
library containing the snprintf object. Sheesh! are all these
type-retentive

Java people actually still coding in C using stdio.h ??? No wonder they
think that C++ is so bad.





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


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




Re: Problem with Tomcat version 4.0-m5

2001-02-13 Thread Craig R. McClanahan

Aqeel Ahmad wrote:

> I'm using Tomcat Version 3.0 for some time and had no
> problem. But with Version 4.0-m5 the attached .jsp
> file doesn't respond as with previos versions or with
> jswdk.
>

In order to make sure that this issue gets attention, could you please submit
a bug report?    In addition, it would be
useful to do two additional things:
* Identify the behavior you expect, so that we can tell how
  what currently happens is different from that.
* Try it with Tomcat 4.0-beta-1, to ensure that the
  problem still exists.

>
> Aqeel
>

Craig McClanahan



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




RE: EARGENT!

2001-02-13 Thread Lifeng Xu

Can I have apache starts Tomcat while not having JServ running? How do I
turn JServ off then? You are right, the only thing I care about is Tomcat,
but I also need it be started automaticly by Apache. I thought what I do was
the only way to get that happen.

Thanks.

Lifeng

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: RE: EARGENT!


Ok, I've looked at configs (a bit),
first question comes in mind:
Why do you run Jserv and Tomcat? 
The Tomcat is the one you should run, and disable Jserv.
Jserv is only needed (if you need Tomcat+Apache as all have) to
get mod_jserv.o library, to use ajp12 protocol. 
If you look at server.xml, and jserv.conf, both servers are using 
same 8007 port to connect. You should shutdown the Jserv, uncomment
this in server.xml of Tomcat:



Then load the pages like:

localhost:8080/path/to/pages


Where 8080 is the port it uses to serve the pages.
The stuff you got in jserv.properties all goes into 
/path/to/web_root/WEB-INF/web.xml
file. 
I'm going for lunch now, I'll be back, and may help (if I do so) more.
While im out, please check the FAQ on tomcat's web-site, about web.xml 
file,
and how to move configuration from jserv.properties to it.
 Till then,
John.

P.S. People, help him out!



>> Original Message <<

On 2/13/01, 11:11:46 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE: 
EARGENT!:


> John,

> Thank you again for your help!
> My Tomcat can start. I can run some of my jsps through Tomcat, but not 
all
> of them.
> Attached is all of my configuration files.
> The httpd.com is located in /usr/local/apache/conf directory, the
> mod_jserv.log is in .../apache/logs, and the rest of them are located in
> /opt/MemberLink_IAS/com/rims/memberlink/conf directory.

> Thank you very much

> Lifeng

> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: RE: EARGENT!


> Probably not. It's clear that you got problems between two of those. The
> AJP12 protocol
> tomcat uses to communicate with Apache (that's why you load mod_jser.o in
> Apache),
> First thing to do, is try to load the pages using the Tomcat's default
> port 8080, like
> localhost:8080/path/to/jsp , /examples, /path/to/servlet/ServletName,
> etc. If 8080
> port isn't working, check the $TOMCAT_HOME/conf/server.xml file. (or
> check by running:
> cat $TOMCAT_HOME/conf/server.xml | grep 80, this will show the 80* ports
> you have, if any at all.). If you got your pages loaded under 8080, then
> it's a Apaches->Tomcat problem. The configuration file maybe not valid.
> You may send the apache's httpd.conf and tomcats server.xml file here, so
> we can take a look at it. Because I personally
> have no idea what's going on there.
>  - John.
> P.S.
> This is why I think it is:

> > > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > > ...(EMERGENCY) ajp12: function connection fail.

>  And:

> >
> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
> > on
> > > (Ajp12ConnectionHandler.java:156)




> >> Original Message <<

> On 2/13/01, 9:58:29 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE:
> EARGENT!:


> > Thanks for your response!

> > I configured to start Tomcat when apache starts. Seems to me that they
> > starts ok...

> > Lifeng

> > -Original Message-
> > From: John Golubenko [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 11:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: EARGENT!


> > Do you have Apache running? Or you run in standalone mode? (Only Tomcat)


> > >> Original Message <<

> > On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding
> > EARGENT!:


> > > Hi,

> > > I am running Tomcat/JServ on Linux with Inprise ejb container. When I
> > access
> > > one of my jsp pages, I got error message from Apache's error log (see
> > > bellow). I checked mod_jserv.log also. There some info in the
> > mod_jserv.log
> > > such as:

> > > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > > ...(EMERGENCY) ajp12: function connection fail.
> > > ...
> > > ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> > > ...

> > > I have no idea what's causing this. And, not all jsp access fails.
Most
> > of
> > > the jsps functioning correctly.

> > > Bellow is the error I found from apache's error_log.

> > > I need to fix this now and get the app running right away! So please
> help
> > > me!

> > > Many thanks.

> > > Lifeng

> > > java.rmi.MarshalException: CORBA MARSHAL 0[]
> > >  at java.lang.Throwable.(Throwable.java:96)
> > >  at java.lang.Exception.(Exception.java:44)
> > >  at java.io.IOException.(IOException.java:49)
> > >  at java.rmi.RemoteException.(RemoteException.java:58)
> > >  at java.rmi.MarshalException.

Re: SSL

2001-02-13 Thread Craig R. McClanahan

Julie Ruiz wrote:

> I have installed Tomcat+SSL.  I need that my aplications be acceded only through a 
>secure URL.
> How can I configure the context where are going to be the aplications that accede 
>through a secure URL, but can´t be accede by a non secure URL??
>

For Tomcat+SSL stand-alone, you have a couple of choices:

* If you do not need the non-SSL port for anything else, you
  can disable it by removing the  element for port 8080
  from your "conf/server.xml" file.

* If you need non-SSL for other webapps and simply want to protect
  this one, you can add a security constraint to your web.xml file:



/*


CONFIDENTIAL



In this constraint, the URL pattern of "/*" protects your entire webapp (you could 
also require SSL on only part of it, if you wished), while the
CONFIDENTIAL requirement means that SSL is required.

>
> Julie.
>

Craig McClanahan



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




RE: Stopping Tomcat

2001-02-13 Thread Nortje, Andrew
Title: RE: Stopping Tomcat





Thanks Randy


I understand, I don't mind people telling me to read the manual, a little help on which would be great, I have done plenty searching, else I wouldn't have tried the list... let me not dwell on that.

OK your are correct I have two server.xml's. I start with -f server1.xml and -f server2.xml - that much is in the manual.

I can't find anything in the manual regarding shutdown. Can I use -f for shutdown as well?


> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Stopping Tomcat
> 
> 
> 
>   The problem probably stems from the fact that you have 
> two different
> server.xml files to start Tomcat with, but you are only 
> calling one of them
> to stop it.
> 
>   By the way, if you're on this list for very long, you 
> will discover
> that probably 90% of people's problems are due to a lack of 
> reading the
> manuals.  The regulars get pretty tired of answering the same 
> questions over
> and over again.
> 
>   Randy
> 
> -Original Message-
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 2:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stopping Tomcat
> 
> 
> Hell now this is a good start to the mailing list!!! :-(
>  
> So allow me...   :-)
>  
> Have you read the the documentation? Yes I have. 
> Which docs? 
> - The user guide that comes with Tomcat
> - the FAQ's on the Tomcat web site
>  
> So... which docs should I read?
> -Original Message-
> From: Nael Mohammad [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 1:51 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Stopping Tomcat
> 
> 
> READ the documentation
> -Original Message-
> From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 10:43 AM
> To: '[EMAIL PROTECTED]'
> Subject: Stopping Tomcat
> 
> 
> Folks 
> I'm have new to Tomcat so bear with me please. 
> I have set up Apache and Tomcat to use 2 virtual server and to use two
> instance of Tomcat running on two different port. 
> Questions: 
> 1. How do I shutdown both instances of tomcat, the regular 
> shutdown only
> shuts down the one 
> 2. Sometimes the second instance of Tomcat does not boot 
> properly and does
> not work (I know this is not a lot to work on but maybe 
> someone has come
> across this before.)
> Thanks in advance 
> Andrew 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 





default copy rule not working with jsp

2001-02-13 Thread David . Schneider

hi all,

inside a stylesheet i am using a default copy rule







to copy tags with no templates as-is.  when i call this stylesheet from the
command line, it works as it should.  however, when it is called from
within a jsp, it fails (nothing at all is copied).  the closest thing i can
get to work is







which will copy all tags and text, but no attributes.

i am using tomcat 3.1 standalone (port 8080), jdk 1.2.2, xerces 1.1.2,
xalan 1.2 on a sun solaris box.

any ideas?




==

This  email  (and  any  attachments)  is  intended  only for the use of the
addressee(s)  and  may  contain  proprietary,  privileged  or  confidential
information.   If you are not the intended recipient, you may not use, copy
or  disclose to anyone this message or any information contained in it.  If
you  have received this message in error, please notify the sender by reply
email  @thestreet.com and delete the original and any copy of this message.
Thank you.
==


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




RE: Setting up server.xml

2001-02-13 Thread Ignacio J. Ortega

Hola Janis:

> Thank you for recommendations! I'll read them.
> 
> When I make a request to the url mentioned above I get an 
> authenication
> form.
> When I provide the username tomcat and password tomcat (role tomcat is
> defined in tomcat-users.xml) I get an login error.
> 

File a bug with this please http://nagoya.apche.org/bugzilla

> I have seen a some messages on this list there people have 
> discussed this
> issue.
> They were talking about a context attribute setting to 
> trusted=true in the
> connection
> with the manager webapp included in Tomcat 4.0 - b1 distribution.
> 
> But where to specify the Context if Tomcat is not used in 
> standalone mode.
> 

No idea you are one of the first to use mod_webapp..., please direct
this question to tomcat-dev list  there are someones there that can
understand you, me not, i'm on 3.3 for a while , not 4.0 ... Sorry.

> ?xml version="1.0" encoding="ISO-8859-1"?>
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
> 
> 
> 
>   
> 
>   XSLTAGS
> 
> 
>   /WEB-INF/xsl.tld
> 
>   
> 
>   
> Wap Security Constraint
> 
>   Protected Area
>   /test/*
> 
> 
>   tomcat
>   role1
> 
>   
> 
>   
> FORM
> Wap Form-based Authentication Area
> 
>   /test/login/login.jsp
>   /test/login/error.jsp
> 
>   
> 
> 
> 

I dont know 4.0 much , but in 3.2 and up, you can not put the login.jsp
in the protected resource itself.. you need to putit outside..


Saludos ,
Ignacio J. Ortega


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




xsl java extensions won't work in tomcat

2001-02-13 Thread David . Schneider

hi all,

i have an xsl stylesheet that includes calls to a java class of my own
devising.  when i call this stylesheet via the command line (bypassing
tomcat), everything works just swell.  However, when the same thing is
called from within a jsp page, i get the following error:

Call to extension function failed: File
"file:/home/dschneid/cvs/cms/rosebud20/com/thestreet/cms/stylesheet/com.thestreet.cms.stylesheet.StylesheetDBHandler"

not found.

inside the stylesheet i have

http://www.w3.org/1999/XSL/Transform"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:dbhandler
="com.thestreet.cms.stylesheet.StylesheetDBHandler"
extension-element-prefixes="dbhandler"
version="1.0">

at the top and



inside a template rule.

the stylesheet and the class file are in the same directory.

i am using tomcat 3.1 standalone (port 8080), jdk 1.2.2, xerces 1.1.2,
xalan 1.2 on a sun solaris box.

any (and all) help is greatly appreciated.




==

This  email  (and  any  attachments)  is  intended  only for the use of the
addressee(s)  and  may  contain  proprietary,  privileged  or  confidential
information.   If you are not the intended recipient, you may not use, copy
or  disclose to anyone this message or any information contained in it.  If
you  have received this message in error, please notify the sender by reply
email  @thestreet.com and delete the original and any copy of this message.
Thank you.
==


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




RE: EARGENT!

2001-02-13 Thread John Golubenko

Ok, I've looked at configs (a bit),
first question comes in mind:
Why do you run Jserv and Tomcat? 
The Tomcat is the one you should run, and disable Jserv.
Jserv is only needed (if you need Tomcat+Apache as all have) to
get mod_jserv.o library, to use ajp12 protocol. 
If you look at server.xml, and jserv.conf, both servers are using 
same 8007 port to connect. You should shutdown the Jserv, uncomment
this in server.xml of Tomcat:



Then load the pages like:

localhost:8080/path/to/pages


Where 8080 is the port it uses to serve the pages.
The stuff you got in jserv.properties all goes into 
/path/to/web_root/WEB-INF/web.xml
file. 
I'm going for lunch now, I'll be back, and may help (if I do so) more.
While im out, please check the FAQ on tomcat's web-site, about web.xml 
file,
and how to move configuration from jserv.properties to it.
 Till then,
John.

P.S. People, help him out!



>> Original Message <<

On 2/13/01, 11:11:46 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE: 
EARGENT!:


> John,

> Thank you again for your help!
> My Tomcat can start. I can run some of my jsps through Tomcat, but not 
all
> of them.
> Attached is all of my configuration files.
> The httpd.com is located in /usr/local/apache/conf directory, the
> mod_jserv.log is in .../apache/logs, and the rest of them are located in
> /opt/MemberLink_IAS/com/rims/memberlink/conf directory.

> Thank you very much

> Lifeng

> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 12:23 PM
> To: [EMAIL PROTECTED]
> Subject: RE: EARGENT!


> Probably not. It's clear that you got problems between two of those. The
> AJP12 protocol
> tomcat uses to communicate with Apache (that's why you load mod_jser.o in
> Apache),
> First thing to do, is try to load the pages using the Tomcat's default
> port 8080, like
> localhost:8080/path/to/jsp , /examples, /path/to/servlet/ServletName,
> etc. If 8080
> port isn't working, check the $TOMCAT_HOME/conf/server.xml file. (or
> check by running:
> cat $TOMCAT_HOME/conf/server.xml | grep 80, this will show the 80* ports
> you have, if any at all.). If you got your pages loaded under 8080, then
> it's a Apaches->Tomcat problem. The configuration file maybe not valid.
> You may send the apache's httpd.conf and tomcats server.xml file here, so
> we can take a look at it. Because I personally
> have no idea what's going on there.
>  - John.
> P.S.
> This is why I think it is:

> > > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > > ...(EMERGENCY) ajp12: function connection fail.

>  And:

> >
> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
> > on
> > > (Ajp12ConnectionHandler.java:156)




> >> Original Message <<

> On 2/13/01, 9:58:29 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE:
> EARGENT!:


> > Thanks for your response!

> > I configured to start Tomcat when apache starts. Seems to me that they
> > starts ok...

> > Lifeng

> > -Original Message-
> > From: John Golubenko [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 13, 2001 11:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: EARGENT!


> > Do you have Apache running? Or you run in standalone mode? (Only Tomcat)


> > >> Original Message <<

> > On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding
> > EARGENT!:


> > > Hi,

> > > I am running Tomcat/JServ on Linux with Inprise ejb container. When I
> > access
> > > one of my jsp pages, I got error message from Apache's error log (see
> > > bellow). I checked mod_jserv.log also. There some info in the
> > mod_jserv.log
> > > such as:

> > > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > > ...(EMERGENCY) ajp12: function connection fail.
> > > ...
> > > ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> > > ...

> > > I have no idea what's causing this. And, not all jsp access fails. Most
> > of
> > > the jsps functioning correctly.

> > > Bellow is the error I found from apache's error_log.

> > > I need to fix this now and get the app running right away! So please
> help
> > > me!

> > > Many thanks.

> > > Lifeng

> > > java.rmi.MarshalException: CORBA MARSHAL 0[]
> > >  at java.lang.Throwable.(Throwable.java:96)
> > >  at java.lang.Exception.(Exception.java:44)
> > >  at java.io.IOException.(IOException.java:49)
> > >  at java.rmi.RemoteException.(RemoteException.java:58)
> > >  at java.rmi.MarshalException.(MarshalException.java:49)
> > >  at java.lang.reflect.Constructor.newInstance(Native Method)
> > >  at com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:82)

> > >  at
> > >
> >
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(UtilImpl.java:3
> > 26
> > > )

> > >  at
> > >
> >
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(UtilImpl.java:45
> > 1)

> > >  at javax.rmi.CORBA.Util.mapSystemExce

Re: Setting up server.xml

2001-02-13 Thread janis

"Ignacio J. Ortega" wrote:

>
>
> You need to read those ugly specs ( in
> http://java.sun.com/products/servlets ) to get your webapp security to
> work, JDBCRealm has nothing to do with web.xml, it's only a way to store
> usernames & passwords for a webapp, you need to configure your web.xml
> to see it in action... Please send your web.xml if you want some help
> with it 
>
> Please check ( and understand ) the url
> http://localhost:8080/examples/jps/security to look at working example,
> look at the web.xml file of the examples webapp to look at a working
> config...

Thank you for recommendations! I'll read them.

When I make a request to the url mentioned above I get an authenication
form.
When I provide the username tomcat and password tomcat (role tomcat is
defined in tomcat-users.xml) I get an login error.

I have seen a some messages on this list there people have discussed this
issue.
They were talking about a context attribute setting to trusted=true in the
connection
with the manager webapp included in Tomcat 4.0 - b1 distribution.

But where to specify the Context if Tomcat is not used in standalone mode.

I tried to put a  tag between  tags, but it resulted in
error
messages for WarpContext.

The web.xml file I used is here:
?xml version="1.0" encoding="ISO-8859-1"?>

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



  

  XSLTAGS


  /WEB-INF/xsl.tld

  

  
Wap Security Constraint

  Protected Area
  /test/*


  tomcat
  role1

  

  
FORM
Wap Form-based Authentication Area

  /test/login/login.jsp
  /test/login/error.jsp

  




>
>
> Saludos ,
> Ignacio J. Ortega


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




RE: Stopping Tomcat

2001-02-13 Thread Randy Layman


The problem probably stems from the fact that you have two different
server.xml files to start Tomcat with, but you are only calling one of them
to stop it.

By the way, if you're on this list for very long, you will discover
that probably 90% of people's problems are due to a lack of reading the
manuals.  The regulars get pretty tired of answering the same questions over
and over again.

Randy

-Original Message-
From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 2:08 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Stopping Tomcat


Hell now this is a good start to the mailing list!!! :-(
 
So allow me...   :-)
 
Have you read the the documentation? Yes I have. 
Which docs? 
- The user guide that comes with Tomcat
- the FAQ's on the Tomcat web site
 
So... which docs should I read?
-Original Message-
From: Nael Mohammad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 1:51 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Stopping Tomcat


READ the documentation
-Original Message-
From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 10:43 AM
To: '[EMAIL PROTECTED]'
Subject: Stopping Tomcat


Folks 
I'm have new to Tomcat so bear with me please. 
I have set up Apache and Tomcat to use 2 virtual server and to use two
instance of Tomcat running on two different port. 
Questions: 
1. How do I shutdown both instances of tomcat, the regular shutdown only
shuts down the one 
2. Sometimes the second instance of Tomcat does not boot properly and does
not work (I know this is not a lot to work on but maybe someone has come
across this before.)
Thanks in advance 
Andrew 

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




linux-jdk1.3.0 on FreeBSD4.2

2001-02-13 Thread Michael Dewhirst

Trying to install linux-jdk1.3.0 on FreeBSD4.2...

Could someone PLEASE tell me how to install a patch? I have these files, but
don't know what to do with them...

signal.h
linux_signal.c
linux.h
linux_dummy.c
linux_genassym.c
linux_locore.s
linux_machdep.c
linux_proto.h
linux_syscall.h
linux_sysent.c
linux_sysvec.c
syscalls.master

Thanks a huge amount in advance!

Mike


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




RE: mod_jk.so

2001-02-13 Thread John P. Dodge

This is a link problem, the compiled object was not linked with the
library file that contains the definition on the symbol "map_name_at". You
need to find the lib file and add it to the linker directive (i.e.
-L -l). I don't know about FreeBSD but on Solaris you can
use the nm command to dump the symbol tables of lib files:

Try (from the standard lib dirs):

nm lib* | grep map_name_at

or

for f in lib*
do
echo $f
nm $f | grep map_name_at
done


On Tue, 13 Feb 2001, mikhail malamud wrote:

> I give up. Can someone send me mod_jk.so compiled on freebsd.
> 
> **
> Cannot load /usr/local/libexec/apache/mod_jk.so into server:
> /usr/local/libexec/apache/mod_jk.so: Undefined symbol "map_name_at"
> /usr/local/sbin/apachectl start: httpd could not be started
> *
> 


"Mon aeroglisseur est plein d'anguilles"

John P. Dodge
Boeing Shared Services Group



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




RE: EARGENT!

2001-02-13 Thread Lifeng Xu

John,

Thank you again for your help!
My Tomcat can start. I can run some of my jsps through Tomcat, but not all
of them.
Attached is all of my configuration files.
The httpd.com is located in /usr/local/apache/conf directory, the
mod_jserv.log is in .../apache/logs, and the rest of them are located in
/opt/MemberLink_IAS/com/rims/memberlink/conf directory.

Thank you very much

Lifeng

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 12:23 PM
To: [EMAIL PROTECTED]
Subject: RE: EARGENT!


Probably not. It's clear that you got problems between two of those. The 
AJP12 protocol
tomcat uses to communicate with Apache (that's why you load mod_jser.o in 
Apache),
First thing to do, is try to load the pages using the Tomcat's default 
port 8080, like
localhost:8080/path/to/jsp , /examples, /path/to/servlet/ServletName, 
etc. If 8080
port isn't working, check the $TOMCAT_HOME/conf/server.xml file. (or 
check by running:
cat $TOMCAT_HOME/conf/server.xml | grep 80, this will show the 80* ports 
you have, if any at all.). If you got your pages loaded under 8080, then 
it's a Apaches->Tomcat problem. The configuration file maybe not valid. 
You may send the apache's httpd.conf and tomcats server.xml file here, so 
we can take a look at it. Because I personally 
have no idea what's going on there.
 - John.
P.S.
This is why I think it is:

> > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > ...(EMERGENCY) ajp12: function connection fail.

 And:

> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
> on
> > (Ajp12ConnectionHandler.java:156)




>> Original Message <<

On 2/13/01, 9:58:29 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE: 
EARGENT!:


> Thanks for your response!

> I configured to start Tomcat when apache starts. Seems to me that they
> starts ok...

> Lifeng

> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 11:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: EARGENT!


> Do you have Apache running? Or you run in standalone mode? (Only Tomcat)


> >> Original Message <<

> On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding
> EARGENT!:


> > Hi,

> > I am running Tomcat/JServ on Linux with Inprise ejb container. When I
> access
> > one of my jsp pages, I got error message from Apache's error log (see
> > bellow). I checked mod_jserv.log also. There some info in the
> mod_jserv.log
> > such as:

> > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > ...(EMERGENCY) ajp12: function connection fail.
> > ...
> > ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> > ...

> > I have no idea what's causing this. And, not all jsp access fails. Most
> of
> > the jsps functioning correctly.

> > Bellow is the error I found from apache's error_log.

> > I need to fix this now and get the app running right away! So please
help
> > me!

> > Many thanks.

> > Lifeng

> > java.rmi.MarshalException: CORBA MARSHAL 0[]
> >  at java.lang.Throwable.(Throwable.java:96)
> >  at java.lang.Exception.(Exception.java:44)
> >  at java.io.IOException.(IOException.java:49)
> >  at java.rmi.RemoteException.(RemoteException.java:58)
> >  at java.rmi.MarshalException.(MarshalException.java:49)
> >  at java.lang.reflect.Constructor.newInstance(Native Method)
> >  at com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:82)

> >  at
> >
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(UtilImpl.java:3
> 26
> > )

> >  at
> >
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(UtilImpl.java:45
> 1)

> >  at javax.rmi.CORBA.Util.mapSystemException(Util.java:51)
> >  at
> >
> 
com.rims.memberlink.ejb._NewEnrollee_Stub.validateNewDemo(_NewEnrollee_Stu
> b.
> > java:208)

> >  at
> >
> 
com.rims.memberlink.toolkit.NewEnrollmentToolkit.ValidateCurrentPage(NewEn
> ro
> > llmentToolkit.java:1318)

> >  at
> >
> 
com.rims.memberlink.toolkit.NewEnrollmentToolkit.processPage(NewEnrollment
> To
> > olkit.java:995)

> >  at
> >
> 
_0002fValidate_0002ejspValidate_jsp_0._jspService(_0002fValidate_0002ejspV
> al
> > idate_jsp_0.java:373)

> >  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> >
> 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.
> ja
> > va:174)

> >  at
> > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)

> >  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> >
> 
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:50
> 3)

> >  at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> >  at
> >
> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pr

Re: mod_jk.so (apxs, fdatasync, snprintf)

2001-02-13 Thread J Austin

Great! That means that I still have more trials ahead of me when I finish
installing an updated gcc.

mikhail malamud wrote:

> Everything compiles and looks good. but httpd simply wont start with
> mod_jk enabled and configtest runs fine.
>

   ^^
I am up to the point that configtest doesn't work. Anyone have any idea
how many stumbling blocks there are at this point ?

So far:

1) apxs didn't work and it took me hours to find the fix in the PHP FAQ.
http://www.php.net/FAQ.php#6.11
This included upgrading apache to 1.3.17 in the hope that apxs was fixed
(it wasn't). I also messed around a fair bit with Tomcat and Java.

2) Couldn't join the jakarta-tomcat FAQ-O-MATIC to add my solution to (1)

3) Mailing list archives give you '20 out of a possible 20' matches so you
have to do a jillion queries to try and narrow out information but you don't

know whether your queries are actually narrowing the results.

I got the failure to load the fdatasync problem which was solved by adding
-lposix4 to the apxs command line.

Right now I am replacing my gcc in the hopes that it will give me a libc.so
library containing the snprintf object. Sheesh! are all these type-retentive

Java people actually still coding in C using stdio.h ??? No wonder they
think that C++ is so bad.





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




RE: Stopping Tomcat

2001-02-13 Thread Nortje, Andrew
Title: Stopping Tomcat



Hell 
now this is a good start to the mailing list!!! :-(
 
So 
allow me...   :-)
 
Have 
you read the the documentation? Yes I have. 
Which 
docs? 
- The 
user guide that comes with Tomcat
- the 
FAQ's on the Tomcat web site
 
So... 
which docs should I read?

  -Original Message-From: Nael Mohammad 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 1:51 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  Stopping Tomcat
  READ 
  the documentation
  
-Original Message-From: Nortje, Andrew 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 10:43 
AMTo: '[EMAIL PROTECTED]'Subject: 
Stopping Tomcat
Folks 
I'm have new to Tomcat so bear with me please. 
I have set up Apache and Tomcat to use 2 virtual server and 
to use two instance of Tomcat running on two different port. 
Questions: 1. How do I shutdown both 
instances of tomcat, the regular shutdown only shuts down the one 
2. Sometimes the second instance of Tomcat does not boot 
properly and does not work (I know this is not a lot to work on but maybe 
someone has come across this before.)
Thanks in advance 
Andrew 


RE: EARGENT!

2001-02-13 Thread John Golubenko

But isn't this:

> > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > ...(EMERGENCY) ajp12: function connection fail.

Has nothing to do with RMI? Or J2EE? 
I'm pretty sure the lost ajp12 connection, which is works exclusively(?) 
with
Apache, has failed. Thus JSP couldn't be handled correctly, thus EJB 
couldn't be
loaded properly, thus all this failed. Although I may be very wrong, but 
I'm trying
to help! Really!
You must try to load other JSP's you have, and good to try other EJB's if 
you have any. (they should use RMI)

 John.
 

>> Original Message <<

On 2/13/01, 11:02:27 AM, "Duncan Irvine" <[EMAIL PROTECTED]> wrote 
regarding RE: EARGENT!:


> Frankly, this sounds to me more like a problem with your EJB code.  If 
you
> can get some of your JSPs/servlets to work, but some fail, then the 
problem
> probably isn't with Apache, nor the Apache->Tomcat bridge.  Although it
> might be a subtle configuration problem.  Check to see if there's a
> correlation between EJB usage and Tomcat failing on a particular JSP.

> From the Java Exception trace you posted, I would suggest that Tomcat is
> trying to connect to your EJB server but having a problem sending the
> parameters of the method.  I know that some implementations of RMI over
> CORBA require that any classes you send have fully public member 
variables.
> A pain, but it might be worth a try if all else fails.  Check out the 
Docs
> for the container first.


> > -Original Message-
> > From: John Golubenko [mailto:[EMAIL PROTECTED]]
> > Subject: Re: EARGENT!
> >
> >
> > Do you have Apache running? Or you run in standalone mode?
> > (Only Tomcat)
> >
> >
> > >> Original Message <<
> >
> > On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding
> > EARGENT!:
> >
> >
> > > Hi,
> >
> > > I am running Tomcat/JServ on Linux with Inprise ejb
> > container. When I
> > access
> > > one of my jsp pages, I got error message from Apache's
> > error log (see
> > > bellow). I checked mod_jserv.log also. There some info in the
> > mod_jserv.log
> > > such as:
> >
> > > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > > ...(EMERGENCY) ajp12: function connection fail.
> > > ...
> > > ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> > > ...
> >
> > > I have no idea what's causing this. And, not all jsp access
> > fails. Most
> > of
> > > the jsps functioning correctly.
> >
> > > Bellow is the error I found from apache's error_log.
> >
> > > I need to fix this now and get the app running right away!
> > So please help
> > > me!
> >
> > > Many thanks.
> >
> > > Lifeng
> >
> > > java.rmi.MarshalException: CORBA MARSHAL 0[]
> > >  at java.lang.Throwable.(Throwable.java:96)
> > >  at java.lang.Exception.(Exception.java:44)
> > >  at java.io.IOException.(IOException.java:49)
> > >  at java.rmi.RemoteException.(RemoteException.java:58)
> > >  at java.rmi.MarshalException.(MarshalException.java:49)
> > >  at java.lang.reflect.Constructor.newInstance(Native Method)
> > >  at
> > com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:82)
> >
> > >  at
> > >
> > com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(Uti
> > lImpl.java:3
> > 26
> > > )
> >
> > >  at
> > >
> > com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(Util
> > Impl.java:45
> > 1)
> >
> > >  at javax.rmi.CORBA.Util.mapSystemException(Util.java:51)
> > >  at
> > >
> > com.rims.memberlink.ejb._NewEnrollee_Stub.validateNewDemo(_New
> Enrollee_Stu
> > b.
> > > java:208)
> >
> > >  at
> > >
> > com.rims.memberlink.toolkit.NewEnrollmentToolkit.ValidateCurre
> > ntPage(NewEn
> > ro
> > > llmentToolkit.java:1318)
> >
> > >  at
> > >
> > com.rims.memberlink.toolkit.NewEnrollmentToolkit.processPage(N
> > ewEnrollment
> > To
> > > olkit.java:995)
> >
> > >  at
> > >
> > _0002fValidate_0002ejspValidate_jsp_0._jspService(_0002fValida
> > te_0002ejspV
> > al
> > > idate_jsp_0.java:373)
> >
> > >  at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> > >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >  at
> > >
> > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> > (JspServlet.
> > ja
> > > va:174)
> >
> > >  at
> > >
> > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> > .java:261)
> >
> > >  at
> > org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> > >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >  at
> > >
> > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> > pper.java:50
> > 3)
> >
> > >  at
> > >
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> > >  at
> > >
> > org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> > cessConnecti
> > on
> > > (Ajp12ConnectionHandler.java:156)
> >
> > >  at
> > >
> > org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> > point.java:3
> > 38
> > > )
> >
> 

RE: EARGENT!

2001-02-13 Thread Duncan Irvine

Frankly, this sounds to me more like a problem with your EJB code.  If you
can get some of your JSPs/servlets to work, but some fail, then the problem
probably isn't with Apache, nor the Apache->Tomcat bridge.  Although it
might be a subtle configuration problem.  Check to see if there's a
correlation between EJB usage and Tomcat failing on a particular JSP.

>From the Java Exception trace you posted, I would suggest that Tomcat is
trying to connect to your EJB server but having a problem sending the
parameters of the method.  I know that some implementations of RMI over
CORBA require that any classes you send have fully public member variables.
A pain, but it might be worth a try if all else fails.  Check out the Docs
for the container first.


> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Subject: Re: EARGENT!
> 
> 
> Do you have Apache running? Or you run in standalone mode? 
> (Only Tomcat)
> 
> 
> >> Original Message <<
> 
> On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding 
> EARGENT!:
> 
> 
> > Hi,
> 
> > I am running Tomcat/JServ on Linux with Inprise ejb 
> container. When I 
> access
> > one of my jsp pages, I got error message from Apache's 
> error log (see
> > bellow). I checked mod_jserv.log also. There some info in the 
> mod_jserv.log
> > such as:
> 
> > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > ...(EMERGENCY) ajp12: function connection fail.
> > ...
> > ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> > ...
> 
> > I have no idea what's causing this. And, not all jsp access 
> fails. Most 
> of
> > the jsps functioning correctly.
> 
> > Bellow is the error I found from apache's error_log.
> 
> > I need to fix this now and get the app running right away! 
> So please help
> > me!
> 
> > Many thanks.
> 
> > Lifeng
> 
> > java.rmi.MarshalException: CORBA MARSHAL 0[]
> >  at java.lang.Throwable.(Throwable.java:96)
> >  at java.lang.Exception.(Exception.java:44)
> >  at java.io.IOException.(IOException.java:49)
> >  at java.rmi.RemoteException.(RemoteException.java:58)
> >  at java.rmi.MarshalException.(MarshalException.java:49)
> >  at java.lang.reflect.Constructor.newInstance(Native Method)
> >  at 
> com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:82)
> 
> >  at
> > 
> com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(Uti
> lImpl.java:3
> 26
> > )
> 
> >  at
> > 
> com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(Util
> Impl.java:45
> 1)
> 
> >  at javax.rmi.CORBA.Util.mapSystemException(Util.java:51)
> >  at
> > 
> com.rims.memberlink.ejb._NewEnrollee_Stub.validateNewDemo(_New
Enrollee_Stu
> b.
> > java:208)
> 
> >  at
> > 
> com.rims.memberlink.toolkit.NewEnrollmentToolkit.ValidateCurre
> ntPage(NewEn
> ro
> > llmentToolkit.java:1318)
> 
> >  at
> > 
> com.rims.memberlink.toolkit.NewEnrollmentToolkit.processPage(N
> ewEnrollment
> To
> > olkit.java:995)
> 
> >  at
> > 
> _0002fValidate_0002ejspValidate_jsp_0._jspService(_0002fValida
> te_0002ejspV
> al
> > idate_jsp_0.java:373)
> 
> >  at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> > 
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
> (JspServlet.
> ja
> > va:174)
> 
> >  at
> > 
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet
> .java:261)
> 
> >  at 
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> > 
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:50
> 3)
> 
> >  at
> > 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> >  at
> > 
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnecti
> on
> > (Ajp12ConnectionHandler.java:156)
> 
> >  at
> > 
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:3
> 38
> > )
> 
> >  at java.lang.Thread.run(Thread.java:498)
> 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> NOTICE:  This communication may contain confidential or other 
> privileged information.  If you are not the intended 
> recipient, or believe that you have received this 
> communication in error, please do not print, copy, 
> retransmit, disseminate, or otherwise use the information.  
> Also, please indicate to the sender that you have received 
> this email in error, and delete the copy you received.  Any 
> communication that does not relate to official Columbia 
> business is that of the sender and is neither given nor 
> endorsed by Columbia.  Thank you.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [

WinNT file name too long - JSP File naming algorithm

2001-02-13 Thread BBueckers

I am trying to bypass the problem Tomcat 3.2.1 has when it attempts to
create file names under the 'work' directory that contain too many
characters on a WinNT machine (>255). Has anyone created a work-around for
this? New algorithm? Is this going to be fixed in the next release?

Thanks in advance,

Bob

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




RE: Stopping Tomcat

2001-02-13 Thread Nael Mohammad
Title: Stopping Tomcat



READ 
the documentation

  -Original Message-From: Nortje, Andrew 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 13, 2001 10:43 
  AMTo: '[EMAIL PROTECTED]'Subject: Stopping 
  Tomcat
  Folks 
  I'm have new to Tomcat so bear with me please. 
  I have set up Apache and Tomcat to use 2 virtual server and to 
  use two instance of Tomcat running on two different port. 
  Questions: 1. How do I shutdown both 
  instances of tomcat, the regular shutdown only shuts down the one 
  2. Sometimes the second instance of Tomcat does not boot 
  properly and does not work (I know this is not a lot to work on but maybe 
  someone has come across this before.)
  Thanks in advance 
  Andrew 


Re: install instructions

2001-02-13 Thread John Golubenko

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/ 

>> Original Message <<

On 2/13/01, 10:42:50 AM, "Galon, Mary-Jay" <[EMAIL PROTECTED]> 
wrote regarding install instructions:


> hi:

> im trying to find the tomcat installation instructions but could not find 
it
> on the site.  i know one exists because i used it some months back for
> another project.  can someone give me the path.


> mj

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

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




Stopping Tomcat

2001-02-13 Thread Nortje, Andrew
Title: Stopping Tomcat





Folks


I'm have new to Tomcat so bear with me please.


I have set up Apache and Tomcat to use 2 virtual server and to use two instance of Tomcat running on two different port. 

Questions:
1. How do I shutdown both instances of tomcat, the regular shutdown only shuts down the one
2. Sometimes the second instance of Tomcat does not boot properly and does not work (I know this is not a lot to work on but maybe someone has come across this before.)

Thanks in advance


Andrew





install instructions

2001-02-13 Thread Galon, Mary-Jay

hi:

im trying to find the tomcat installation instructions but could not find it
on the site.  i know one exists because i used it some months back for
another project.  can someone give me the path.


mj

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




RE: search display problem

2001-02-13 Thread Kevin Sangeelee

On Tue, 13 Feb 2001, Randy Layman wrote:

>   You could suck in all of the resultset into some data holding object
> (List of basically C-style structs) and store this in the session.  Then use
> a current page variable to select the correct rows.  This would probably
> waste lots of memory but would limit the number of database accesses.

I agree it's off topic, but then what would Tomcat be without a DBMS?
So...

An alternative to your idea is only to hold the primary key column in an
array within a session bean, and pages could be accessed using array
chunks of  using sql something like: -

SELECT  FROM TABLE WHERE mykey IN (array[i],
array[i+1],...) ORDER BY ;

for each new page. Also, memory usage per session is easy to estimate for
array if integer primary keys.




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




RE: EARGENT!

2001-02-13 Thread John Golubenko

Probably not. It's clear that you got problems between two of those. The 
AJP12 protocol
tomcat uses to communicate with Apache (that's why you load mod_jser.o in 
Apache),
First thing to do, is try to load the pages using the Tomcat's default 
port 8080, like
localhost:8080/path/to/jsp , /examples, /path/to/servlet/ServletName, 
etc. If 8080
port isn't working, check the $TOMCAT_HOME/conf/server.xml file. (or 
check by running:
cat $TOMCAT_HOME/conf/server.xml | grep 80, this will show the 80* ports 
you have, if any at all.). If you got your pages loaded under 8080, then 
it's a Apaches->Tomcat problem. The configuration file maybe not valid. 
You may send the apache's httpd.conf and tomcats server.xml file here, so 
we can take a look at it. Because I personally 
have no idea what's going on there.
 - John.
P.S.
This is why I think it is:

> > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > ...(EMERGENCY) ajp12: function connection fail.

 And:

> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
> on
> > (Ajp12ConnectionHandler.java:156)




>> Original Message <<

On 2/13/01, 9:58:29 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding RE: 
EARGENT!:


> Thanks for your response!

> I configured to start Tomcat when apache starts. Seems to me that they
> starts ok...

> Lifeng

> -Original Message-
> From: John Golubenko [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 11:51 AM
> To: [EMAIL PROTECTED]
> Subject: Re: EARGENT!


> Do you have Apache running? Or you run in standalone mode? (Only Tomcat)


> >> Original Message <<

> On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding
> EARGENT!:


> > Hi,

> > I am running Tomcat/JServ on Linux with Inprise ejb container. When I
> access
> > one of my jsp pages, I got error message from Apache's error log (see
> > bellow). I checked mod_jserv.log also. There some info in the
> mod_jserv.log
> > such as:

> > ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> > ...(EMERGENCY) ajp12: function connection fail.
> > ...
> > ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> > ...

> > I have no idea what's causing this. And, not all jsp access fails. Most
> of
> > the jsps functioning correctly.

> > Bellow is the error I found from apache's error_log.

> > I need to fix this now and get the app running right away! So please help
> > me!

> > Many thanks.

> > Lifeng

> > java.rmi.MarshalException: CORBA MARSHAL 0[]
> >  at java.lang.Throwable.(Throwable.java:96)
> >  at java.lang.Exception.(Exception.java:44)
> >  at java.io.IOException.(IOException.java:49)
> >  at java.rmi.RemoteException.(RemoteException.java:58)
> >  at java.rmi.MarshalException.(MarshalException.java:49)
> >  at java.lang.reflect.Constructor.newInstance(Native Method)
> >  at com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:82)

> >  at
> >
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(UtilImpl.java:3
> 26
> > )

> >  at
> >
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(UtilImpl.java:45
> 1)

> >  at javax.rmi.CORBA.Util.mapSystemException(Util.java:51)
> >  at
> >
> 
com.rims.memberlink.ejb._NewEnrollee_Stub.validateNewDemo(_NewEnrollee_Stu
> b.
> > java:208)

> >  at
> >
> 
com.rims.memberlink.toolkit.NewEnrollmentToolkit.ValidateCurrentPage(NewEn
> ro
> > llmentToolkit.java:1318)

> >  at
> >
> 
com.rims.memberlink.toolkit.NewEnrollmentToolkit.processPage(NewEnrollment
> To
> > olkit.java:995)

> >  at
> >
> 
_0002fValidate_0002ejspValidate_jsp_0._jspService(_0002fValidate_0002ejspV
> al
> > idate_jsp_0.java:373)

> >  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> >
> 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.
> ja
> > va:174)

> >  at
> > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)

> >  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> >
> 
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:50
> 3)

> >  at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> >  at
> >
> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
> on
> > (Ajp12ConnectionHandler.java:156)

> >  at
> >
> 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:3
> 38
> > )

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

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

> NOTICE:  This communication may contain confidential or other privileged
> information.  If you are not the intended recipient, or believe that you
> have received this 

RE: Here you have, ;o) DO NO OPEN

2001-02-13 Thread John Golubenko

David got screwed... so does he's M$ driven company :))
Send me source code please! As plain text... it's ok.

>> Original Message <<

On 2/13/01, 9:53:41 AM, "shlomi sarfati" <[EMAIL PROTECTED]> wrote 
regarding RE: Here you have, ;o) DO NO OPEN:


> for whom who don't know

> do not open this one
> its a virus

> -Original Message-
> From: David Kadlecek [mailto:[EMAIL PROTECTED]]
> Sent: Tue, February 13, 2001 2:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: Here you have, ;o)


> Hi:
> Check This!




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

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




Re: Can Tomcat Run as Apache In-Process workers?

2001-02-13 Thread Brett Neumeier

[EMAIL PROTECTED] wrote:
> 
> The document describes how it can run in Netscape or IIS, but not in
> Apache.

Apache 1.3.x is multiprocess, not multithreaded, so you can't use the
in-process worker.  Apache 2.x is multithreaded, so you can ... but it's
not in stable release as yet.

Cheers,

Brett Neumeier

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




Re: Here you have, ;o)

2001-02-13 Thread John Golubenko

Does anyone have source code for that virus? I wanna see it...
I'm sorry for Anna btw...

>> Original Message <<

On 2/13/01, 9:54:04 AM, "Joe Laffey" <[EMAIL PROTECTED]> wrote 
regarding Re: Here you have, ;o):


> Hehe...

> I love it when people send worms to mailing lists. I feel sorry for all
> the Outlook users...


> Joe Laffey
> LAFFEY Computer Imaging
> St. Louis, MO
> -


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

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




Re: Here you have, ;o)

2001-02-13 Thread John Golubenko

He he... nothing can touch me... im on Linux :)


>> Original Message <<

On 2/13/01, 9:54:04 AM, "Joe Laffey" <[EMAIL PROTECTED]> wrote 
regarding Re: Here you have, ;o):


> Hehe...

> I love it when people send worms to mailing lists. I feel sorry for all
> the Outlook users...


> Joe Laffey
> LAFFEY Computer Imaging
> St. Louis, MO
> -


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

NOTICE:  This communication may contain confidential or other privileged information.  
If you are not the intended recipient, or believe that you have received this 
communication in error, please do not print, copy, retransmit, disseminate, or 
otherwise use the information.  Also, please indicate to the sender that you have 
received this email in error, and delete the copy you received.  Any communication 
that does not relate to official Columbia business is that of the sender and is 
neither given nor endorsed by Columbia.  Thank you.



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




RE: EARGENT!

2001-02-13 Thread Lifeng Xu

Thanks for your response!

I configured to start Tomcat when apache starts. Seems to me that they
starts ok...

Lifeng

-Original Message-
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 11:51 AM
To: [EMAIL PROTECTED]
Subject: Re: EARGENT!


Do you have Apache running? Or you run in standalone mode? (Only Tomcat)


>> Original Message <<

On 2/13/01, 9:45:08 AM, "Lifeng Xu" <[EMAIL PROTECTED]> wrote regarding 
EARGENT!:


> Hi,

> I am running Tomcat/JServ on Linux with Inprise ejb container. When I 
access
> one of my jsp pages, I got error message from Apache's error log (see
> bellow). I checked mod_jserv.log also. There some info in the 
mod_jserv.log
> such as:

> ...(EMERGENCY) ajp12: can not connect to host 127.0.0.1
> ...(EMERGENCY) ajp12: function connection fail.
> ...
> ...(ERROR) wrapper: argument[..] /usr/local/jdk1.3/bin/java
> ...

> I have no idea what's causing this. And, not all jsp access fails. Most 
of
> the jsps functioning correctly.

> Bellow is the error I found from apache's error_log.

> I need to fix this now and get the app running right away! So please help
> me!

> Many thanks.

> Lifeng

> java.rmi.MarshalException: CORBA MARSHAL 0[]
>  at java.lang.Throwable.(Throwable.java:96)
>  at java.lang.Exception.(Exception.java:44)
>  at java.io.IOException.(IOException.java:49)
>  at java.rmi.RemoteException.(RemoteException.java:58)
>  at java.rmi.MarshalException.(MarshalException.java:49)
>  at java.lang.reflect.Constructor.newInstance(Native Method)
>  at com.inprise.vbroker.rmi.CORBA.UtilImpl.newInstance(UtilImpl.java:82)

>  at
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl._mapSystemException(UtilImpl.java:3
26
> )

>  at
> 
com.inprise.vbroker.rmi.CORBA.UtilImpl.mapSystemException(UtilImpl.java:45
1)

>  at javax.rmi.CORBA.Util.mapSystemException(Util.java:51)
>  at
> 
com.rims.memberlink.ejb._NewEnrollee_Stub.validateNewDemo(_NewEnrollee_Stu
b.
> java:208)

>  at
> 
com.rims.memberlink.toolkit.NewEnrollmentToolkit.ValidateCurrentPage(NewEn
ro
> llmentToolkit.java:1318)

>  at
> 
com.rims.memberlink.toolkit.NewEnrollmentToolkit.processPage(NewEnrollment
To
> olkit.java:995)

>  at
> 
_0002fValidate_0002ejspValidate_jsp_0._jspService(_0002fValidate_0002ejspV
al
> idate_jsp_0.java:373)

>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.
ja
> va:174)

>  at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)

>  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> 
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:50
3)

>  at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>  at
> 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
on
> (Ajp12ConnectionHandler.java:156)

>  at
> 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:3
38
> )

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

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

NOTICE:  This communication may contain confidential or other privileged
information.  If you are not the intended recipient, or believe that you
have received this communication in error, please do not print, copy,
retransmit, disseminate, or otherwise use the information.  Also, please
indicate to the sender that you have received this email in error, and
delete the copy you received.  Any communication that does not relate to
official Columbia business is that of the sender and is neither given nor
endorsed by Columbia.  Thank you.



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


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




RE: Here you have, ;o) DO NO OPEN

2001-02-13 Thread shlomi sarfati

for whom who don't know 

do not open this one 
its a virus

-Original Message-
From: David Kadlecek [mailto:[EMAIL PROTECTED]]
Sent: Tue, February 13, 2001 2:50 PM
To: '[EMAIL PROTECTED]'
Subject: Here you have, ;o)


Hi:
Check This!




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




mod_jk does not work

2001-02-13 Thread Eugenio Ascoli-Bartoli

Hi,
I just installed Tomcat 3.2 (tomcat-3.2.1-1.noarch.rpm from  Falsehope) on a
linux box (mandrake 7.2 - kernel 2.4.0-12mdk)
It works fine on port 8080. I tried to configure it to work with Apache
(Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk), the one that
comes with Mandrake) , following instructions contained in the html doc
"working with mod_jk" (mod_jk-howto.html).

1. I removed the lines related to mod_jserv from httpd.conf
2. I used the mod_jk.so already compiled that comes with the .rpm
3. I defineed both Ajpv12 and Ajpv13, changing specific lines in server.xml
(in fact they were still in place)
4. I moved mod_jk.conf-auto from the /conf  directory to the
directory of httpd.conf. I had only to change the supported protocol from
ajp12 to ajp13, added AddModule mod_jk.c. I also edited manually
workers.properties to follow my actual system configuration (but only for
directory naming and conventions and JVM names)
5. I set up the first part of mod_jk.conf-auto this way:
LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c

JkWorkersFile /var/tomcat/conf/workers.properties
JkLogFile /var/tomcat/logs/mod_jk.log

#
# Log level to be used by mod_jk
#
JkLogLevel debug

and then included it in httpd.conf

6. I assigned URLs to tomcat with JkMount, e.g.
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13

#
# The following line prohibits users from directly accessing WEB-INF
#

AllowOverride None
deny from all


#
# The following line prohibits users from directly accessing META-INF
#

AllowOverride None
deny from all


And here come the problems:

I start Tomcat from its boot script in /etc/rc.d/init.d. The I start Apache
with the boot script in the same directory.
>From the apache's log file I can see that mod_jk.so is loaded, and the same
I can see on the mod_jk log.
As I said, I can contact tomcat on port 8080. When I try to access via
Apache, it detects the alias
"/examples"; then this happens:
- when I try to execute .jsp pages, the external effect is the page been
displayed "as is". In the mod_jk log appear these two lines:
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp13
 when I try to execute a servlet, the external effect is an "Error 404". In
the mod_jk log appear these two lines:
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match

Any hint, any help?
TYA
Eugenio Ascoli-Bartoli


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




ALERT:Message from David Kadlecekwastruncated;File AnnaKournikova.jpg.vbsinfected with VBS/VBSWG.S@mm.Worm virus

2001-02-13 Thread UPRRSMTP1/INTERNET



 INCIDENT


 Scan Time:02/13/2001 11:55:56 AM
 Detection:File AnnaKournikova.jpg.vbs infected with
[EMAIL PROTECTED] virus
 Disposition:  Note has been truncated
 Quarantined:  (Document link: Quarantine Area document)
CN=UPRRSMTP1/O=INTERNET!!d:\notesdat\A3QAREA.NSF
 Version:  Antigen 3.30 (Build 5)


 MESSAGE


 Message ID:   006234D7
 Sender:   David Kadlecek <[EMAIL PROTECTED]>
 Subject:  Here you have, ;o)
 Recipients:   [EMAIL PROTECTED]
 Routing:  CN=UPRRSMTP1/O=INTERNET


 SYNOPSIS



RICH TEXT 'Body' (NORMAL)

RICH TEXT 'Body' (NORMAL)

RICH TEXT 'Body' (NORMAL)

RICH TEXT 'Body' (NORMAL)

FILE ATTACHMENT 'AnnaKournikova.jpg.vbs'
 << [EMAIL PROTECTED] >>
 File size: 2855 bytes
 Host type: MSDOS
 Compression:   OFF
 Attributes:PUBLIC READ-WRITE
 File flags:2
 Created:   02/13/2001 11:52:40 AM
 Modified:  02/13/2001 11:52:40 AM
 Status:Removed
 Scanner:   Norman Scan DLL (version 4700) found
[EMAIL PROTECTED]




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




Antigen found VBS/SST virus

2001-02-13 Thread ANTIGEN_SCOOBY

Antigen for Exchange found AnnaKournikova.jpg.vbs infected with VBS/SST
virus.
The file is currently Deleted.  The message, "Here you have, ;o)", was
sent from David Kadlecek  and was discovered in IMC Queues\Inbound
located at Brightspark/BSPARK-MAIN/SCOOBY.

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




InterScan NT Alert

2001-02-13 Thread Virencheck

Receiver, InterScan has detected virus(es) in the e-mail attachment.

Date:   Tue, 13 Feb 2001 18:54:05 +0100 (W. Europe Standard Time)
Method: Mail
From:   <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
File:   AnnaKournikova.jpg.vbs
Action: clean failed - deleted
Virus:  VBS_KALAMAR.A 

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




InterScan NT Alert

2001-02-13 Thread Virencheck

Sender, InterScan has detected virus(es) in your e-mail attachment.

Date:   Tue, 13 Feb 2001 18:54:05 +0100 (W. Europe Standard Time)
Method: Mail
From:   <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
File:   AnnaKournikova.jpg.vbs
Action: clean failed - deleted
Virus:  VBS_KALAMAR.A 

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




Re: Here you have, ;o)

2001-02-13 Thread Joe Laffey

Hehe...

I love it when people send worms to mailing lists. I feel sorry for all
the Outlook users...


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-


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




Antigen found VBS/SST virus

2001-02-13 Thread ANTIGEN_KINGLEAR
Title: Antigen found VBS/SST virus





Antigen for Exchange found AnnaKournikova.jpg.vbs infected with VBS/SST virus.
The file is currently Deleted.  The message, "Here you have, ;o)", was
sent from David Kadlecek  and was discovered in IMC Queues\Inbound
located at Stratford Internet Technology Inc./STRATFORD/KINGLEAR.





Virus Alert

2001-02-13 Thread virusmaster
ISVW:[EMAIL PROTECTED]$B$+$i$"$J$?$X$N%a!<%k$K%&%$%k%9(B(VBS_KALAMAR.A)$B$rH/8+$7$^$7$?!#(B

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


InterScan NT Alert

2001-02-13 Thread testns

Sender, InterScan has detected virus(es) in your e-mail attachment.

Date:   Tue, 13 Feb 2001 18:58:12 +0100 (Romance Standard Time)
Method: Mail
From:   <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
File:   AnnaKournikova.jpg.vbs
Action: deleted
Virus:  VBS_KALAMAR.A 

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




InterScan NT Alert

2001-02-13 Thread testns

Receiver, InterScan has detected virus(es) in the e-mail attachment.

Date:   Tue, 13 Feb 2001 18:58:12 +0100 (Romance Standard Time)
Method: Mail
From:   <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
File:   AnnaKournikova.jpg.vbs
Action: deleted
Virus:  VBS_KALAMAR.A 

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




  1   2   >