Running Tomcat as service on Win2003 Server

2004-07-14 Thread Bui, Bao-Ha D
Hello,

I am trying to set up Tomcat 4.0.2 to run as service on Win2003 server with
IIS 6.

The service will start and stop right away.

Looking into the event viewer, the log indicated that Tomcat failed to
start.

Could anyone tell me what's wrong?  We have the same version of Tomcat
running fine on Win2K server.

Thanks very much.

Bao-Ha Dam Bui
 



* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*


RE: Streaming pdf document fails

2004-05-11 Thread Bui, Bao-Ha D
I am not using it with all the app server you mentioned but in my mimetype
string is application/octet-stream and it works.  However, it also doing
the double request like you mentioned.  When you find out why it's doing
that, please post.

Thanks.

-Original Message-
From: Summers, Bert W. [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 11, 2004 1:55 PM
To: [EMAIL PROTECTED]
Subject: Streaming pdf document fails

I have a problem that just came up.  I have PDF documents located out side
of my webapps directory.
When the user wants one they go to my servlet which streams it back.
This use to work just fine, but now is broke.
 
In IE I get Error opening document on TC4.1.30 and unable to open this
Internet site in TC 5.0.19
 
Mozilla 1.6 does not have a problem opening the file.
 
What is odd is that Mozilla seems to request the servlet twice from one
click, the first tends to throw this
ClientAbortException:  java.net.SocketException: Software caused connection
abort: socket write error
at
org.apache.coyote.tomcat4.OutputBuffer.realWriteBytes(OutputBuffer.java:410)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:332)
at
org.apache.coyote.tomcat4.OutputBuffer.writeBytes(OutputBuffer.java:438)
at
org.apache.coyote.tomcat4.OutputBuffer.write(OutputBuffer.java:425)
at
org.apache.coyote.tomcat4.CoyoteOutputStream.write(CoyoteOutputStream.java:1
08)
at GetPDFDoc.outputFile(GetPDFDoc.java:128)
at GetPDFDoc.processRequest(GetPDFDoc.java:86)
at GetPDFDoc.doGet(GetPDFDoc.java:147)
 
Is there anything wrong with what I am doing?
  response.setContentType(application/pdf);
  response.setDateHeader(Expires, 0);
// open pdf outside of browser
  response.addHeader(Content-disposition, attachment; filename= +
ntspNo + .pdf);
  response.setContentLength((int)f.length());
  java.io.OutputStream out = response.getOutputStream();
// f is the pdf on the file system and it does exist
  java.io.FileInputStream in = new java.io.FileInputStream(f);
  int size = 0;
  byte[] buffer = new byte[8192];
  while( (size = in.read(buffer, 0, buffer.length)) != -1)
  {
out.write(buffer, 0, size);
  }
  in.close();
  out.close();
 
Thanks


* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*


Basic Authentication

2003-12-05 Thread Bui, Bao-Ha D
Hi all,

I need to capture the WinNT account name of users to a jsp page.  

We have Active Directory at our company.  We can have a basic login form
(that standard pop up login form from Window).  

Could anyone tell me where to start and how to set it up?  I have looked at
the HowTo for Tomcat Realm on Apache website but not quite get it.  

Thanks very much for any help.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
St. Jude Medical, Inc
651.765.1018
 



* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*


RE: IIS log files

2003-10-27 Thread Bui, Bao-Ha D
I have been looking for a way to do that for a long time.  So far, the
answer is no.  If you do find out anything, please post and let me know too.



Thanks.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
St. Jude Medical, Inc
651.765.1018
 
PS:  just curious, are you looking at this to use the log for WebTrend?
 
-Original Message-
From: Chanan Braunstein [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 9:06 AM
To: 'Tomcat Users List'
Subject: IIS log files

Good Morning,
I am using Tomcat 4 with the IIS redirector dll (version 1 I think).
The URI being written to the IIS log files is always:
/jakarta/isapi_redirect.dll instead of the JSP file name. Is there a way to
fix that?

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com



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


* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*


RE: IIS log files

2003-10-27 Thread Bui, Bao-Ha D
I had to parse Tomcat access logs into the same format as the IIS logs and
then merge the parsed Tc log and the iis log for each day and then use
WebTrend as normal on the merged file.  As far as I know, Webtrend can not
read TC log.  I am not sure about Live Stats.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
St. Jude Medical, Inc
651.765.1018
 

-Original Message-
From: Chanan Braunstein [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 9:36 AM
To: 'Tomcat Users List'
Subject: RE: IIS log files

Might have to do it from the access logs from within Tomcat - Did you try
doing that yet? I haven't yet.

We were using Web Trends - we are now using Live Stats - Same idea as Web
Trends.

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com
 


-Original Message-
From: Bui, Bao-Ha D [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 10:09 AM
To: 'Tomcat Users List'
Subject: RE: IIS log files


I have been looking for a way to do that for a long time.  So far, the
answer is no.  If you do find out anything, please post and let me know too.



Thanks.

Bao-Ha Dam Bui
[EMAIL PROTECTED]
St. Jude Medical, Inc
651.765.1018
 
PS:  just curious, are you looking at this to use the log for WebTrend?
 
-Original Message-
From: Chanan Braunstein [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2003 9:06 AM
To: 'Tomcat Users List'
Subject: IIS log files

Good Morning,
I am using Tomcat 4 with the IIS redirector dll (version 1 I think).
The URI being written to the IIS log files is always:
/jakarta/isapi_redirect.dll instead of the JSP file name. Is there a way to
fix that?

Chanan Braunstein
Knovel Corp.
Web Development Manager
607-773-1840 x672
http://www.knovel.com



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


* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*



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


* 
This communication may contain information that is proprietary, privileged,
confidential or legally exempt from disclosure.  If you are not a named
addressee, you are notified that you are not authorized to read, print,
retain, copy or disseminate this communication without the consent of the
sender and that doing so may be unlawful. If you have received this
communication in error, please notify the sender via return e-mail and
delete it from your computer. Thank you. St. Jude Medical, Inc. 
*