Re: Apache-Tomcat an VirtualHosts, here they are

2002-06-02 Thread Nikola Milutinovic

Your mail just contains a style sheet and a signiture.
The main document is missing.

---

I have just checked. I have sent an e-mail with two files attached:

vh_howto.html
vh_howto.css

The client is Outlook Express 5.5. I can re-send with Netscape 6.2 if you wish.

Nix.



AW: Apache-Tomcat an VirtualHosts, here they are

2002-06-02 Thread Ralph Einfeldt

Your mail just contains a style sheet and a signiture.
The main document is missing.

> -Ursprüngliche Nachricht-
> Von: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 3. Juni 2002 07:09
> An: Tomcat Users List
> Betreff: Apache-Tomcat an VirtualHosts, here they are
> 
> 
> OK guys. Enough people asked for it, so here it is. Keep in 
> mind that it is my personal expirience and understanding of 
> the works. If anyone has a correction to the docs, please say so.
> 
> Nix.
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Apache-Tomcat an VirtualHosts, here they are

2002-06-02 Thread Nikola Milutinovic

OK guys. Enough people asked for it, so here it is. Keep in mind that it is my 
personal expirience and understanding of the works. If anyone has a correction to the 
docs, please say so.

Nix.


pre {
	font-size: 12px;
}
th {
	font-weight: bold;
	background: #CC;
}
a {
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	color: #99;
	text-decoration: none;
	font-size: 14px;
}
a:hover {
	color: #FF;
}
h1 {
	font: bold 36px Arial, Helvetica, sans-serif;
	text-align: center;
}
h2 {
	font: bold 24px Arial, Helvetica, sans-serif;
	text-align: left;
}



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Apache 2.x and tomcat 4.x integration - Unix

2002-06-02 Thread Nikola Milutinovic

> whats the difference between
> mod_jk and mod_jk2

I believe mod_jk2 uses improved AJPv1.4 protocol for communication and is generally 
the future of mod_jk and AJPv1.3

Nix.



RE: How to get debug info

2002-06-02 Thread Nicholas Orr

Yeah there is output in the following file:
localhost_log.2002-06-03.txt

But why don't they just make it show in the browser, asp does.

-Original Message-
From: Chris Campbell [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 03, 2002 1:59 PM
To: 'Tomcat Users List'
Subject: RE: How to get debug info


Surely there must be output in the server (System.err) log though? (or
catalina.out) I don't think it's part of the specification that the error
message need be displayed in the browser - this is more or less just a
convenience. 

ChrisC

> -Original Message-
> From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 8:22 AM
> To: Tomcat Users List
> Subject: Re: How to get debug info
> 
> 
> Interesting.  Maybe this is a bug?  Does the jsp
> specification shed any
> light on the specified behavior?
> 
> fillup
> 
> 
> 
> On 6/2/02 4:14 PM, "Nicholas Orr" <[EMAIL PROTECTED]> wrote:
> 
> > What I mean is say file1.jsp has the following
> > 
> > And in file2.jsp I forgot a ';'. When I open file1.jsp I
> don't get the error
> > that a semi-colon is missing in file2.jsp.  What happens is
> it just has a
> > blank page with nothing on it.
> > 
> > 
> > 
> **
> > The information contained in this e-mail is confidential and is 
> > intended only for the use of the addressee(s). If you receive this 
> > e-mail in error, any use, distribution or copying of this e-mail is 
> > not permitted. You are requested to forward unwanted e-mail and 
> > address any problems to the MIM Holdings Limited Support Centre.
> > 
> > For general enquires:++61 7 3833 8000
> > Support Centre e-mail:[EMAIL PROTECTED]
> > Support Centre phone:  Australia 1800500646
> > International ++61 7 38338042
> > 
> **
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail:
> 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail:
> 
> 

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to make both parent and child windows opened by javascript in browser to participate in same session.

2002-06-02 Thread Yaman Kumar

Hi,

How to make parent and child browser windows (related to same application)
participate
in same session always that are opened by javascript . and application is
using TOMCAT4.x

I have stored so much information in a session of parent window and  i tried
to access  information in the child window that is opened from
parent window using javascript is becoming
null and treated in new session.

Code in templateinfo.jsp(in parent window) is below.

function show(){
childWindow1=window.open("myapp/userinfo.jsp?name=<%
=userName%>","child1","HEIGHT="+hit+",WIDTH="+wid+",top=0,left=
0,status=YES,scrollbars=YES");
}

some times userinfo.jsp is participating in new session but not always?

Can any throw light in it?

Many Thanks,
Yaman


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to get debug info

2002-06-02 Thread Phillip Morelock

I assumed that he meant there was nothing in there, too.

Now that I look closely, however...

Thanks for pointing that out.

fillup

On 6/2/02 8:58 PM, "Chris Campbell" <[EMAIL PROTECTED]> wrote:

> 
> Surely there must be output in the server (System.err) log though? (or
> catalina.out) I don't think it's part of the specification that the error
> message need be displayed in the browser - this is more or less just a
> convenience. 
> 
> ChrisC
> 
>> -Original Message-
>> From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, June 03, 2002 8:22 AM
>> To: Tomcat Users List
>> Subject: Re: How to get debug info
>> 
>> 
>> Interesting.  Maybe this is a bug?  Does the jsp
>> specification shed any
>> light on the specified behavior?
>> 
>> fillup
>> 
>> 
>> 
>> On 6/2/02 4:14 PM, "Nicholas Orr" <[EMAIL PROTECTED]> wrote:
>> 
>>> What I mean is say file1.jsp has the following
>>> 
>>> And in file2.jsp I forgot a ';'. When I open file1.jsp I
>> don't get the error
>>> that a semi-colon is missing in file2.jsp.  What happens is
>> it just has a
>>> blank page with nothing on it.
>>> 
>>> 
>>> 
>> **
>>> The information contained in this e-mail is confidential and is
>>> intended only for the use of the addressee(s).
>>> If you receive this e-mail in error, any use, distribution or
>>> copying of this e-mail is not permitted. You are requested to
>>> forward unwanted e-mail and address any problems to the
>>> MIM Holdings Limited Support Centre.
>>> 
>>> For general enquires:++61 7 3833 8000
>>> Support Centre e-mail:[EMAIL PROTECTED]
>>> Support Centre phone:  Australia 1800500646
>>> International ++61 7 38338042
>>> 
>> **
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:
>> 
>>> For additional commands, e-mail:
>> 
>>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:
>> 
>> For additional commands, e-mail:
>> 
>> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat is the best ?!

2002-06-02 Thread Walid Al-Abbadi




  i just  want  to know if i have an app work with jsp's ..is the best app
server can i work with is Tomcat ? and why ?..or there is other servers
best in performance than it !..  this applied too on Apache web server !

Actually, i dont know about other servers work with jsp's except Tomcat
, so i asked that question! ..but i'm looking for best performance in my
application..

 i'll appreciate any help for explaning these points to me ..

 thanks in advance ,
  
Walid Al-Abbadi

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to get debug info

2002-06-02 Thread Chris Campbell


Surely there must be output in the server (System.err) log though? (or
catalina.out) I don't think it's part of the specification that the error
message need be displayed in the browser - this is more or less just a
convenience. 

ChrisC

> -Original Message-
> From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 8:22 AM
> To: Tomcat Users List
> Subject: Re: How to get debug info
> 
> 
> Interesting.  Maybe this is a bug?  Does the jsp 
> specification shed any
> light on the specified behavior?
> 
> fillup
> 
> 
> 
> On 6/2/02 4:14 PM, "Nicholas Orr" <[EMAIL PROTECTED]> wrote:
> 
> > What I mean is say file1.jsp has the following
> > 
> > And in file2.jsp I forgot a ';'. When I open file1.jsp I 
> don't get the error
> > that a semi-colon is missing in file2.jsp.  What happens is 
> it just has a
> > blank page with nothing on it.
> > 
> > 
> > 
> **
> > The information contained in this e-mail is confidential and is
> > intended only for the use of the addressee(s).
> > If you receive this e-mail in error, any use, distribution or
> > copying of this e-mail is not permitted. You are requested to
> > forward unwanted e-mail and address any problems to the
> > MIM Holdings Limited Support Centre.
> > 
> > For general enquires:++61 7 3833 8000
> > Support Centre e-mail:[EMAIL PROTECTED]
> > Support Centre phone:  Australia 1800500646
> > International ++61 7 38338042
> > 
> **
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 
> 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to get debug info

2002-06-02 Thread Nicholas Orr

I thought you may want to have a look at this.  

Open file1.jsp and when it has loaded you will see there is no following
line where file2.jsp is suppose to put a string of text.  Now go into
file2.jsp and stick a semi-colon at the end of the first line.

I think this is a bug, where do you send this sort of thing??



**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**




file1.jsp
Description: Binary data


file2.jsp
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Need Help

2002-06-02 Thread Galbayar

use mod_jk or mod_webapp integrate tomcat with apache

-Original Message-
From: Walid Al-Abbadi [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: Need Help




   hi  again ,

   i just want to know if there is a way in configuration of
Tomcat/apache  to request my page [using Http] without specifying in the
URL the port 8080 ! ..  i  mean  it works well when i request :

http://myHost:8080/mypage.jsp

  what i'm asking about is can i make it so i can only request :

http://myHost/mypage.jsp

  i'll apperciate any help in that .. i use jakarta-tomcat [apache inside]
,(tomcat ver 3.1)  on win2k

 thanks in advance ,

 Walid Al-Abbadi

--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: RequestWrappers

2002-06-02 Thread Joe Tomcat

On Sunday 02 June 2002 16:41, you wrote:
> does anyone have any experience with making custom RequestWrappers
> with Catalina? I keep finding that my custom RequestWrapper is being
> wrapped by a catalina RequestWrapper -- making mine useless. Has
> anyone had this problem and solved it?

There seems to be very little documentation or tutorials about this subject.  
I think it's in the more esoteric section of things.  I would like to know, 
too.  I tried to use a request wrapper but I couldn't get it to work 
correctly so I gave up.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RequestWrappers

2002-06-02 Thread William Shulman


does anyone have any experience with making custom RequestWrappers
with Catalina? I keep finding that my custom RequestWrapper is being
wrapped by a catalina RequestWrapper -- making mine useless. Has
anyone had this problem and solved it?

-will

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Need Help

2002-06-02 Thread Walid Al-Abbadi



   hi  again ,

   i just want to know if there is a way in configuration of
Tomcat/apache  to request my page [using Http] without specifying in the
URL the port 8080 ! ..  i  mean  it works well when i request :

http://myHost:8080/mypage.jsp  

  what i'm asking about is can i make it so i can only request :

http://myHost/mypage.jsp 
   
  i'll apperciate any help in that .. i use jakarta-tomcat [apache inside] 
,(tomcat ver 3.1)  on win2k

 thanks in advance ,
 
 Walid Al-Abbadi

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: File download with Tomcat 4.0.2

2002-06-02 Thread thorsten frank

hi,

At 02:34 PM 31/05/2002 -0700, you wrote:

>Hello,
>
>  How do I force Tomcat to serve a file as a download, instead of 
> displaying it in the browser?

you don't, because it's up to the browser to decide. you can zip up all the 
files you want to offer for download, but any content-type the browser 
knows, it'll display.


thorsten frank
[software developer]

LPIP Australasia
http://www.liquidprotocol.com
ACN:096 239 039

Level 1/368 Crown Street
Darlinghurst 2010
Sydney, Australia

P: [02] 9332 1933
F: [02] 9332 1822


Disclaimer

The above information is confidential to the addressee and may be
privileged. Unauthorized access and use is prohibited. Internet
communications are not secure and therefore this company does not accept
legal responsibility for the contents of this message. If you are not the
intended recipient, any disclosure, copying, distribution or any action
taken or omitted in reliance on it, is prohibited and may be unlawful


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help needed on new child window is treated in new session byJavaScript from parent window

2002-06-02 Thread Phillip Morelock

> I'm not sure to say this is bug in Tomcat4.x,
> but I'm facing it with Tomcat4.x(all versions above  4).

it is more likely:
1.  This is a bug in the browser, not sending the cookie.
or
2.  Maybe you're not waiting long enough for the session to get associated?
Maybe you need to explicitly begin the session in the jsp that generates the
window-opening javascript.  And then maybe the javascript should be delayed
by a second or something to ensure that the session has been created.  Does
your function fire onload??  If so, make your call

onload="setTimeout('show()', 1000);"

or whatever -- can't remember javascript right now.

cheers
fillup


On 6/2/02 4:55 AM, "Yaman Kumar" <[EMAIL PROTECTED]> wrote:

> Hi,
> I'm not sure to say this is bug in Tomcat4.x,
> but I'm facing it with Tomcat4.x(all versions above  4).
> 
> My application is loaded in a parent window there user logs into application
> and
> in servlet I validate the user login info and keep so much information in
> session
> ( say id is x)and a new page is supplied by server and loaded in the parent
> window
> and parent window opens another window(child) using JavaScript
> that will hide all browser controls in child window (please look at the code
> that is
> in page loaded in parent window).
> 
> function show(){
> childWindow1=window.open("myapp/userinfo.jsp?name=<%
> =userName%>","child1","HEIGHT="+hit+",WIDTH="+wid+",top=0,left=
> 0,status=YES,scrollbars=YES");
> }
> 
> Problem: The child window that is opened from parent is not "ALWAYS"
> participating in the
> parent session (id:x).
> As I'm finding out the child window session as ( id:Y) in userinfo.jsp,
> Actually
> i would like to get the information that is stored in parent session (x).
> 
> "SOME TIMES both PARENT AND CHILD WINDOWS are participating in the SAME
> SESSION but not always".
> 
> And I tried to pass the parent session id to a other page that loads in
> child window
> using querystring, even that is not worked out as HttpServletContext can't
> give
> the HttpSession object using session id. Servlet 2.3 spec returns null
> object if we
> access
>  HttpSession parentSession= sessionContext.getSession( anysessionid);
>  //here parentSession is null
>  // (*** TOMCAT4 servletAPI says the above method returns null and in
> future
>  // this  method will be removed ***).
> 
> Then the information that is stored in Parent window session (id: x) is
> never get back.
> 
> Is it really bug in tomcat4.x other wise how come some times both windows
> are participating
> in same session?
> 
> Can any one jumped into this scenario with tomcat4.x ?
> 
> Many Thanks,
> rayaku
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SSL environment variable: key size

2002-06-02 Thread G . Kersten

I need to know the keysize, which is actually used in a SSL connection.

There are no environment variables like HTTPS or HTTPS_KEYSIZE like on  
Netscape Webserver, and even following all hints in tomcat-ssl-howto.html we  
didn't see any new request parameter.

Funny enough, there are two attributes (session_id, cipher_suite), but not  
the key_size we are looking for. This attribute shall be supported from  
Servlet 2.3, but Tomcat 3.3 is not more than Servlet 2.2.

Any other idea how to get the SSL key size?

We use Tomcat 3.3, Apache 1.3.22, mod_ssl 2.8.5 on Solaris 5.7, JDK 1.2.2.


Gerd Kersten



...Extract of the httpd.conf ..



##
## SSL Environment variables [added by gke]
##

# Should mod_jk send SSL information to Tomcat (default is On)
JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)  
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)  
JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is  
SSL_CLIENT_CERT)
JkCERTSIndicator SSL_CLIENT_CERT

##
## SSL Virtual Host Context
##


#  General setup for the virtual host
DocumentRoot "/usr/local/www"
ServerName ipent01.mydomain.de
ServerAdmin [EMAIL PROTECTED]
#ErrorLog /usr/local/httpd/logs/error_log
#TransferLog /usr/local/httpd/logs/access_log
#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on

[...]

# "jsp" added [gke, 16.05.02]

SSLOptions +StdEnvVars +ExportCertData
#SSLOptions +StdEnvVars


SSLOptions +StdEnvVars


[...]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




SSL and JSP session

2002-06-02 Thread G . Kersten

We enable URL rewriting by response.encodeUrl(url), and it works fine for  
https URL's. But there is no longer any session tracking when we shift to  
https. I guess this because the Java URL class treats a https URL as  
"malformed URL".

On the other hand, I've heard that wise people use the SSL session instead of  
the simple jessionid for SSL connections. But how to enable this? Do we have  
to write it ourself?

We use Tomcat 3.3, Apache 1.3.22, mod_ssl 2.8.5 on Solaris 5.7, JDK 1.2.2.

Gerd Kersten

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to get debug info

2002-06-02 Thread Phillip Morelock

Interesting.  Maybe this is a bug?  Does the jsp specification shed any
light on the specified behavior?

fillup



On 6/2/02 4:14 PM, "Nicholas Orr" <[EMAIL PROTECTED]> wrote:

> What I mean is say file1.jsp has the following
> 
> And in file2.jsp I forgot a ';'. When I open file1.jsp I don't get the error
> that a semi-colon is missing in file2.jsp.  What happens is it just has a
> blank page with nothing on it.
> 
> 
> **
> The information contained in this e-mail is confidential and is
> intended only for the use of the addressee(s).
> If you receive this e-mail in error, any use, distribution or
> copying of this e-mail is not permitted. You are requested to
> forward unwanted e-mail and address any problems to the
> MIM Holdings Limited Support Centre.
> 
> For general enquires:++61 7 3833 8000
> Support Centre e-mail:[EMAIL PROTECTED]
> Support Centre phone:  Australia 1800500646
> International ++61 7 38338042
> **
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to get debug info

2002-06-02 Thread Nicholas Orr

What I mean is say file1.jsp has the following

And in file2.jsp I forgot a ';'. When I open file1.jsp I don't get the error
that a semi-colon is missing in file2.jsp.  What happens is it just has a
blank page with nothing on it.


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
International ++61 7 38338042
**


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Administration Webapp

2002-06-02 Thread Adrian

You need to look at tomcat-users.xml under /tomcat/conf
You have to assign the role to a user .

Example below:

!--
  NOTE:  By default, no user is included in the "manager" role required
  to operate the "/manager" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
-->

  



- Original Message -
From: "Adrian Threlfall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 02, 2002 4:39 PM
Subject: Administration Webapp


> Hi All
> Could someone please tell what username and password is used to access the
> Administration webapp??.
>
> Thanks
>
> Adrian
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Administration Webapp

2002-06-02 Thread Adrian Threlfall

Hi All
Could someone please tell what username and password is used to access the
Administration webapp??.

Thanks

Adrian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache 2.x and tomcat 4.x integration - Unix

2002-06-02 Thread Ron

whats the difference between
mod_jk and mod_jk2

- Original Message -
From: "Nikola Milutinovic" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, June 02, 2002 6:23 PM
Subject: Re: Apache 2.x and tomcat 4.x integration - Unix


> [EMAIL PROTECTED] wrote:
>
> > Hi -
> >
> > I have not used Apache/Tomcat for awhile.
> > I am trying to configure Apache 2x and Tomcat 4x - Unix.
> >
> >  The most recent I have found is
> >  integrating Apache 1.3.24 with Tomcat
> >  4.0.3.
> >
> >  Is it possible to integrate 2x with
> >  Tomcat?  If so, where can I find
> >  documentation? Where can I find the binary
> >  for mod_webapp?
>
> The rules are the same - you need either one of these: mod_webapp, mod_jk
or
> mod_jk2 to connect Apache 2.0.x and Tomcat 4.x.y.
>
> Recent versions of mod_webapp, bundled with mod_jk and mod_jk2 in
> Jakarta-Tomcat-connectors will build for Apache2. Actually, building is
far less
> painful, since APR is already in Apache2.
>
> I don't know about binaries, but building is not too hard. I've built all
three
> on Tru64 UNIX, though I've verified only mod_webapp operation.
>
> Nix.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache 2.x and tomcat 4.x integration - Unix

2002-06-02 Thread Nikola Milutinovic

[EMAIL PROTECTED] wrote:

> Hi -
> 
> I have not used Apache/Tomcat for awhile.
> I am trying to configure Apache 2x and Tomcat 4x - Unix.
> 
>  The most recent I have found is
>  integrating Apache 1.3.24 with Tomcat  
>  4.0.3. 
> 
>  Is it possible to integrate 2x with
>  Tomcat?  If so, where can I find   
>  documentation? Where can I find the binary 
>  for mod_webapp?

The rules are the same - you need either one of these: mod_webapp, mod_jk or 
mod_jk2 to connect Apache 2.0.x and Tomcat 4.x.y.

Recent versions of mod_webapp, bundled with mod_jk and mod_jk2 in 
Jakarta-Tomcat-connectors will build for Apache2. Actually, building is far less 
painful, since APR is already in Apache2.

I don't know about binaries, but building is not too hard. I've built all three 
on Tru64 UNIX, though I've verified only mod_webapp operation.

Nix.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Setting up Administration-Webapp in 4.1.x

2002-06-02 Thread Thomas Bierhance

Hello Tomcat-users,

  I'm using jdk1.4.0 on Win2000. I tried this using several 4.1.x
  prebuilts. Accessing /admin results in an 500...

  org.apache.jasper.JasperException:
  Cannot find message resources under key org.apache.struts.action.MESSAGE

  As I could not find other msgs on tomcat-user/tomcat-dev regarding
  this problem it should be my config. I'm using tomcat out of the
  box, applied no changes to the tomcat-config.

  admin-log says

  2002-06-02 14:08:04
  StandardContext[/admin]: Servlet /admin threw load() exception
  javax.servlet.ServletException: Wrapper cannot find servlet class
  org.apache.webapp.admin.ApplicationServlet or a class it depends on

  Searching the web I found that this might be a classpath issue, but
  my system-classpath is empty. I don't know enough about struts to
  figure this out myself.

Regards & Thanks for help,
 Thomas  mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help needed on new child window is treated in new session by JavaScript from parent window

2002-06-02 Thread Yaman Kumar

Hi,
I'm not sure to say this is bug in Tomcat4.x,
 but I'm facing it with Tomcat4.x(all versions above  4).

My application is loaded in a parent window there user logs into application
and
in servlet I validate the user login info and keep so much information in
session
( say id is x)and a new page is supplied by server and loaded in the parent
window
and parent window opens another window(child) using JavaScript
that will hide all browser controls in child window (please look at the code
that is
in page loaded in parent window).

function show(){
childWindow1=window.open("myapp/userinfo.jsp?name=<%
=userName%>","child1","HEIGHT="+hit+",WIDTH="+wid+",top=0,left=
0,status=YES,scrollbars=YES");
}

Problem: The child window that is opened from parent is not "ALWAYS"
participating in the
parent session (id:x).
As I'm finding out the child window session as ( id:Y) in userinfo.jsp,
Actually
i would like to get the information that is stored in parent session (x).

"SOME TIMES both PARENT AND CHILD WINDOWS are participating in the SAME
SESSION but not always".

And I tried to pass the parent session id to a other page that loads in
child window
using querystring, even that is not worked out as HttpServletContext can't
give
the HttpSession object using session id. Servlet 2.3 spec returns null
object if we
access
   HttpSession parentSession= sessionContext.getSession( anysessionid);
   //here parentSession is null
   // (*** TOMCAT4 servletAPI says the above method returns null and in
future
   // this  method will be removed ***).

Then the information that is stored in Parent window session (id: x) is
never get back.

Is it really bug in tomcat4.x other wise how come some times both windows
are participating
in same session?

Can any one jumped into this scenario with tomcat4.x ?

Many Thanks,
rayaku




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




iis redirector and status code not 200

2002-06-02 Thread David Rosenstark

I have noticed the following problem. When my servlet wishes to return a
status code other than 200 and wants to include a body, if I include a
content length header, browsers get hung and cannot handle it. This only
happens through the ISAPI redirector but when accessing the servlet straight
to tomcat it works fine.
Any ideas how to get around this problem (other than dropping the content
length)? 
I imagine the problem relates to the return code returned by the ISAPI
redirector to IIS whihc does not care what the actual status of the request
was and always asks IIS to leave it open
 
 
TIA,
David
 



RE: iPlanet + tomcat integration

2002-06-02 Thread Gal Binderman

Here are my obj.conf and workers.properties... I'll appreciate your help.

Thanks,



-Original Message-
From: Leonard Crowe [mailto:[EMAIL PROTECTED]]
Sent: Wed, May 29, 2002 5:00 PM
To: 'Tomcat Users List'
Subject: RE: iPlanet + tomcat integration


We run a similar configuration without problems.  Our tomcat instance is not
on the same box but that is controlled via the workers.properties file and
using localhost instead of the IP of the other box has worked for me in the
past.  We are also using the ajp13 connector as well as the ajp12 but the
ajp12 connector has worked for us as well in the past.  I would guess that
there is a configuration problem in either your workers.properties file or
in the obj.conf.  

Do you have entries like the ones below in your obj.conf?

NameTrans fn="assign-name" from="/*.jsp" name="Mservlet"


ObjectType fn="force-type" type="text/plain"
Service fn="jk_service" worker="ajp13"



If you want to send me your configuration file I can take a look.

Hope this helps

llc 


-Original Message-
From: Gal Binderman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 3:28 AM
To: Tomcat Users List
Subject: RE: iPlanet + tomcat integration


1. I have to use this version of iPlanet because it's the only one that
works with my 
current application servers.
2. The iPlanet version shouldn't matter, because as far as I know tomcat
connectors can 
work with iPlanet 4.
3. I can't use iPlanets's internal JSP/Servlet engine since it's very old (I
think it supports
JSP tag versions 0.98). I need the newest JSP engine that supports the
latest taglist version,
specially the ones related to database.

Gal Binderman.

-Original Message-
From: peter lin [mailto:[EMAIL PROTECTED]]
Sent: Tue, May 28, 2002 8:48 PM
To: Tomcat Users List
Subject: Re: iPlanet + tomcat integration



Is there a reason why you aren't using iPlanet's jsp/servlet engine? 
Besides the obvious fact iPlanet's implementation is out of date.
iPlanet ent 6 is much better than iPlanet 4.  Perhaps try the newer
version of iPlanet? that might be more fruitful than trying to integrate
tomcat with iPlanet 4.

peter



Gal Binderman wrote:
> 
> Hello all.
> 
> I'm trying to integrate tomcat with iPlanet web server.
> My final destination is to cause the iPlanet get .jsp request from a
client, forwarding it to tomcat (running
> on the same machine), let the tomcat execute it and getting back the
results to the client, all that transparent
> to the client (meaning that I don't want him to know there is a tomcat by
being redirected or something...)
> I want ther iPlanet to transfer JSP requests to the tomcat AJP12
connector, listening port 8007 (I don't want other connectors and the tomcat
listener to run). I also want the tomcat to run as an out of process from
iPlanet (but I do want to make iPlanet to start the connector...)
> 
> I have found a lot source codes, binaries, questions and documentation
about this subjects, but it seems that
> none of them is clear enough to apply.
> 
> Is there anyone who has been able to use that configuration and can
provide some kind of clear "step-by-step" guide?
> What to download, versions, how to compile/install, how to configure, how
to test, etc?
> Is this configuration even possible?
> 
> Here are the details:
> Solaris 8.0 O/S running on a SPARC machine (U10, 256MB memory).
> JDK 1.3 (from SUN)
> ANT latest (from apache)
> iPlanet web server 4.1 SP2
> $JAVA_HOME, $JAKARTA_HOME, ANT_HOME are set properly
> 
> Have tried the following layouts:
> tomcat 4.0.3 binary and source
> tomcat 3.3.1 binary and source
> tomcat connectors 4.0.2-01 from source
> nsapi_redirector.so from apache web site (compiled for solaris
2.6)
> 
> I can install and run tomcat on port 8080, and run JSPs when accessing it
(from source)
> When I install from source, the AJP12+AJP13 connectors are listening on
ports 8007 and 8008 by defaults (from source)
> I've tried to edit the default workers.properties to match my system.
> I've tried to compile my own nsapi_redirector.so (no success)
> I've tried to compile my own AJP12 connector (no success)
> 
> I've managed, after installing tomcat from source and starting it (with
AJP12 listener) + putting the nsapi_redirector.so
> under iPlanet + configuring obj.cong + disabling the iPlanet built in
servlet engine for that web server, to get the AJP12 listener
> to start and write logfile. When I start the web server, it also
initializes some information about the connector.
> However, when trying to go to  - I don't get any
response from tomcat (the obj.cong contains
> redirection to the listener for that virtual directory).
> 
> Any idea?
> 
> Thanks,
>   Gal Binderman.
> 
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:


--
To unsubscribe, e-mail: