Re: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Wolfgang Hackl
Sng Wee Jim wrote:
1.	Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.
 

This is what a cluster does. See 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html for 
more information.

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


Re: Can't see hosts after upgrading to 5.5.7

2005-03-08 Thread Digby
Ah! That's brilliant.
Thanks Ole.
Ole Ersoy wrote:
The 5.5 jndi resource has all of the attributes for
the data source in one element, like this:

Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
 
url=jdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid
  username=scott password=tiger
maxActive=20 maxIdle=10
  maxWait=-1/ 

Hope that fixes it.  Good luck,
- Ole  

--- Digby [EMAIL PROTECTED] wrote:
Hi,
I've just installed 5.5.7 and after a few teething
problem (mainly the 
logger and a few old resources), everything starts
okay, the localhost 
page is displaying and there are no problems
reported in the logs.

But... and I'm sure I'm doing something silly... I'm
getting the 
following error when accessing any db driven pages:

Unable to get connection, DataSource invalid: 
org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot create JDBC 
driver of class '' for connect URL 'null'

Now, I have searched the web and the tomcat
newsgroup archives, but it 
all suggests the MySQL driver in the wrong place.
I've put it in 
tomcat/common/lib, the jre/lib/ext, server/lib,
shared/lib, all 
individually and in all combinations, but it just
won't work.

I just copied my 5.0.28 config files over to my
5.5.7 installation, so 
is there something I would need to change that i
haven't read about?

Also, my root context doesn't work at root level
any more. I've tried 
a context path of  and /, but neither work.
Again, has something 
changed in 5.5?

Any help would be welcome.
TIA
Digby
PS I'll post the log files, but I can't get at the
machine at the moment.

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


	
		
__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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


[OT] RE: same port used in both directions?

2005-03-08 Thread Peter Crowther
[Marked as OT because not Tomcat-specific]

 From: Mark Leone [mailto:[EMAIL PROTECTED] 
 I have Tomcat 5.5.7 behind a router/firewall, with port 443 and 8080 
 forwarded through the firewall. I can make connections from 
 outside the 
 firewall to port 8080, but not port 443 (it times out). I can access 
 port 443 on my server if I browse to my server's LAN address or if I 
 browse to my router's WAN address (i.e. loopback mode).

That feels like a firewall config problem - are there any input filters
on the WAN interface that are preventing 443 from ever being accepted
from an external address?  That would give the behaviour you describe.
As for the ISP filtering 443, that would be very unusual.  Can you test
by putting another computer on the outside of the firewall with an
appropriate address?

 My ISP blocks some ports, but not 443. What port is used for 
 the server 
 response to a request made on port 443? Is it also 443 or something 
 else. I'm wondering if my ISP is blocking it.

It's 443.  HTTP and HTTPS are well-behaved protocols, unlike nasty stuff
like FTP in active mode.

- Peter

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



Re: Trying to retrieve the ROOT context in Servlet.

2005-03-08 Thread Lionel Farbos
Hi Jeffrey,

I use Tomcat 5.0.30 and, 
when I use getServletContext().getContext(/toto),
if the Context toto doesn't exist, it returns the root context.

On Mon, 7 Mar 2005 15:32:25 -0600
Jeffrey Lanham [EMAIL PROTECTED] wrote:

 I have been trying for days and tons of google searches and mail archive 
 searches and can't find an answer to the quandry I find
 myself in.
 
 I need to allow users to upload to a directory in the ROOT context of my 
 tomcat server.  For some reason, and it may be a security
 deal, I can't retrieve the server context for / so I can get the actual 
 path to upload the file.  It always comes back null.  I
 know that the Java servlet specifications say the null may be returned if the 
 container, for some reason, doesn't want to return the
 context.  I don't know if it's a tomcat configuration, or if there is some 
 other mechanism to use besides
 getServletContext().getContext(/).  Any help would be appreciated.
 
  
 
 Thanks,
 
 Jeffrey Lanham
 
 Miller Curtain Company
 
  
 
  
 
 

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



org.apache.jasper.JasperException: Could not find ancestor parseTag ???

2005-03-08 Thread Philippe Couas
Hi,



I have folloing error message

org.apache.jasper.JasperException: Could not find ancestor parseTag



Could you explain my error, i don't see if i have forgot a library or

missing an heritag ?
 

cause mère 

javax.servlet.ServletException: Could not find ancestor parseTag

at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:533)

at
org.apache.jsp.v3getT1ClientV_jsp._jspService(v3getT1ClientV_jsp.java:142)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163
)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)

at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)

at java.lang.Thread.run(Thread.java:568)




Thanks

Philippe
 
Philippe COUAS
Responsable Développement
INFODEV S.A.
 


Re: application can not reconnect when database restarts

2005-03-08 Thread James Sys
Hi Bhavesh,

Glad to hear the auto-reconnect worked for you with MySQL.

I've not tried the same with Oracle, so can only suggest you research this 
option.

Still, Deutsche Bank are a large company  must have lots of Oracle experts 
available. I'm sure one of them can point you in the right direction.

Good luck.

Regards,

James.
=


Hi James,

  In mine case I am using jdbc:oracle:thin  driver class
oracle.jdbc.driver.OracleDriver
and going through Tomcat doc I can only guess for reconnecting to datbase
a parameter tag in Context tag can
solve the issue.

parameternamevalidationQuery/namevalueSELECT 1 FROM
DUAL/value/parameter

 But I doubt as from doc it is not clear what exactly this attribute is
used for.

  In my sql giving the autoReconnect=true  in url works. I was just
wondering waht is the similar attribute for
 oracle.jdbc.driver.OracleDriver class. In mine case I am using connection
pool provided by Apache Tomcat
through  org.apache.commons.dbcp.BasicDataSourceFactory

Any ideas...?? it would really give me a boost to ahead...

Thank you,
Bhavesh Kumar
Deutsche Bank - FX IT Managed Services Group
Tel: +44 (0)20754 53292 (W)


FX Options Support Information
For support please follow this link: Global FX Options Website






James Sys [EMAIL PROTECTED]
07/03/2005 16:49
Please respond to Tomcat Users List

To: Tomcat Users List tomcat-user@jakarta.apache.org
cc:
Subject:Re: application can not reconnect when database
restarts



Hi,

I'm using Apache 4.1.30 with MySQL and find that connections are
 re-established.

I suspect it's worth looking at the options for your Oracle database
 connection url.

For example, with MySQL we can specify:

parameter
  nameurl/name

 valuejdbc:mysql://localhost:3306/MyDatabase?autoReconnect=true/value
 /parameter

...which seems to do the trick for us.

Regards.

James.
=

Hi,
  I am using Apache Tomcat/4.1.27.

Problem: when datbase restarts connection is not established.

Connection pool is done by Tomcat using DBCP.

Context congiguration under server.xml file  is as


Context path=/MyWebApp docBase=MyWebApp debug=0 reloadable=true 
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_MyWebApp_log. suffix=.txt timestamp=true/

Resource name=jdbc/rmsDataSource type=javax.sql.DataSource
auth=Container description=Database resource for MyWebApp /
ResourceParams name=jdbc/rmsDataSource

parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSource
Factory/value/parameter parameter  name maxActive/namevalue

 20/value /parameter

parameter  name maxIdle/namevalue 25/value /parameter
parameter  name maxWait/namevalue 10/value /parameter
parameter nameremoveAbandoned/name valuetrue/value /parameter
parameter nameremoveAbandonedTimeout/name value1/value
/parameter
parameter namelogAbandoned/name valuetrue/value /parameter
parameternameusername/namevaluetest_app/value/parameter
parameternamepassword/namevaluetest_app/value/parameter
parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver
/value/parameter

parameternameurl/namevaluejdbc:oracle:thin:@test.com:1521:testDB/va
lue/parameter /ResourceParams
/Context


web.xml this is configured as

?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
display-nameWelcome to Tomcat/display-name
descriptionWelcome to Tomcat/description
welcome-file-list
welcome-file/jsp/login.jsp/welcome-file
/welcome-file-list
resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/rmsDataSource/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

Is there any tag which takes care that application is automatically
connected whenever datbase goes up.

It would be really  great if there is some feedback on this problem.

Any ideas ? ?




Thank you,
Bhavesh Kumar



-
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]



load-balancing

2005-03-08 Thread Sng Wee Jim

Hi,

I am load-balancing tomcat 5.0.28 using JK1.2/AJP1.3.

I noticed the loadbalancer virtual JK worker redirect requests to the tomcat 
instances in a round-robin fashion, without taking into account which tomcat
has a higher number of active sessions.
For eg.

   TomcatATomcatB
   ---  ---
session1 comes in:   1 session
session2  1 session1 session
session3  2 sessions  1 session
session4  2 sessions  2 sessions

Round-robin, so next session will be handled by TomcatA.


Now if the users log out session 2 and 4,

  TomcatATomcatB
  ---  ---
we have:  2 sessions   0 session   

session5 comes:  3 sessions   0 session   


My question is, is it possible for the loadbalancer worker to detect that after 
session 2 and 4 are invalidated, that tomcatB has lesser number of active 
sessions and that the next session should be handled by tomcatB?


- Jim




The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/



Re: Being lost in the mailing list

2005-03-08 Thread Justin Crabtree
Klaus-F. Kaal wrote:
Hi Doug,
sorry, that I had to shout out, but I can see that every specialist gets 
tons of eMails every day. And if he or she does not answer straight away 
to some mails, the others will be dumped in a bin and ... lost.
And nobody answered by mails since days...

Thanks for your reply.
I have aquired a dedicated server with Suse 9.1 preconfigured. It came 
with Apache 2.0.48, which is working well. I installed

- JDK 1.4
- Tomcat 5.0.28
- The latest binary package from mod_JK2
Apache and Tomcat are working well individually. The logs are showing, 
that Tomcat accepts mod_JK2 well and is prepared to communicate on port 
8009. It also creates the /conf/auto/mod_jk.conf, which I show later in 
this text. Apache is not showing anything in the log. It just states 
that it did not find the document in its normal public_html space, when 
I try to call a JSP page.  But, I havn't modified the log-level (by the 
way, where can I do that??).

There are soo many how-to's which are all doing different things. I 
tried to find the essence from several. I must say at this point: I hate 
to compile packages when I can use binaries. So, I did not follow 
how-to's which asked me to do that.

All other infos are given below.
Can you do something with this info? Thanks for any help or hint!
Klaus


- My previous questions

- Apache still seems to ignore my mod_jk.
_In my Tomcat log, I can see:_
INFO: JK2: ajp13 listening on /0.0.0.0:8009
06.03.2005 00:54:10 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=5/43  config=/usr/tomcat/conf/jk2.properties
_I included my automatically created mod_jk.conf into the httpd.conf:_
Include /usr/tomcat/conf/auto/mod_jk.conf
This mod_jk.conf looks like this:
IfModule !mod_jk.c
 LoadModule jk_module /usr/lib/apache2-prefork/mod_jk.so
/IfModule
JkWorkersFile /etc/apache2/workers2.properties
JkLogFile /usr/tomcat/logs/mod_jk.log
JkLogLevel emerg
_The workers2.properties is here:_
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/jsp-examples/*]
worker=ajp13.localhost:8009
[uri:www.technologyserver.com/*.jsp]
worker=ajp13:localhost:8009

At first glance, I don't see any JkMount directives.  You have to 
explicitly define what should be passed to the mod_jk worker with a 
JkMount.

I would ask why you have chosen mod_jk2?  It is no longer being 
developed by Apache.  I would recommend using mod_jk.  There is an 
excellent tutorial on configuration for Apache on Apache's website.

http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html
--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


Re: org.apache.jasper.JasperException: Could not find ancestor parseTag ???

2005-03-08 Thread Rahul Akolkar
Would help if you posted appropriate snippet from v3getT1ClientV.jsp as well.
-Rahul

On Tue, 8 Mar 2005 11:07:04 +0100, Philippe Couas [EMAIL PROTECTED] wrote:
 Hi,
 
 I have folloing error message
 
 org.apache.jasper.JasperException: Could not find ancestor parseTag
 
snip

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



Re: [OT] RE: same port used in both directions?

2005-03-08 Thread Mark Leone
It's a very simple firewall, integrated with a wireless router. I 
specify which inbound ports to allow through and which LAN address they 
go to. I'm allowing all port 443 traffic. No filters provided for 
outbound, so I assume they're all open.

I run ZoneAlarm sw firewall, which I have configured to allow client 
connections to Tomcat server. And port 8080 is getting through, and my 
version of ZoneAlarm filters only on IP address, not the full socket. 
However, your comments remind me that I have another sw firewall as part 
of my corporate VPN client. It's a squirly one, and I'll bet it's 
causing the problem. I'll disable it and try the HTTPS session again.

I have to go to work to test it, and hopefully my wife won't shut down 
my computer while I'm at work as she did yesterday. :)

Thanks for your suggestion.
Peter Crowther wrote:
[Marked as OT because not Tomcat-specific]
 

From: Mark Leone [mailto:[EMAIL PROTECTED] 
I have Tomcat 5.5.7 behind a router/firewall, with port 443 and 8080 
forwarded through the firewall. I can make connections from 
outside the 
firewall to port 8080, but not port 443 (it times out). I can access 
port 443 on my server if I browse to my server's LAN address or if I 
browse to my router's WAN address (i.e. loopback mode).
   

That feels like a firewall config problem - are there any input filters
on the WAN interface that are preventing 443 from ever being accepted
from an external address?  That would give the behaviour you describe.
As for the ISP filtering 443, that would be very unusual.  Can you test
by putting another computer on the outside of the firewall with an
appropriate address?
 

My ISP blocks some ports, but not 443. What port is used for 
the server 
response to a request made on port 443? Is it also 443 or something 
else. I'm wondering if my ISP is blocking it.
   

It's 443.  HTTP and HTTPS are well-behaved protocols, unlike nasty stuff
like FTP in active mode.
- Peter
-
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]


getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
Greetings,
I am trying to follow some of the examples and got some more questions 
and problems.

I think the main problem is that I haven't found the import for the 
Context class.  Should
this a class in common/lib to get the connection?

thanks
%@ page
   import = java.io.*
   import = java.lang.*
   import = java.sql.*
%
%
   //Context ctx = null;
   javax.sql.DataSource rofDS = null;
   try
   {
//  ctx = new InitialContext();
   //rofDS = (javax.sql.DataSource)ctx.lookup(rofDB);
   }
   catch (Exception ne)
 {
 ne.printStackTrace();
 }
%
--
Darryl Wagoner - WA1GON
Evil triumphs when good men do nothing.  - Edmund Burke [1729-1797]
Join the TrustedQSL mailing list.  An Open Source solution.
Post message: [EMAIL PROTECTED] Subscribe:  [EMAIL PROTECTED] List owner:  
[EMAIL PROTECTED] http://www.trustedQSL.org

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


Re: [OT] RE: same port used in both directions?

2005-03-08 Thread Parsons Technical Services
Three more things:
You did set Tomcat to listen on 443 and not 8443?
Turn off you monitor and unless it's noisy she may not notice it's on.
If you are on a personal Cox account at home, there is a good chance that 
Cox has 443 blocked as well as 80. Unless you have a static IP with Cox they 
do not allow hosting and often filter the inbound traffic. Move it to port 
8443 and try it.

Doug
- Original Message - 
From: Mark Leone [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, March 08, 2005 9:25 AM
Subject: Re: [OT] RE: same port used in both directions?


It's a very simple firewall, integrated with a wireless router. I specify 
which inbound ports to allow through and which LAN address they go to. I'm 
allowing all port 443 traffic. No filters provided for outbound, so I 
assume they're all open.

I run ZoneAlarm sw firewall, which I have configured to allow client 
connections to Tomcat server. And port 8080 is getting through, and my 
version of ZoneAlarm filters only on IP address, not the full socket. 
However, your comments remind me that I have another sw firewall as part 
of my corporate VPN client. It's a squirly one, and I'll bet it's causing 
the problem. I'll disable it and try the HTTPS session again.

I have to go to work to test it, and hopefully my wife won't shut down my 
computer while I'm at work as she did yesterday. :)

Thanks for your suggestion.
Peter Crowther wrote:
[Marked as OT because not Tomcat-specific]

From: Mark Leone [mailto:[EMAIL PROTECTED] I have Tomcat 5.5.7 behind 
a router/firewall, with port 443 and 8080 forwarded through the firewall. 
I can make connections from outside the firewall to port 8080, but not 
port 443 (it times out). I can access port 443 on my server if I browse 
to my server's LAN address or if I browse to my router's WAN address 
(i.e. loopback mode).

That feels like a firewall config problem - are there any input filters
on the WAN interface that are preventing 443 from ever being accepted
from an external address?  That would give the behaviour you describe.
As for the ISP filtering 443, that would be very unusual.  Can you test
by putting another computer on the outside of the firewall with an
appropriate address?

My ISP blocks some ports, but not 443. What port is used for the server 
response to a request made on port 443? Is it also 443 or something else. 
I'm wondering if my ISP is blocking it.

It's 443.  HTTP and HTTPS are well-behaved protocols, unlike nasty stuff
like FTP in active mode.
- Peter
-
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: getting datasource in a JSP?

2005-03-08 Thread Rahul Akolkar
javax.naming.Context

On Tue, 08 Mar 2005 09:32:19 -0500, Darryl Wagoner
[EMAIL PROTECTED] wrote:

snip
 I think the main problem is that I haven't found the import for the
 Context class.
snap

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



RE: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Randall Svancara
You need to implement either in memory session replication or persist
the session in a database or a shared file system.  

I have finally got my tomcat cluster working and session replication is
functional. 

Randall 

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat load-balancing maintenance strategy?


Hi,




I am load-balancing tomcat 5.0.28 using JK1.2 / AJP1.3.




For discussion, let's assume I have 2 tomcats (TomcatA and TomcatB)
load-balanced. When I shutdown one of the tomcats (Tomcat B), future
requests for TomcatB is correctly redirected and handled by the TomcatA.
However, the original session on TomcatB is not passed over to TomcatA,
and a re-login is required.




My question:


1.  Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.










- Jim








The information in this email is confidential and is intended solely for
the addressee(s).
Access to this email by anyone else is unauthorized. If you are not an
intended recipient, please notify the sender of this email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Capco.

http://www.capco.com/



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



RE: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Ramu, Vinod
I thought 

/distributable 

XML element in web.xml does that automatically.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 9:40 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?


You need to implement either in memory session replication or persist
the session in a database or a shared file system.  

I have finally got my tomcat cluster working and session replication is
functional. 

Randall 

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat load-balancing maintenance strategy?


Hi,




I am load-balancing tomcat 5.0.28 using JK1.2 / AJP1.3.




For discussion, let's assume I have 2 tomcats (TomcatA and TomcatB)
load-balanced. When I shutdown one of the tomcats (Tomcat B), future
requests for TomcatB is correctly redirected and handled by the TomcatA.
However, the original session on TomcatB is not passed over to TomcatA,
and a re-login is required.




My question:


1.  Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.










- Jim








The information in this email is confidential and is intended solely for
the addressee(s). Access to this email by anyone else is unauthorized.
If you are not an intended recipient, please notify the sender of this
email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Capco.

http://www.capco.com/



-
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: Trying to retrieve the ROOT context in Servlet.

2005-03-08 Thread Jeffrey Lanham
So, hitting an invalid context gets you the root context?  Isn't that a little 
insecure?

Jeff

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 3:49 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Trying to retrieve the ROOT context in Servlet.

Hi Jeffrey,

I use Tomcat 5.0.30 and, 
when I use getServletContext().getContext(/toto),
if the Context toto doesn't exist, it returns the root context.

On Mon, 7 Mar 2005 15:32:25 -0600
Jeffrey Lanham [EMAIL PROTECTED] wrote:

 I have been trying for days and tons of google searches and mail archive 
 searches and can't find an answer to the quandry I find
 myself in.
 
 I need to allow users to upload to a directory in the ROOT context of my 
 tomcat server.  For some reason, and it may be a security
 deal, I can't retrieve the server context for / so I can get the actual 
 path to upload the file.  It always comes back null.  I
 know that the Java servlet specifications say the null may be returned if the 
 container, for some reason, doesn't want to return
the
 context.  I don't know if it's a tomcat configuration, or if there is some 
 other mechanism to use besides
 getServletContext().getContext(/).  Any help would be appreciated.
 
  
 
 Thanks,
 
 Jeffrey Lanham
 
 Miller Curtain Company
 
  
 
  
 
 

-

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: Date parsing

2005-03-08 Thread George Sexton
I wrote my own date handling class, and it will do what you are looking for:

Essentially, to provide a picture for the users you pass in the locale to
SaneDate.getDateFormat().

To parse the date, 

try {
new SaneDate(request.getParameter(parm),lc);
} catch (InvalidDateException ide) {
}


http://www.mhsoftware.com/resources/jar/doc/com/MHSoftware/dates/SaneDate.ht
ml

You can download it from:

http://www.mhsoftware.com/bin/MHS.zip


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 07, 2005 11:17 AM
 To: Tomcat Users List
 Subject: Date parsing
 
 I have an object with a TimeStamp member.  This will be populated by
 users of a website and entered into a database.
  
 My problem is, I would like to allow the users to enter the date in a
 number of formats.  Does anyone have any recommendations aside from
 multiple try catch blocks each trying to parse the given date with a
 different expected format?
  
 Thanks you for any help,
 Charles Killmer
  
 


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



JNDI LDAP Resource

2005-03-08 Thread Justin Crabtree
I am trying to setup a JNDI Resource in my server.xml for a SSL 
connection to a LDAP server.  I have setup and used JDBC resources, but 
I have been unable to find any examples on setting up a LDAP connection.

Is this even possible?  If so, anyone have some good examples of how to 
set it up?  If not, any suggestions on how to get the connection stuff 
out of the Java code and into some sort of config file?

Thanks in advance for any help.
--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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


How to access web site from other computers

2005-03-08 Thread U K Laxmi
I've a web application developed using apache and
tomcat on windows 2000 machine. I can access the
application locally. ie. using
http://localhost/web/JSP/login.html and also using
machine name ie. http://dummy/web/JSP/login.html. My
computer is in network. But i'm unable access my web
application from other computers. What should i do to
make my web application available on other machines as
well? Any other s/w i need? Pls suggest.




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Re:[OT] How to access web site from other computers

2005-03-08 Thread Parsons Technical Services
First: Do you have any firewall software running on your machine?
Second: Can other machines on the network see your machine? Such as in 
Network Neighborhood.

Third: Use your IP in the URL. http://172.16.1.37/web/JSP/login.html Of 
course substituting in your IP.

Doug
- Original Message - 
From: U K Laxmi [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, March 08, 2005 11:12 AM
Subject: How to access web site from other computers


I've a web application developed using apache and
tomcat on windows 2000 machine. I can access the
application locally. ie. using
http://localhost/web/JSP/login.html and also using
machine name ie. http://dummy/web/JSP/login.html. My
computer is in network. But i'm unable access my web
application from other computers. What should i do to
make my web application available on other machines as
well? Any other s/w i need? Pls suggest.

__
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
-
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: How to access web site from other computers

2005-03-08 Thread Ramu, Vinod
The IP allocated to your machine must be STATIC. 

If you built a internet site then ask your internet service provider to
allocate a static IP to your machine. 
Otherwise, if you have built a intranet site talk to your system
administrator, probably he will find a domain controller.

-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 11:13 AM
To: Tomcat Users List
Subject: How to access web site from other computers


I've a web application developed using apache and
tomcat on windows 2000 machine. I can access the
application locally. ie. using http://localhost/web/JSP/login.html and
also using machine name ie. http://dummy/web/JSP/login.html. My computer
is in network. But i'm unable access my web application from other
computers. What should i do to make my web application available on
other machines as well? Any other s/w i need? Pls suggest.




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-
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 5 java.lang.outOfMemory

2005-03-08 Thread Francesco Pellegrini
Hi all,

I have an environment with Tomcat 5.0.19 and java 1.4.02, on windows 2000
server platform.

Tomcat 5 was installed with Services.

I have changed in catalina.bat :

set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k


Usually the sistem works fine, but  when I try to find a lot of data  (in
the database) using jsp, i got this error:


javax.servlet.ServletException

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:867)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:800)

org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(visconsumi_jsp
.java:810)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
advanceFrancesco.



Re: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Christoph Kutzinski
Solution a: Increase the heap memory further
Solution b: Decrease the memory usage of your application
Francesco Pellegrini wrote:
Hi all,
I have an environment with Tomcat 5.0.19 and java 1.4.02, on windows 2000
server platform.
Tomcat 5 was installed with Services.
I have changed in catalina.bat :
set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k
Usually the sistem works fine, but  when I try to find a lot of data  (in
the database) using jsp, i got this error:
javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:800)
org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(visconsumi_jsp
.java:810)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
advanceFrancesco.
 


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


RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Allistair Crossley
Hi,

The answer is not always to throw more memory at your application.

The best answer is to test whether you actually need more memory or whether you 
are leaking it somehow. 

So find a profiler, get it to talk to Tomcat, and then run your JSP and watch 
the method call tree, heap monitor and hot spots etc... You will need to grab 
something like JProfiler, JProbe or others ... they usually know how to connect 
to Tomcat 5 for you, it's not too hard.

Also, you may want to upgrade your Tomcat I think 5.0.19 had an issue anyway 
with memory, and finally you'll want to ensure when dealing with database 
connectivity that you are freeing up resources like result sets and so on with 
close() calls (depending on what you are doing).

Allistair.

 -Original Message-
 From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
 Sent: 08 March 2005 16:39
 To: Tomcat-User-ML
 Subject: Tomcat 5 java.lang.outOfMemory
 
 
 Hi all,
 
 I have an environment with Tomcat 5.0.19 and java 1.4.02, on 
 windows 2000
 server platform.
 
 Tomcat 5 was installed with Services.
 
 I have changed in catalina.bat :
 
 set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k
 
 
 Usually the sistem works fine, but  when I try to find a lot 
 of data  (in
 the database) using jsp, i got this error:
 
 
 javax.servlet.ServletException
 
 org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
 n(PageContextI
 mpl.java:867)
 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImp
 l.java:800)
 
 org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(
 visconsumi_jsp
 .java:810)
   
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:3
 11)
   
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:301)
   
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
 root cause
 
 java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
 advanceFrancesco.
 
 


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]



R: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Francesco Pellegrini
Thanks for your answers,

I want to upgrade Tomcat, but wich version can I use?

Thanks.

-Messaggio originale-
Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
Inviato: martedì 8 marzo 2005 17.46
A: Tomcat Users List
Oggetto: RE: Tomcat 5 java.lang.outOfMemory


Hi,

The answer is not always to throw more memory at your application.

The best answer is to test whether you actually need more memory or whether
you are leaking it somehow.

So find a profiler, get it to talk to Tomcat, and then run your JSP and
watch the method call tree, heap monitor and hot spots etc... You will need
to grab something like JProfiler, JProbe or others ... they usually know how
to connect to Tomcat 5 for you, it's not too hard.

Also, you may want to upgrade your Tomcat I think 5.0.19 had an issue anyway
with memory, and finally you'll want to ensure when dealing with database
connectivity that you are freeing up resources like result sets and so on
with close() calls (depending on what you are doing).

Allistair.

 -Original Message-
 From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
 Sent: 08 March 2005 16:39
 To: Tomcat-User-ML
 Subject: Tomcat 5 java.lang.outOfMemory


 Hi all,

 I have an environment with Tomcat 5.0.19 and java 1.4.02, on
 windows 2000
 server platform.

 Tomcat 5 was installed with Services.

 I have changed in catalina.bat :

 set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k


 Usually the sistem works fine, but  when I try to find a lot
 of data  (in
 the database) using jsp, i got this error:


 javax.servlet.ServletException

 org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
 n(PageContextI
 mpl.java:867)

 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImp
 l.java:800)

 org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(
 visconsumi_jsp
 .java:810)

 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
 Wrapper.java:3
 11)

 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:301)

 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

 root cause

 java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
 advanceFrancesco.




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]



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



RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Allistair Crossley
Hi,

The latest and greatest of course. Be warned that upgrading to Tomcat 5.5 
series however comes with some additional work like Java 5.0, slight variance 
in how to configure data sources, logging and so on, so you may want to go with 
5.0.28 or 30 for now.

Allistair.

 -Original Message-
 From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
 Sent: 08 March 2005 16:49
 To: Tomcat Users List
 Subject: R: Tomcat 5 java.lang.outOfMemory
 
 
 Thanks for your answers,
 
 I want to upgrade Tomcat, but wich version can I use?
 
 Thanks.
 
 -Messaggio originale-
 Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Inviato: martedì 8 marzo 2005 17.46
 A: Tomcat Users List
 Oggetto: RE: Tomcat 5 java.lang.outOfMemory
 
 
 Hi,
 
 The answer is not always to throw more memory at your application.
 
 The best answer is to test whether you actually need more 
 memory or whether
 you are leaking it somehow.
 
 So find a profiler, get it to talk to Tomcat, and then run 
 your JSP and
 watch the method call tree, heap monitor and hot spots etc... 
 You will need
 to grab something like JProfiler, JProbe or others ... they 
 usually know how
 to connect to Tomcat 5 for you, it's not too hard.
 
 Also, you may want to upgrade your Tomcat I think 5.0.19 had 
 an issue anyway
 with memory, and finally you'll want to ensure when dealing 
 with database
 connectivity that you are freeing up resources like result 
 sets and so on
 with close() calls (depending on what you are doing).
 
 Allistair.
 
  -Original Message-
  From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
  Sent: 08 March 2005 16:39
  To: Tomcat-User-ML
  Subject: Tomcat 5 java.lang.outOfMemory
 
 
  Hi all,
 
  I have an environment with Tomcat 5.0.19 and java 1.4.02, on
  windows 2000
  server platform.
 
  Tomcat 5 was installed with Services.
 
  I have changed in catalina.bat :
 
  set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k
 
 
  Usually the sistem works fine, but  when I try to find a lot
  of data  (in
  the database) using jsp, i got this error:
 
 
  javax.servlet.ServletException
 
  org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
  n(PageContextI
  mpl.java:867)
 
  org.apache.jasper.runtime.PageContextImpl.handlePageException(
  PageContextImp
  l.java:800)
 
  org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(
  visconsumi_jsp
  .java:810)
 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
  org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
  Wrapper.java:3
  11)
 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
  .java:301)
 
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
  root cause
 
  java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
  advanceFrancesco.
 
 
 
 
 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]
 
 
 
 -
 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 load-balancing maintenance strategy?

2005-03-08 Thread Randall Svancara
Yeah, but you still need to uncomment the cluster element in the
server.xml.  Also if you have a multi-homed server you need to bind
multicast to a specific ip address.  Not to mention that you need to set
up mod_jk and apache to load balance.  It is not just adding a trivial
/distributable xml element into the  web.xml that makes load balancing
with session replication work.  

Anyway, just my thoughts on the matter

Randall

-Original Message-
From: Ramu, Vinod [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 8:03 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?

I thought 

/distributable 

XML element in web.xml does that automatically.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 9:40 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?


You need to implement either in memory session replication or persist
the session in a database or a shared file system.  

I have finally got my tomcat cluster working and session replication is
functional. 

Randall 

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat load-balancing maintenance strategy?


Hi,




I am load-balancing tomcat 5.0.28 using JK1.2 / AJP1.3.




For discussion, let's assume I have 2 tomcats (TomcatA and TomcatB)
load-balanced. When I shutdown one of the tomcats (Tomcat B), future
requests for TomcatB is correctly redirected and handled by the TomcatA.
However, the original session on TomcatB is not passed over to TomcatA,
and a re-login is required.




My question:


1.  Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.










- Jim








The information in this email is confidential and is intended solely for
the addressee(s). Access to this email by anyone else is unauthorized.
If you are not an intended recipient, please notify the sender of this
email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Capco.

http://www.capco.com/



-
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: Date parsing

2005-03-08 Thread Charles P. Killmer
This has a bunch of useful methods in it.  Thank you.

However what I am looking for is some class that can handle a date/time
string in many different formats and return a date/time object back to
me.  I tried your code with 3/1/2005 and it worked fine.  3-1-2005 did
not.  This probably means that locale change is required.  Also I tried
3/1/2005 11:45 am, and that failed as well.  I am assuming this code was
not meant to handle time as well as the date portion.

Am I using your code incorrectly, or should I be looking at some other
code?

Thank You
Charles 

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 9:39 AM
To: 'Tomcat Users List'
Subject: RE: Date parsing

I wrote my own date handling class, and it will do what you are looking
for:

Essentially, to provide a picture for the users you pass in the locale
to SaneDate.getDateFormat().

To parse the date, 

try {
new SaneDate(request.getParameter(parm),lc);
} catch (InvalidDateException ide) {
}


http://www.mhsoftware.com/resources/jar/doc/com/MHSoftware/dates/SaneDat
e.ht
ml

You can download it from:

http://www.mhsoftware.com/bin/MHS.zip


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 07, 2005 11:17 AM
 To: Tomcat Users List
 Subject: Date parsing
 
 I have an object with a TimeStamp member.  This will be populated by 
 users of a website and entered into a database.
  
 My problem is, I would like to allow the users to enter the date in a 
 number of formats.  Does anyone have any recommendations aside from 
 multiple try catch blocks each trying to parse the given date with a 
 different expected format?
  
 Thanks you for any help,
 Charles Killmer
  
 


-
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: R: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Jon Wingfield
Tomcat doesn't pick up CATALINA_OPTS when run as a service.
The arguments for the service are held in the registry.
More details here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/windows-service-howto.html
and in the archives of this list.
HTH,
Jon
PS: you should still profile your app, though ;)
Francesco Pellegrini wrote:
Thanks for your answers,
I want to upgrade Tomcat, but wich version can I use?
Thanks.
-Messaggio originale-
Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
Inviato: martedì 8 marzo 2005 17.46
A: Tomcat Users List
Oggetto: RE: Tomcat 5 java.lang.outOfMemory
Hi,
The answer is not always to throw more memory at your application.
The best answer is to test whether you actually need more memory or whether
you are leaking it somehow.
So find a profiler, get it to talk to Tomcat, and then run your JSP and
watch the method call tree, heap monitor and hot spots etc... You will need
to grab something like JProfiler, JProbe or others ... they usually know how
to connect to Tomcat 5 for you, it's not too hard.
Also, you may want to upgrade your Tomcat I think 5.0.19 had an issue anyway
with memory, and finally you'll want to ensure when dealing with database
connectivity that you are freeing up resources like result sets and so on
with close() calls (depending on what you are doing).
Allistair.

-Original Message-
From: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
Sent: 08 March 2005 16:39
To: Tomcat-User-ML
Subject: Tomcat 5 java.lang.outOfMemory
Hi all,
I have an environment with Tomcat 5.0.19 and java 1.4.02, on
windows 2000
server platform.
Tomcat 5 was installed with Services.
I have changed in catalina.bat :
set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k
Usually the sistem works fine, but  when I try to find a lot
of data  (in
the database) using jsp, i got this error:
javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageExceptio
n(PageContextI
mpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImp
l.java:800)
org.apache.jsp.pannelli.telematica.visconsumi_jsp._jspService(
visconsumi_jsp
.java:810)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
Wrapper.java:3
11)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause
java.lang.OutOfMemoryErrorHow can I solve this issue?Thanks in
advanceFrancesco.

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


RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Caldarale, Charles R
 Francesco Pellegrini wrote:
 
 Tomcat 5 was installed with Services.

 I have changed in catalina.bat :
 set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k

If you're running Tomcat as a Windows service, I don't think the environment 
variables have any effect.  Instead, there are registry settings you can 
adjust.  On my XP system, I have to update JavaOptions under the key:
HKLM\SOFTWARE\Apache Software Foundation\Tomcat Service 
Manager\Tomcat5\Parameters

I would presume the same registry key is used for Win2K.

You might want to consider running Tomcat from the command line until you're 
satisfied with the results, and then switch to running it as a service.  It's 
easier (and safer) to change .bat file settings then the registry.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



RE: Tomcat 5 java.lang.outOfMemory

2005-03-08 Thread Allistair Crossley
The registry settings are only available when you use the Windows installer to 
install Tomcat though.

I think you can modify the service.bat if you manually install the Tomcat 
service manually. We change this line :

%EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions 
-Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 128 --JvmMx 256

As you can see, the --JvmMs 128 --JvmMx 256 options can be set. 

Allistair.

 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: 08 March 2005 17:19
 To: Tomcat Users List
 Subject: RE: Tomcat 5 java.lang.outOfMemory
 
 
  Francesco Pellegrini wrote:
  
  Tomcat 5 was installed with Services.
 
  I have changed in catalina.bat :
  set CATALINA_OPTS= -server -Xmx1200m  -Xms1200m -Xss256k
 
 If you're running Tomcat as a Windows service, I don't think 
 the environment variables have any effect.  Instead, there 
 are registry settings you can adjust.  On my XP system, I 
 have to update JavaOptions under the key:
   HKLM\SOFTWARE\Apache Software Foundation\Tomcat Service 
 Manager\Tomcat5\Parameters
 
 I would presume the same registry key is used for Win2K.
 
 You might want to consider running Tomcat from the command 
 line until you're satisfied with the results, and then switch 
 to running it as a service.  It's easier (and safer) to 
 change .bat file settings then the registry.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
 PROPRIETARY MATERIAL and is thus for use only by the intended 
 recipient. If you received this in error, please contact the 
 sender and delete the e-mail and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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: How to access web site from other computers

2005-03-08 Thread jtsbaker
An answer to this question would require a little more information.

When you say My computer is in network is the network you are refering
to a local area network or is the window machine connected directly to the
internet through a broadband connection or a dial up connection?

Send a response to this question and then I can go on to the next question.

 -Original Message-
 From: U K Laxmi [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 08, 2005 11:13 AM
 To: Tomcat Users List
 Subject: How to access web site from other computers


 I've a web application developed using apache and
 tomcat on windows 2000 machine. I can access the
 application locally. ie. using http://localhost/web/JSP/login.html and
 also using machine name ie. http://dummy/web/JSP/login.html. My computer
 is in network. But i'm unable access my web application from other
 computers. What should i do to make my web application available on
 other machines as well? Any other s/w i need? Pls suggest.




 __
 Celebrate Yahoo!'s 10th Birthday!
 Yahoo! Netrospective: 100 Moments of the Web
 http://birthday.yahoo.com/netrospective/

 -
 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: Date parsing

2005-03-08 Thread George Sexton
Well because of the ambiguities you have to have some expectation of what
format the date will be in.

What date is 05/12/2005? In the US its May 12th. In Britain it's December
5th. You have to have some expectation and validate against it. 

The software is designed to use a Locale as an aid to parsing to set up the
expectation. In our software, we use the browser's accept-language to
retreive a locale.

The class as designed doesn't handle times. It's strictly a date class. Im
thinking about writing a date/time class, but haven't yet.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 08, 2005 10:16 AM
 To: Tomcat Users List
 Subject: RE: Date parsing
 
 This has a bunch of useful methods in it.  Thank you.
 
 However what I am looking for is some class that can handle a 
 date/time
 string in many different formats and return a date/time object back to
 me.  I tried your code with 3/1/2005 and it worked fine.  3-1-2005 did
 not.  This probably means that locale change is required.  
 Also I tried
 3/1/2005 11:45 am, and that failed as well.  I am assuming 
 this code was
 not meant to handle time as well as the date portion.
 
 Am I using your code incorrectly, or should I be looking at some other
 code?
 
 Thank You
 Charles 
 
 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 08, 2005 9:39 AM
 To: 'Tomcat Users List'
 Subject: RE: Date parsing
 
 I wrote my own date handling class, and it will do what you 
 are looking
 for:
 
 Essentially, to provide a picture for the users you pass in the locale
 to SaneDate.getDateFormat().
 
 To parse the date, 
 
 try {
 new SaneDate(request.getParameter(parm),lc);
 } catch (InvalidDateException ide) {
 }
 
 
 http://www.mhsoftware.com/resources/jar/doc/com/MHSoftware/dat
 es/SaneDat
 e.ht
 ml
 
 You can download it from:
 
 http://www.mhsoftware.com/bin/MHS.zip
 
 
 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585
   
 
  -Original Message-
  From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 07, 2005 11:17 AM
  To: Tomcat Users List
  Subject: Date parsing
  
  I have an object with a TimeStamp member.  This will be 
 populated by 
  users of a website and entered into a database.
   
  My problem is, I would like to allow the users to enter the 
 date in a 
  number of formats.  Does anyone have any recommendations aside from 
  multiple try catch blocks each trying to parse the given 
 date with a 
  different expected format?
   
  Thanks you for any help,
  Charles Killmer
   
  
 
 
 -
 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: How to access web site from other computers

2005-03-08 Thread U K Laxmi
The machine is connected to internet thro' broadband
connection.

--- [EMAIL PROTECTED] wrote:
 An answer to this question would require a little
 more information.
 
 When you say My computer is in network is the
 network you are refering
 to a local area network or is the window machine
 connected directly to the
 internet through a broadband connection or a dial up
 connection?
 
 Send a response to this question and then I can go
 on to the next question.
 
  -Original Message-
  From: U K Laxmi [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 08, 2005 11:13 AM
  To: Tomcat Users List
  Subject: How to access web site from other
 computers
 
 
  I've a web application developed using apache and
  tomcat on windows 2000 machine. I can access the
  application locally. ie. using
 http://localhost/web/JSP/login.html and
  also using machine name ie.
 http://dummy/web/JSP/login.html. My computer
  is in network. But i'm unable access my web
 application from other
  computers. What should i do to make my web
 application available on
  other machines as well? Any other s/w i need? Pls
 suggest.
 
 
 
 
  __
  Celebrate Yahoo!'s 10th Birthday!
  Yahoo! Netrospective: 100 Moments of the Web
  http://birthday.yahoo.com/netrospective/
 
 

-
  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]
 
 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



RE: How to access web site from other computers

2005-03-08 Thread Mark Benussi
Not wishing to be fussy but you don't have to have a static IP. You can have
a dynamic IP and there are various companies that will manage this for free
https://www.dyndns.org/

Some routers like my UK BT ADSL modem come with functionality that notifies
dyndns as soon as the dynamic IP changes.

-Original Message-
From: Ramu, Vinod [mailto:[EMAIL PROTECTED] 
Sent: 08 March 2005 16:32
To: Tomcat Users List
Subject: RE: How to access web site from other computers

The IP allocated to your machine must be STATIC. 

If you built a internet site then ask your internet service provider to
allocate a static IP to your machine. 
Otherwise, if you have built a intranet site talk to your system
administrator, probably he will find a domain controller.

-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 11:13 AM
To: Tomcat Users List
Subject: How to access web site from other computers


I've a web application developed using apache and
tomcat on windows 2000 machine. I can access the
application locally. ie. using http://localhost/web/JSP/login.html and
also using machine name ie. http://dummy/web/JSP/login.html. My computer
is in network. But i'm unable access my web application from other
computers. What should i do to make my web application available on
other machines as well? Any other s/w i need? Pls suggest.




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-
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]



tomcat jsp taglib/compilation/cache issue

2005-03-08 Thread Sacha Stanton
Hi,
I have a tomcat taglib problem. If it's not something obvious, I would 
appreciate if anyone could give me a hand fixing it - hopefully I am not 
out of line on this newsgroup, but the server is in production and I am 
all out of ideas so I am happy to negotatiate a rate if it takes some 
time to solve.

Here's an outline of the problem:
1) Tomcat/apache setup with a JSP form
2) custom taglib that handles form submissions
3) upon submit and correct field validation, the user is sent to a 
different page. Otherwise the same page comes back with error messages.

This was all working on the old server, so either the new version of 
tomcat is a problem, or the setup is somehow wrong. I have the info from 
the previous setup.

Here's the problem:
Once the jsp page is edited or touched, and tomcat compiles the page, 
the following happens:

1) If the user correctly fills out the form, they get redirected 
correctly to the next page (this can be repeated over and over)
2) once any user fills out the form incorrectly and they get the same 
page with please complete the form correctly, any future submissions 
(whether valid or not) get the same page with the same please complete 
the form correctly message.

This happens until the page is edited or touched, after which all 
correct submissions work until someone puts in bad data and then it 
keeps looping.

It seems like some kind of global variable or caching issue to me, but I 
am not expert with taglibs and tomcat so I need some help!

If anyone thinks you might be able to solve it, send me a note to discuss.
Thanks,
-Sacha

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


Re: load-balancing

2005-03-08 Thread Mladen Turk
Sng Wee Jim wrote:
I am load-balancing tomcat 5.0.28 using JK1.2/AJP1.3.
Cool ;)

I noticed the loadbalancer virtual JK worker redirect requests to the tomcat 
instances in a round-robin fashion, without taking into account which tomcat
has a higher number of active sessions.
You must note what jk version and web server you are using.
If using 1.2.8 you will have up to 20% load-presumption error if
using Apache prefork or worker mpm, because the load balancing data
is maintained per child process.
The 1.2.9 (not released yet, but will be this week I hope) has that
resolved using shared memory.
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Richard Mixon (qwest)
Jim,

Also check the archives for my post on restarting a downed Tomcat
cluster member. This was not working well prior to Tomcat 5.5.8. When
the instance was restarted it would throw exceptions trying to
re-synchronize vi session replication.

 - Richard

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 10:09 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?


Yeah, but you still need to uncomment the cluster element in the
server.xml.  Also if you have a multi-homed server you need to bind
multicast to a specific ip address.  Not to mention that you need to set
up mod_jk and apache to load balance.  It is not just adding a trivial
/distributable xml element into the  web.xml that makes load balancing
with session replication work.

Anyway, just my thoughts on the matter

Randall

-Original Message-
From: Ramu, Vinod [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 8:03 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?

I thought

/distributable

XML element in web.xml does that automatically.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 9:40 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?


You need to implement either in memory session replication or persist
the session in a database or a shared file system.

I have finally got my tomcat cluster working and session replication is
functional.

Randall

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat load-balancing maintenance strategy?


Hi,




I am load-balancing tomcat 5.0.28 using JK1.2 / AJP1.3.




For discussion, let's assume I have 2 tomcats (TomcatA and TomcatB)
load-balanced. When I shutdown one of the tomcats (Tomcat B), future
requests for TomcatB is correctly redirected and handled by the TomcatA.
However, the original session on TomcatB is not passed over to TomcatA,
and a re-login is required.




My question:


1.  Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.










- Jim








The information in this email is confidential and is intended solely for
the addressee(s). Access to this email by anyone else is unauthorized.
If you are not an intended recipient, please notify the sender of this
email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Capco.

http://www.capco.com/



-
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]



JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Richard Mixon (qwest)
Has anything changed with the way that JDBCReal handles connection
timeouts in Tomcat 5.5.7?

We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are now
getting JDBC connection errors when the site has not been accessed for a
while.  This is happening when a user tries to login - we use a
JDBCRealm to authenticate the user.

We had this problem a while back but fixed it by adding the
autoReconnect parm, but now with Tomcat 5.5. we are having the problem
again. We are using MySQL 4.1.7 and version 3.1.7 of the MySQL JDBC
connector.

Here is the realm specification:

  Realm className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://dbserver1:3306/webapp1?autoReconnect=tru
eamp;autoCommit=true
   connectionName=user1 connectionPassword=password1
userTable=PoPerson userNameCol=userid userCredCol=password
userRoleTable=PoPersonRole roleNameCol=roleName /

Resource name=jdbc/webapp1
  type=javax.sql.DataSource
  auth=Container
 maxActive=100
   maxIdle=10
   maxWait=1
 defaultAutoCommit=true
  username=user1
  password=password1
   driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://dbserver1:3306/ltojsw?autoRecon
nect=trueamp;autoCommit=true
   removeAbandoned=true
removeAbandonedTimeout=60
  logAbandoned=true
  /

I also included the corresponding datasource defined for actual
application access.
The actual exception is below.

Would using the DataSourceReal provide any help here? I was thinking
that since it uses DBCP pooling maybe timeout recovery might be more
robust. I am trying to duplicate the problem in development now, before
trying the DataSourceRealm.

Thank you all for any suggestions or solutions.

 - Richard

Here is the exception:
16:50:00,269 ERROR [TP-Processor6] [/stars]:541 - Exception retrieving
password for wazinger
com.mysql.jdbc.CommunicationsException: Communications link failure due
to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: Broken pipe

STACKTRACE:

java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at
java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2616)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2547)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1512)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1622)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2376)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2297)
at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:
1860)
at
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:170
5)
at
org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:526)
at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:399)
at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:347)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAut
henticator.java:256)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:391)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve
.java:130)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAcc
essLogValve.java:481)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)


** END NESTED EXCEPTION **


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



Re: SSL: same port used in both directions?

2005-03-08 Thread Chris Hosler
The default is 8443 


Christopher W. Hosler
Network Administrator 
Ingham County MIS Department
Email  [EMAIL PROTECTED]
As water reflects the face 
So a mans heart reflects the man

 [EMAIL PROTECTED] 3/7/2005 11:46:23 PM 
I have Tomcat 5.5.7 behind a router/firewall, with port 443 and 8080 
forwarded through the firewall. I can make connections from outside the

firewall to port 8080, but not port 443 (it times out). I can access 
port 443 on my server if I browse to my server's LAN address or if I 
browse to my router's WAN address (i.e. loopback mode).

My ISP blocks some ports, but not 443. What port is used for the server

response to a request made on port 443? Is it also 443 or something 
else. I'm wondering if my ISP is blocking it.

-
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 5.0.28 applications using https in 443 port and other appliction with https and computer certificate in the same server.

2005-03-08 Thread Acácio Furtado Costa
 

We are using TomCat 5.0.28 with about six deployed applications. These 
applications are using JNDI realm with https on port 443. The connector on port 
443 is using a valid digital certificate. We are now designing a new 
application that will use a machine certificate and https access into a two 
level authentication process.

 

 Does anyone know how to do so?

 

Thanks you for any help,

Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A
((0xx31) 3368-1349
*  [EMAIL PROTECTED]



tomcat fails on FC3

2005-03-08 Thread David Smithson
Hi all.  I followed the instructions in RUNNING.txt from the binary
distribution of Tomcat 5.  I'm having some trouble and would appreciate
a little help.  What am I doing wrong?

When I run startup.sh, I get this output in the shell:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:   /usr

And logs/catalina.out shows:

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
Exception in thread main java.lang.NoClassDefFoundError: while
resolving class: org.apache.catalina.startup.Bootstrap
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at __gcj_personality_v0
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
   at __libc_start_main (/lib/tls/libc-2.3.4.so)
   at _Jv_RegisterClasses
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName
not found in [file:/usr/share/tomcat5/bin/bootstrap.jar,
file:/usr/share/tomcat5/bin/commons-logging-api.jar, core:/]
   at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_BytecodeVerifier.verify_instructions_0()
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.linkClass0(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   ...9 more

-- 
David Smithson [EMAIL PROTECTED]
Custom Film Effects


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



Re: Being lost in the mailing list

2005-03-08 Thread Peter Johnson
Klaus,
I think I may have spotted it ... does this file exist ?
/usr/lib/apache2-prefork/mod_jk.so
I suspect that the module isn't being loaded into Apache. Now you say 
that you are using mod_jk2 (which is fine, I do too) however it looks 
like you are using mod_jk.

If the above file does exist then check for the presence of a 
LoadModule line in the Apache 2 config loading the above file.

PJ
Klaus-F. Kaal wrote:
Hi Peter,
I can imagine that the gurus get tons of eMails with difficult and 
silly questions. And as there is limited time, they can't answer them 
all. I believe they keep answering the freshly incoming ones. Since I 
am really in problems and did not get an answer over days, I thought, 
I was lost in the cant do this bin and it's better to shout out to 
get attention. Believe me: that is not my normal style.

I aquired a dedicated server and got it with Suse 9.1 preinstalled. 
Apache 2.0.48 was on it. It uses virtual hostst. Apart from that it 
seems to be not special. But it runs without problems (as far as I can 
judge from the logs)

I installed
- Java 1.4
- Tomcat  5.0.28
- mod_jk2 from the latest binary distribution
Independently, Apache and Tomcat work well. Tomcat reports in the logs 
that it listens on port 8009 for mod_jk communication. It also created 
/conf/auto/mod_jk.conf, the content of which, I show later in this text.
Apache does not shift incoming JSP calls to mod_jk. It just states 
that it could not find the document in the normal public_html space.

Can you do something with this info?
Thanks a lot for your hints.
Klaus

Peter Johnson schrieb:
Klaus,
Taking a tone with people gives you less chance of a response.
Are you doing any url rewriting in Apache?
PJ
Klaus-F. Kaal wrote:

_In my Tomcat log, I can see:_
INFO: JK2: ajp13 listening on /0.0.0.0:8009
06.03.2005 00:54:10 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=5/43  config=/usr/tomcat/conf/jk2.properties
_I included my automatically created mod_jk.conf into the httpd.conf:_
Include /usr/tomcat/conf/auto/mod_jk.conf
This mod_jk.conf looks like this:
IfModule !mod_jk.c
 LoadModule jk_module /usr/lib/apache2-prefork/mod_jk.so
/IfModule
JkWorkersFile /etc/apache2/workers2.properties
JkLogFile /usr/tomcat/logs/mod_jk.log
JkLogLevel emerg
_The workers2.properties is here:_
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/jsp-examples/*]
worker=ajp13.localhost:8009
[uri:www.technologyserver.com/*.jsp]
worker=ajp13:localhost:8009

Apache and Tomcat are working fine, independently. But when I try to 
call a JSP on port 80, Apache states that it cannot find the file.

What am I doing wrong??
Thanks for your help.
Klaus



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


RE: tomcat fails on FC3

2005-03-08 Thread Trice, Jim
David,
If you install the j2sdk from http://java.sun.com it should replace the links
in /etc/alternatives to java and javac from that kit. 
Jim T.

-Original Message-
From: David Smithson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 3:10 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat fails on FC3

Hi all.  I followed the instructions in RUNNING.txt from the binary
distribution of Tomcat 5.  I'm having some trouble and would appreciate
a little help.  What am I doing wrong?

When I run startup.sh, I get this output in the shell:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:   /usr

And logs/catalina.out shows:

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java
master link required by jpackage.org conventions.  libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
Exception in thread main java.lang.NoClassDefFoundError: while
resolving class: org.apache.catalina.startup.Bootstrap
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at __gcj_personality_v0
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
   at __libc_start_main (/lib/tls/libc-2.3.4.so)
   at _Jv_RegisterClasses
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName
not found in [file:/usr/share/tomcat5/bin/bootstrap.jar,
file:/usr/share/tomcat5/bin/commons-logging-api.jar, core:/]
   at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_BytecodeVerifier.verify_instructions_0()
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.linkClass0(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   ...9 more

-- 
David Smithson [EMAIL PROTECTED]
Custom Film Effects


-
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: getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
Rahul Akolkar wrote:
javax.naming.Context
 

Thank Rahul that help, but now I have another problem.  When I use the 
tomcat example JSP tags page:

This works
***
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=rofDB
select id, foo, bar from testdata
/sql:query
html
 head
   titleDB Test/title
 /head
 body
 h2Results/h2
c:forEach var=row items=${rs.rows}
   Foo ${row.foo}br/
   Bar ${row.bar}br/
/c:forEach

The following throws:
Name rofDB is not bound in this Context.
Please Help!
thanks
**
%@ page
   import = java.io.*
   import = java.lang.*
   import = java.sql.*
   import = javax.naming.*
   import = java.util.*
%
%
   Context ctx = null;
   javax.sql.DataSource rofDS = null;
   try
   {
   java.util.Date now = new java.util.Date();
   ctx = new InitialContext();
   out.println(before lookup  + now + br);
   rofDS = (javax.sql.DataSource)ctx.lookup(/rofDB);
   out.println(after lookupbr);
   }
   catch (Exception ne)
 {
 out.println(ne.getMessage());
 }
%
--
Darryl Wagoner - WA1GON
Evil triumphs when good men do nothing.  - Edmund Burke [1729-1797]
Join the TrustedQSL mailing list.  An Open Source solution.
Post message: [EMAIL PROTECTED] Subscribe:  [EMAIL PROTECTED] List owner:  
[EMAIL PROTECTED] http://www.trustedQSL.org

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


RE: tomcat fails on FC3

2005-03-08 Thread Randall Svancara
The reason that this happens is that you are not using the right java.
If you do a:

whereis java

You will see that java is installed in /usr/bin.  This is not the
correct java, you need to use another one.   If you do this:

cat /usr/bin/java  

You will see that this is just a script.  I used J2SDK 1.5 (5.0) rpm
from http://java.sun.com and it is installed into /usr/java/jdk1.5.0_01.


If you have installed your j2sdk correctly, you might try:

export JAVA_HOME=/path/to/java

And then run the startup.sh script.

Randall

-Original Message-
From: David Smithson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 2:10 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat fails on FC3

Hi all.  I followed the instructions in RUNNING.txt from the binary
distribution of Tomcat 5.  I'm having some trouble and would appreciate
a little help.  What am I doing wrong?

When I run startup.sh, I get this output in the shell:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:   /usr

And logs/catalina.out shows:

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java master link required
by jpackage.org conventions.  libgcj's rmiregistry, rmic and jar tools
are now slave symlinks to these masters, and are managed by the
alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
Exception in thread main java.lang.NoClassDefFoundError: while
resolving class: org.apache.catalina.startup.Bootstrap
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at __gcj_personality_v0
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorse
d)
   at __libc_start_main (/lib/tls/libc-2.3.4.so)
   at _Jv_RegisterClasses
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorse
d)
Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName
not found in [file:/usr/share/tomcat5/bin/bootstrap.jar,
file:/usr/share/tomcat5/bin/commons-logging-api.jar, core:/]
   at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_BytecodeVerifier.verify_instructions_0()
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.linkClass0(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   ...9 more

--
David Smithson [EMAIL PROTECTED] Custom Film Effects


-
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 fails on FC3

2005-03-08 Thread Ole Ersoy
It looks like you have not uninstalled libgcj.

It compiles java source directly to native machine
code.

Here is more info:
http://gcc.gnu.org/java/

If you don't need it (it's typically not used),
uninstall it like this (As su):

rpm -e jdkgcj

That should take care of it.

Good luck,
- Ole


--- David Smithson [EMAIL PROTECTED]
wrote:
 Hi all.  I followed the instructions in RUNNING.txt
 from the binary
 distribution of Tomcat 5.  I'm having some trouble
 and would appreciate
 a little help.  What am I doing wrong?
 
 When I run startup.sh, I get this output in the
 shell:
 
 Using CATALINA_BASE:   /usr/share/tomcat5
 Using CATALINA_HOME:   /usr/share/tomcat5
 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
 Using JRE_HOME:   /usr
 
 And logs/catalina.out shows:
 
 libgcj-java-placeholder.sh
 
 This script is a placeholder for the /usr/bin/java
 master link required by jpackage.org conventions. 
 libgcj's
 rmiregistry, rmic and jar tools are now slave
 symlinks to these
 masters, and are managed by the alternatives(8)
 system.
 
 This change was necessary because the rmiregistry,
 rmic and jar tools
 installed by previous versions of libgcj conflicted
 with symlinks
 installed by jpackage.org JVM packages.
 Exception in thread main
 java.lang.NoClassDefFoundError: while
 resolving class:
 org.apache.catalina.startup.Bootstrap
at

java.lang.VMClassLoader.resolveClass(java.lang.Class)
 (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.initializeClass()
 (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String,
 boolean,
 java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String)
 (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.FirstThread.run()
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread)
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int,
 byte const, boolean)
 (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0

(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses

(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
 Caused by: java.lang.ClassNotFoundException:
 javax.management.ObjectName
 not found in
 [file:/usr/share/tomcat5/bin/bootstrap.jar,
 file:/usr/share/tomcat5/bin/commons-logging-api.jar,
 core:/]
at
 java.net.URLClassLoader.findClass(java.lang.String)
 (/usr/lib/libgcj.so.5.0.0)
at

gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
 (/usr/lib/libgcj.so.5.0.0)
at
 java.lang.ClassLoader.loadClass(java.lang.String,
 boolean)
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_FindClass(_Jv_Utf8Const,
 java.lang.ClassLoader)
 (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String,
 boolean,
 java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at _Jv_BytecodeVerifier.verify_instructions_0()
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_VerifyMethod(_Jv_InterpMethod)
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_PrepareClass(java.lang.Class)
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_WaitForState(java.lang.Class, int)
 (/usr/lib/libgcj.so.5.0.0)
at
 java.lang.VMClassLoader.linkClass0(java.lang.Class)
 (/usr/lib/libgcj.so.5.0.0)
at

java.lang.VMClassLoader.resolveClass(java.lang.Class)
 (/usr/lib/libgcj.so.5.0.0)
...9 more
 
 -- 
 David Smithson [EMAIL PROTECTED]
 Custom Film Effects
 
 

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




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



RE: How to access web site from other computers

2005-03-08 Thread jtsbaker
OK.  There have been suggestions that you get a static ip address.  If
your internet service provider will assign you a static ip address, that
will solve your problem if you are trying to access the tomcat service
using a domain name.

However if your internet service provider is unwilling to provide a static
IP address, which is the case for most providers, you still can access the
tomcat service from the internet.  What you can do is define a dynamic dns
service at a provider such as dyndns.org.  You can set up a dynamic dns
service where the ip address is updated from a program you install on your
local windows machine using one of their domains.  You have several
choices of such programs available on the dyndns.org site.  The program
you install on your local windows machine detects when the IP address of
your local machine changes.  The program then sends the new IP address to
the dyndns.org service and the ip address of the dynamic dns service you
set up with them is automatically updated.  This service is free for a
limited number of machines.

You could also buy a domain name from a domain name service provider. 
Dyndns.org does sell domain names also.  You can then define a dynamic dns
service with dyndns.org just the same as described above using your
domain.  I believe dyndns.org will charge you an annual fee for using your
own domain name.

Let me know if this helps.

As a side issue you can access the tomcat service on your local windows
machine from another computer on the internet in a test situation with out
establishing a dynamic dns account. You can do this by entering a record
in the hosts file of the computer from which you wish to access the tomcat
service.  I expect you to find the host file at:
c:/windows/system32/drivers/etc/host or
c:/winnt/system32/drivers/etc/host.

Enter a line in the form:
domainname ipaddress

Supply your domain name for the host account defined in tomcat
configuration for domainname.  Do not include the  or the  characters.
 Localhost will not work.  If you have not defined a host other than
localhost in tomcat configuration, you will have to define another host
account.  Supply the ip address assigned to your machine where tomcat is
running for ipaddress.  Do not include the  or the  characters.  Here
is an example how the line should look:

jimstudebaker.org 65.254.62.178

Then save the host file.  Open the IE and type in the url
http://domainname:8080/.  This assumes your tomcat port is the default
8080.  This obviously not a general permanent solution, since the internet
dns servers do not have a record for the entry you put in the host file. 
It is a quick and easy way to test access to the service from another
machine on the internet however.

Good luck.

Let me know if this was of help.

 The machine is connected to internet thro' broadband
 connection.

 --- [EMAIL PROTECTED] wrote:
 An answer to this question would require a little
 more information.

 When you say My computer is in network is the
 network you are refering
 to a local area network or is the window machine
 connected directly to the
 internet through a broadband connection or a dial up
 connection?

 Send a response to this question and then I can go
 on to the next question.

  -Original Message-
  From: U K Laxmi [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 08, 2005 11:13 AM
  To: Tomcat Users List
  Subject: How to access web site from other
 computers
 
 
  I've a web application developed using apache and
  tomcat on windows 2000 machine. I can access the
  application locally. ie. using
 http://localhost/web/JSP/login.html and
  also using machine name ie.
 http://dummy/web/JSP/login.html. My computer
  is in network. But i'm unable access my web
 application from other
  computers. What should i do to make my web
 application available on
  other machines as well? Any other s/w i need? Pls
 suggest.
 
 
 
 
  __
  Celebrate Yahoo!'s 10th Birthday!
  Yahoo! Netrospective: 100 Moments of the Web
  http://birthday.yahoo.com/netrospective/
 
 

 -
  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]






 __
 Celebrate Yahoo!'s 10th Birthday!
 Yahoo! Netrospective: 100 Moments of the Web
 http://birthday.yahoo.com/netrospective/

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





Re: getting datasource in a JSP?

2005-03-08 Thread Parsons Technical Services
Try jdbc/rofDB

Doug
- Original Message - 
From: Darryl Wagoner [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, March 08, 2005 4:15 PM
Subject: Re: getting datasource in a JSP?


Rahul Akolkar wrote:
javax.naming.Context
Thank Rahul that help, but now I have another problem.  When I use the 
tomcat example JSP tags page:

This works
***
%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=rofDB
select id, foo, bar from testdata
/sql:query
html
 head
   titleDB Test/title
 /head
 body
 h2Results/h2
c:forEach var=row items=${rs.rows}
   Foo ${row.foo}br/
   Bar ${row.bar}br/
/c:forEach

The following throws:
Name rofDB is not bound in this Context.
Please Help!
thanks
**
%@ page
   import = java.io.*
   import = java.lang.*
   import = java.sql.*
   import = javax.naming.*
   import = java.util.*
%
%
   Context ctx = null;
   javax.sql.DataSource rofDS = null;
   try
   {
   java.util.Date now = new java.util.Date();
   ctx = new InitialContext();
   out.println(before lookup  + now + br);
   rofDS = (javax.sql.DataSource)ctx.lookup(/rofDB);
   out.println(after lookupbr);
   }
   catch (Exception ne)
 {
 out.println(ne.getMessage());
 }
%
--
Darryl Wagoner - WA1GON
Evil triumphs when good men do nothing.  - Edmund Burke [1729-1797]
Join the TrustedQSL mailing list.  An Open Source solution.
Post message: [EMAIL PROTECTED] Subscribe: 
[EMAIL PROTECTED] List owner: 
[EMAIL PROTECTED] http://www.trustedQSL.org


-
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: getting datasource in a JSP?

2005-03-08 Thread Peter Johnson
As shown in the examples
   Context initContext = new InitialContext();
   Context envContext  = (Context)initContext.lookup(java:/comp/env);
   DataSource ds = (DataSource)envContext.lookup(jdbc/rofDB);
Parsons Technical Services wrote:
Try jdbc/rofDB

Doug
- Original Message - From: Darryl Wagoner 
[EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, March 08, 2005 4:15 PM
Subject: Re: getting datasource in a JSP?


Rahul Akolkar wrote:
javax.naming.Context
Thank Rahul that help, but now I have another problem.  When I use 
the tomcat example JSP tags page:

This works
*** 

%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %
sql:query var=rs dataSource=rofDB
select id, foo, bar from testdata
/sql:query
html
 head
   titleDB Test/title
 /head
 body
 h2Results/h2
c:forEach var=row items=${rs.rows}
   Foo ${row.foo}br/
   Bar ${row.bar}br/
/c:forEach

The following throws:
Name rofDB is not bound in this Context.
Please Help!
thanks
** 

%@ page
   import = java.io.*
   import = java.lang.*
   import = java.sql.*
   import = javax.naming.*
   import = java.util.*
%
%
   Context ctx = null;
   javax.sql.DataSource rofDS = null;
   try
   {
   java.util.Date now = new java.util.Date();
   ctx = new InitialContext();
   out.println(before lookup  + now + br);
   rofDS = (javax.sql.DataSource)ctx.lookup(/rofDB);
   out.println(after lookupbr);
   }
   catch (Exception ne)
 {
 out.println(ne.getMessage());
 }
%
--
Darryl Wagoner - WA1GON
Evil triumphs when good men do nothing.  - Edmund Burke [1729-1797]
Join the TrustedQSL mailing list.  An Open Source solution.
Post message: [EMAIL PROTECTED] Subscribe: 
[EMAIL PROTECTED] List owner: 
[EMAIL PROTECTED] http://www.trustedQSL.org


-
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 fails on FC3

2005-03-08 Thread David Smithson
I am an ass.  Heehaww!  I didn't have the JDK installed, just the JRE.
Also, my JAVA_HOME and JRE_HOME paths were wrong, so I exported them
rightly.  Now I have to think of a startup script that will work for
this or maybe just hack the old init script from FC2.  Hopefully this
will just break every time I upgrade Fedora.

Thank you all for your prompt responses!

On Tue, 2005-03-08 at 13:10 -0800, David Smithson wrote:
 Hi all.  I followed the instructions in RUNNING.txt from the binary
 distribution of Tomcat 5.  I'm having some trouble and would appreciate
 a little help.  What am I doing wrong?
 
 When I run startup.sh, I get this output in the shell:
 
 Using CATALINA_BASE:   /usr/share/tomcat5
 Using CATALINA_HOME:   /usr/share/tomcat5
 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
 Using JRE_HOME:   /usr
 
 And logs/catalina.out shows:
 
 libgcj-java-placeholder.sh
 
 This script is a placeholder for the /usr/bin/java
 master link required by jpackage.org conventions.  libgcj's
 rmiregistry, rmic and jar tools are now slave symlinks to these
 masters, and are managed by the alternatives(8) system.
 
 This change was necessary because the rmiregistry, rmic and jar tools
 installed by previous versions of libgcj conflicted with symlinks
 installed by jpackage.org JVM packages.
 Exception in thread main java.lang.NoClassDefFoundError: while
 resolving class: org.apache.catalina.startup.Bootstrap
at java.lang.VMClassLoader.resolveClass(java.lang.Class)
 (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
 java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String)
 (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
 (/usr/lib/libgcj.so.5.0.0)
at __gcj_personality_v0
 (/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
at __libc_start_main (/lib/tls/libc-2.3.4.so)
at _Jv_RegisterClasses
 (/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorsed)
 Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName
 not found in [file:/usr/share/tomcat5/bin/bootstrap.jar,
 file:/usr/share/tomcat5/bin/commons-logging-api.jar, core:/]
at java.net.URLClassLoader.findClass(java.lang.String)
 (/usr/lib/libgcj.so.5.0.0)
at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
 (/usr/lib/libgcj.so.5.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
 (/usr/lib/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean,
 java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
at _Jv_BytecodeVerifier.verify_instructions_0()
 (/usr/lib/libgcj.so.5.0.0)
at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.linkClass0(java.lang.Class)
 (/usr/lib/libgcj.so.5.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class)
 (/usr/lib/libgcj.so.5.0.0)
...9 more
 
-- 
David Smithson [EMAIL PROTECTED]
Custom Film Effects


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



RE: HTTPS, port 443 firewall

2005-03-08 Thread Paul Wallace
Thanks Doug!

Paul.

Port 443 must be opened on the firewall. When a browser uses https it is
talking on port 443 and not 80.

The redirect is telling the browser to call back on port 443 or whatever
port is designated as https, and not a transfer.

Although https can be defined to run on port 80 or any port you like,
but that is another issue.

Most firewalls do not by default leave any ports open. It is up to whom
ever set up the firewall as what ports are open if any.

Some firewalls have the standard list of ports, including 443, listed in
the setup but usually as a prompt to the installer as to whether the
port is to be open.

One question, are you talking about a personal firewall, like Windows,
ZoneAlarm, Blackice or separate units like a Pix, Linksys or Router
type.

Most personal units (Windows based) will detect the services running on
your machine and ask you or set them up for you. Most separate units and
Linux , iptables ipchains, have to be told to open the ports.

Doug


- Original Message -
From: Paul Wallace [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, March 07, 2005 12:56 AM
Subject: HTTPS, port 443  firewall


Hi,
For HTTPS must port 443 be open on a firewall, or is traffic
sent/received on port 80 (or defined HTTP port) and redirected
internally? Do 'standard' firewalls leave open this port by default?

Thanks

Paul.

-
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: getting datasource in a JSP?

2005-03-08 Thread Darryl Wagoner
Peter Johnson wrote:
As shown in the examples
   Context initContext = new InitialContext();
   Context envContext  = (Context)initContext.lookup(java:/comp/env);
   DataSource ds = (DataSource)envContext.lookup(jdbc/rofDB);
Thanks for the quick reply!  That has solved the problem!
--
Darryl Wagoner - WA1GON
Evil triumphs when good men do nothing.  - Edmund Burke [1729-1797]
Join the TrustedQSL mailing list.  An Open Source solution.
Post message: [EMAIL PROTECTED] Subscribe:  [EMAIL PROTECTED] List owner:  
[EMAIL PROTECTED] http://www.trustedQSL.org

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


re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread alexander dosher
i'm getting the same problem, w/MySQL 4.1.8  3.1.6 connector (except my 
error is Software caused connection abort rather than broken pipe - 
but same underlying cause, MySQL timing out the connection). 
autoReconnect doesn't work for me either.  sounds like perhaps i should 
bail on 5.5.*  go to 5.0 for a while?

We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are
now getting JDBC connection errors when the site has not been
accessed for a while.  This is happening when a user tries to login -
we use a JDBCRealm to authenticate the user.
We had this problem a while back but fixed it by adding the 
autoReconnect parm, but now with Tomcat 5.5. we are having the
problem again. We are using MySQL 4.1.7 and version 3.1.7 of the
MySQL JDBC connector.


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


Parallel install of 5.5 with existing 5.0? (Win Server 2003)

2005-03-08 Thread J Malcolm
I am running 5.0 in production on my server.  I want to move up to 5.5.  But
what I'd like to do is install 5.5 parallel to the 5.0 installation so I can
migrate and test and have a quick rollback path if I have problems.  I
realize I can't have both running at the same time.  But I'd really like to
stop 5.0, start 5.5 and test.  If there are any problems, I can immediately
restart 5.0 while I resolve the problem.

Problem is that when I install 5.5, it fails on the install of the service
(Win Server 2003).  I installed in on my local box just fine, but my local
box doesn't have 5.0 installed.  I suspect that there is a name conflict for
setting up the service.

I really don't want to have to burn bridges in order to bring up 5.5 for the
first time on the server.

Suggestions?

Thanks.

Jerry


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



Re: Persistence manager ClassNotFoundException during deserialization

2005-03-08 Thread Mark Thomas
What happens on 4.1.31?
Mark
Antony Paul wrote:
I created a sample application and is available at
http://geocities.com/antonypaul24/web.html . Any one can download it
and test.
rgds
Antony Paul
On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
I am waiting for some knowledgeable person to answer my questions.
Meanwhile I will write a test application, download Tomcat source code
and try to debug the problem.
rgds
Antony Paul
On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote:
Hi all,
   I am getting ClassNotFoundException when deserialising
arrays/Lists stored in session. It have no problem with normal objects
but have error when it is made an array or List.
   The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
Filestore persistent manager which is set in example config.
   The full stack trace is given below from catalina.out.
2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
the container during the request processing
java.lang.IllegalStateException: Error deserializing Session
8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
[Lmd.edrugstore.model.AuthenticatedWebUser;
   at 
org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
   at 
org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
   at java.lang.Thread.run(Thread.java:534)
rgds
Antony Paul

-
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: Parallel install of 5.5 with existing 5.0? (Win Server 2003)

2005-03-08 Thread Jason Bainbridge
On Tue, 8 Mar 2005 16:52:22 -0600, J Malcolm [EMAIL PROTECTED] wrote:
 I am running 5.0 in production on my server.  I want to move up to 5.5.  But
 what I'd like to do is install 5.5 parallel to the 5.0 installation so I can
 migrate and test and have a quick rollback path if I have problems.  I
 realize I can't have both running at the same time.  But I'd really like to
 stop 5.0, start 5.5 and test.  If there are any problems, I can immediately
 restart 5.0 while I resolve the problem.
 
 Problem is that when I install 5.5, it fails on the install of the service
 (Win Server 2003).  I installed in on my local box just fine, but my local
 box doesn't have 5.0 installed.  I suspect that there is a name conflict for
 setting up the service.

Download the Zip file distribution of 5.5 instead and use service.bat
to install a service with a different name, personally I always do it
that way anyway.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Remy Maucherat
On Tue, 08 Mar 2005 14:28:12 -0800, alexander dosher [EMAIL PROTECTED] wrote:
 i'm getting the same problem, w/MySQL 4.1.8  3.1.6 connector (except my
 error is Software caused connection abort rather than broken pipe -
 but same underlying cause, MySQL timing out the connection).
 autoReconnect doesn't work for me either.  sounds like perhaps i should
 bail on 5.5.*  go to 5.0 for a while?

I'd be extremely glad if you could test this possibly fixed realm.
Replace the existing class in server/lib/catalina-optional.jar.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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

RE: Parallel install of 5.5 with existing 5.0? (Win Server 2003)

2005-03-08 Thread J Malcolm
Jason,

Thanks for the quick response.

I figured there had to be some solution like that.

Jerry

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 4:55 PM
To: Tomcat Users List
Subject: Re: Parallel install of 5.5 with existing 5.0? (Win Server 2003)

On Tue, 8 Mar 2005 16:52:22 -0600, J Malcolm [EMAIL PROTECTED] wrote:
 I am running 5.0 in production on my server.  I want to move up to 5.5.
But
 what I'd like to do is install 5.5 parallel to the 5.0 installation so I
can
 migrate and test and have a quick rollback path if I have problems.  I
 realize I can't have both running at the same time.  But I'd really like
to
 stop 5.0, start 5.5 and test.  If there are any problems, I can
immediately
 restart 5.0 while I resolve the problem.
 
 Problem is that when I install 5.5, it fails on the install of the service
 (Win Server 2003).  I installed in on my local box just fine, but my local
 box doesn't have 5.0 installed.  I suspect that there is a name conflict
for
 setting up the service.

Download the Zip file distribution of 5.5 instead and use service.bat
to install a service with a different name, personally I always do it
that way anyway.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
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: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Hassan Schroeder
Richard Mixon (qwest) wrote:
We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are now
getting JDBC connection errors when the site has not been accessed for a
while.  This is happening when a user tries to login - we use a
JDBCRealm to authenticate the user.

Would using the DataSourceReal provide any help here? 
I'm using a DataSourceRealm with 5.5.7 and not seeing any problems
reconnecting at any time (MySQL 4.1.7 + Connector/J 3.1.6)...
FWIW,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Remy Maucherat
On Tue, 08 Mar 2005 15:16:41 -0800, Hassan Schroeder
[EMAIL PROTECTED] wrote:
 Richard Mixon (qwest) wrote:
 
  We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are now
  getting JDBC connection errors when the site has not been accessed for a
  while.  This is happening when a user tries to login - we use a
  JDBCRealm to authenticate the user.
 
  Would using the DataSourceReal provide any help here?
 
 I'm using a DataSourceRealm with 5.5.7 and not seeing any problems
 reconnecting at any time (MySQL 4.1.7 + Connector/J 3.1.6)...

Be careful about this bug with the DataSourceRealm (fixed in 5.5.8):
http://issues.apache.org/bugzilla/show_bug.cgi?id=33357
Similarly, I would appreciate testing of the fix.

I agree there's absolutely no reason to use the regular JDBC realm,
which can be a bottleneck in some cases.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: [OT] RE: same port used in both directions?

2005-03-08 Thread Mark Leone
Thanks for the suggestions. It turned out to be the sw firewall my corp 
VPN client requires. I set a couple intruders to trusted, and the 
HTTPS session worked fine from work.

Cox advertises no static IP, but they actually reserve the IP based on 
MAC address, so you end up with a static IP as long as you expose the 
same MAC port. They do indeed block port 80, but they allow 443 through. 
Although since I have a hime account, they wouldn't approve if I stood 
up a service that was getting a lot of hits, they seem willing to 
tolerate hosting a server for my personal use.

Thanks again for the suggestions, and my apologies to the list for going 
a bit OT.

Parsons Technical Services wrote:
Three more things:
You did set Tomcat to listen on 443 and not 8443?
Turn off you monitor and unless it's noisy she may not notice it's on.
If you are on a personal Cox account at home, there is a good chance 
that Cox has 443 blocked as well as 80. Unless you have a static IP 
with Cox they do not allow hosting and often filter the inbound 
traffic. Move it to port 8443 and try it.

Doug
- Original Message - From: Mark Leone [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, March 08, 2005 9:25 AM
Subject: Re: [OT] RE: same port used in both directions?

It's a very simple firewall, integrated with a wireless router. I 
specify which inbound ports to allow through and which LAN address 
they go to. I'm allowing all port 443 traffic. No filters provided 
for outbound, so I assume they're all open.

I run ZoneAlarm sw firewall, which I have configured to allow client 
connections to Tomcat server. And port 8080 is getting through, and 
my version of ZoneAlarm filters only on IP address, not the full 
socket. However, your comments remind me that I have another sw 
firewall as part of my corporate VPN client. It's a squirly one, and 
I'll bet it's causing the problem. I'll disable it and try the HTTPS 
session again.

I have to go to work to test it, and hopefully my wife won't shut 
down my computer while I'm at work as she did yesterday. :)

Thanks for your suggestion.
Peter Crowther wrote:
[Marked as OT because not Tomcat-specific]

From: Mark Leone [mailto:[EMAIL PROTECTED] I have Tomcat 5.5.7 
behind a router/firewall, with port 443 and 8080 forwarded through 
the firewall. I can make connections from outside the firewall to 
port 8080, but not port 443 (it times out). I can access port 443 
on my server if I browse to my server's LAN address or if I browse 
to my router's WAN address (i.e. loopback mode).

That feels like a firewall config problem - are there any input filters
on the WAN interface that are preventing 443 from ever being accepted
from an external address?  That would give the behaviour you describe.
As for the ISP filtering 443, that would be very unusual.  Can you test
by putting another computer on the outside of the firewall with an
appropriate address?

My ISP blocks some ports, but not 443. What port is used for the 
server response to a request made on port 443? Is it also 443 or 
something else. I'm wondering if my ISP is blocking it.

It's 443.  HTTP and HTTPS are well-behaved protocols, unlike nasty 
stuff
like FTP in active mode.

- Peter
-
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: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Richard Mixon (qwest)
Hassan, Could it be that you do not experience the long periods of
inactivity on weekends that we do?

This only happens on the weekend when we have low activity - sometimes
one of the Tomcat instances (they are clustered) will not see a login
request for about a half-day. During the week, the longest inactive
period is usually about six hours.

 - Richard
-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 4:17 PM
To: Tomcat Users List
Subject: Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x


Richard Mixon (qwest) wrote:

 We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are
now
 getting JDBC connection errors when the site has not been accessed for
a
 while.  This is happening when a user tries to login - we use a
 JDBCRealm to authenticate the user.

 Would using the DataSourceReal provide any help here?

I'm using a DataSourceRealm with 5.5.7 and not seeing any problems
reconnecting at any time (MySQL 4.1.7 + Connector/J 3.1.6)...

FWIW,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
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: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Richard Mixon (qwest)
Remy,
Thanks - but where do I get the new class file?
- Richard

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 4:01 PM
To: Tomcat Users List
Subject: Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x


On Tue, 08 Mar 2005 14:28:12 -0800, alexander dosher [EMAIL PROTECTED]
wrote:
 i'm getting the same problem, w/MySQL 4.1.8  3.1.6 connector (except
my
 error is Software caused connection abort rather than broken pipe -
 but same underlying cause, MySQL timing out the connection).
 autoReconnect doesn't work for me either.  sounds like perhaps i
should
 bail on 5.5.*  go to 5.0 for a while?

I'd be extremely glad if you could test this possibly fixed realm.
Replace the existing class in server/lib/catalina-optional.jar.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x



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



Redirect from http:// to https://

2005-03-08 Thread Sanjeev Srivastava
Hi All!,
 Can anone tell me how can I redirect http://
to https:// . I want as soon as the user type
http://abc.com it will go to https://abc.com

(SSL Config).

Please help..

Regards,
Sanjeev

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



mod_jk: download speed problem

2005-03-08 Thread Mikhail Kruk
apache 2.0.53
tomcat 5.0.29
mod_jk 1.2.8, worker configured to do ajp13
Red Hat ES 3

Going straight to Tomcat or straight to Apache downloads work fast.
Going through mod_jk uploads work fast.
Going through mod_jk downloads go at 70Kb/sec.

Everything tested from localhost, so it's not a network issue.
Similar setup but with apache 1.3 and Red Hat 7.x running the same
application works fast for both uploads and downloads.

I'm stuck and will really appreciate any suggestions!


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



Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Remy Maucherat
On Tue, 8 Mar 2005 16:28:22 -0700, Richard Mixon (qwest)
[EMAIL PROTECTED] wrote:
 Remy,
 Thanks - but where do I get the new class file?

The Apache mail server, which, BTW, must be the worst mail server in
existence, chooses to let through all the viruses and spammers of the
world, but is refusing my perfectly legitimate attachement. So sorry,
you have to either build it from CVS (which is easy) or get it from a
nightly build.

I'd like to add that the DataSource realm works differently from the
JDBC realm. As a result, it would reconnect transparently, and the
problem you have won't occur. If you decide to try the data source
realm, I recommend using the version from 5.5.8, unless you expect a
really low amount of authentications (it will take a little time for
the connection pool to reclaim the resources which are not properly
closed by the realm).

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread Hassan Schroeder
Richard Mixon (qwest) wrote:
Hassan, Could it be that you do not experience the long periods of
inactivity on weekends that we do?
No, I'm using this for both my own dev workbench and an intranet
server at the moment, and at the least they're idled out overnight.
So there's not enough authentication traffic to really show up the
33357 bug, but I *certainly* exceed the connection timeout period.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: How to access web site from other computers

2005-03-08 Thread Mark Leone
It sounds like you may have a firewall issue. Make sure that all 
software or hardware firewalls in the path are configured to allow the 
IP address and port you're sending from. Also make sure your router is 
configured to rout IP packets from the WAN interface to the IP address 
on your LAN that the Tomcat host is using.

As far as static IPs, I use cox cable as my ISP and I'm paying for 
service that only provides dynamic IP, but they actually implement it as 
static (mostly). Their DHCP server reserves IP addresses for each MAC 
address, so as long as I expose the same network hardware to the ISP I 
get the same IP address. Don't know if other ISPs do this, but thought 
I'd mention it.

U K Laxmi wrote:
I've a web application developed using apache and
tomcat on windows 2000 machine. I can access the
application locally. ie. using
http://localhost/web/JSP/login.html and also using
machine name ie. http://dummy/web/JSP/login.html. My
computer is in network. But i'm unable access my web
application from other computers. What should i do to
make my web application available on other machines as
well? Any other s/w i need? Pls suggest.
	
		
__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-
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: Being lost in the mailing list

2005-03-08 Thread Bill Barker

Klaus-F. Kaal [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi Peter,

 I can imagine that the gurus get tons of eMails with difficult and silly
 questions. And as there is limited time, they can't answer them all. I
 believe they keep answering the freshly incoming ones. Since I am really
 in problems and did not get an answer over days, I thought, I was lost
 in the cant do this bin and it's better to shout out to get attention.
 Believe me: that is not my normal style.

 I aquired a dedicated server and got it with Suse 9.1 preinstalled.
 Apache 2.0.48 was on it. It uses virtual hostst. Apart from that it
 seems to be not special. But it runs without problems (as far as I can
 judge from the logs)

 I installed

 - Java 1.4
 - Tomcat  5.0.28
 - mod_jk2 from the latest binary distribution


Well, there is your problem.  The mod_jk.conf generated by ApacheConfig is 
for mod_jk.  It's totally useless with mod_jk2.  For mod_jk2, you have to 
set up the configuration by hand.

 Independently, Apache and Tomcat work well. Tomcat reports in the logs
 that it listens on port 8009 for mod_jk communication. It also created
 /conf/auto/mod_jk.conf, the content of which, I show later in this text.
 Apache does not shift incoming JSP calls to mod_jk. It just states that
 it could not find the document in the normal public_html space.

 Can you do something with this info?

 Thanks a lot for your hints.

 Klaus




 Peter Johnson schrieb:

 Klaus,

 Taking a tone with people gives you less chance of a response.

 Are you doing any url rewriting in Apache?

 PJ

 Klaus-F. Kaal wrote:



 _In my Tomcat log, I can see:_

 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 06.03.2005 00:54:10 org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=5/43  config=/usr/tomcat/conf/jk2.properties

 _I included my automatically created mod_jk.conf into the httpd.conf:_

 Include /usr/tomcat/conf/auto/mod_jk.conf

 This mod_jk.conf looks like this:

 IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache2-prefork/mod_jk.so
 /IfModule

 JkWorkersFile /etc/apache2/workers2.properties
 JkLogFile /usr/tomcat/logs/mod_jk.log

 JkLogLevel emerg

 _The workers2.properties is here:_

 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 [uri:/jsp-examples/*]
 worker=ajp13.localhost:8009

 [uri:www.technologyserver.com/*.jsp]
 worker=ajp13:localhost:8009



 Apache and Tomcat are working fine, independently. But when I try to
 call a JSP on port 80, Apache states that it cannot find the file.

 What am I doing wrong??

 Thanks for your help.

 Klaus






 




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



Re: Redirect from http:// to https://

2005-03-08 Thread Antony Paul
You use Tomcat standalone or along with Apache. 
In Tomcat stand alone you can 
1, In index.jsp or whatever be the welcome page check
response.isSecure() then redirect.
2. There is an option in web.xml in security element
transport-guarantee which can be specified for certain resources. On
accessing these resources it will automatically redirect to the https.
You need to properly configure redirectport in Connector element in
server.xml for this to work.

In Apache use mod_rewrite.


On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev Srivastava
[EMAIL PROTECTED] wrote:
 Hi All!,
  Can anone tell me how can I redirect http://
 to https:// . I want as soon as the user type
 http://abc.com it will go to https://abc.com
 
 (SSL Config).
 
 Please help..
 
 Regards,
 Sanjeev
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-08 Thread alexander dosher
I'd be extremely glad if you could test this possibly fixed realm.
Replace the existing class in server/lib/catalina-optional.jar.
...
you have to either build it from CVS (which is easy) or get it from a
nightly build.
M. Maucherat,
thank you for the suggestion, but i'm not sufficiently (i.e. at all) 
CVS-savvy to get the nightly build - and there's either no web access or 
cvs.apache.org/builds/jakarta-timcat-5/nightly/ is in fact empty.  i 
tried upgrading the whole server to 5.5.8-alpha in case your changes 
were already there, but i still get the same error.  if you'd care to 
send me the updated catalina-optional.jar directly i'd be happy to try 
to test it again, and will also look into the DataSource realm as you 
suggest.

thanks,
alex.

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


RE: Parallel install of 5.5 with existing 5.0? (Win Server 2003)

2005-03-08 Thread J Malcolm
Well, I downloaded and unzipped the zip version and ran service.bat.  I got
a popup error: Overlapped I/O Operation is in progress;  NonAlpha 46  I've
been a programmer for many years and have seen many cryptic error messages,
but this one ranks right on up there.  Found a ref to it on a Microsoft site
where it saying something about a 3rd party backup program that needs to be
removed... (???).

I can remove and install 5.0 as a service using service.bat with no
problems.  But it fails miserably with 5.5.7.

Any suggestions?  Anybody seen this message before?

Thanks.

Jerry

-Original Message-
From: J Malcolm [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 5:04 PM
To: 'Tomcat Users List'; 'Jason Bainbridge'
Subject: RE: Parallel install of 5.5 with existing 5.0? (Win Server 2003)

Jason,

Thanks for the quick response.

I figured there had to be some solution like that.

Jerry

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 4:55 PM
To: Tomcat Users List
Subject: Re: Parallel install of 5.5 with existing 5.0? (Win Server 2003)

On Tue, 8 Mar 2005 16:52:22 -0600, J Malcolm [EMAIL PROTECTED] wrote:
 I am running 5.0 in production on my server.  I want to move up to 5.5.
But
 what I'd like to do is install 5.5 parallel to the 5.0 installation so I
can
 migrate and test and have a quick rollback path if I have problems.  I
 realize I can't have both running at the same time.  But I'd really like
to
 stop 5.0, start 5.5 and test.  If there are any problems, I can
immediately
 restart 5.0 while I resolve the problem.
 
 Problem is that when I install 5.5, it fails on the install of the service
 (Win Server 2003).  I installed in on my local box just fine, but my local
 box doesn't have 5.0 installed.  I suspect that there is a name conflict
for
 setting up the service.

Download the Zip file distribution of 5.5 instead and use service.bat
to install a service with a different name, personally I always do it
that way anyway.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
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: How to access web site from other computers

2005-03-08 Thread U K Laxmi
Thank you for the detailed info. I appreciate it. May
be, in future i may go for a static IP address. But
for testing purposes, i would like to do some wrok
around specified by you.

I went to www.dyndns.org and selected 'Dynamic DNS'
and did whatever it asked me to. I'm able to access it
locally. ie. 

http://dummy.dnsalias.net/web/JSP/login.html

But not from other computers (one at office). I'm able
to ping to this machine. But not able to see the web
application. Is this is a firewall issue? How can i
identify what are the firewalls/spywares running in my
system and how to allow the IP Address to be visible.

Pls help. Thanks to everyone for the answers.

--- [EMAIL PROTECTED] wrote:

 OK.  There have been suggestions that you get a
 static ip address.  If
 your internet service provider will assign you a
 static ip address, that
 will solve your problem if you are trying to access
 the tomcat service
 using a domain name.
 
 However if your internet service provider is
 unwilling to provide a static
 IP address, which is the case for most providers,
 you still can access the
 tomcat service from the internet.  What you can do
 is define a dynamic dns
 service at a provider such as dyndns.org.  You can
 set up a dynamic dns
 service where the ip address is updated from a
 program you install on your
 local windows machine using one of their domains. 
 You have several
 choices of such programs available on the dyndns.org
 site.  The program
 you install on your local windows machine detects
 when the IP address of
 your local machine changes.  The program then sends
 the new IP address to
 the dyndns.org service and the ip address of the
 dynamic dns service you
 set up with them is automatically updated.  This
 service is free for a
 limited number of machines.
 
 You could also buy a domain name from a domain name
 service provider. 
 Dyndns.org does sell domain names also.  You can
 then define a dynamic dns
 service with dyndns.org just the same as described
 above using your
 domain.  I believe dyndns.org will charge you an
 annual fee for using your
 own domain name.
 
 Let me know if this helps.
 
 As a side issue you can access the tomcat service on
 your local windows
 machine from another computer on the internet in a
 test situation with out
 establishing a dynamic dns account. You can do this
 by entering a record
 in the hosts file of the computer from which you
 wish to access the tomcat
 service.  I expect you to find the host file at:
 c:/windows/system32/drivers/etc/host or
 c:/winnt/system32/drivers/etc/host.
 
 Enter a line in the form:
 domainname ipaddress
 
 Supply your domain name for the host account defined
 in tomcat
 configuration for domainname.  Do not include the
  or the  characters.
  Localhost will not work.  If you have not defined a
 host other than
 localhost in tomcat configuration, you will have to
 define another host
 account.  Supply the ip address assigned to your
 machine where tomcat is
 running for ipaddress.  Do not include the  or
 the  characters.  Here
 is an example how the line should look:
 
 jimstudebaker.org 65.254.62.178
 
 Then save the host file.  Open the IE and type in
 the url
 http://domainname:8080/.  This assumes your tomcat
 port is the default
 8080.  This obviously not a general permanent
 solution, since the internet
 dns servers do not have a record for the entry you
 put in the host file. 
 It is a quick and easy way to test access to the
 service from another
 machine on the internet however.
 
 Good luck.
 
 Let me know if this was of help.
 
  The machine is connected to internet thro'
 broadband
  connection.
 
  --- [EMAIL PROTECTED] wrote:
  An answer to this question would require a little
  more information.
 
  When you say My computer is in network is the
  network you are refering
  to a local area network or is the window machine
  connected directly to the
  internet through a broadband connection or a dial
 up
  connection?
 
  Send a response to this question and then I can
 go
  on to the next question.
 
   -Original Message-
   From: U K Laxmi [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 08, 2005 11:13 AM
   To: Tomcat Users List
   Subject: How to access web site from other
  computers
  
  
   I've a web application developed using apache
 and
   tomcat on windows 2000 machine. I can access
 the
   application locally. ie. using
  http://localhost/web/JSP/login.html and
   also using machine name ie.
  http://dummy/web/JSP/login.html. My computer
   is in network. But i'm unable access my web
  application from other
   computers. What should i do to make my web
  application available on
   other machines as well? Any other s/w i need?
 Pls
  suggest.
  
  
  
  
   __
   Celebrate Yahoo!'s 10th Birthday!
   Yahoo! Netrospective: 100 Moments of the Web
   http://birthday.yahoo.com/netrospective/
  
  
 
 


problem on Tomcat 3.3.1a: hang

2005-03-08 Thread Marcus Nugroho
Hi All,

We are implementing CRM application using Tomcat as a web server :
The platform and version : 
- Jakarta Tomcat 3.3.1a 
- Windows 2000 Advance Server SP4

The problem is after several users logged in properly, then the next user 
login will hang. 
Any other login process after it will failed also (hang). 
This problem can be solved by restarting the Tomcat server.
The above problem is intermittent. 

The error message is : 
2005-01-17 17:12:58 - Ctx(/epoint) : IOException in R( /epoint + 
/Clients/HTML/e
rror.jsp + null) - java.net.SocketException: Connection reset by peer: 
socket wr
ite error

anyone can help on this matter ?

Many Thanks,
Marcus.

The full Tomcat output when the error occured is as follows : 

85)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:917)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833
)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Http10Interceptor.java:176)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)

2005-01-17 17:12:58 - Ctx(/epoint) : IOException in R( /epoint + 
/Clients/HTML/e
rror.jsp + null) - java.net.SocketException: Connection reset by peer: 
socket wr
ite error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at 
org.apache.tomcat.modules.server.Http10.doWrite(Http10.java:436)
at 
org.apache.tomcat.modules.server.HttpResponse.doWrite(Http10Intercept
or.java:480)
at 
org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:
188)
at 
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:338)
at 
org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverte
r.java:234)
at 
java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:230)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:244)
at 
org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:183
)
at 
org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java
:126)
at 
org.apache.tomcat.core.OutputBuffer.realWriteChars(OutputBuffer.java:
337)
at 
org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:388)
at 
org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:314)
at 
org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
at org.apache.tomcat.core.Response.finish(Response.java:271)
at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:838
)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Http10Interceptor.java:176)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:494)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:516)
at java.lang.Thread.run(Thread.java:484)

2005-01-17 17:12:58 - Ctx(/epoint) : Error: exception inside exception 
servlet n
ull class java.net.SocketException
2005-01-17 17:12:58 - ErrorHandler: Error loop for R( /epoint + 
/Clients/HTML/er
ror.jsp + null) error java.net.SocketException: Connection reset by peer: 
socket
 write error


Re: problem on Tomcat 3.3.1a: hang

2005-03-08 Thread Bill Barker
Connection reset by peer isn't usually that interesting (it usually means 
that the browser dropped the connection).

Making some wild guesses:  Using the Http10Connector on Windows usually 
means that you need to add something like socketCloseDelay=50 to the 
element in server.xml.  Even better would be to upgrade to 3.3.2 and use the 
CoyoteConnector (the same one that TC 4  5 use).  This is much more 
reliable that the Http10Connector.

Marcus Nugroho [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi All,

 We are implementing CRM application using Tomcat as a web server :
 The platform and version :
 - Jakarta Tomcat 3.3.1a
 - Windows 2000 Advance Server SP4

 The problem is after several users logged in properly, then the next user
 login will hang.
 Any other login process after it will failed also (hang).
 This problem can be solved by restarting the Tomcat server.
 The above problem is intermittent.

 The error message is :
 2005-01-17 17:12:58 - Ctx(/epoint) : IOException in R( /epoint +
 /Clients/HTML/e
 rror.jsp + null) - java.net.SocketException: Connection reset by peer:
 socket wr
 ite error

 anyone can help on this matter ?

 Many Thanks,
 Marcus.

 The full Tomcat output when the error occured is as follows :
 
 85)
at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.
 java:917)
at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:833
 )
at
 org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
 Http10Interceptor.java:176)
at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
 :494)
at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
 ool.java:516)
at java.lang.Thread.run(Thread.java:484)

 2005-01-17 17:12:58 - Ctx(/epoint) : IOException in R( /epoint +
 /Clients/HTML/e
 rror.jsp + null) - java.net.SocketException: Connection reset by peer:
 socket wr
 ite error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at
 org.apache.tomcat.modules.server.Http10.doWrite(Http10.java:436)
at
 org.apache.tomcat.modules.server.HttpResponse.doWrite(Http10Intercept
 or.java:480)
at
 org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:
 188)
at
 org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:338)
at
 org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverte
 r.java:234)
at
 java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:230)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:244)
at
 org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:183
 )
at
 org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java
 :126)
at
 org.apache.tomcat.core.OutputBuffer.realWriteChars(OutputBuffer.java:
 337)
at
 org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:388)
at
 org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:314)
at
 org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305)
at org.apache.tomcat.core.Response.finish(Response.java:271)
at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:838
 )
at
 org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
 Http10Interceptor.java:176)
at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
 :494)
at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
 ool.java:516)
at java.lang.Thread.run(Thread.java:484)

 2005-01-17 17:12:58 - Ctx(/epoint) : Error: exception inside exception
 servlet n
 ull class java.net.SocketException
 2005-01-17 17:12:58 - ErrorHandler: Error loop for R( /epoint +
 /Clients/HTML/er
 ror.jsp + null) error java.net.SocketException: Connection reset by peer:
 socket
 write error
 




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