mod_jk2 problems

2004-03-10 Thread Vi
Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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


Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-10 Thread David Smith
 i assume you have tomcat 5 and apache 2 linked together, right? If so, what
 connector did you use to link Apache 2 and Tomcat 5?

mod_jk2 but in this instance, i'm not using Apache and i'm calling my
test code via localhost:8080
-- 
David Smith [EMAIL PROTECTED]

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



HttpServletResponse.sendRedirect() closes the stream

2004-03-10 Thread suviswan
Hi
I am using Tomcat 4.1.29. When i do
HttpServletResponse.sendRedirect() inside my servlet doGet(), it
automatically closes the stream
So when i call the real close() function it throws IOException

java.io.IOException: The stream has been closed
at
org.apache.catalina.connector.ResponseStream.close(ResponseStream.java:219)

Please let me know how to solve on this .

Thanks
Surendra


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



Can`t install Tomcat as apache module: undefined symbol ap_table

2004-03-10 Thread Salvador Santander Gutierrez
Hello, list.
I'm trying to install tomcat as apache module with jk2 connector. I'm using
Tomcat 4.1.24 and Apache 2.0.40.
I've followed the instructions of three differents tutorials about connect
Tomcat to Apache with jk2 connector and when I try to start apache I see the
error undefined symbol ap_table at line... In this line is the LoadModule
directive.
¿Perhaps I'm using a old library of mod_jk.so? ¿Any idea?
Thanks.


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



RE: HttpServletResponse.sendRedirect() closes the stream

2004-03-10 Thread Ronald Wildenberg
 -Oorspronkelijk bericht-
 Van: suviswan [mailto:[EMAIL PROTECTED]
 Verzonden: woensdag 10 maart 2004 10:20
 Aan: Tomcat Users List
 Onderwerp: HttpServletResponse.sendRedirect() closes the stream
 
 
 Hi
 I am using Tomcat 4.1.29. When i do
 HttpServletResponse.sendRedirect() inside my servlet doGet(), it
 automatically closes the stream
 So when i call the real close() function it throws IOException
 
 java.io.IOException: The stream has been closed
 at
 org.apache.catalina.connector.ResponseStream.close(ResponseStr
 eam.java:219)
 
 Please let me know how to solve on this.


The easiest way would be not to call close() on the response's output
stream. Is there a reason you need to call close()?

The servlet spec says that sendRedirect has the side effect of committing
the response and terminating it. If the response is terminated, its
related OutputStream is closed, so it can not be closed again.


 
 Thanks
 Surendra
 

Regards,
Ronald.

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



RE: How to protect server.xml?

2004-03-10 Thread Yiannis Mavroukakis
I will assume you mean protect the file from being read. The
easiest way to do that is to assign read/write permission to the file
to whoever user is running tomcat and remove all permissions from group. 
That also assumes that you are running some flavour of Unix, but you could 
achieve the same with Win32 security.

-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 01:40
To: [EMAIL PROTECTED]
Subject: How to protect server.xml?



Hey guys,

I have both a keystore password and a database
connection user name/password in cleartext in my
server.xml file and I don't know how to get around
that.

In light of this, has anybody come up with a way to
protect server.xml?  Is there a way to encrypt these
passwords? Or perhaps to encrypt the whole server.xml
file itself?

This has been weighing on my mind for a few months
now, and I couldn't find a solution in the mailing
list archives.

I'd appreciate any help!

Tomcat version: 4.1.27


__
Do you Yahoo!?
Yahoo! Search - Find what you're looking for faster
http://search.yahoo.com

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Re: webapps\ROOT\WEB-INF\classes

2004-03-10 Thread Jon Wingfield
I'm fairly certain classes deployed to web-app\WEB-INF\classes have to 
be in packages.
So your Fruit class should be deployed to 
web-app\WEB-INF\classes\com\stevensons
if the Fruit class is in the com.stevensons package.

In your jsp you also MUST import the class you want to use. eg:
%@ page import=com.stevensons.Fruit %
see the following (non-exhaustive) list for more details:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
http://www.jcp.org/aboutJava/communityprocess/final/jsr154/
HTH,

Jon

Colin McKinstry wrote:
I've tried setting the class_path to tomcat install\webapps\ROOT\WEB_INF\classes in the Windows environment variables, but that hasn't improved matters :-(

Anyone got any ideas?


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 10 March 2004 8:57 a.m.
To: Tomcat Users List
Subject: RE: webapps\ROOT\WEB-INF\classes


From: Colin McKinstry [mailto:[EMAIL PROTECTED] 
The only thing I've done configuration wise is define 
CATALINA_HOME  base. I also had to create the classes 
directory in WEB-INF since it wasn't there.
Did you restart after creating the 'classes' directory and 
putting your
class in it?  AFAIK, Tomcat builds its classpath at startup, so if the
directory wasn't there then, it might not be seeing the contents now.

--
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



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



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

RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems


Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: JNDI Datasource Reference in DD Not Necessary?

2004-03-10 Thread David Smith
Ok for completeness...

This morning with a fresh start I managed to get the connection
working... this is my solution (hope it is of use to someone) thanks for
all the help and tips people gave me.

Environment :
Fedora Core 1
Tomcat 5.0.19
Apache 2.x
Java 1.4.2_03

Without using the admin tool in tomcat (as I'm not convinced about it) I
created the following, this is based on the example DBTest from
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html 
$CATALINA_HOME/webapps/DBTest/test.jsp

html
  head
titleDB Test/title
  /head
  body
 
  %
foo.DBTest tst = new foo.DBTest();
tst.init();
  %
 
  h2Results/h2
Foo %= tst.getFoo() %br/
Bar %= tst.getBar() %
 
  /body
/html

$CATALINA_HOME/webapps/DBTest/WEB-INF/classes/foo/DBTest.java

package foo;
 
import javax.naming.*;
import javax.sql.*;
import java.sql.*;
 
public class DBTest {

  String foo = Not Connected;
  int bar = -1;

  public void init() {
try{
  Context ctx = new InitialContext();
  if ( ctx == null ) {
throw new Exception( Boom - No Context );
  }

  DataSource ds = ( DataSource )ctx.lookup(
java:comp/env/jdbc/TestDB );
 
  if (ds != null) {
Connection conn = ds.getConnection();
 
if(conn != null)  {
  foo = Got Connection +conn.toString();
  Statement stmt = conn.createStatement();
  ResultSet rst = stmt.executeQuery( SELECT id, foo, bar  FROM
testdata );
  if ( rst.next() ) {
foo=rst.getString(2);
bar=rst.getInt(3);
  }
  conn.close();
}
  }
} catch( Exception e ) {
  e.printStackTrace();
}
  }
 
  public String getFoo() { return foo; }
  public int getBar() { return bar;}
}

$CATALINA_HOME/webapps/DBTest/WEB-INF/web.xml

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

$CATALINA_HOME/conf/Catalina/localhost/DBTest.xml

Context path=/DBTest docBase=DBTest debug=5 reloadable=true
crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_DBTest_log. suffix=.txt
 timestamp=true/
  
  Resource name=jdbc/TestDB
   auth=Container
   type=javax.sql.DataSource/
  
  ResourceParams name=jdbc/TestDB
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
  
!-- Maximum number of dB connections in pool. Make sure you
 configure your mysqld max_connections large enough to handle
 all of your db connections. Set to 0 for no limit.
 --
parameter
  namemaxActive/name
  value100/value
/parameter
  
!-- Maximum number of idle dB connections to retain in pool.
 Set to 0 for no limit.
 --
parameter
  namemaxIdle/name
  value30/value
/parameter
  
!-- Maximum time to wait for a dB connection to become available
 in ms, in this example 10 seconds. An Exception is thrown if
 this timeout is exceeded.  Set to -1 to wait indefinitely.
 --
parameter
  namemaxWait/name
  value1/value
/parameter
  
!-- MySQL dB username and password for dB connections  --
parameter
 nameusername/name
 valuejavauser/value
/parameter
parameter
 namepassword/name
 valuejavadude/value
/parameter
  
!-- Class name for com.mysql JDBC driver --
parameter
   namedriverClassName/name
   valuecom.mysql.jdbc.Driver/value
/parameter
  
!-- The JDBC connection url for connecting to your MySQL dB.
 The autoReconnect=true argument to the url makes sure that the
 mm.mysql JDBC Driver will automatically reconnect if mysqld
closed the
 connection.  mysqld by default closes idle connections after 8
hours.
 --
parameter
  nameurl/name
 
valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
/parameter
  /ResourceParams
  
/Context

I compiled DBTest.java started up tomcat and went to
localhost:8080/DBTest/test.jsp initially I had an error but that was due
to the privileges being wrong for the MySQL user (the connection was
using the server domain name rather than localhost) once that was sorted
out (MySQL privileges change in this case) the example then worked.

Anyway, as I said at the top thanks to anyone that passed on some tips.

;-)

Off to do the rest of the code I need for this app now

Regards
Dave

-- 
David Smith [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL 

Re: HttpServletResponse.sendRedirect() closes the stream

2004-03-10 Thread suviswan
Hi

- Original Message -
From: Ronald Wildenberg [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 3:00 PM
Subject: RE: HttpServletResponse.sendRedirect() closes the stream


  -Oorspronkelijk bericht-
  Van: suviswan [mailto:[EMAIL PROTECTED]
  Verzonden: woensdag 10 maart 2004 10:20
  Aan: Tomcat Users List
  Onderwerp: HttpServletResponse.sendRedirect() closes the stream
 
 
  Hi
  I am using Tomcat 4.1.29. When i do
  HttpServletResponse.sendRedirect() inside my servlet doGet(), it
  automatically closes the stream
  So when i call the real close() function it throws IOException
 
  java.io.IOException: The stream has been closed
  at
  org.apache.catalina.connector.ResponseStream.close(ResponseStr
  eam.java:219)
 
  Please let me know how to solve on this.


 The easiest way would be not to call close() on the response's output
 stream. Is there a reason you need to call close()?

 The servlet spec says that sendRedirect has the side effect of committing
 the response and terminating it. If the response is terminated, its
 related OutputStream is closed, so it can not be closed again.


There is no need to close(). We have a servlet code which is based on 2.1
spec and we are moving to 2.3 spec.
The code worked fine in 2.1 and we thought it will work fine in 2.2.

The code worked when we commented the close() call. Thanks for the help.

Regards
Surendra



 
  Thanks
  Surendra
 

 Regards,
 Ronald.

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



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



Docs?

2004-03-10 Thread Vi
I'm sorry to aks, but could anyone plese point me to the documents which 
describe how to configure mod_proxy to be used as a connector between 
tomcat and apache??

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


RE: Heap View vs Windows Task Manager

2004-03-10 Thread Allistair Crossley
Thanks, that was really helpful. If you took the time to visit the archive to be able 
to reply to me that this was answered already I might have expected you to post the 
URL.

I have actually checked the archives already and there is no such post as far as I can 
see that addresses the particular precise question I am asking. 

Just because you can type in windows task manager memory and get back lots of 
results does not mean that my question is answered since the search engine seems to OR 
the search terms. Anyway that's by the by.

I have detailed a precise situation relating to the WTM view and the heap view in 
JProfiler. I asked a similar question a while back but never got a completely 
satisfactory reply which is why I ask again.

If of course this precise question is answered on the arhives I apolgise very much and 
would appreciate the URL.

Cheers, ADC

-Original Message-
From: SH Solutions [mailto:[EMAIL PROTECTED]
Sent: 09 March 2004 17:23
To: 'Tomcat Users List'
Subject: RE: Heap View vs Windows Task Manager


Search the archive.

This topic has been discussed on the list at least twice this year in very
much detail.

cu
  Steffen


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 09, 2004 5:46 PM
To: [EMAIL PROTECTED]
Subject: Heap View vs Windows Task Manager

I wonder if anyone on this list can once and for all make me understand the
difference between the Windows Task Manager process memory and the Heap View
in such a program like JProfiler.

My Windows Task Manager reports on first loading my application about 50MB.
As I wander around it grows until eventually at 158MB I get
OutOfMemoryException.

The intriguing thing to me is that in the Heap View of JProfiler which I
look at AT the same time as the WTM never reports anything over 15MB!! The
free heap size stays at 15MB and the used heap size always shows spikes
indicating garbage collection but it keeps under the 15MB. When it first
starts the free heap is 10MB and in this case the free heaps grows to
accomodate the required heap but 15MB seems to be the max it ever goes to. 

So why on earth does my WTM report onwards to 158MB and bail out?

Would so very much love a clear understanding of this and I see others
asking similar questions so I think it could be of use to the broader Tomcat
list

Thanks to he who undertake this question! ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



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



Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-10 Thread Harry Mantheakis
Hi Dave

Sorry for my long absence - I was away from my computer for while.

I think Doug's last message just about says it all in respect of connection
pools. Follow his advice to use the Tomcat How-Tos exactly as they are, and
you should be okay.

I looked through your code - the stuff you originally posted following my
suggestion to do so - and I did spot one crucial mistake.

This line in your test JSP:


DataSource ds = ( DataSource ) ctx.lookup(java:comp/env/jdbc/MyDS );


Should read:


DataSource ds = ( DataSource ) ctx.lookup(java:comp/env/jdbc/mysql );


Spot the difference? :-)

The jdbc/mysql context refers to the name given to the resource in the
context.xml:


Resource name=jdbc/mysql
   type=com.mysql.jdbc.jdbc2...
   auth=Container/


I would also urge you to go back to using the Commons DBCP resources, and
specifying the jdbc/mysql resource as in the Tomcat How-To - namely, this
definition:


Resource 
 name=jdbc/mysql
 type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
 auth=Container/


Should read:


Resource 
 name=jdbc/mysql
 auth=Container
 type=javax.sql.DataSource/


And this ResourceParams element:


parameter
namefactory/name
value
com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory
/value
/parameter


Should read:


parameter
namefactory/name
value
org.apache.commons.dbcp.BasicDataSourceFactory
/value
/parameter


Stick to the Tomcat How-Tos, using the Commons DBCP package, at least until
you get the thing working, and then you can switch if you want.

Finally, just a suggestion, but I would specify the minimum possible for the
'url' attribute:


parameter
nameurl/name
value
jdbc:mysql://localhost:3306/DATABASE
/value
/parameter


Keep it simple, to start with :-) because it could just be one of those
non-essential parameters is causing the thing to break.

Good luck!

Harry



 Despite my posting - and I really hope someone chips in concerning the
 question I raised about the resource-ref being redundant in the deployment
 descriptor (!) - the first thing to say is, have faith!
 
 Connection pooling works, and it is actually quite simple, so do not give up
 on it.
 
 Cheers for the advice Harry... here's where I'm at
 
 I have no choice on the giving up side of things, need to implement it
 for some client code I'm working on
 
 ;-)
 
 I've been doing a lot of googling to try and get answers so I may have
 got crossed wires, I had a version working (or thinking it was working)
 with the info in $JAKARTA_HOME/conf/server.xml but I wasn't happy with
 this solution (preferring to have the connection defined in
 $JAKARTA_HOME/conf/Catalina/localhost/app_name.xml for good reasons...
 
 so I'm basically restarting and I now have the following config
 
 $JAKARTA_HOME/conf/Catalina/localhost/app_name.xml
 
 ?xml version='1.0' encoding='utf-8'?
 Context docBase=dev-sstl path=/dev-sstl reloadable=true
 useNaming=false
 
 Resource
 name=jdbc/mysql
 type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
 auth=Container/
 ResourceParams name=jdbc/mysql
 parameter
 namefactory/name
 valuecom.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory/value
 /parameter
 parameter
 nameport/name
 value3306/value
 /parameter
 parameter
 nameuser/name
 valueUSERNAME/value
 /parameter
 parameter
 namepassword/name
 valuePASSWORD/value
 /parameter
 parameter
 nameserverName/name
 valuelocalhost/value
 /parameter
 parameter
 namedatabaseName/name
 valueDATABASE/value
 /parameter
 parameter
 nameexplicitUrl/name
 valuetrue/value
 /parameter
 parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/DATABASE?autoReconnect=trueamp;useUnicode=
 trueamp;characterEncoding=UTF8amp;max-connections=50amp;min-connections=2a
 mp;inactivity-timeout=30amp;wait-timeout=30/value
 /parameter
 /ResourceParams
 /Context
 
 The info for the above i gleaned from
 http://www.russellbeattie.com/notebook/1006529.html
 
 Then in web_app/WEB-INF/web.xml I have
 ?xml version=1.0 encoding=ISO-8859-1?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
 
 resource-ref
 descriptionDB connection/description
 res-ref-namejdbc/mysql/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 /web-app
 
 Then in my test JSP I have
 try {
 Context ctx = new InitialContext();
 DataSource ds = ( DataSource ) ctx.lookup(java:comp/env/jdbc/MyDS );
 Connection conn = ds.getConnection();
 ...
 
 And the error I get is
 
 javax.servlet.ServletException: Name java:comp is not bound in this
 Context
 
 Which is an error I've managed to hit several times, I know the whole
 connection pooling is the right way to go about this, just 

urget connecting jsp and a simple bean

2004-03-10 Thread xavier manohar
Hello
 Can any one help me ,how to cofigure or the prelimnary steps to be taken in 
making a jsp and a bean to work
thanks 
regards
mano
  

Yahoo! India Insurance Special: Be informed on the best policies, services, tools and 
more.

Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-10 Thread Harry Mantheakis
Hi Yoav

Thanks for your message.


 I'm fairly sure you'd understand them just fine ;)  It's SRV.9.11 in the
 Servlet Specification 2.4 and J2EE.5 in the J2EE Specification v1.4.


Okay, I shall look at those and see what happens :-)


 Even though in tomcat's current implementation resource-ref might not be
 strictly required under certain conditions, you should include it as the
 tomcat documentation suggestions, for completeness, portability, and
 spec compliance.


Yes, point taken. I was really trying to figure out what resource-ref is
meant for - hopefully the specs will sort me out.

I shall post a follow up in due course.

Kind regards

Harry


 Hi,
 
 I use Tomcat as a stand-alone server, but in the back of my mind I know
 there are J2EE specifications that Tomcat is adhering to which I am
 likely
 not to understand.
 
 I'm fairly sure you'd understand them just fine ;)  It's SRV.9.11 in the
 Servlet Specification 2.4 and J2EE.5 in the J2EE Specification v1.4.
 Even though in tomcat's current implementation resource-ref might not be
 strictly required under certain conditions, you should include it as the
 tomcat documentation suggestions, for completeness, portability, and
 spec compliance.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential, proprietary
 and/or privileged.  This e-mail is intended only for the individual(s) to whom
 it is addressed, and may not be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended recipient, please immediately
 delete this e-mail from your computer system and notify the sender.  Thank
 you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-10 Thread David Smith
 Sorry for my long absence - I was away from my computer for while.

No worries in that time I managed to get the test one working and also
the one that I need for my app (and posted my solution to the process in
detail as a semi-definitive way of making it work in TC 5)

The problem was I'd got some stuff from a book, some from links etc.
however i worked through the how-to this morning and got it working
(although as far as i'm concerned the doco could do with an update
regarding the use of server.xml and Catalina/localhost/app_name.xml

Cheers for the help
-- 
David Smith [EMAIL PROTECTED]

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



Plm with web.xml - Tomcat 4.1.27

2004-03-10 Thread S.Latha Kamatchi
Hi Tomcat users,
 
I placed the web.xml in WEB-INF folder . Its working well with Tomcat 5.0.19.
 
But tried with Tomcat 4.1.27, it shows the following error.
 
 
 
Mar 10, 2004 4:18:55 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 10, 2004 4:18:56 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 10, 2004 4:18:58 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 10, 2004 4:19:02 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Mar 10, 2004 4:19:09 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
Mar 10, 2004 4:19:09 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
Mar 10, 2004 4:19:11 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Mar 10, 2004 4:19:19 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
a:252)
at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:50
5)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
568)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:559)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
0)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 

Why do I need to restart my server

2004-03-10 Thread UmamaheswarKalluru




Hi,
Every time my database server connection goes down, I need to restart my
Tomcat 5.0.19 to re-establish the connection. Why is this so? Is this a
bug?

Thank you,
Best Regards,
Uma


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



RE: Heap View vs Windows Task Manager

2004-03-10 Thread Ralph Einfeldt
Have you tried to search for
windows+task+manager+memory

I just get 30 result.

(If there is one that satisfies you is a different question)

 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 12:06 PM
 To: [EMAIL PROTECTED]
 Cc: SH Solutions
 Subject: RE: Heap View vs Windows Task Manager
 
 
 
 Just because you can type in windows task manager memory 
 and get back lots of results does not mean that my question 
 is answered since the search engine seems to OR the search 
 terms. Anyway that's by the by.
 

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



Re: Why do I need to restart my server

2004-03-10 Thread Alex

This works with most except for oracle which uses select 1 from dual

parameter
  namevalidationQuery/name
  valueselect 1/value
/parameter


On Wed, 10 Mar 2004 [EMAIL PROTECTED] wrote:

 Date: Wed, 10 Mar 2004 16:49:21 +0530
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Why do I need to restart my server





 Hi,
 Every time my database server connection goes down, I need to restart my
 Tomcat 5.0.19 to re-establish the connection. Why is this so? Is this a
 bug?


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



Re: Why do I need to restart my server

2004-03-10 Thread Alex

Sent this a little too early.  The reason for the validation query is that
if it fails, it will restablish the connection.

On Wed, 10 Mar 2004, Alex wrote:

 Date: Wed, 10 Mar 2004 07:26:26 -0500 (EST)
 From: Alex [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Why do I need to restart my server


 This works with most except for oracle which uses select 1 from dual

 parameter
   namevalidationQuery/name
   valueselect 1/value
 /parameter


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



Re: Plm with web.xml - Tomcat 4.1.27

2004-03-10 Thread Parsons Technical Services
Latha,

For TC4 you need the web.xml to be this:

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app

servlet
servlet-nametestServlet/servlet-name
display-nameTesting/display-name
servlet-classyourPackageName.testServlet/servlet-class
/servlet

  servlet-mapping
 servlet-nametestServlet/servlet-name
 url-pattern/testServlet/url-pattern
 /servlet-mapping

 /web-app


In TC4 you have to have both (if I understand correctly) and when you map
you don't need the /servlet in the pattern.

Give it a try.
Note all servlet tags must be grouped together and occur before the mapping
tags.

Doug
www.parsonstechnical.com




 My xml file is as follows:

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app

  servlet-mapping
 servlet-nametestServlet/servlet-name
 url-pattern/servlet/testServlet/url-pattern
 /servlet-mapping

 /web-app




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



Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Adam Buglass
I've got a website which members can log in and out of
(by way of a form which connects to a JSP).

I've created a simple method in a Java class to write to
a text format log file to tell me stuff like who they are,
when they logged in etc.

So far so good.

I'm now trying to write a JSP to analyse this log but
when I try and access the page, tomcat usually hangs
indefinitely. Occassionally it will display something I jtas ask
for, say, the Strings of IDs. Tomcat will then slow right down
(approximately 4-6x slower) and eventually need restarting.

I've tried with a smaller test file.
I'm closing the file connection which I open in Java.
There doesn't appear to be anything in the logs, in fact
neither Tomcat nor Apache appear to recognise the page request
at all.

Any ideas / thoughts / suggestions !?

Thanks,
Adam.


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



Re: Why do I need to restart my server

2004-03-10 Thread Adrian Kristiawan






Hi, 

I'm having the same problem, I want to ask which file should I edit according to the changes below?

Thanks All. 

---Original Message---


From: Tomcat Users List
Date: 03/10/04 19:41:47
To: Tomcat Users List
Subject: Re: Why do I need to restart my server

This works with most except for oracle which uses select 1 from dual

parameter
namevalidationQuery/name
valueselect 1/value
/parameter


On Wed, 10 Mar 2004 [EMAIL PROTECTED] wrote:

 Date: Wed, 10 Mar 2004 16:49:21 +0530
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Why do I need to restart my server





 Hi,
 Every time my database server connection goes down, I need to restart my
 Tomcat 5.0.19 to re-establish the connection. Why is this so? Is this a
 bug?


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









 IncrediMail - Email has finally evolved - Click Here

tomcat service

2004-03-10 Thread Jérôme REYNAUD

 Hi
  
 I want to install Tomcat as a service on a Win2k machine .
 The following  command line :  

%CATALINA_HOME%\bin\tomcat.exe -install Jakarta Tomcat 
%JAVA_HOME%\jre\bin\server\jvm.dll
 -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar
 -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs 
-start org.apache.catalina.startup.Bootstrap -params start 
-stop org.apache.catalina.startup.Bootstrap -params stop
 -out %CATALINA_HOME%\logs\stdout.log 
-err %CATALINA_HOME%\logs\stderr.log

 install the service succesfully, but i get the error 
  org.apache.jasper.JasperException: Unable to compile class for JSP 
An error occurred at line: -1 in the jsp file: null 
Generated servlet error: [javac] Compiling 1 source file 
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130) 
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93) 


If i stop the service and launch tomcat with the startup.bat ,it' s OK

Any Idea 

Thanks 

Jerome
--- Interscan -- (on antivirus)

winmail.dat was scanned and no virus found
-  Traite Par   Interscan -- (on antivirus)--

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

RE: tomcat service

2004-03-10 Thread STOCKHOLM, Raymond
You need the JDK (not just the JRE) to compile your JSP : (javac.exe in your path)


-Message d'origine-
De : Jérôme REYNAUD [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 10 mars 2004 13:57
À : 'Tomcat Users List'
Objet : tomcat service 



 Hi
  
 I want to install Tomcat as a service on a Win2k machine .
 The following  command line :  

%CATALINA_HOME%\bin\tomcat.exe -install Jakarta Tomcat 
%JAVA_HOME%\jre\bin\server\jvm.dll
 -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar
 -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs 
-start org.apache.catalina.startup.Bootstrap -params start 
-stop org.apache.catalina.startup.Bootstrap -params stop
 -out %CATALINA_HOME%\logs\stdout.log 
-err %CATALINA_HOME%\logs\stderr.log

 install the service succesfully, but i get the error 
  org.apache.jasper.JasperException: Unable to compile class for JSP 
An error occurred at line: -1 in the jsp file: null 
Generated servlet error: [javac] Compiling 1 source file 
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:130) 
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2
93) 


If i stop the service and launch tomcat with the startup.bat ,it' s OK

Any Idea 

Thanks 

Jerome

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



Re: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Parsons Technical Services
Adam,

Sound very similar to a problem I had a couple of days ago. Are you using
any loops in your code? Specifically while or do-while or endless for loops.
If so try changing them to a for loop with a high count say 10k-100k and see
what happens. I had a sort method that under the right conditions would
bring down my IDE and hog all the processor.

Doug
www.parsonstechnical.com

- Original Message - 
From: Adam Buglass [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 7:52 AM
Subject: Tomcat 4.1 hangs on File Reading


 I've got a website which members can log in and out of
 (by way of a form which connects to a JSP).

 I've created a simple method in a Java class to write to
 a text format log file to tell me stuff like who they are,
 when they logged in etc.

 So far so good.

 I'm now trying to write a JSP to analyse this log but
 when I try and access the page, tomcat usually hangs
 indefinitely. Occassionally it will display something I jtas ask
 for, say, the Strings of IDs. Tomcat will then slow right down
 (approximately 4-6x slower) and eventually need restarting.

 I've tried with a smaller test file.
 I'm closing the file connection which I open in Java.
 There doesn't appear to be anything in the logs, in fact
 neither Tomcat nor Apache appear to recognise the page request
 at all.

 Any ideas / thoughts / suggestions !?

 Thanks,
 Adam.


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





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



RE: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Peter Guyatt
Hi There,

This read of the file? are you doing it a character at a time (ie via the
read() method?)

If so try reading more than one charcter at a time.

Ie.

public void readFile (String filename) {
try {
File f = new File(filename);
FileReader fr = new FileReader(f);
char data[] = new char[4096];
int line = 0, read, i;
//loop until all the data is read from the stream
while ((read = fr.read(data, 0, 4096)) != -1) {
//do somthing with the data read
}
} catch (Exception e) {
e.printStackTrace();
}
}

This will dramatically improve performance and hopefully stop your problem

Thanks

Pete

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 13:06
To: Tomcat Users List
Subject: Re: Tomcat 4.1 hangs on File Reading


Adam,

Sound very similar to a problem I had a couple of days ago. Are you using
any loops in your code? Specifically while or do-while or endless for loops.
If so try changing them to a for loop with a high count say 10k-100k and see
what happens. I had a sort method that under the right conditions would
bring down my IDE and hog all the processor.

Doug
www.parsonstechnical.com

- Original Message -
From: Adam Buglass [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 7:52 AM
Subject: Tomcat 4.1 hangs on File Reading


 I've got a website which members can log in and out of
 (by way of a form which connects to a JSP).

 I've created a simple method in a Java class to write to
 a text format log file to tell me stuff like who they are,
 when they logged in etc.

 So far so good.

 I'm now trying to write a JSP to analyse this log but
 when I try and access the page, tomcat usually hangs
 indefinitely. Occassionally it will display something I jtas ask
 for, say, the Strings of IDs. Tomcat will then slow right down
 (approximately 4-6x slower) and eventually need restarting.

 I've tried with a smaller test file.
 I'm closing the file connection which I open in Java.
 There doesn't appear to be anything in the logs, in fact
 neither Tomcat nor Apache appear to recognise the page request
 at all.

 Any ideas / thoughts / suggestions !?

 Thanks,
 Adam.


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





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


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



Re: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Adam Buglass
Yes, I use a few while loops a bit like...

while (there's stuff in the file)
  while (there isn't a separator)
  while (to skip whitespace)

...etc.

Thanks, I'll try and substitute with
equivalent for loops and let you know
how I get on.

Adam.


On Wed, 2004-03-10 at 13:05, Parsons Technical Services wrote:
 Adam,
 
 Sound very similar to a problem I had a couple of days ago. Are you using
 any loops in your code? Specifically while or do-while or endless for loops.
 If so try changing them to a for loop with a high count say 10k-100k and see
 what happens. I had a sort method that under the right conditions would
 bring down my IDE and hog all the processor.
 
 Doug
 www.parsonstechnical.com
 
 - Original Message - 
 From: Adam Buglass [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 7:52 AM
 Subject: Tomcat 4.1 hangs on File Reading
 
 
  I've got a website which members can log in and out of
  (by way of a form which connects to a JSP).
 
  I've created a simple method in a Java class to write to
  a text format log file to tell me stuff like who they are,
  when they logged in etc.
 
  So far so good.
 
  I'm now trying to write a JSP to analyse this log but
  when I try and access the page, tomcat usually hangs
  indefinitely. Occassionally it will display something I jtas ask
  for, say, the Strings of IDs. Tomcat will then slow right down
  (approximately 4-6x slower) and eventually need restarting.
 
  I've tried with a smaller test file.
  I'm closing the file connection which I open in Java.
  There doesn't appear to be anything in the logs, in fact
  neither Tomcat nor Apache appear to recognise the page request
  at all.
 
  Any ideas / thoughts / suggestions !?
 
  Thanks,
  Adam.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Adam Buglass
Currently I use readline() to get a line
and then I parse the resulting String (character by character)
to get the bits I want.

I then read the different parts into a class and return it
to a calling method which reads the class into a Vector and
returns the Vector.

This is the first method:

public static LoginLog[] readLog()throws FileNotFoundException
{
  Vector log = new Vector();

  try {
FileReader inFile = new FileReader( /var/log/GFWlogin.log );
BufferedReader bfFile = new BufferedReader( inFile );
  while ( bfFile.ready() ) {
LoginLog logentry = getLogentry( bfFile );
log.add( logentry );
  }
bfFile.close();
   } catch ( IOException e ) {} ;
   return (LoginLog[])log.toArray( new LoginLog[log.size()] );
}


The method getLogentry( bfFile ) simply reads the
line, parses the String and returns the class as I described
at the top.

Adam.



On Wed, 2004-03-10 at 13:15, Peter Guyatt wrote:
 Hi There,
 
   This read of the file? are you doing it a character at a time (ie via the
 read() method?)
 
 If so try reading more than one charcter at a time.
 
 Ie.
 
 public void readFile (String filename) {
   try {
   File f = new File(filename);
   FileReader fr = new FileReader(f);
 char data[] = new char[4096];
 int line = 0, read, i;
   //loop until all the data is read from the stream
 while ((read = fr.read(data, 0, 4096)) != -1) {
 //do somthing with the data read
   }
   } catch (Exception e) {
   e.printStackTrace();
   }
 }
 
 This will dramatically improve performance and hopefully stop your problem
 
 Thanks
 
 Pete
 
 -Original Message-
 From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
 Sent: 10 March 2004 13:06
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1 hangs on File Reading
 
 
 Adam,
 
 Sound very similar to a problem I had a couple of days ago. Are you using
 any loops in your code? Specifically while or do-while or endless for loops.
 If so try changing them to a for loop with a high count say 10k-100k and see
 what happens. I had a sort method that under the right conditions would
 bring down my IDE and hog all the processor.
 
 Doug
 www.parsonstechnical.com
 
 - Original Message -
 From: Adam Buglass [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 7:52 AM
 Subject: Tomcat 4.1 hangs on File Reading
 
 
  I've got a website which members can log in and out of
  (by way of a form which connects to a JSP).
 
  I've created a simple method in a Java class to write to
  a text format log file to tell me stuff like who they are,
  when they logged in etc.
 
  So far so good.
 
  I'm now trying to write a JSP to analyse this log but
  when I try and access the page, tomcat usually hangs
  indefinitely. Occassionally it will display something I jtas ask
  for, say, the Strings of IDs. Tomcat will then slow right down
  (approximately 4-6x slower) and eventually need restarting.
 
  I've tried with a smaller test file.
  I'm closing the file connection which I open in Java.
  There doesn't appear to be anything in the logs, in fact
  neither Tomcat nor Apache appear to recognise the page request
  at all.
 
  Any ideas / thoughts / suggestions !?
 
  Thanks,
  Adam.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 

Adam Buglass,  
The Golden Freeway,
Department of Child Health,
University of Newcastle-upon-Tyne.
Royal Victoria Infirmary.

(0191) 2023062

Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote. 
~Benjamin Franklin, 1759


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



RE: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Ralph Einfeldt
Which jdk do you use ?

There was once a version that had an error in ready().
As far as I can remember it always returned true.

Try to end the loop also when you couldn't read a line.
(Depends on what getLogentry() does in this case)

 -Original Message-
 From: Adam Buglass [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 2:23 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 hangs on File Reading
 
 FileReader inFile = new FileReader( /var/log/GFWlogin.log );
 BufferedReader bfFile = new BufferedReader( inFile );
   while ( bfFile.ready() ) {
 LoginLog logentry = getLogentry( bfFile );
 log.add( logentry );
   }
 bfFile.close();

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



RE: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Ronald Wildenberg
snip

 
 public static LoginLog[] readLog()throws FileNotFoundException
 {
   Vector log = new Vector();
 
   try {
 FileReader inFile = new FileReader( /var/log/GFWlogin.log );
 BufferedReader bfFile = new BufferedReader( inFile );
   while ( bfFile.ready() ) {
 LoginLog logentry = getLogentry( bfFile );
 log.add( logentry );
   }
 bfFile.close();
} catch ( IOException e ) {} ;
return (LoginLog[])log.toArray( new LoginLog[log.size()] );
 }
 


Why not simply use:

   String line = null;
   while ((line = bfFile.readLine()) != null) {
  LoginLog logEntry = getLogEntry(line); // Create log entry from the
line just read.
  log.add(logEntry);
   }

There is no need to use 'bfFile.ready()'. This method only checks
whether the call to a read method may block, which is not a problem
at all.


Regards,
Ronald.

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



Re: clustering question?

2004-03-10 Thread daniel
So let me get this straight.
You are saying that I should only have 2-4 hosts in a cluster?
or are saying that I should only have 2-4 physical boxes in a cluster?

I have over 10 different host and was thinking that each one needed to be in
its own cluster(is that the right way of thinking about it).


Which lives on 2 tomcat boxes running and will be adding more in the long
run.

Thanks
Daniel
Schulken


- Original Message - 
From: Aadi Deshpande [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 09, 2004 11:41 AM
Subject: Re: clustering question?


 Hi,

 You're changing the wrong port.
 You should not change the mcastPort, instead you should change the
 tcpListenPort

 The mcastPort and mcastAddr should be the same for every instance
 participating in the cluster.

 Also, as a word of advice, it's best to keep the cluster size down to
 2-3 ( and at most 4 ).  we've had a lot of trouble with larger cluster
 sizes, not because of any fault of the cluster manager, just that it's a
 huge (network/memory ) resource hog having all your sessions replicated
 six times over.  Of course, this is only for our case so YMMV.

 hth,
 -a

 [EMAIL PROTECTED] wrote:

 I am getting the following info in my log file.
 
 Mar 8, 2004 12:45:10 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster
 start
 INFO: Cluster is about to start
 Mar 8, 2004 12:45:10 PM
 org.apache.catalina.cluster.tcp.ReplicationListener run
 SEVERE: Unable to start cluster listener.
 java.net.SocketException: Address already in use
 at sun.nio.ch.Net.bind(Native Method)
 at
 sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:108
 )
 at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
 at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
 at
 org.apache.catalina.cluster.tcp.ReplicationListener.listen(ReplicationLi
 stener.java:148)
 at
 org.apache.catalina.cluster.tcp.ReplicationListener.run(ReplicationListe
 ner.java:129)
 at java.lang.Thread.run(Thread.java:534)
 Mar 8, 2004 12:45:10 PM org.apache.catalina.cluster.mcast.McastService
 start
 INFO: Sleeping for 2000 secs to establish cluster membership
 2004-03-08 12:45:13,151 [main] DEBUG (ManagerBase.java:671) -
 Registering Tomcat-Standalone:type=Manager,path=/,host=etrak-plus.com
 2004-03-08 12:45:13,156 [main] DEBUG (StandardManager.java:697) - Force
 random number initialization starting
 2004-03-08 12:45:13,157 [main] DEBUG (ManagerBase.java:555) - Opening
 /dev/urandom
 2004-03-08 12:45:13,158 [main] DEBUG (ManagerBase.java:366) - Getting
 message digest component for algorithm MD5
 2004-03-08 12:45:13,158 [main] DEBUG (ManagerBase.java:380) - Completed
 getting message digest component
 2004-03-08 12:45:13,159 [main] DEBUG (ManagerBase.java:383) -
 getDigest() 1
 2004-03-08 12:45:13,160 [main] DEBUG (StandardManager.java:700) - Force
 random number initialization completed
 2004-03-08 12:45:13,161 [main] DEBUG (StandardManager.java:406) - Start:
 Loading persisted sessions
 2004-03-08 12:45:13,161 [main] DEBUG (StandardManager.java:416) -
 Loading persisted sessions from SESSIONS.ser
 2004-03-08 12:45:13,165 [main] DEBUG (StandardManager.java:430) -
 Creating custom object input stream for class loader
 2004-03-08 12:45:13,171 [main] DEBUG (StandardManager.java:460) -
 Loading 0 persisted sessions
 2004-03-08 12:45:13,172 [main] DEBUG (StandardManager.java:507) -
 Finish: Loading persisted sessions
 
 
 Here is the cluster info that i have in my server.xml.
 
 Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 name=etrakCluster1
 managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 
 Membership
 className=org.apache.catalina.cluster.mcast.McastService
 mcastAddr=228.0.0.106
 mcastPort=45100
 mcastFrequency=500
 mcastDropTime=3000/
 
 Receiver
 className=org.apache.catalina.cluster.tcp.ReplicationListener
 tcpListenAddress=auto
 tcpListenPort=4001
 tcpSelectorTimeout=100
 tcpThreadCount=6/
 
 Sender
 className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
 replicationMode=pooled/
 
 Valve className=org.apache.catalina.cluster.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/
 /Cluster
 
 
 my mcastAddr range is from 228.0.0.106 - 228.0.0.115
 
 and the ports run from 45100-45109.
 
 Note each host has its own cluster entry and i have 10 different hosts.
 
 This is on tomcat 5.0.19 running on slackware 9.X
 
 Would i need to reboot the server to clear this up?
 
 Is this a problem with clustering or could it be a setup problem on my
 part.
 
 Thanks,
 
 Daniel Schulken
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004
 
 
 


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

Memory Usage/Common Lib

2004-03-10 Thread Lipov, Felix
I was wondering how the memory usage of Tomcat should compare in the
following two cases:

I have application a, b, c. Each application uses x.jar, y.jar and
z.jar.

Scenario 1:
Each application is deployed with the three jars under their respective
WEB-INF/lib directories.

Scenario 2: 
Nothing is placed in the respective WEB-INF/lib directories. Rather the
three jars are placed in tomcat's common/lib directory.

Would the memory usage of tomcat differ in the two cases? I'm assuming
yes, since in the first case the classes need to be loaded three times
more. In the second scenario, the classes from the jars would only be
loaded up once. Therefore Scenario 1, in terms of memory allocated to
the classloaded would be 3x more? I would like to get some feedback to
confirm or deny this.

Thanks.


 Important Notice to Recipients 
It is important that you do not use e-mail to request, authorize or effect the 
purchase or sale of any security or commodity, to send fund transfer instructions, or 
to effect any other transactions. Any such request, orders, or instructions that you 
send will not be accepted and will not be processed by Morgan Stanley.



RE: HttpServletResponse.sendRedirect() closes the stream

2004-03-10 Thread Shapira, Yoav

Hi,
As an aside, I would advise not using close pretty much ever, since you
don't know when another filter will process the response after your
servlet.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: suviswan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 5:26 AM
To: Tomcat Users List
Subject: Re: HttpServletResponse.sendRedirect() closes the stream

Hi

- Original Message -
From: Ronald Wildenberg [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 3:00 PM
Subject: RE: HttpServletResponse.sendRedirect() closes the stream


  -Oorspronkelijk bericht-
  Van: suviswan [mailto:[EMAIL PROTECTED]
  Verzonden: woensdag 10 maart 2004 10:20
  Aan: Tomcat Users List
  Onderwerp: HttpServletResponse.sendRedirect() closes the stream
 
 
  Hi
  I am using Tomcat 4.1.29. When i do
  HttpServletResponse.sendRedirect() inside my servlet doGet(), it
  automatically closes the stream
  So when i call the real close() function it throws
IOException
 
  java.io.IOException: The stream has been closed
  at
  org.apache.catalina.connector.ResponseStream.close(ResponseStr
  eam.java:219)
 
  Please let me know how to solve on this.


 The easiest way would be not to call close() on the response's output
 stream. Is there a reason you need to call close()?

 The servlet spec says that sendRedirect has the side effect of
committing
 the response and terminating it. If the response is terminated, its
 related OutputStream is closed, so it can not be closed again.


There is no need to close(). We have a servlet code which is based on
2.1
spec and we are moving to 2.3 spec.
The code worked fine in 2.1 and we thought it will work fine in 2.2.

The code worked when we commented the close() call. Thanks for the
help.

Regards
Surendra



 
  Thanks
  Surendra
 

 Regards,
 Ronald.

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



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: JNDI Datasource Reference in DD Not Necessary?

2004-03-10 Thread Harry Mantheakis
Hi Yoav


 I'm fairly sure you'd understand them just fine ;)


Well, I read both specs, the J2EE section 5.4 being the relevant one here,
and I am sorry to say but I think I am a little more confused now than
before!

It was good to see this bit of succinct code being sanctioned:


javax.sql.DataSource ds = (javax.sql.DataSource)
initCtx.lookup(java:comp/env/jdbc/EmployeeAppDB);


I actually arrived at that on my own, so I guess my Java instincts are not
so bad after all.

What I cannot figure out is: what does the 'resource-ref' element in the
deployment descriptor *actually* do?

What is its function, and am I breaking something by not having it there at
all?

You wrote:


 Even though in tomcat's current implementation resource-ref might not be
 strictly required under certain conditions, you should include it as the
 tomcat documentation suggestions, for completeness, portability, and
 spec compliance.


Which suggests that *perhaps* for a stand-alone Tomcat server this element
is not needed.

I guess I might (time permitting) post a question on Server-Side and see if
one of the J2EE boffins can shed any light on this.

Please do not get me wrong about this: I am just trying to understand what
the code I am using in my application is doing - or not doing :-)

Many thanks, and kind regards

BTW - the Ant 'filtering' trick you put me onto works a treat. Fantastic.
Ant should be mandatory learning!

Harry Mantheakis
London, UK


 Hi,
 
 I use Tomcat as a stand-alone server, but in the back of my mind I know
 there are J2EE specifications that Tomcat is adhering to which I am
 likely
 not to understand.
 
 I'm fairly sure you'd understand them just fine ;)  It's SRV.9.11 in the
 Servlet Specification 2.4 and J2EE.5 in the J2EE Specification v1.4.
 Even though in tomcat's current implementation resource-ref might not be
 strictly required under certain conditions, you should include it as the
 tomcat documentation suggestions, for completeness, portability, and
 spec compliance.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential, proprietary
 and/or privileged.  This e-mail is intended only for the individual(s) to whom
 it is addressed, and may not be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended recipient, please immediately
 delete this e-mail from your computer system and notify the sender.  Thank
 you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: Memory Usage/Common Lib

2004-03-10 Thread Shapira, Yoav

Hi,

Scenario 1:
Each application is deployed with the three jars under their respective
WEB-INF/lib directories.

Scenario 2:
Nothing is placed in the respective WEB-INF/lib directories. Rather the
three jars are placed in tomcat's common/lib directory.

Would the memory usage of tomcat differ in the two cases? I'm assuming
yes, since in the first case the classes need to be loaded three times
more. In the second scenario, the classes from the jars would only be
loaded up once. Therefore Scenario 1, in terms of memory allocated to
the classloaded would be 3x more? I would like to get some feedback to
confirm or deny this.

You're just about right.  The memory allocated to the classloaders would
be 3x more, as they must be separate and can have no overlap.  However,
in most real-life scenarios the independence and portability obtained by
the WEB-INF/lib setup is far more valuable than the minor memory cost.
I say minor even though it's 3x because it's 3x only for classes loaded,
not the heap, which usually dwarfs the classloader memory by orders of
magnitude.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: JNDI Datasource Reference in DD Not Necessary?

2004-03-10 Thread Shapira, Yoav

Hi,

What I cannot figure out is: what does the 'resource-ref' element in
the
deployment descriptor *actually* do?

It allows the container to map your portable descriptor in web.xml to
its specific instance in the container (which is defined in server.xml).
So resource-ref is the same for your app in your dev, test, and
production environments, on tomcat, weblogic, websphere, etc.  But the
container-specific configuration elements change.  It's a way to map
container-specific resources in a portable and consistent manner.  See
also env-entry-ref...

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Plm with web.xml - Tomcat 4.1.27

2004-03-10 Thread Shapira, Yoav

Hi,

Caused by: java.lang.IllegalArgumentException: Servlet mapping
specifies an
unkn
own servlet name testServlet

It doesn't get much clearer than this message.  I don't believe this
web.xml works in tomcat 5 or any other servlet container for that
matter.

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Memory Usage/Common Lib

2004-03-10 Thread Ralph Einfeldt

Scenario 1 will use more memory than scenarion 2.

The ratio depends on the internal architecture of the classes.
(What kind of object they create, where they store it)

If you just look at the core size that is needed to load
the classes it roughly directly proportional to the number
of webapp in scenario 2. But apart from that most classes 
need additional memory. 

(If the libray store all object in the session, the storage
for this would change for both variants. If they store it 
in the classes it will make a difference)

 -Original Message-
 From: Lipov, Felix [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 2:55 PM
 To: Tomcat Users List
 Subject: Memory Usage/Common Lib
 
 
 I have application a, b, c. Each application uses x.jar, y.jar and
 z.jar.
 
 Scenario 1:
 Each application is deployed with the three jars under their 
 respective
 WEB-INF/lib directories.
 
 Scenario 2: 
 Nothing is placed in the respective WEB-INF/lib directories. 
 Rather the
 three jars are placed in tomcat's common/lib directory.
 
 Would the memory usage of tomcat differ in the two cases? I'm assuming
 yes, since in the first case the classes need to be loaded three times
 more. In the second scenario, the classes from the jars would only be
 loaded up once. Therefore Scenario 1, in terms of memory allocated to
 the classloaded would be 3x more? I would like to get some feedback to
 confirm or deny this.
 

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



RE: Why do I need to restart my server

2004-03-10 Thread Shapira, Yoav

Hi,
The validation query parameter is for DBCP, which would be in server.xml or in your 
context's context.xml file if you're using the DBCP connection pooling as outlined in 
the JNDI DataSources How-To document.

As an aside: the database server going down is a serious event.  You need to carefully 
code your application for that case if it's likely to happen frequently.  The 
validation query will prevent the pool from handing out bad connections, but it won't:
- Magically make valid those connections used by your app at the moment the server 
goes down,
- Necessarily prevent the pool from hanging or waiting for the server to come back 
up, potentially indefinitely (or throw a SQLException after a timeout, depending on 
your configuration).

So I'm just saying it's not the complete solution ;)

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Adrian Kristiawan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 7:58 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Why do I need to restart my server

Hi,
 
I'm having the same problem, I want to ask which file should I edit according to the 
changes below?
 
Thanks All.   
 
---Original Message---
 
From: Tomcat Users List
Date: 03/10/04 19:41:47
To: Tomcat Users List
Subject: Re: Why do I need to restart my server
 
This works with most except for oracle which uses select 1 from dual
 
parameter
  namevalidationQuery/name
  valueselect 1/value
/parameter
 
 
On Wed, 10 Mar 2004 [EMAIL PROTECTED] wrote:
 
 Date: Wed, 10 Mar 2004 16:49:21 +0530
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Why do I need to restart my server





 Hi,
 Every time my database server connection goes down, I need to restart my
 Tomcat 5.0.19 to re-establish the connection. Why is this so? Is this a
 bug?
 
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
 





  IncrediMail - Email has finally evolved - Click Here



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Shapira, Yoav

Hi,

Why not simply use:

   String line = null;
   while ((line = bfFile.readLine()) != null) {
  LoginLog logEntry = getLogEntry(line); // Create log entry from
the
line just read.
  log.add(logEntry);
   }

There is no need to use 'bfFile.ready()'. This method only checks
whether the call to a read method may block, which is not a problem
at all.

I couldn't have said it any better -- good advice ;)

One thing you could have done (or still can do if you haven't changed
the code by now) is observe your program with a profiler, or even step
through it with a debugger, to see it never getting out if the
while(ready) loop.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Can`t install Tomcat as apache module: undefined symbol ap_table

2004-03-10 Thread Vi
Hi,
I had the same problem :), and nobody answered me :), so I used mod_proxy.
It should be installed already with apache, so you just have to 
configure it.
Becouse I was doing it all just today, I did very simple, and probably 
not the
best configuration. But if you are interested in using mod_proxy, go to
apache site, and find there info about this module, there was very helping
doc, with which even I could do it :).

Salvador Santander Gutierrez wrote:

Hello, list.
I'm trying to install tomcat as apache module with jk2 connector. I'm using
Tomcat 4.1.24 and Apache 2.0.40.
I've followed the instructions of three differents tutorials about connect
Tomcat to Apache with jk2 connector and when I try to start apache I see the
error undefined symbol ap_table at line... In this line is the LoadModule
directive.
¿Perhaps I'm using a old library of mod_jk.so? ¿Any idea?
Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


Re: mod_jk2 problems

2004-03-10 Thread Vi
Thanks for answer!

Yes, but I don't want to risk with the reinstallation! I have a very 
important server running.
When I was compiling mod_jk2 I encountered that a lib was missing ( I 
forgot the name ),
the link in /usr/lib was there but the file to which it was pointing 
wasn't. What I did is, I took
httpd sources, compiled them, found that .so that was missing in 
/usr/lib, and copied it there,
it compiled well, but can't load. Is there any util to see all symbols 
of library?

Yiannis Mavroukakis wrote:

If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems
Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
 



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


RE: Tomcat 4.1 hangs on File Reading (Getting OT)

2004-03-10 Thread Ralph Einfeldt
Although I think that the solution is correct, (I have given 
the same advice) I think that the original solution should 
work (according to the apidoc):

From BuffereReader.ready():
Tell whether this stream is ready to be read. A buffered 
character stream is ready if the buffer is not empty, or 
if the underlying character stream is ready. 

From InputStreamReader.ready():

Tell whether this stream is ready to be read. An 
InputStreamReader is ready if its input buffer is not 
empty, or if bytes are available to be read from the 
underlying byte stream.

From this I would expect that ready() returns false at 
the end of the file.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 3:15 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 hangs on File Reading
 
 
 
 Hi,
 
 Why not simply use:
 
String line = null;
while ((line = bfFile.readLine()) != null) {
   LoginLog logEntry = getLogEntry(line); // Create log entry from
 the
 line just read.
   log.add(logEntry);
}
 
 There is no need to use 'bfFile.ready()'. This method only checks
 whether the call to a read method may block, which is not a problem
 at all.
 
 I couldn't have said it any better -- good advice ;)
 
 One thing you could have done (or still can do if you haven't changed
 the code by now) is observe your program with a profiler, or even step
 through it with a debugger, to see it never getting out if the
 while(ready) loop.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



RE: Tomcat 4.1 hangs on File Reading

2004-03-10 Thread Adam Buglass
I'm still checking through so I can't say for sure,
but it looks certain enough that Ronald was correct,
although Peter's comment about using too many while
loops also improved performance.

I'm afraid I largely taught myself Java, coming from
a C / C++ background and misunderstood the method summary
for read().

Thanks for the help, and I'll take Yoav's tip on board too.

Adam.


On Wed, 2004-03-10 at 14:14, Shapira, Yoav wrote:
 Hi,
 
 Why not simply use:
 
String line = null;
while ((line = bfFile.readLine()) != null) {
   LoginLog logEntry = getLogEntry(line); // Create log entry from
 the
 line just read.
   log.add(logEntry);
}
 
 There is no need to use 'bfFile.ready()'. This method only checks
 whether the call to a read method may block, which is not a problem
 at all.
 
 I couldn't have said it any better -- good advice ;)
 
 One thing you could have done (or still can do if you haven't changed
 the code by now) is observe your program with a profiler, or even step
 through it with a debugger, to see it never getting out if the
 while(ready) loop.
 
 Yoav Shapira
 
 
 

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


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



RE: Tomcat 4.1 hangs on File Reading (Getting OT)

2004-03-10 Thread Adam Buglass
On Wed, 2004-03-10 at 14:24, Ralph Einfeldt wrote:
 Although I think that the solution is correct, (I have given 
 the same advice) I think that the original solution should 
 work (according to the apidoc):
 
 From BuffereReader.ready():
 Tell whether this stream is ready to be read. A buffered 
 character stream is ready if the buffer is not empty, or 
 if the underlying character stream is ready. 
 
 From InputStreamReader.ready():
 
 Tell whether this stream is ready to be read. An 
 InputStreamReader is ready if its input buffer is not 
 empty, or if bytes are available to be read from the 
 underlying byte stream.
 
 From this I would expect that ready() returns false at 
 the end of the file.
 

That was also my (mis-) understanding but from the performance
of my program and the comments on people here I think I got the
wrong end of the stick somewhere.

I usually use Sun's class summaries and they're generally pretty
good.

I used it as I would have used while(inFile) in C,
where inFile is the name of the input stream.



  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 10, 2004 3:15 PM
  To: Tomcat Users List
  Subject: RE: Tomcat 4.1 hangs on File Reading
  
  
  
  Hi,
  
  Why not simply use:
  
 String line = null;
 while ((line = bfFile.readLine()) != null) {
LoginLog logEntry = getLogEntry(line); // Create log entry from
  the
  line just read.
log.add(logEntry);
 }
  
  There is no need to use 'bfFile.ready()'. This method only checks
  whether the call to a read method may block, which is not a problem
  at all.
  
  I couldn't have said it any better -- good advice ;)
  
  One thing you could have done (or still can do if you haven't changed
  the code by now) is observe your program with a profiler, or even step
  through it with a debugger, to see it never getting out if the
  while(ready) loop.
  
  Yoav Shapira
  
  
  
  This e-mail, including any attachments, is a confidential 
  business communication, and may contain information that is 
  confidential, proprietary and/or privileged.  This e-mail is 
  intended only for the individual(s) to whom it is addressed, 
  and may not be saved, copied, printed, disclosed or used by 
  anyone else.  If you are not the(an) intended recipient, 
  please immediately delete this e-mail from your computer 
  system and notify the sender.  Thank you.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 

Adam Buglass,  
The Golden Freeway,
Department of Child Health,
University of Newcastle-upon-Tyne.
Royal Victoria Infirmary.

(0191) 2023062

Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote. 
~Benjamin Franklin, 1759


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



Re: Why do I need to restart my server

2004-03-10 Thread UmamaheswarKalluru




Hi Alex,
Where shold I specify the parameters? i.e in which .xml file

Thank you,
Best Regards,
Uma


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



RE: Why do I need to restart my server

2004-03-10 Thread UmamaheswarKalluru




Shapira,
I am using my own connection pooling concenpt. The server isn't going down
because of my query executions but due to some other reason. If incase it
goes down, I need to restart my tomcat. This is a big problem for me. How
can I prevent this. Will using the parameters tag in server.xml file solve
the problem?

Thank you,
Best Regards,
Uma


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



RE: Why do I need to restart my server

2004-03-10 Thread Shapira, Yoav

Hi,

I am using my own connection pooling concenpt. The server isn't going
down
because of my query executions but due to some other reason. If incase
it
goes down, I need to restart my tomcat. This is a big problem for me.
How
can I prevent this. Will using the parameters tag in server.xml file
solve
the problem?

As I said previously, the validation query is for DBCP.  If you're using
your own connection pooling nothing you put in server.xml can help: you
have to account for the server going down yourself.  That's one of the
reasons most people don't choose to use their own connection pooling
concept.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
Well great, you took the httpd sources, got the library out of them but your
httpd is probably 
running a binary which was not compiled against the sources you just used
:). I found that the 
following makefile works well for RH9
./configure -C --prefix=/etc/httpd --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib
--sysconfdir=/etc/httpd/conf --includedir=/usr/include/httpd
--libexecdir=/usr/lib/httpd/modules --datadir=/var/www --with-mpm=prefork
--enable-suexec --with-suexec --with-suexec-caller=apache
--with-suexec-docroot=/var/www
--with-suexec-logfile=/var/log/httpd/suexec.log
--with-suexec-bin=/usr/sbin/suexec --with-suexec-uidmin=500
--with-suexec-gidmin=500 --with-devrandom --with-ldap --enable-ldap
--enable-auth-ldap --enable-cache --enable-disk-cache --enable-mem-cache
--enable-ssl --with-ssl --enable-deflate --enable-cgid --enable-proxy
--enable-proxy-connect --enable-proxy-http --enable-proxy-ftp
--enable-mods-shared=all

This was gleaned from the RH9 httpd rpm installer (I needed to install
httpd2 on RH7.3 and was getting annoyed by RH's _stupid_
dependency issues).


-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 14:23
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Thanks for answer!

Yes, but I don't want to risk with the reinstallation! I have a very 
important server running.
When I was compiling mod_jk2 I encountered that a lib was missing ( I 
forgot the name ),
the link in /usr/lib was there but the file to which it was pointing 
wasn't. What I did is, I took
httpd sources, compiled them, found that .so that was missing in 
/usr/lib, and copied it there,
it compiled well, but can't load. Is there any util to see all symbols 
of library?

Yiannis Mavroukakis wrote:

If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems


Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
  



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is 

RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
I meant to say ./configure producing a makefile;)

-Original Message-
From: Yiannis Mavroukakis 
Sent: 10 March 2004 14:43
To: 'Tomcat Users List'
Subject: RE: mod_jk2 problems


Well great, you took the httpd sources, got the library out of them but your
httpd is probably 
running a binary which was not compiled against the sources you just used
:). I found that the 
following makefile works well for RH9
./configure -C --prefix=/etc/httpd --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib
--sysconfdir=/etc/httpd/conf --includedir=/usr/include/httpd
--libexecdir=/usr/lib/httpd/modules --datadir=/var/www --with-mpm=prefork
--enable-suexec --with-suexec --with-suexec-caller=apache
--with-suexec-docroot=/var/www
--with-suexec-logfile=/var/log/httpd/suexec.log
--with-suexec-bin=/usr/sbin/suexec --with-suexec-uidmin=500
--with-suexec-gidmin=500 --with-devrandom --with-ldap --enable-ldap
--enable-auth-ldap --enable-cache --enable-disk-cache --enable-mem-cache
--enable-ssl --with-ssl --enable-deflate --enable-cgid --enable-proxy
--enable-proxy-connect --enable-proxy-http --enable-proxy-ftp
--enable-mods-shared=all

This was gleaned from the RH9 httpd rpm installer (I needed to install
httpd2 on RH7.3 and was getting annoyed by RH's _stupid_
dependency issues).


-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 14:23
To: Tomcat Users List
Subject: Re: mod_jk2 problems


Thanks for answer!

Yes, but I don't want to risk with the reinstallation! I have a very 
important server running.
When I was compiling mod_jk2 I encountered that a lib was missing ( I 
forgot the name ),
the link in /usr/lib was there but the file to which it was pointing 
wasn't. What I did is, I took
httpd sources, compiled them, found that .so that was missing in 
/usr/lib, and copied it there,
it compiled well, but can't load. Is there any util to see all symbols 
of library?

Yiannis Mavroukakis wrote:

If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems


Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
  



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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.



Re: Restrict to specific IP's

2004-03-10 Thread Jason Keltz
I saw some discussion back on the 2nd of March from John Peace re:
restricting IPs not working with Tomcat 5.  I've run into the same
problem. I've tried restricting by IP, and by hostname, and neither work.
I presently have this:

Context path=/jas/example1 docBase=/cs/home/jas/webapps/example1
Valve className=org.apache.catalina.valves.RemoteHostValve allow=*.cs.yorku.ca/
/Context

I get 403's for every connection, *.cs.yorku.ca or not.  There's no
firewall, and the IPs listed in the access log are valid.  I've seen some
stuff on the web about wacky regexps with tomcat, and although I didn't
totally believe it, I also tried ^.+\.cs\.yorku\.ca$ but that didn't
work either.  I've tried restricting by IP with RemoteHostAddr as well
without any luck.

Jason.

On Tue, 2 Mar 2004 [EMAIL PROTECTED] wrote:

 Hello,

 HPUX 11.11
 Java 1.4.2
 Tomcat 4.1.30

 New to the list and Tomcat. I am trying to restrict access to Tomcat to a
 specific range of IP addresses. I looked at all the examples and help on
 using valve. I set it up according to the examples, but can't get it to
 work correctly. The IP addresses are as follows:

 132.24.195.18 -   HPUX server (tomcat and java loaded here)
 132.24.195.76 -   co-worker's PC

 In my server.xml I add the following after the Engine level statement, with
 the following results:

 Valve className=org.apache.catalina.valves.RemoteAddrValve
 deny=132.24.195.76/
 RESULT: No one is denied access. User at 132.24.195.76 can get to
 132.24.195.18:8080 and access manager

 Valve className=org.apache.catalina.valves.RemoteAddrValve
 allow=132.24.195.76/
 RESULT: Everyone, including 132.24.195.76, is denied access. I get the 403
 error.

 I have tried it with RemoteHostValve and get the same results. It does not
 matter what addresses I put in the deny or allow, I always get the same
 results. It is looks like the value in the deny or allow is not being read
 correctly.

 What am I doing wrong?



 John Peace
 System Administrator
 Allegro Consultants



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


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



Re: mod_jk2 problems

2004-03-10 Thread Vi
Well, it [mod_proxy] works for now, maybe someone else, brave man, will 
try to solve that problem :).

Yiannis Mavroukakis wrote:

I meant to say ./configure producing a makefile;)

-Original Message-
From: Yiannis Mavroukakis 
Sent: 10 March 2004 14:43
To: 'Tomcat Users List'
Subject: RE: mod_jk2 problems

Well great, you took the httpd sources, got the library out of them but your
httpd is probably 
running a binary which was not compiled against the sources you just used
:). I found that the 
following makefile works well for RH9
./configure -C --prefix=/etc/httpd --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --mandir=/usr/share/man --libdir=/usr/lib
--sysconfdir=/etc/httpd/conf --includedir=/usr/include/httpd
--libexecdir=/usr/lib/httpd/modules --datadir=/var/www --with-mpm=prefork
--enable-suexec --with-suexec --with-suexec-caller=apache
--with-suexec-docroot=/var/www
--with-suexec-logfile=/var/log/httpd/suexec.log
--with-suexec-bin=/usr/sbin/suexec --with-suexec-uidmin=500
--with-suexec-gidmin=500 --with-devrandom --with-ldap --enable-ldap
--enable-auth-ldap --enable-cache --enable-disk-cache --enable-mem-cache
--enable-ssl --with-ssl --enable-deflate --enable-cgid --enable-proxy
--enable-proxy-connect --enable-proxy-http --enable-proxy-ftp
--enable-mods-shared=all

This was gleaned from the RH9 httpd rpm installer (I needed to install
httpd2 on RH7.3 and was getting annoyed by RH's _stupid_
dependency issues).
-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 14:23
To: Tomcat Users List
Subject: Re: mod_jk2 problems
Thanks for answer!

Yes, but I don't want to risk with the reinstallation! I have a very 
important server running.
When I was compiling mod_jk2 I encountered that a lib was missing ( I 
forgot the name ),
the link in /usr/lib was there but the file to which it was pointing 
wasn't. What I did is, I took
httpd sources, compiled them, found that .so that was missing in 
/usr/lib, and copied it there,
it compiled well, but can't load. Is there any util to see all symbols 
of library?

Yiannis Mavroukakis wrote:

 

If I am not mistaken that means that you are missing a particular
library or that mod_jk2 was linked against the wrong sort type of lib. 
I've installed both mod_jk2 and tomcat 5.0 on RH9 without any problems
but I first removed httpd2, recompiled from source and installed.

-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 08:10
To: Tomcat Users List
Subject: mod_jk2 problems
Hi,
I read all FAQs and all the info I could find on the Internet about the 
issue. The thing is that I successfully
compile mod_jk2, but when I try to load it I get:

Cannot load /etc/httpd/modules/mod_jk2.so into server: 
/etc/httpd/modules/mod_jk2.so: undefined symbol: ap_get_module_config

This is very nice. Now what is the nature of this problem anyway? I 
thinking to try mod_proxy, but there
is a chance that the same error will come up. I have apache2.0.(48?) and 
tomcat 5.0.(?). I'm using red hat 9
(it was on server when I came :)). So this junky red hat was out of 
apxs2, and I installed apache-dev rpm,
and it appeared, I thought maybe it's wrongly configured or something??
I really don't know what to do from now on. I can't use Tomcat separate, 
and I need it.

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

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.
   



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

This e-mail has been scanned 

SSL Doesn't Stay SSL

2004-03-10 Thread John Thompson
I'm having a problem where I want users to connect to my servlet with SSL
but I can't get it to maintain an SSL connection.  The first page of the
servlet is encrypted but when I navigate to the second and other pages, the
browser no longer shows the lock icon.  The URL is still the https:// URL.

 

I am using the AJP connector through Apache 2 and the SSL stuff all works
with flat content on the Apache server.  I'm running 4.1.27 Tomcat.

 

I don't know what other info might be helpful.

 

Thanks in advance.



RE: mod_jk2 problems

2004-03-10 Thread Francois JEANMOUGIN

 it compiled well, but can't load. Is there any util to see all symbols
 of library?

Try ldd :
$ ldd mod_jk.so
libc.so.6 = /lib/i686/libc.so.6 (0x4200)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)

Nothing obvious :).

François.


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



Re: Restrict to specific IP's

2004-03-10 Thread Jason Keltz
Actually, here's more information on the Restricting IPs not working ..

If I use:
Valve className=org.apache.catalina.valves.RemoteAddrValve allow=A.B.C.D,A.B.C.E/

I can access the app from the host at IP A.B.C.D and IP A.B.C.E, and
cannot access the app from anywhere else, so this works.

However, if I try to be more explicit, and add a deny as follows:

deny=.* or deny=A.B.* to the end of Valve statement, I get refused
connection from all hosts, including the hosts in the allow list that
should still be allowed access.

If I try to go back to using RemoteHostValve, and trying the same
tests..

If I specify a single host in the allow list that is the host I am
accessing the webapp from, I get refused from that host, and every other
host.  I've even tried expanding the regexp on the allow -- ^host$ and
it doesn't work.

Jason.



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



servlet trouble

2004-03-10 Thread AMELIN Franck
Hi all,

I use tomcat 4 and I sometime face this trouble :

One of my servlet's doesn't response anymore and I get the fallowing message
in log file :

2004-03-10 15:12:02 Formule: init
2004-03-10 15:12:02 Formule: init
2004-03-10 15:12:06 jsp: init
2004-03-10 15:12:06 jsp: init
2004-03-10 15:12:06 jsp: init
2004-03-10 15:12:16 jsp: init
2004-03-10 15:12:33 jsp: init
2004-03-10 15:23:37 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:40 GestionDemandesGestionnaire: init
2004-03-10 15:23:40 GestionDemandesGestionnaire: init
2004-03-10 15:24:43 Login: init
2004-03-10 15:26:00 ConsultDroits: init
2004-03-10 15:26:00 ConsultDroits: init


and when i stop this server :

2004-03-10 15:49:00
StandardWrapper[/TPORECETTE:GestionDemandesGestionnaire]: Waiting for 20
instance(s) to be deallocated


It always happen's on this servlet and never on the others.


Any idea ?

Franck.


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



Re: mod_jk2 problems

2004-03-10 Thread Vi
ldd, is good, but I ment something to show me all functions of a lib.

libc.so.6 = /lib/i686/libc.so.6 (0x4200)
   /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)
Obviously those two are not enough



Francois JEANMOUGIN wrote:

it compiled well, but can't load. Is there any util to see all symbols
of library?
   

Try ldd :
$ ldd mod_jk.so
   )
Nothing obvious :).

François.

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




Re: SSL Doesn't Stay SSL

2004-03-10 Thread Alex

all the images and all content must be provided from the https link or
else you'll loose the lock.

On Wed, 10 Mar 2004, John Thompson wrote:

 Date: Wed, 10 Mar 2004 08:58:34 -0600
 From: John Thompson [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: SSL Doesn't Stay SSL

 I'm having a problem where I want users to connect to my servlet with SSL
 but I can't get it to maintain an SSL connection.  The first page of the
 servlet is encrypted but when I navigate to the second and other pages, the
 browser no longer shows the lock icon.  The URL is still the https:// URL.



 I am using the AJP connector through Apache 2 and the SSL stuff all works
 with flat content on the Apache server.  I'm running 4.1.27 Tomcat.



 I don't know what other info might be helpful.


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



RE: SSL Doesn't Stay SSL

2004-03-10 Thread AMELIN Franck
Try to force the use of https on the server :


RewriteEngine on
RewriteLog logs/rewrite.log
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

In you're file httpd2.conf.



 -Message d'origine-
De :John Thompson [mailto:[EMAIL PROTECTED]
Envoyé :mercredi 10 mars 2004 15:59
À : [EMAIL PROTECTED]
Objet : SSL Doesn't Stay SSL

I'm having a problem where I want users to connect to my servlet with SSL
but I can't get it to maintain an SSL connection.  The first page of the
servlet is encrypted but when I navigate to the second and other pages, the
browser no longer shows the lock icon.  The URL is still the https:// URL.



I am using the AJP connector through Apache 2 and the SSL stuff all works
with flat content on the Apache server.  I'm running 4.1.27 Tomcat.



I don't know what other info might be helpful.



Thanks in advance.



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



Path to log4j

2004-03-10 Thread Haroldo Nascimento
I am using log4j in my WebApplication.
Where I must configurate path or classpath in Tomcat to locate 
logXX.properties (properties file of log4j).

I put my propertie file in web-inf\classes but it does not works.

What I need to do ?

_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Path to log4j

2004-03-10 Thread Shapira, Yoav

Hi,

I am using log4j in my WebApplication.
Where I must configurate path or classpath in Tomcat to locate
logXX.properties (properties file of log4j).

I put my propertie file in web-inf\classes but it does not works.

If you put your log4j properties files in WEB-INF/classes and the
log4j.jar in WEB-INF/lib it should work automatically.  Note the
capitalization of WEB-INF.  If it doesn't work, what errors do you get
in the log?

You can also add log4j.debug=true to your JVM properties using JAVA_OPTS
in $CATALINA_HOME/bin/catalina.sh to see log4j's internal debugging
output.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: servlet trouble

2004-03-10 Thread Shapira, Yoav

Hi,

2004-03-10 15:23:37 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:40 GestionDemandesGestionnaire: init
2004-03-10 15:23:40 GestionDemandesGestionnaire: init
snip/
and when i stop this server :

2004-03-10 15:49:00
StandardWrapper[/TPORECETTE:GestionDemandesGestionnaire]: Waiting for
20
instance(s) to be deallocated

Does this servlet implement SingleThreadModel?  Is this servlet declared
multiple times in your web.xml?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Restrict to specific IP's

2004-03-10 Thread Ralph Einfeldt

Deny takes precedence over allow.
(The valve is missing the option to define the order)

I'm not shure if that explain all your problems but some.

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/RequestFilterValve.java?rev=1.3view=auto

 -Original Message-
 From: Jason Keltz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 4:20 PM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Restrict to specific IP's
 
 
 Actually, here's more information on the Restricting IPs not 
 working ..
 
 If I use:
 Valve className=org.apache.catalina.valves.RemoteAddrValve 
 allow=A.B.C.D,A.B.C.E/
 
 I can access the app from the host at IP A.B.C.D and IP A.B.C.E, and
 cannot access the app from anywhere else, so this works.
 
 However, if I try to be more explicit, and add a deny as follows:
 
 deny=.* or deny=A.B.* to the end of Valve statement, I get refused
 connection from all hosts, including the hosts in the allow list that
 should still be allowed access.
 
 If I try to go back to using RemoteHostValve, and trying the same
 tests..
 
 If I specify a single host in the allow list that is the host I am
 accessing the webapp from, I get refused from that host, and 
 every other host.  I've even tried expanding the regexp on the allow -- 
 ^host$ and
 it doesn't work.
 
 Jason.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



RE: Restrict to specific IP's

2004-03-10 Thread Jason Keltz
Hi Ralph,

Actually, this explains a whole lot, yes -- Thank you!

However, something interesting to note -- RemoteHostValve works if I refer
to IPs and *not* hostnames!  Isn't that odd?  I thought RemoteHostValve
was for hostname, and RemoteAddrValve works for IP.

Jason.

On Wed, 10 Mar 2004, Ralph Einfeldt wrote:


 Deny takes precedence over allow.
 (The valve is missing the option to define the order)

 I'm not shure if that explain all your problems but some.

 http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/RequestFilterValve.java?rev=1.3view=auto

  -Original Message-
  From: Jason Keltz [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 10, 2004 4:20 PM
  To: Tomcat Users List
  Cc: [EMAIL PROTECTED]
  Subject: Re: Restrict to specific IP's
 
 
  Actually, here's more information on the Restricting IPs not
  working ..
 
  If I use:
  Valve className=org.apache.catalina.valves.RemoteAddrValve
  allow=A.B.C.D,A.B.C.E/
 
  I can access the app from the host at IP A.B.C.D and IP A.B.C.E, and
  cannot access the app from anywhere else, so this works.
 
  However, if I try to be more explicit, and add a deny as follows:
 
  deny=.* or deny=A.B.* to the end of Valve statement, I get refused
  connection from all hosts, including the hosts in the allow list that
  should still be allowed access.
 
  If I try to go back to using RemoteHostValve, and trying the same
  tests..
 
  If I specify a single host in the allow list that is the host I am
  accessing the webapp from, I get refused from that host, and
  every other host.  I've even tried expanding the regexp on the allow --
  ^host$ and
  it doesn't work.
 
  Jason.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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


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



Sessions

2004-03-10 Thread Allistair Crossley
Hi Guys

I have a session ArrayList which has a value added to it say every request a user 
makes to the struts backend. When I open 2 browser windows and continue moving in the 
new window, the list changes with the new values. When I go back to the old window and 
refresh it maintains it's values and does not show the new ones.

This means that the 2 browser windows are 2 separate sessions. My question is whether 
this is how tomcat implements sessions or whether it is something I have done 
code-side to force a new session created. 

Thanks, ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



RE: Restrict to specific IP's

2004-03-10 Thread Shapira, Yoav

Howdy,

However, something interesting to note -- RemoteHostValve works if I
refer
to IPs and *not* hostnames!  Isn't that odd?  I thought RemoteHostValve
was for hostname, and RemoteAddrValve works for IP.

That's an interesting observation.  The Valves, like many other
elements, are instantiated via Digester from the className attribute.
Their code seems correct... Hmm, puzzling and I don't have time ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



JK Connector SYN packet for established connection

2004-03-10 Thread CONANT,PATRICK (HP-FtCollins,ex1)
I'm running into an issue with our JK communications being interrupted by
our firewall.   Any help would be appreciated...

Our firewall is reporting that the JK Connector is sending SYN packets for
connections that are already established.  The firewall is configured to
drop connections that are inactive for over 1/2 hour, but the connections
associated with the invalid SYN packets are generally only ~3-5 minutes old.
The folks maintaining the firewall claim that the JK communications are
non-RFC compliant and the connections are being dropped as a result.  This
is happening hundreds of times per day.

This is a high-traffic load-balanced website handling hundreds of thousands
of requests per day.  We get up to 400 AJP Listener threads active on each
of our Tomcat servers at any given time.  The server hardware configuration
looks like this:
* Two IIS Servers w/ JK ISAPI plugin located in the DMZ
* Nokia firewall software
* Foundry load balancer within our internal network
* Three Tomcat 4.0 servers within our internal network

Our workers.properties file is pretty simple:
worker.list=frontend
worker.frontend.host=X.XXX.hp.com
worker.frontend.type=ajp13
worker.frontend.port=8007

Any suggestions would be appreciated.

Thanks,
Pat Conant


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



Please Comment: plan for co-ordinating sessions across mutliple c ontexts

2004-03-10 Thread Justin Johnson
I have an internal website with several web applications, and thus several
contexts.  The user's identity is automatically provided via jCIFs (NTLM
authentication).  At the start of a session, a UserDataBean is created that
loads user preferences from a database, including the language preference
for the user (the site is English/Japanese bilingual).

I've implemented a site-wide filter that checks for changes to preferences
sent as a querystring by clicking a link (e.g., clicking on the 'nihon-go'
link in the main menu sends the URL [current path]?Language=JA).  The filter
catches the change, calls the change method in the session's UserDataBean,
which changes the preference and updates the database.

The experienced among you have already spotted the problem: with multiple
contexts there are multiple sessions for the user, and multiple
UserDataBeans; changing a preference in one bean doesn't change the
preference in another bean, which has already populated its fields from the
database.  Switch to Japanese in one context, and the change isn't reflected
in another.

What I think will work is the create a UserDataBeanEvent that is broadcast
on changing a preference; all the other beans listen for that event, and on
receiving one, check if that event was sent by a bean for the same user as
the receiving UserDataBean; if it was, it can update its own fields to the
same value (without bothering to update the database since the broadcasting
bean did so), and so all the UserDataBeans are co-ordinated across multiple
contexts.

Does this seem workable?  Am I forgetting something, or am I missing
something about performance?  Is there a lighter-weight way to accomplish
the same thing?

Thanks,
Justin

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



RE: Please Comment: plan for co-ordinating sessions across mutliple contexts

2004-03-10 Thread Shapira, Yoav

Hi,
Can you make this UserDataBean work with Tomcat's SingleSignOn valve?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Single%
20Sign%20On

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Justin Johnson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 10:58 AM
To: 'Tomcat Users List'
Subject: Please Comment: plan for co-ordinating sessions across
mutliple
contexts

I have an internal website with several web applications, and thus
several
contexts.  The user's identity is automatically provided via jCIFs
(NTLM
authentication).  At the start of a session, a UserDataBean is created
that
loads user preferences from a database, including the language
preference
for the user (the site is English/Japanese bilingual).

I've implemented a site-wide filter that checks for changes to
preferences
sent as a querystring by clicking a link (e.g., clicking on the
'nihon-go'
link in the main menu sends the URL [current path]?Language=JA).  The
filter
catches the change, calls the change method in the session's
UserDataBean,
which changes the preference and updates the database.

The experienced among you have already spotted the problem: with
multiple
contexts there are multiple sessions for the user, and multiple
UserDataBeans; changing a preference in one bean doesn't change the
preference in another bean, which has already populated its fields from
the
database.  Switch to Japanese in one context, and the change isn't
reflected
in another.

What I think will work is the create a UserDataBeanEvent that is
broadcast
on changing a preference; all the other beans listen for that event,
and on
receiving one, check if that event was sent by a bean for the same user
as
the receiving UserDataBean; if it was, it can update its own fields to
the
same value (without bothering to update the database since the
broadcasting
bean did so), and so all the UserDataBeans are co-ordinated across
multiple
contexts.

Does this seem workable?  Am I forgetting something, or am I missing
something about performance?  Is there a lighter-weight way to
accomplish
the same thing?

Thanks,
Justin

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: How to disable AutoDeploy in Tomcat 4.1.29 ?

2004-03-10 Thread Bill Stilwell
suviswan wrote:

Hi
   I have tried changing autoDeploy=false in server.xml. But it's not
working. It's still discovering the
web applicatios under webapps directory.
   Any ideas ?
 

autoDeploy only controls what happens at tomcat startup, do you have 
liveDeploy set to false as well?



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


RE: SSL Doesn't Stay SSL

2004-03-10 Thread John Thompson
I put these settings in the Virtual Host section as follows: 

VirtualHost *:443
  ServerName app.domain.com
  JkMount /app/* ajp13
  JkExtractSSL On
  JkHTTPSIndicator HTTPS
  JkSESSIONIndicator SSL_SESSION_ID
  JkCIPHERIndicator SSL_CIPHER
  JkCERTSIndicator SSL_CLIENT_CERT
  DocumentRoot /usr/local/sbin/tomcat/webapps/app
  SSLEngine On
  SSLCertificateFile conf/ssl.crt/app.domain.com.crt
  SSLCertificateKeyFile conf/ssl.key/app.domain.com.key
RewriteEngine On
RewriteLog logs/rewrite.log
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://app.domain.com/$1 [R,L]
/VirtualHost

I still have the same problem.  I don't want to force all virtual hosts to
use SSL, just this one servlet called app.


-Original Message-
From: AMELIN Franck [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 9:29 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: SSL Doesn't Stay SSL

Try to force the use of https on the server :


RewriteEngine on
RewriteLog logs/rewrite.log
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

In you're file httpd2.conf.



 -Message d'origine-
De :John Thompson [mailto:[EMAIL PROTECTED]
Envoyé :mercredi 10 mars 2004 15:59
À : [EMAIL PROTECTED]
Objet : SSL Doesn't Stay SSL

I'm having a problem where I want users to connect to my servlet with SSL
but I can't get it to maintain an SSL connection.  The first page of the
servlet is encrypted but when I navigate to the second and other pages, the
browser no longer shows the lock icon.  The URL is still the https:// URL.



I am using the AJP connector through Apache 2 and the SSL stuff all works
with flat content on the Apache server.  I'm running 4.1.27 Tomcat.



I don't know what other info might be helpful.



Thanks in advance.



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



Using Tomcat to implement a Weblogic like SSO authentication

2004-03-10 Thread Jose Alberto Fernandez
Hi, I am trying to evaluate migrating our application from Weblogic to a

Tomcat/JBoss environment. One of the main roadblocks at the moment is
our 
reliance on the way SSO is done in weblogic.

In weblogic, even within the same virtual host, you can specify
different SSO 
domains by defining diferent names for the sessionID parameter. All
webapps 
sharing the same sessionID name will share the same user authentication 
information. This is independent of whether the sessionID is passed as a

coockie or as a parameter of the request. So given the following URLs:

   /app1/main.html;dom1Id=sdjhfaksjdhfa
   /app2/other.html;dom1Id=sdjhfaksjdhfa
   /app3/another.html;dom2Id=sdjhfaksjdhfa

In this case going from /app1 to /app2 will not require authentication
because the they use the same SSO information. But going to /app3 will
cause a login since the domain is different. Moreover, this needs to
work 
without cookies. We have to shitch-off the use of cookies due to
problems in the session cookie handle by some Browsers.

Is such a configuration possible in Tomcat? Or, if not, does the Tomcat
API 
provide what is needed so one can EASILY build such an authentication
module?

Any additional suggestions? I have looked and looked around for answers
on 
this regard but found nothing.

Thanks in advance,

Jose




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

RE: Heap View vs Windows Task Manager

2004-03-10 Thread Allistair Crossley
windows task manager memory
windows+task+manager+memory
windows task manager memory

All give the same results .. they seem to use an OR, and none answer my particular 
question

Oh well. Thanks. ADC

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 12:22
To: Tomcat Users List
Subject: RE: Heap View vs Windows Task Manager


Have you tried to search for
windows+task+manager+memory

I just get 30 result.

(If there is one that satisfies you is a different question)

 -Original Message-
 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 12:06 PM
 To: [EMAIL PROTECTED]
 Cc: SH Solutions
 Subject: RE: Heap View vs Windows Task Manager
 
 
 
 Just because you can type in windows task manager memory 
 and get back lots of results does not mean that my question 
 is answered since the search engine seems to OR the search 
 terms. Anyway that's by the by.
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



mod_jk missing post parameter problem resolved!

2004-03-10 Thread Marco Manini
Hi,
I tested the latest cvs version of mod_jk like you suggested me and it
works great! the problem
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24882) seems resolved.
Thanks for your interest.

Is a new mod_jk stable release planned (with this bugfix included) ?

Marco Manini


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



RE: servlet trouble

2004-03-10 Thread AMELIN Franck
One of the ancestor implements javax.servlet.SingleThreadModel !

The web.xml is clean.


 -Message d'origine-
De :Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Envoyé :mercredi 10 mars 2004 16:33
À : Tomcat Users List
Objet : RE: servlet trouble


Hi,

2004-03-10 15:23:37 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:38 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:39 GestionDemandesGestionnaire: init
2004-03-10 15:23:40 GestionDemandesGestionnaire: init
2004-03-10 15:23:40 GestionDemandesGestionnaire: init
snip/
and when i stop this server :

2004-03-10 15:49:00
StandardWrapper[/TPORECETTE:GestionDemandesGestionnaire]: Waiting for
20
instance(s) to be deallocated

Does this servlet implement SingleThreadModel?  Is this servlet declared
multiple times in your web.xml?

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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


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

Tomcat Realm Authentication + Storing Objects In The Session

2004-03-10 Thread Alan Weissman
Hey Everyone -

 

I have been trying to figure out if Realm authentication is appropriate
for my project or if I need to implement my own.  

 

My biggest unknown right now is, because the server handles the creation
of the session, what would it take to make the server grab a user object
from the database and store it in the session after the user logs in?  

 

I've run into this in JBoss and ended up making some custom mechanisms -
I'm hoping I don't have to do the same here!

 

Thanks,

Alan

 

 



RE: Please Comment: plan for co-ordinating sessions across mutlip le contexts

2004-03-10 Thread Justin Johnson
I looked at it, but was worried about getting into quicksand by mixing NTLM
authentication (which is required) with preferences in that valve.  The
single-sign-on valve didn't seem easily integrated with jCifs, but I could
be wrong.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 10:01 AM
To: Tomcat Users List
Subject: RE: Please Comment: plan for co-ordinating sessions across mutliple
contexts



Hi,
Can you make this UserDataBean work with Tomcat's SingleSignOn valve?
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Single%
20Sign%20On

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Justin Johnson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 10:58 AM
To: 'Tomcat Users List'
Subject: Please Comment: plan for co-ordinating sessions across
mutliple
contexts

I have an internal website with several web applications, and thus
several
contexts.  The user's identity is automatically provided via jCIFs
(NTLM
authentication).  At the start of a session, a UserDataBean is created
that
loads user preferences from a database, including the language
preference
for the user (the site is English/Japanese bilingual).

I've implemented a site-wide filter that checks for changes to
preferences
sent as a querystring by clicking a link (e.g., clicking on the
'nihon-go'
link in the main menu sends the URL [current path]?Language=JA).  The
filter
catches the change, calls the change method in the session's
UserDataBean,
which changes the preference and updates the database.

The experienced among you have already spotted the problem: with
multiple
contexts there are multiple sessions for the user, and multiple
UserDataBeans; changing a preference in one bean doesn't change the
preference in another bean, which has already populated its fields from
the
database.  Switch to Japanese in one context, and the change isn't
reflected
in another.

What I think will work is the create a UserDataBeanEvent that is
broadcast
on changing a preference; all the other beans listen for that event,
and on
receiving one, check if that event was sent by a bean for the same user
as
the receiving UserDataBean; if it was, it can update its own fields to
the
same value (without bothering to update the database since the
broadcasting
bean did so), and so all the UserDataBeans are co-ordinated across
multiple
contexts.

Does this seem workable?  Am I forgetting something, or am I missing
something about performance?  Is there a lighter-weight way to
accomplish
the same thing?

Thanks,
Justin

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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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

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



RE: SSL Doesn't Stay SSL

2004-03-10 Thread AMELIN Franck
And something like this ?

RewriteCond %{REQUEST_URI} ^/servlet/app(.*)
RewriteRule ^/(.*)$ https://app.domain.com/$1 [R,L]

 -Message d'origine-
De :John Thompson [mailto:[EMAIL PROTECTED]
Envoyé :mercredi 10 mars 2004 17:02
À : 'Tomcat Users List'
Objet : RE: SSL Doesn't Stay SSL

I put these settings in the Virtual Host section as follows:

VirtualHost *:443
  ServerName app.domain.com
  JkMount /app/* ajp13
  JkExtractSSL On
  JkHTTPSIndicator HTTPS
  JkSESSIONIndicator SSL_SESSION_ID
  JkCIPHERIndicator SSL_CIPHER
  JkCERTSIndicator SSL_CLIENT_CERT
  DocumentRoot /usr/local/sbin/tomcat/webapps/app
  SSLEngine On
  SSLCertificateFile conf/ssl.crt/app.domain.com.crt
  SSLCertificateKeyFile conf/ssl.key/app.domain.com.key
RewriteEngine On
RewriteLog logs/rewrite.log
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://app.domain.com/$1 [R,L]
/VirtualHost

I still have the same problem.  I don't want to force all virtual hosts to
use SSL, just this one servlet called app.


-Original Message-
From: AMELIN Franck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 9:29 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: SSL Doesn't Stay SSL

Try to force the use of https on the server :


RewriteEngine on
RewriteLog logs/rewrite.log
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

In you're file httpd2.conf.



 -Message d'origine-
De :John Thompson [mailto:[EMAIL PROTECTED]
Envoyé :mercredi 10 mars 2004 15:59
À : [EMAIL PROTECTED]
Objet : SSL Doesn't Stay SSL

I'm having a problem where I want users to connect to my servlet with SSL
but I can't get it to maintain an SSL connection.  The first page of the
servlet is encrypted but when I navigate to the second and other pages, the
browser no longer shows the lock icon.  The URL is still the https:// URL.



I am using the AJP connector through Apache 2 and the SSL stuff all works
with flat content on the Apache server.  I'm running 4.1.27 Tomcat.



I don't know what other info might be helpful.



Thanks in advance.



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



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



RE: Tomcat Realm Authentication + Storing Objects In The Session

2004-03-10 Thread Shapira, Yoav

Hi,

I've run into this in JBoss and ended up making some custom mechanisms
-
I'm hoping I don't have to do the same here!

You would have to write custom code.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: servlet trouble

2004-03-10 Thread Shapira, Yoav

Hi,

One of the ancestor implements javax.servlet.SingleThreadModel !

That's your problem.  To put it shortly and bluntly, STM is evil.  It
was deprecated in the Servlet Specification without replacement, and you
should stop using it.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NT Service terminates

2004-03-10 Thread Tariq Chalabi
Thanks for that advice - I'll try the upgrade soon as I get a moment
 
Cheers
 
Tariq

Cox, Charlie [EMAIL PROTECTED] wrote:
I had found the JVM version 1.4.0_02 (as a service) to provide random
crashes, not particularly caused by load, that went away when changing to
1.4.0_04. 
This was with tomcat 4.1.24. 
I am now using 4.1.29/JDK 1.4.2_02 without a problem.

Do you have any native libraries(db?) that may be the cause of the crash?
Look for an hs_err*.log file. This file should be in \%SYSTEMROOT%\system32.
If the user does not have write permission to there, then it will go to the
user's TEMP directory.

I'm not sure about win2k, but when using Win2003 explorer's 'search' feature
will not search the 'Documents and Settings' folder. This is where the
user's TEMP folder is by default. I wasted waaay too much time learning
this the hard way. You can use a command prompt to search the drive.

Charlie

-Original Message-
From: Adrian Kristiawan [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 08, 2004 7:52 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: NT Service terminates
Importance: High

I have a similiar problem with you, I am using Tomcat 4.1.18, but currently
I'm not running it as a Windows Service on Windows 2000 Server, instead I
start the Tomcat service by clicking the Start Tomcat shortcut in the
windows desktop. 
Whenever there is a communication link error or the communication is
down between the client and the server where Tomcat resides, the Tomcat
service just stops by itself. 
 
I thought the solution to my problem was to start the Tomcat as a windows
service,but you stated otherwise, now I'm confused on how to fix my problem.

 
Is it also true that if the load is too big, the Tomcat service will
automatically stop by itself?
 
Can anyone help us on this matter?
 
Thanks. 
 
---Original Message---
 
From: Tomcat Users List
Date: 03/08/04 17:31:40
To: Tomcat
Subject: NT Service terminates
 
I have Tomcat 4.1.24 running as Windows Service on Windows 2000 Server  -
hosting a number of applications.  I currently have it running
 
When I run a simple load test using Microsoft Stress Tester - as I increase
the load I can repeatedly force the Window Service to terminate.  I'm only
running with a load of 100 users.
 
When I run Tomcat from the command-line as an application and I repeat the
test - Tomcat runs fine - performance is fine.  No problems.
 
So what is it about running Tomcat as a service that makes it so easy to
bring down?  I'm tempted to blame the OS - but that doesn't really solve the
problem - or explain what the difference is.
 
Has anyone else observed this?
 
Is it possible to get Tomcat to start as an application - on start-up i.e.
as if it were a service - but running as an application.  Sorry if that's a
meaningless question.
 
 
-
  Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now
 





  IncrediMail - Email has finally evolved - Click Here


-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now

RE: Restrict to specific IP's

2004-03-10 Thread Ralph Einfeldt
Do you have dnslookups enabled/disabled ?

If this is disabled the hostname ist the IP.

 -Original Message-
 From: Jason Keltz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 10, 2004 4:43 PM
 To: Tomcat Users List
 Subject: RE: Restrict to specific IP's
 
 However, something interesting to note -- RemoteHostValve 
 works if I refer to IPs and *not* hostnames!  
 Isn't that odd?  I thought RemoteHostValve
 was for hostname, and RemoteAddrValve works for IP.
 

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



RE: mod_jk2 problems

2004-03-10 Thread Yiannis Mavroukakis
try

ldd -v -r /etc/httpd/modules/mod_jk2.so

If there are any missing objects or functions it will report them to you.



-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 15:24
To: Tomcat Users List
Subject: Re: mod_jk2 problems


ldd, is good, but I ment something to show me all functions of a lib.

libc.so.6 = /lib/i686/libc.so.6 (0x4200)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)

Obviously those two are not enough



Francois JEANMOUGIN wrote:

it compiled well, but can't load. Is there any util to see all symbols
of library?



Try ldd :
$ ldd mod_jk.so
)

Nothing obvious :).

François.


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


  





This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

tomcat services do not start after jdk1.4.2 install - even new tomcat

2004-03-10 Thread Allistair Crossley
hey guys (again) .. seem to be having a few issues today. 

i had apache tomcat 5.0 and tomcat 5.0.18 installed both as services and both using 
jdk1.4.1 this morning. the services worked just fine.

i decided to install jdk1.4.2. the first thing i did was uninstall jdk1.4.1. as soon 
as I did this i installed 1.4.2 and then updated JAVA_HOME to this. i tried to restart 
the 2 tomcat services and they now do not respond and fail. I restarted the machine 
and the services just won't start (error: the service will not respond). 

i figured this had to be related to not being able to find java? I looked at the 
services.bat and it does not even refer to JAVA_HOME but it does have java in it. So i 
checked that my system path had the jdk1.4.2\bin in it and java works on the command 
line. 

furthermore I can start the 2 tomcat installations using the startup.bat scripts... 
the problem is confined to the services. 

so i tried service uninstall to get rid of the services and then I reinstalled them 
service install and they still do not work.

I then downloaded a new tomcat 5.0.19 and tried the service and it does not work.

i think i have exhausted the possibilities now and would appreciate someone suggesting 
something else ..


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT



Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Asif Chowdhary
Hi,

I am installing tomcat on RH9. 
Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz

The installation works with JDK 1.4

but tomcat does not start when I try to use JDK 1.3.1
The browser returns the message Unable to connect to localhost with
http://localhost:8080/.


Any suggestions.


Asif 

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



Re: JK Connector SYN packet for established connection

2004-03-10 Thread David Rees
CONANT,PATRICK (HP-FtCollins,ex1) wrote, On 3/10/2004 7:58 AM:
Our workers.properties file is pretty simple:
worker.list=frontend
worker.frontend.host=X.XXX.hp.com
worker.frontend.type=ajp13
worker.frontend.port=8007
Try setting the socket_keepalive and socket_timeout options and see if 
that helps:
worker.frontend.socket_keepalive=1
worker.frontend.socket_timeout=300

-Dave

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


RE: SSL Doesn't Stay SSL

2004-03-10 Thread John Thompson
This has changed some things.

I have replaced the SERVER_PORT condition and rule with the URI condition
and rule and left it inside the VirtualHost directive.

Now the first page isn't displayed at all.  Looking at the Apache ssl.log,
SSL seems to be working fine (connection to child 7 established... Seeding
PRNG with 136 bytes of entropy).

The Apache access log, however, shows a continuous access of the same
initial page (GET /app/index.jsp HTTP/1.0).  This happens a couple times a
second.

From the browser, I enter https://app.domain.com.  This finds the index.html
which uses the REFRESH META tag to redirects to the url /app/index.jsp

Thanks for your patience and attention.

-Original Message-
From: AMELIN Franck [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 10:22 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: SSL Doesn't Stay SSL

And something like this ?

RewriteCond %{REQUEST_URI} ^/servlet/app(.*)
RewriteRule ^/(.*)$ https://app.domain.com/$1 [R,L]

 -Message d'origine-
De :John Thompson [mailto:[EMAIL PROTECTED]
Envoyé :mercredi 10 mars 2004 17:02
À : 'Tomcat Users List'
Objet : RE: SSL Doesn't Stay SSL

I put these settings in the Virtual Host section as follows:

VirtualHost *:443
  ServerName app.domain.com
  JkMount /app/* ajp13
  JkExtractSSL On
  JkHTTPSIndicator HTTPS
  JkSESSIONIndicator SSL_SESSION_ID
  JkCIPHERIndicator SSL_CIPHER
  JkCERTSIndicator SSL_CLIENT_CERT
  DocumentRoot /usr/local/sbin/tomcat/webapps/app
  SSLEngine On
  SSLCertificateFile conf/ssl.crt/app.domain.com.crt
  SSLCertificateKeyFile conf/ssl.key/app.domain.com.key
RewriteEngine On
RewriteLog logs/rewrite.log
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://app.domain.com/$1 [R,L]
/VirtualHost

I still have the same problem.  I don't want to force all virtual hosts to
use SSL, just this one servlet called app.


-Original Message-
From: AMELIN Franck [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 9:29 AM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: SSL Doesn't Stay SSL

Try to force the use of https on the server :


RewriteEngine on
RewriteLog logs/rewrite.log
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

In you're file httpd2.conf.



 -Message d'origine-
De :John Thompson [mailto:[EMAIL PROTECTED]
Envoyé :mercredi 10 mars 2004 15:59
À : [EMAIL PROTECTED]
Objet : SSL Doesn't Stay SSL

I'm having a problem where I want users to connect to my servlet with SSL
but I can't get it to maintain an SSL connection.  The first page of the
servlet is encrypted but when I navigate to the second and other pages, the
browser no longer shows the lock icon.  The URL is still the https:// URL.



I am using the AJP connector through Apache 2 and the SSL stuff all works
with flat content on the Apache server.  I'm running 4.1.27 Tomcat.



I don't know what other info might be helpful.



Thanks in advance.



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



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



RE: Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Shapira, Yoav

Hi,

but tomcat does not start when I try to use JDK 1.3.1
The browser returns the message Unable to connect to localhost with
http://localhost:8080/.

What do the logs say?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Chong Yu Meng
Asif Chowdhary wrote:

Hi,

I am installing tomcat on RH9. 
Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz

The installation works with JDK 1.4

but tomcat does not start when I try to use JDK 1.3.1
The browser returns the message Unable to connect to localhost with
http://localhost:8080/.
Any suggestions.

 

You will need Java 1.4.1, or else disable NPTL for RH9 and Fedora Core 
1, or you will get seg faults. I've written 2 docs, one for IBM Java and 
one for Tomcat 4/5, and posted it on my website (see signature below).

--
We must respect the other fellow's religion, but only in the sense and
to the extent that we respect his theory that his wife is beautiful and
his children are smart. 
	-- Henry Mencken
++
| Pascal Chong   |
| email: [EMAIL PROTECTED]  |
||
| Please visit my site at : http://cymulacrum.net|
| If you're using my documentation, please read the Terms and|
| and Conditions at http://cymulacrum.net/terms.html |
++



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


RE: tomcat services do not start after jdk1.4.2 install - even new tomcat

2004-03-10 Thread Shapira, Yoav

Hi,

furthermore I can start the 2 tomcat installations using the
startup.bat
scripts... the problem is confined to the services.

so i tried service uninstall to get rid of the services and then I
reinstalled them service install and they still do not work.

I then downloaded a new tomcat 5.0.19 and tried the service and it does
not
work.

i think i have exhausted the possibilities now and would appreciate
someone
suggesting something else ..

The Registry since you seem to be running on Windows.  I think the JVM
location for service is found in the Registry, and it's probably still
pointing to the JDK 1.4.1 value.  Just a guess, as I don't use services
on windows for tomcat, but it's worth checking ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Asif Chowdhary
Nothing gets written to the log file.
Catalina.out is created and the process seems to start
when I issue the grep command.



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 11:51 AM
To: Tomcat Users List
Subject: RE: Tomcat on linux : IBM JDK 1.3.1 - 



Hi,

but tomcat does not start when I try to use JDK 1.3.1
The browser returns the message Unable to connect to localhost with
http://localhost:8080/.

What do the logs say?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



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



RE: Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Lerias, Hugo
Are you trying to use IBM jdk 1.3 on red hat 9?

Hugo

-Original Message-
From: Asif Chowdhary [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 10. März 2004 17:42
To: [EMAIL PROTECTED]
Subject: Tomcat on linux : IBM JDK 1.3.1 - 


Hi,

I am installing tomcat on RH9. 
Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz

The installation works with JDK 1.4

but tomcat does not start when I try to use JDK 1.3.1
The browser returns the message Unable to connect to localhost with 
http://localhost:8080/.


Any suggestions.


Asif 

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


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



RE: Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Lerias, Hugo
Take a look at this post:
http://www.linux-sxs.org/programming/ibm-java.html#APPENDIX_A

Cheers,
Hugo

-Original Message-
From: Lerias, Hugo 
Sent: Mittwoch, 10. März 2004 17:55
To: 'Tomcat Users List'
Subject: RE: Tomcat on linux : IBM JDK 1.3.1 - 


Are you trying to use IBM jdk 1.3 on red hat 9?

Hugo

-Original Message-
From: Asif Chowdhary [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 10. März 2004 17:42
To: [EMAIL PROTECTED]
Subject: Tomcat on linux : IBM JDK 1.3.1 - 


Hi,

I am installing tomcat on RH9. 
Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz

The installation works with JDK 1.4

but tomcat does not start when I try to use JDK 1.3.1
The browser returns the message Unable to connect to localhost with 
http://localhost:8080/.


Any suggestions.


Asif 

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


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



RE: Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Shapira, Yoav

Hi,

Nothing gets written to the log file.
Catalina.out is created and the process seems to start
when I issue the grep command.

Are the tomcat ports bound?

You may wish to set debug=99 on the various containers in server.xml
to maybe get more debugging information.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat on linux : IBM JDK 1.3.1 -

2004-03-10 Thread Asif Chowdhary
Thank you.

setting the LD_ASSUME_KERNEL=2.2.5 in the user profile works.


-Original Message-
From: Lerias, Hugo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 10, 2004 11:57 AM
To: Lerias, Hugo; Tomcat Users List
Subject: RE: Tomcat on linux : IBM JDK 1.3.1 - 


Take a look at this post:
http://www.linux-sxs.org/programming/ibm-java.html#APPENDIX_A

Cheers,
Hugo

-Original Message-
From: Lerias, Hugo 
Sent: Mittwoch, 10. März 2004 17:55
To: 'Tomcat Users List'
Subject: RE: Tomcat on linux : IBM JDK 1.3.1 - 


Are you trying to use IBM jdk 1.3 on red hat 9?

Hugo

-Original Message-
From: Asif Chowdhary [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 10. März 2004 17:42
To: [EMAIL PROTECTED]
Subject: Tomcat on linux : IBM JDK 1.3.1 - 


Hi,

I am installing tomcat on RH9. 
Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz

The installation works with JDK 1.4

but tomcat does not start when I try to use JDK 1.3.1
The browser returns the message Unable to connect to localhost with 
http://localhost:8080/.


Any suggestions.


Asif 

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


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



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



Re: mod_jk2 problems

2004-03-10 Thread Vi
Oh, yes! Thanks!
Here is what missing:
undefined symbol: ap_scoreboard_image   (./mod_jk2.so)
undefined symbol: ap_server_root(./mod_jk2.so)
undefined symbol: apr_pool_cleanup_null (./mod_jk2.so)
undefined symbol: apr_socket_create (./mod_jk2.so)
undefined symbol: ap_hook_post_config   (./mod_jk2.so)
undefined symbol: ap_get_module_config  (./mod_jk2.so)
undefined symbol: apr_file_write_full   (./mod_jk2.so)
undefined symbol: apr_send  (./mod_jk2.so)
undefined symbol: apr_table_add (./mod_jk2.so)
undefined symbol: ap_exists_scoreboard_image(./mod_jk2.so)
undefined symbol: apr_pool_create_ex(./mod_jk2.so)
undefined symbol: ap_hook_handler   (./mod_jk2.so)
undefined symbol: apr_strerror  (./mod_jk2.so)
undefined symbol: ap_update_mtime   (./mod_jk2.so)
undefined symbol: apr_connect   (./mod_jk2.so)
undefined symbol: apr_mmap_offset   (./mod_jk2.so)
undefined symbol: apr_file_seek (./mod_jk2.so)
undefined symbol: apr_md5_final (./mod_jk2.so)
undefined symbol: apr_thread_mutex_trylock  (./mod_jk2.so)
undefined symbol: apr_filename_of_pathname  (./mod_jk2.so)
undefined symbol: ap_hook_child_init(./mod_jk2.so)
undefined symbol: find_child_by_pid (./mod_jk2.so)
undefined symbol: apr_setsocketopt  (./mod_jk2.so)
undefined symbol: ap_setup_client_block (./mod_jk2.so)
undefined symbol: apr_proc_mutex_create (./mod_jk2.so)
undefined symbol: apr_thread_mutex_lock (./mod_jk2.so)
undefined symbol: ap_hook_map_to_storage(./mod_jk2.so)
undefined symbol: apr_table_set (./mod_jk2.so)
undefined symbol: apr_proc_mutex_trylock(./mod_jk2.so)
undefined symbol: apr_table_addn(./mod_jk2.so)
undefined symbol: ap_get_server_version (./mod_jk2.so)
undefined symbol: apr_pool_cleanup_register (./mod_jk2.so)
undefined symbol: ap_mpm_query  (./mod_jk2.so)
undefined symbol: apr_mmap_create   (./mod_jk2.so)
undefined symbol: apr_filepath_merge(./mod_jk2.so)
undefined symbol: ap_log_perror (./mod_jk2.so)
undefined symbol: apr_thread_mutex_create   (./mod_jk2.so)
undefined symbol: apr_pstrdup   (./mod_jk2.so)
undefined symbol: apr_date_parse_http   (./mod_jk2.so)
undefined symbol: apr_recv  (./mod_jk2.so)
undefined symbol: ap_get_server_name(./mod_jk2.so)
undefined symbol: ap_os_escape_path (./mod_jk2.so)
undefined symbol: ap_log_error  (./mod_jk2.so)
undefined symbol: apr_table_setn(./mod_jk2.so)
undefined symbol: ap_get_remote_host(./mod_jk2.so)
undefined symbol: apr_table_get (./mod_jk2.so)
undefined symbol: apr_socket_close  (./mod_jk2.so)
undefined symbol: apr_psprintf  (./mod_jk2.so)
undefined symbol: apr_file_open (./mod_jk2.so)
undefined symbol: apr_ctime (./mod_jk2.so)
undefined symbol: apr_sockaddr_info_get (./mod_jk2.so)
undefined symbol: apr_thread_mutex_destroy  (./mod_jk2.so)
undefined symbol: apr_stat  (./mod_jk2.so)
undefined symbol: apr_palloc(./mod_jk2.so)
undefined symbol: ap_strchr (./mod_jk2.so)
undefined symbol: apr_sockaddr_port_get (./mod_jk2.so)
undefined symbol: ap_should_client_block(./mod_jk2.so)
undefined symbol: apr_pvsprintf (./mod_jk2.so)
undefined symbol: apr_time_now  (./mod_jk2.so)
undefined symbol: ap_rwrite (./mod_jk2.so)
undefined symbol: apr_proc_mutex_unlock (./mod_jk2.so)
undefined symbol: apr_pool_get_parent   (./mod_jk2.so)
undefined symbol: ap_set_module_config  (./mod_jk2.so)
undefined symbol: apr_table_elts(./mod_jk2.so)
undefined symbol: ap_get_client_block   (./mod_jk2.so)
undefined symbol: ap_add_version_component  (./mod_jk2.so)
undefined symbol: apr_md5_init  (./mod_jk2.so)
undefined symbol: apr_proc_mutex_destroy(./mod_jk2.so)
undefined symbol: apr_file_info_get (./mod_jk2.so)
undefined symbol: apr_pool_clear(./mod_jk2.so)
undefined symbol: apr_pool_userdata_set (./mod_jk2.so)
undefined symbol: apr_mmap_delete   (./mod_jk2.so)
undefined symbol: ap_get_server_port(./mod_jk2.so)
undefined symbol: ap_content_type_tolower   (./mod_jk2.so)
undefined symbol: apr_proc_mutex_lock   (./mod_jk2.so)
undefined symbol: ap_rflush (./mod_jk2.so)
undefined symbol: apr_md5_update(./mod_jk2.so)
undefined symbol: ap_set_last_modified  (./mod_jk2.so)
undefined symbol: apr_socket_timeout_set(./mod_jk2.so)
undefined symbol: ap_hook_translate_name(./mod_jk2.so)
undefined symbol: ap_add_common_vars(./mod_jk2.so)
undefined symbol: apr_pool_userdata_get (./mod_jk2.so)
undefined symbol: apr_thread_mutex_unlock   (./mod_jk2.so)
Any idea where thay are defined?

Yiannis Mavroukakis wrote:

try

ldd -v -r /etc/httpd/modules/mod_jk2.so

If there are any missing objects or functions it will report them to you.



-Original Message-
From: Vi [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 15:24
To: Tomcat Users List
Subject: Re: mod_jk2 problems
ldd, is good, but I ment something to show me all functions of a lib.

 

libc.so.6 = /lib/i686/libc.so.6 (0x4200)
  

OT: Java Hosting

2004-03-10 Thread Schalk
Does anyone know of a good hosting company that hosts Java. All the
companies I have talked to seem to have some limitations, either you cannot
set-up your own custom servlet-mappings via web.xml, or the Tomcat version
is old, shared instances of Tomcat that does not allow me the freedom to
stop and start Tomcat as the need arises etc.

Any help in this regard would be much appreciated.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, March 10, 2004 7:10 PM
:: To: Tomcat Users List
:: Subject: RE: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: Thank you.
:: 
:: setting the LD_ASSUME_KERNEL=2.2.5 in the user profile works.
:: 
:: 
:: -Original Message-
:: From: Lerias, Hugo [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, March 10, 2004 11:57 AM
:: To: Lerias, Hugo; Tomcat Users List
:: Subject: RE: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: 
:: Take a look at this post:
:: http://www.linux-sxs.org/programming/ibm-java.html#APPENDIX_A
:: 
:: Cheers,
:: Hugo
:: 
:: -Original Message-
:: From: Lerias, Hugo
:: Sent: Mittwoch, 10. März 2004 17:55
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: 
:: Are you trying to use IBM jdk 1.3 on red hat 9?
:: 
:: Hugo
:: 
:: -Original Message-
:: From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
:: Sent: Mittwoch, 10. März 2004 17:42
:: To: [EMAIL PROTECTED]
:: Subject: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: 
:: Hi,
:: 
:: I am installing tomcat on RH9.
:: Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz
:: 
:: The installation works with JDK 1.4
:: 
:: but tomcat does not start when I try to use JDK 1.3.1
:: The browser returns the message Unable to connect to localhost with
:: http://localhost:8080/.
:: 
:: 
:: Any suggestions.
:: 
:: 
:: Asif
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]




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



RE: Java Hosting

2004-03-10 Thread Dale, Matt

I am shortly going to start making use of a Root server from One and One. You get full 
root access to a linux box so should be able to set up tomcat as you please. I've sent 
an email off to them for more details though so I am sure that they can offer that 
service.

www.oneandone.co.uk i think

-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: 10 March 2004 17:20
To: 'Tomcat Users List'
Subject: OT: Java Hosting


Does anyone know of a good hosting company that hosts Java. All the
companies I have talked to seem to have some limitations, either you cannot
set-up your own custom servlet-mappings via web.xml, or the Tomcat version
is old, shared instances of Tomcat that does not allow me the freedom to
stop and start Tomcat as the need arises etc.

Any help in this regard would be much appreciated.

Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.com
 
This message contains information that is considered to be sensitive or
confidential and may not be forwarded or disclosed to any other party
without the permission of the sender. If you received this message in error,
please notify me immediately so that I can correct and delete the original
email. Thank you. 

:: -Original Message-
:: From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, March 10, 2004 7:10 PM
:: To: Tomcat Users List
:: Subject: RE: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: Thank you.
:: 
:: setting the LD_ASSUME_KERNEL=2.2.5 in the user profile works.
:: 
:: 
:: -Original Message-
:: From: Lerias, Hugo [mailto:[EMAIL PROTECTED]
:: Sent: Wednesday, March 10, 2004 11:57 AM
:: To: Lerias, Hugo; Tomcat Users List
:: Subject: RE: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: 
:: Take a look at this post:
:: http://www.linux-sxs.org/programming/ibm-java.html#APPENDIX_A
:: 
:: Cheers,
:: Hugo
:: 
:: -Original Message-
:: From: Lerias, Hugo
:: Sent: Mittwoch, 10. März 2004 17:55
:: To: 'Tomcat Users List'
:: Subject: RE: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: 
:: Are you trying to use IBM jdk 1.3 on red hat 9?
:: 
:: Hugo
:: 
:: -Original Message-
:: From: Asif Chowdhary [mailto:[EMAIL PROTECTED]
:: Sent: Mittwoch, 10. März 2004 17:42
:: To: [EMAIL PROTECTED]
:: Subject: Tomcat on linux : IBM JDK 1.3.1 -
:: 
:: 
:: Hi,
:: 
:: I am installing tomcat on RH9.
:: Tomcat version is 4.1.27 and the file is jakarta-tomcat-4.1.27.tar.gz
:: 
:: The installation works with JDK 1.4
:: 
:: but tomcat does not start when I try to use JDK 1.3.1
:: The browser returns the message Unable to connect to localhost with
:: http://localhost:8080/.
:: 
:: 
:: Any suggestions.
:: 
:: 
:: Asif
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]
:: 
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]




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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

  1   2   >