Re: bind problem

2001-01-03 Thread David M. Holmes

The address  port that Tomcat is trying to listen on is already in use...

--- Andrew Burrows [EMAIL PROTECTED] wrote:
 Hi All 
 Could anyone shed some light on this error I get when starting tomcat.
 
 csjsp:/usr/local/tomcat/bin# ./startup.sh
 Using classpath: 
 .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/
 tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs
 erver.jar:/usr/local/tomcat/lib/xml.jar
 csjsp:/usr/local/tomcat/bin# Context log: path="/examples" Adding context
 path="/examples"  docBase="webapps/examples"
 Context log: path="" Adding context path=""  docBase="webapps/ROOT"
 Context log: path="/test" Adding context path="/test"
 docBase="webapps/test"
 Starting tomcat. Check logs/tomcat.log for error messages
 Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat"
 classPath="/usr/share/java/repository:.:/usr/local/tomcat/lib/ant.jar:/usr/l
 ocal/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomc
 at/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.ja
 r"
 Context log: path="/admin" Automatic context load
 docBase="/usr/local/tomcat/webapps/admin"
 Context log: path="/admin" Adding context path="/admin"
 docBase="/usr/local/tomcat/webapps/admin"
 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)
at java.net.ServerSocket.init(ServerSocket.java:170)
at java.net.ServerSocket.init(ServerSocket.java:121)
at 
 org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
 ocketFactory.java:97)
at 
 org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.
 java:186)
at 
 org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1
 42)
at 
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
 
 
 
 Andrew Burrows
 National IT Manager
 Flexstor.net Australia
 5 Roundhay Court 
 Berwick VIC 3806
 Mobile: 0402300400
 Phone: 613 97073008
 Fax: 613 99236069
 E-mail: [EMAIL PROTECTED]
 cc E-mail: [EMAIL PROTECTED]
 www.flexstornet.com.au
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

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




Re: Running a thread from a JSP

2000-12-26 Thread David M. Holmes

But when the page finishes and there is no reference to the threaded object, won't the 
thread die?

--- William Brogden [EMAIL PROTECTED] wrote:
 
 
 "David M. Holmes" wrote:
  
  Is there a way to spawn a thread from a JSP that will live after the page goes out 
of scope?
 
 There is nothing magic about a JSP servlet - you can certainly 
 create objects and start Threads that will continue after 
 the response has been sent. 
 
 -- 
 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
 .
  JSP 
 ISBN 0-7821-2809-2
 .
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: Please Help

2000-12-26 Thread David M. Holmes

I'm not sure how much help this is, but... IBM has there version of Apache with SSL 
called the IBM
HTTP Server.

--- amit [EMAIL PROTECTED] wrote:
 Hi All,
 
 I hope someone will help me to make it. (Hopefully..)
 
 System Details of my machine:-
 Tomcat 3.2.1
 Apache 1.3.14 for  WINDOWS
 mod_ssl 2.7.1
 Open SSL 0.9.6
 WINDOWS  NT 4.0 (SP5)
 
 I'm interested to implement SSL  w/Apache with Digital Certificate.
 For doing this could u please guide me on following issues :-
 
 Although,there is a good support for mod_ssl and Open SSL for Apache
 Most of it is available for  UNIX / Linux  platforms only.
 I'm interested to get help for WINDOWS(unfortunately..).
 
 (1) Apart from User Guides for mod-ssl and OpenSSL can u suggest
 some good URLs or any other Ref. for configuring Apache for SSL
 and using Digital Certificate ?
 (2) Is it necessary to implement SSL for Tomcat(Application Server) also
  for implementing SSL w/Apache (Web Server) ?
 (3) How can we exchange contents of session across HTTP and HTTPS in
  above implementation ? Are any changes required in Tomcat for this
  ( like using different context for secure area of  site ) ?
 (4) Is it essential to create a virtual host on Apache for using SSL (for
 hosting
  that part of the site , to which we want to assign secure connection) ?
 (5) Can we establish SSL without using Digital Certificate ? In that case
 how
  reliable it is ?
 
 
 I hope , I won't get disappointed.
 Thanks a lot in advance.
 
 Regards,
 -Amit.
 [EMAIL PROTECTED]
 Sansui Software Pvt. Ltd.
 India.
 
 
 - Original Message -
 From: Amund Elstad
 To: '[EMAIL PROTECTED]'
 Sent: Thursday, December 21, 2000 7:17 PM
 Subject: url-encoding does not work in Apache+Tomcat while SSL is enabled
 
 
 
 
 Hello,
 
 We use Tomcat 3.2.1 as a backend to Apache 1.3. Apache serves both http and
 https (mod_ssl) connections and communicates with Tomcat using the ajp13
 (mod_jk) protocol. Our servers run NT/2000.
 
 Problem: Tomcat's session tracking under SSL does not work without cookies.
 Running the same application on a non-secure connection works fine both
 with
 and without cookies, but under SSL Tomcat's URL-encoding fails.
 
 mod_jk.dll is built with plain 1.3 API, and Apache warns that it should be
 recompiled with EAPI enabled. Will a new mod_jk.dll built with EAPI fix the
 problem, and if so is there a pre-built version available somewhere ? Or is
 there another solution to the problem ?
 
 thanks in advance and best regards
 
 amund
 
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: Running a thread from a JSP

2000-12-26 Thread David M. Holmes

We have a custom tag that is in every JSP that creates a socket connection to a target 
server and
POSTs some data do a page on the target server that writes the data to a database. The 
issue we
are having is that we don't want to delay the user's response by doing the socket 
connection
synchronously. If we do the socket connection asynchronously we risk having the data 
not being
sent when the server is under stress. I have not verified that this is occuring with 
the custom
tag yet, but we are seeing it happen using ASP with an HTTP component. I am pretty 
sure that the
same condition will occurr. So I would like for the JSP to start a thread to do the 
socket
connection, run in the background, and return the response immediately so there is no 
delay to the
user. I am thinking that when the response finishes the thread that it started will 
also die. Is
that correct?

--- Ted Husted [EMAIL PROTECTED] wrote:
 What is it that you are actually trying to do? 
 
 (The end to which keeping this thread alive is a means?)
 
 *** REPLY SEPARATOR  ***
 
 On 12/26/2000 at 10:54 AM David M. Holmes wrote:
 
 But when the page finishes and there is no reference to the threaded
 object, won't the thread die?
 
 --- William Brogden [EMAIL PROTECTED] wrote:
  
  
  "David M. Holmes" wrote:
   
   Is there a way to spawn a thread from a JSP that will live after
 the page goes out of scope?
  
  There is nothing magic about a JSP servlet - you can certainly 
  create objects and start Threads that will continue after 
  the response has been sent. 
  
  -- 
  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
  .
   JSP 
  ISBN 0-7821-2809-2
  .
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Shopping - Thousands of Stores. Millions of Products.
 http://shopping.yahoo.com/
 
 
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: Running a thread from a JSP

2000-12-26 Thread David M. Holmes

Thank you!

--- Filip Hanik [EMAIL PROTECTED] wrote:
  But when the page finishes and there is no reference to the threaded
  object, won't the thread die
 
 The thread dies when the run methods exits.
 It has nothing to do with references. The thread object will be garbage
 collected when there are no more references and the run method has exited
 
 Filip
 
 - Original Message -
 From: "Ted Husted" [EMAIL PROTECTED]
 To: "Tomcat User List" [EMAIL PROTECTED]
 Sent: Tuesday, December 26, 2000 11:06 AM
 Subject: Re: Running a thread from a JSP
 
 
  What is it that you are actually trying to do?
 
  (The end to which keeping this thread alive is a means?)
 
  *** REPLY SEPARATOR  ***
 
  On 12/26/2000 at 10:54 AM David M. Holmes wrote:
 
  But when the page finishes and there is no reference to the threaded
  object, won't the thread die?
 
  --- William Brogden [EMAIL PROTECTED] wrote:
  
  
   "David M. Holmes" wrote:
   
Is there a way to spawn a thread from a JSP that will live after
  the page goes out of scope?
  
   There is nothing magic about a JSP servlet - you can certainly
   create objects and start Threads that will continue after
   the response has been sent.
  
   --
   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
   .
JSP
   ISBN 0-7821-2809-2
   .
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Shopping - Thousands of Stores. Millions of Products.
  http://shopping.yahoo.com/
 
 
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Running a thread from a JSP

2000-12-25 Thread David M. Holmes

Is there a way to spawn a thread from a JSP that will live after the page goes out of 
scope?

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: IIS Tomcat Configuration Clarification

2000-12-25 Thread David M. Holmes

In the MMC right-click on your website, choose properties, ISAPI Filters...

--- tan hai shi [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm half way configure Tomcat integration with IIS following Gal Shachor step-by-step
 instruction.
 I'm not able to understand where can i add filter in IIS for
 isapi_redirect.dll.  I need further clarification on the above mentioned.
 I'm currently using IIS4 with NT SP4.
 Thanks in advanced.
 
 Tan
 .
 s in advanced.
 
 Tan
 .
 


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Tomcat, IIS and security-constraint

2000-12-19 Thread David M. Holmes

Is there a trick to get IIS to cooperate with security-constraints set in Tomcat? IIS 
asks for my
BASIC authentication as configured but it adds a field for domain and does not appear 
to pass the
credentials to Tomcat. Help!

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



security-constraint

2000-12-19 Thread David M. Holmes

Is there a way to exclude the login form pages from being constrained while 
constraining the
entire application? I know I can constrain each directory separately and not constrain 
the
directory that contains the login pages. But can I constrain /* and exclude the login 
pages?

security-constraint
web-resource-collection
web-resource-nameTest/web-resource-name 
url-pattern/login.jsp/url-pattern
url-pattern/login_error.jsp/url-pattern
/web-resource-collection
/security-constraint

security-constraint
web-resource-collection
web-resource-nameTest/web-resource-name 
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-nameAdmin/role-name
/auth-constraint
/security-constraint


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



request.getServerPort() returns wrong port

2000-12-17 Thread David M. Holmes

Tomcat 3.2 standalone is always returning port 80 no matter what port the request is 
made on. Is
this a known problem?

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Alias

2000-12-16 Thread David M. Holmes

Is there a way in Tomcat to do an alias similar to the Apache Alias directive?

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



LDAPRealm

2000-12-16 Thread David M. Holmes

Anyone working on an LDAPRealm?

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Re: Directory Browsing Option

2000-12-16 Thread David M. Holmes

I have not verified it yet but it appears that you can set the suppress property to 
true for the
StaticInterceptor in server.xml

!-- "default" handler - static files and dirs.  Set the
 "suppress" property to "true" to suppress directory listings
 when no welcome file is present.

 NOTE:  This setting applies to *all* web applications that
 are running in this instance of Tomcat.
  --
RequestInterceptor 
className="org.apache.tomcat.request.StaticInterceptor" 
debug="0" suppress="true" /


--- Tim Kang [EMAIL PROTECTED] wrote:
 Do you guys know how to turn off the directory browsing option in Tomcat?
 
 Thanks
 
 Tim


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



Tomcat reports incorrect HTTP port from HttpUtils.getRequestURL(request)

2000-12-13 Thread David M. Holmes

** Please respond to [EMAIL PROTECTED] **
Tomcat 3.2 final

If I call this
https://www.affiliate.com/test.jsp

and test.jsp contains this
%= HttpUtils.getRequestURL(request).toString() %

I get this
https://www.affiliate.com:80/test.jsp

Notice the incorrect port. Is this a known bug with the Servlet libs, or Tomcat?

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/