Help with reloading a servlet for log4j logging.

2005-05-26 Thread Subhrajyoti Moitra
Hi,

 

I am initializing Log4J system using an init servlet, which is loaded on
start-up (servlet name is Log4JInitServlet).

In web.xml I am pointing to the log4j.properties file using the param
tag.

 

 

Problem

Now suppose I change some properties in log4j.properties file. (change
the log level for example).

I want to reload this file with the changed properties and restart log4j
system with these new properties.

 

Question

 

Can I re-load the new properties file (and consequently the log4j
system) by reloading the initservlet (LogJInitServlet)?

Something similar to reloading an entire webcontext using
http://localhost/manager?reload=myLog4JApp. 

I don't want to restart tomcat to restart the logging system.

Can this be done in tomcat?

 

I am using tomcat 4.x version, on win32/linux systems.

 

Thanks a lot in advance,

 

Subhro.

 

 



RE: Help with reloading a servlet for log4j logging.

2005-05-26 Thread Mariano
You must use
PropertyConfigurator.configureAndWatch(fileProperties,miliseconds)

By

Mariano

-Mensaje original-
De: Subhrajyoti Moitra [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 26 de mayo de 2005 8:35
Para: tomcat-user@jakarta.apache.org
Asunto: Help with reloading a servlet for log4j logging.


Hi,

 

I am initializing Log4J system using an init servlet, which is loaded on
start-up (servlet name is Log4JInitServlet).

In web.xml I am pointing to the log4j.properties file using the param
tag.

 

 

Problem

Now suppose I change some properties in log4j.properties file. (change
the log level for example).

I want to reload this file with the changed properties and restart log4j
system with these new properties.

 

Question

 

Can I re-load the new properties file (and consequently the log4j
system) by reloading the initservlet (LogJInitServlet)?

Something similar to reloading an entire webcontext using
http://localhost/manager?reload=myLog4JApp. 

I don't want to restart tomcat to restart the logging system.

Can this be done in tomcat?

 

I am using tomcat 4.x version, on win32/linux systems.

 

Thanks a lot in advance,

 

Subhro.

 

 


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

Re: html:errors/ blank page on invalid form

2005-05-26 Thread Gurumoorthy
hello
html:form action=/SubmitLogonForm.do is wrong
html:form action=/SubmitLogonForm

Regards
Guru

- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, May 26, 2005 6:04 AM
Subject: Re: html:errors/ blank page on invalid form


 Andy wrote:

 Hi All,
 
 I'm unable to output any errors using html:errors/ tag, in Tomcat
 5.5.7 I've tried numerous configurations and have now ran out of
patience.
 As I haven't been using Struts for more than three days I hope somebody
 more experienced can point help me out.
 
 When I select Submit, entering data into my form fields so the form is
 parsed as valid, the forward works correctly. When I leave the fields
 empty, so the form is parsed as invalid, I just get an empty page back -
 which must be generated by Struts as it doesn't match any HTML I have.
 
 

 Check out the logs, you could be running into an exception. Also, set
 buffer size of 20kb on all your pages, while you're testing. Empty
 output can also be caused by an exception in the page itself, and buffer
 being already sent.

 Here is what I have in various files -
 

---
-
 
 
 logon.jsp -
 
 %@ page contentType=text/html;charset=UTF-8 language=java %
 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 html
 head
 titlebean:message key=logon.title//title
 /head
 body
 html:errors/
 html:form action=/SubmitLogonForm.do
 table
 tr
 tdUsername/td
 tdhtml:text property=username//td
 /tr
 tr
 tdPassword/td
 tdhtml:text property=password//td
 /tr
 tr
 td
 html:submit/
 html:cancel/
 /td
 td/td
 /tr
 /table
 /html:form
 
 /body
 
 

 Looks fine, except for the buffer page directive.

 In LogonAction.java -
 
 
 public ActionForward execute(ActionMapping mapping, ActionForm form,
  HttpServletRequest request,
 HttpServletResponse response)
 throws Exception {
 
 if (isCancelled(request)) {
 log.debug(cancel pressed);
 return mapping.findForward(Constants.FAILURE);
 }
 
 

 Why would you consider Cancel a failure? Not that it will not work,
but...

 LogonForm logonForm = (LogonForm)form;
 log.debug(username +logonForm.getUsername());
 log.debug(password +logonForm.getPassword());
 
 return mapping.findForward(Constants.SUCCESS);
 }
 
 

 You're not checking the login, but that's fine for a test.

 In LogonForm.java (I have getters/setters for HTML fields, and a reset
 method,
 not shown) -
 
 public ActionErrors validate(ActionMapping actionMapping,
 HttpServletRequest httpServletRequest) {
 
 log.debug(validate);
 ActionErrors errors = new ActionErrors();
 
 if
 (FormUtils.isNullOrEmpty(httpServletRequest.getParameter(username))) {
 log.debug(logon.form.username.invalid);
 errors.add(ActionErrors.GLOBAL_MESSAGE,new
 ActionMessage(logon.form.username.invalid));
 }
 
 

 You don't need to use GLOBAL_MESSAGE, that is wrong, I think. And use
 errors, not messages. My validation would read:

 errors.add( username, new ActionError( logon.form.username.invalid));

 Nix.

 -
 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: JPDA and Tomcat 5.5.9 Service on Windows

2005-05-26 Thread Philippe Johan
Hi cam,

When running tomcat as a windows service, there is also a configuration
screen.  If you do not yet have the small icon in the notification area,
you can use the Configure Tomcat option from the Start menu (or
tomcat5w.exe //ES//Tomcat5).
In this screen you can add the parameters on the Java tab (see attached
image)

Regards,

Johan

-Original Message-
From: cam r [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 24 mei 2005 16:04
To: Tomcat Users List
Subject: JPDA and Tomcat 5.5.9 Service on Windows

Hi all,

  I am trying to set up debugging on Tomcat while it is running as a
Windows service. The requirements of the project negate me from being
able to run it as a script.

  I have tried adding;

   -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y

  to the Java Options in the Java tab of the Apache Tomcat Properties
gui screen. I have also added;

   jpda start

  to the Arguments in the Startup tab of the Apache Tomcat Proeprties
gui screen. But have had no luck getting Tomcat to run.

 I have also tried setting the arguments for Tomcat through
environment variablesin;

   My Computer  Properties  Environment Variables  System Variables
 CATALINA_OPTS

 but this has not worked either.

 Has anyone set up debugging for Tomcat 5.5.9 while it is running as a
service? Any tips would be most welcome.


cam


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

Showing Tomcat Icon rather than DOS icon

2005-05-26 Thread Dakota Jack
How can I write my Tomcat startup script to show the Tomcat icon on a
PC bar rather than the DOS icon?  Thanks

-- 
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Raverkar, Sachin \(Sachin\)
Hi all, 
 
We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
We need to move onto JDK 1.5. We would build our war file using JDK 1.5.
Can we continue to use Tomcat-5.0.28 with  JDK 1.5? 
Do you see any problem? Are there any known issues?
Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
are we required to move to Tomcat 5.5 in order to move to JDK 1.5?
 
- Sachin


Re: HttpSessionListener

2005-05-26 Thread Christoph Kutzinski

Hi Randy,

Randy George wrote:


Hi Will and Christopher,

Good thought. I shut down Tomcat and started it again with a clean
set of logs:
localhost.2005-05-25.log
  .
  .
May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC')

I interpret this to show that the listener element in web.xml is
initialized and later a sessionCeated() method was actually called:
 .
 .
   public synchronized void sessionCreated (HttpSessionEvent se) {
   System.out.println(sessionCreated +sessionCount);
   sessionCount++;
   }

However, there is no entry in the stout log so whatever sessionCreated
method is called it is not the one registered?
listener
listener-classcom.test.SessionCounter/listener-class
/listener
 

Yes that is my thought, too. There is a SessionListener initialized but 
apparently not yours. You should put a log statement into the 
constructor of your listener and make sure.
You didn't answer my question about deployment: do you deploy your 
application on the development and the production box in the same way. 
If not, you should try to do it in the same way on the devel box as you 
do on the prod box and look if the problem appears on the prod box, too.
Another idea: the name (com.test.SessionCounter) of your listenere is 
not very unique. Maybe there is a conflcit with an existing class in 
Tomcats shared or common folder on the production system. Are there any 
other applications installed on the production tomcat?



I also just noticed that the Tomcat WebApp Manager is showing only 0's for
sessions regardless of how many sessions are started?
 

That is really strange. Are you sure that you are hitting the production 
tomcat with your tests? Any other log entries which could confirm that?



greetings,
Christoph

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



welcome file handling

2005-05-26 Thread Jureczky Bálint
Hello All,
 
We had problems with welcome-file handling after Tomcat upgrade. The welcome
file points to page like /dir1/dir2/index.jsp. The page is found despite the
fact that the servlet specification says leading / is not allowed, this is
valid in all Tomcat versions I know. 
 
The exact problem is that the behavior when I try to access webapp/dir1 via
browser is different in tomcat versions 4.1.29 and 5.0.28. In 5.0.28 the
pages in the frames are not displayed, they are not found in 4.1.29.
 
index.jsp uses framesets and relative paths to reference the elements of the
frame. I had the idea that maybe the mechanism how the welcome files are
displayed (redirect / forward) is changed, between the versions.
 
Do you know what is the difference which causes this behavior? Do you know
any workaround?
 
Thank you,
 
Balint Jureczky


Problems in building tomcat 4.1.27 from source

2005-05-26 Thread Gaurav Bansal

Can any one tell me how can I build the tomcat 4.1.27 from the source.
It was fairly easy to do it on tomcat 5.5.X with the help of ant alone
but on 4.1.27 it is giving too many errors.. I have resolved many but is
there no way we can build it cleanly ??

You can direct me some links also

Thanks in advance 
Gaurav

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



[OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Peter Crowther
[Marked off-topic as this now has nothing to do with Tomcat.]

 From: Steve Kirk [mailto:[EMAIL PROTECTED] 
 Can I ask how sure you felt of what you
 say here please:

Uhhh... how about 'the little pixies told me, and I believe everything
they say'? :-)  It's from a combination of knowing two folks who used to
run an ISP's DNS services to get details of the timeouts, plus a little
bit of digging into the format of SOA and A records.  In other words:
it's my opinion, do not take it as canon!  I'll try to explain my
reasoning below.

 I tried to research it
 but could not get to the bottom of it with any real info from 
 ISPs (the
 problem is that they seem to do their own thing to various 
 extents).

That is *exactly* the problem.  In essence, one cannot rely on some
aspects of the DNS specification in the real world, as real-world ISPs
hack with their software to improve performance for their environment in
ways that break the spec.  An example: I've taken cache expiry times on
a zone down to 5 minutes, several days before I knew I needed to move a
service to a new IP address; changed the DNS; and sure enough, some ISPs
were still handing out the old address 20 hours later because they
weren't respecting the stated expiry times and were substituting their
own, and the old service was still getting hits.

 I have set up roundrobin DNS for an ecommerce site in the 
 past without any
 complaints from users, and the  balance of load between a 
 pair of clustered servers seemed pretty even.

Good to know that it can work in the real world.  I can make all the
theoretical points I want, but the hard data in your statement is
probably worth more than the rest of this email.

 I would expect any DNS server run by an ISP
 (such as AOL) to receive the zone records from SOA intact, i.e. these
 major dns servers should know about all rr Ips for a given 
 dns name, and
 would therefore be able to RR distribute them to lower-tier 
 DNS servers.

Your expectation is incorrect, I think - even the large DNS servers make
standard requests for A records for the given FQDN, and cache the
result.  If the result contains a set of IP addresses in a particular
order, then that's what is obtained.  To my knowledge (my reasoning
falls down if this is not the case, so this is the bit to check!)
neither the returned A records themselves nor the returned SOA record
contain any indication that they should be handed out in a round-robin
fashion; and the SOA record would not typically be requested by another
server.

 I
 would have thought that the level at which DNS servers do not 
 pick up the
 fact that there is a RR DNS entry is where they do not do a 
 zone transfer
 from a primary DNS server - they simply act as a client and 
 cache what they
 get as a response, so they are unaware that there even are 
 more than one IP.

Even high-level DNS servers don't do zone transfers unless they're
secondaries for the zone.  And, even then, the information about whether
or not to use round-robin is an option set for the zone, not something
that appears in the SOA record for immediate use by the secondary.
Also, remember that many zones are configured to refuse zone transfer
requests from addresses that are not configured as secondaries.

 So overall I guess I'm saying I'd be surprised if AOL's DNS 
 servers only
 cached one entry of a RR set for a DNS name.  What are your thoughts?

I've revised my position slightly.  I think they'll cache the list in a
particular order, rather than a single entry; but the ordering of that
list will be fixed as they won't know to serve it in round-robin
fashion.  If you can confirm or challenge that position, I'd be
interested!

- Peter

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



RE: Showing Tomcat Icon rather than DOS icon

2005-05-26 Thread Steve Kirk
Right click, choose properties, click change icon, browse to tc dir, choose
tomcat.exe.

 -Original Message-
 From: Dakota Jack [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 08:47
 To: Tomcat Users List
 Subject: Showing Tomcat Icon rather than DOS icon
 
 
 How can I write my Tomcat startup script to show the Tomcat icon on a
 PC bar rather than the DOS icon?  Thanks
 
 -- 
 You can lead a horse to water but you cannot make it float 
 on its back.
 ~Dakota Jack~
 
 -
 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: Force Non-SSL

2005-05-26 Thread Steve Kirk

Not dreaming for a second of contradicting Tim ;) but wouldn't this work? 

Switch on SingleSignOn. Install two hosts on the same engine.  First host
has non-ssl connector only, second has ssl only. Install main webapp on
non-ssl host, without the login code.  Install just the login code on a
simplified webapp on the other host, and add a simple invoker servlet (or
similar) to redirect all other requests to urls on the main host.

It's not exactly trivial or elegant, and having to switch on SingleSignOn
might be a problem in some apps, but could it work?

I have been advised by a trusted friend experienced in these matters that
these sorts of config are better tackled by fronting your site with apache,
and using mod_rewrite to enforce the ssl vs no-ssl requirements.

 -Original Message-
 From: August Detlefsen [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 01:43
 To: Tomcat Users List
 Subject: Re: Force Non-SSL
 
 
 Is there no way to do it? SSL creates a lot of overhead for a 
 site that
 is serving up 100MB image files. 
 
 
 
 
 --- Tim Funk [EMAIL PROTECTED] wrote:
  no
  
  -Tim
  
  August Detlefsen wrote:
   In my webapp I force clients to use SSL encryption for logins with
  a
   security constraint and transport-guarantee elements like this: 
   
   security-constraint
 web-resource-collection
   web-resource-nameLogin/web-resource-name
   url-pattern/login/*/url-pattern
 /web-resource-collection
   
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
   /security-constraint
   
   However, once a user hits the login page, every subsequent page
  also
   uses https. Is there a way to force them back to regular http once
  they
   leave the login section? 
  
  
  
 -
  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/Personal Web Server Problem

2005-05-26 Thread Steve Kirk

Looks like TC cannot start.  If you have fresh installed it, then hazarding
a guess, I'd say it might be because the port might be in use.  You can't
have 2 servers on the same port. Did you have them configured to run on the
same port (8080)?

One thing to check is to open a dos window then type netstat -a, this will
list all ports in use on your machine.  Give it a while to run, this can
sometimes take up to a minute depending on what's running on your machine.
If 8080 is listed there and tomcat is not started, you know that the old
config of PWS still has the port.  You need to take further steps to
uninstall it.

Or, change the port that either TC or PWS runs on.  Then you can run both at
once if you like.

 -Original Message-
 From: Robin Rembish [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday 25 May 2005 23:03
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat/Personal Web Server Problem
 
 
 I had both Tomcat 4.1 and Microsoft Personal Web Server 
 installed on my laptop ( an IBM Thinkpad - Windows NT 
 operating system). It had been several months since I used Tomcat. 
 
 When I started the Tomcat server and typed in localhost:8080 
 in the Internet Explorer address window, it brought me to 
 Personal Web Server rather than bringing up the Tomcat page.
 
 I then decided to uninstall both Personal Web Server and the 
 Java Web Services Developers Pack. But after reinstalling the 
 latter, I am getting a page not found condition. (Details are below).
 
 On the advice of someone at a technical forum, I started 
 Tomcat (Start/Programs/Java Web Services Developer Pack 
 1.1/Start Tomcat)
 
 and then checked 
 
 Start/Programs/Administrative Tools/Windows NT Diagnostics/Services
 
 It had:
 
 JavaWebServer Stopped
 
 although the services log file (and all other log files) 
 under jwsdp-1_1 indicated Tomcat was running
 
 If anyone can help, I'd really appreciate it.
 
 Robin
 
 Type in Address Window:
 http://localhost:8080
 
 Error message:
 
 Page cannot be displayed
 The page you are looking for is currently unavailable
 
 
 In Internet Explorer
 Above Address Window:
 res://C:\WINNT\System32\shdoclc.dll/dnserror.htm#http://localh
 ost:8080/
 
 
 
 
 
 



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



RE: sign Files using Aladdin's eToken USB Pro

2005-05-26 Thread Philippe Johan
Hi Carol,

You can not always copy a private key stored on a token to somewhere
else.  Many of these devices are constructed especially to make this
impossible.  I know for a fact that that this is the case for example
with SmartCards use in the banking world to access secured systems.
In general the best bet to use these from java is through the PKCS#11
implementation.

See the IAIK implementation for example:
http://jce.iaik.tugraz.at/products/15_PKCS11_Provider/Using.php

Good luck,

Johan

-Original Message-
From: Carol Chamblas [mailto:[EMAIL PROTECTED] 
Sent: donderdag 26 mei 2005 4:31
To: tomcat-user@jakarta.apache.org
Subject: sign Files using Aladdin's eToken USB Pro

i had configured tomcat to use secure connections (https), and i've
included 
the root certificated from my CA in the cacerts file from JAVA_HOME.

so, i've also installed the drivers from my eToken, and when i load my
page 
with https, the certificated stored in my eToken is shown.

when i choose it. it ask me for the password, and after i put it, the 
servlet in the other side sees the certificate without problems

the question is, how do i use or obtain the private key stored in the 
eToken??

here is the code that i'm using

XMLSignature sig = *new* XMLSignature(XMLDoc, BaseURI,
XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1 );
 
NodeList nl = XMLDoc.getElementsByTagName(Content);
*if* (nl.getLength()  1)
{
System.out.println(firmar::no hay nodo Content??);
*return* *false*;
}
(nl.item(0)).appendChild(sig.getElement());
   
{
 String Id = S + (firmantes.size() + 1);
 Transforms transforms = *new* Transforms(XMLDoc);
 

transforms.addTransform(Transforms.TRANSFORM_C14N_OMIT_COMMENTS);
 sig.addDocument(BaseURI, transforms,
Constants.ALGO_ID_DIGEST_SHA1);
 sig.setId(Id);
  }
sig.addKeyInfo(cert);
sig.addKeyInfo(cert.getPublicKey());
System.out.println(Start signing);
sig.sign(privateKey);
System.out.println(Finished signing);



-- 
Nada es imposible,
hasta que se demuestre lo contrario - yo


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



Re: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Tim Diggins
I'm not an expert, but I believe (from experience  previous googling) 
that tomcat 5.0.x will respond with an exception 
(IncorrectClassFileFormat or something) when it encounters class files 
compiled with jdk1.5, and that thus yes you need 5.5.


There are some recent threads about migrating from 5.0 to 5.5, in 
particular I recall discussion of change of default logging library.


-- Tim

Raverkar, Sachin (Sachin) wrote:
Hi all, 
 
We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.

We need to move onto JDK 1.5. We would build our war file using JDK 1.5.
Can we continue to use Tomcat-5.0.28 with  JDK 1.5? 
Do you see any problem? Are there any known issues?

Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
are we required to move to Tomcat 5.5 in order to move to JDK 1.5?
 
- Sachin





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



Re: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread delbd
Exception about class file format would be encountered only if tomcat would be 
run on a jvm 1.4 and you deploy a war containing 1.5 compiled classes.

If you run tomcat with jvm 1.5 it should be able to load classes from a war 
containing 1.5 compiled classes. 
The main problem which could arise is if tomcat 5.0.x uses a java class or 
method which disappeared on jvm1.5. Just give it a try :)


Le Jeudi 26 Mai 2005 11:28, Tim Diggins a écrit :
 I'm not an expert, but I believe (from experience  previous googling)
 that tomcat 5.0.x will respond with an exception
 (IncorrectClassFileFormat or something) when it encounters class files
 compiled with jdk1.5, and that thus yes you need 5.5.

 There are some recent threads about migrating from 5.0 to 5.5, in
 particular I recall discussion of change of default logging library.

 -- Tim

 Raverkar, Sachin (Sachin) wrote:
  Hi all,
 
  We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
  We need to move onto JDK 1.5. We would build our war file using JDK 1.5.
  Can we continue to use Tomcat-5.0.28 with  JDK 1.5?
  Do you see any problem? Are there any known issues?
  Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
  are we required to move to Tomcat 5.5 in order to move to JDK 1.5?
 
  - Sachin

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

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



Re: welcome file handling

2005-05-26 Thread Tim Diggins

Don't know about the difference, but a couple of potential workarounds:

1) could be to have your welcome page just be the default index.jsp and 
have it just contain a redirect to the relevant page (but this will mean 
a response-request roundtrip for your user).


2) alternatively you could include a base href=(absolute url) in the 
body of your frameset, but this would add a dependency on your server 
name, port, and context path in your html (yuck), but you could get 
around this with something from JSTL (which I don't know so well, but 
something like %@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

c:url value=dir1/dir2/index.jsp/).

Tim

Jureczky Bálint wrote:

Hello All,
 
We had problems with welcome-file handling after Tomcat upgrade. The welcome

file points to page like /dir1/dir2/index.jsp. The page is found despite the
fact that the servlet specification says leading / is not allowed, this is
valid in all Tomcat versions I know. 
 
The exact problem is that the behavior when I try to access webapp/dir1 via

browser is different in tomcat versions 4.1.29 and 5.0.28. In 5.0.28 the
pages in the frames are not displayed, they are not found in 4.1.29.
 
index.jsp uses framesets and relative paths to reference the elements of the

frame. I had the idea that maybe the mechanism how the welcome files are
displayed (redirect / forward) is changed, between the versions.
 
Do you know what is the difference which causes this behavior? Do you know

any workaround?
 
Thank you,
 
Balint Jureczky





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



RE: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Steve Kirk

 The main problem which could arise is if tomcat 5.0.x uses a 
 java class or 
 method which disappeared on jvm1.5

This would be doc'd in 1.5 release notes, didn't notice anything relevant
when I upgraded: 
http://java.sun.com/j2se/1.5.0/compatibility.html 

Also, why would the TC team release a compatibility package for 5.5 on 1.4
if they thought it wouldn't run anyway?

As delbd says, give it a try.



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



RE: [OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Steve Kirk

Thanks Peter, interesting.  Your experience of it sounds similar to other
experiences I've had when changing from one ISP to another (there seems to
be a cutover time of up to 3 days where some 3rd party ISPs clearly still
cached and served the old IP for our domain name).  It was because of this
that I investigated more at the time, but as you say, it's each ISP to their
own practice.

  I would expect any DNS server run by an ISP
  (such as AOL) to receive the zone records from SOA intact, 
  i.e. these
  major dns servers should know about all rr Ips for a given 
  dns name, and
  would therefore be able to RR distribute them to lower-tier 
  DNS servers.
 
 Your expectation is incorrect, I think - even the large DNS 
 servers make
 standard requests for A records for the given FQDN, and cache the
 result.  

Yes you're probably right there now I think about it.  I think these are
referred to as caching servers as opposed to secondary.  It's the
secondaries that receive the zone transfers.

Having said that, I'd have thought that a large ISP such as AOL would have
secondaries, (inaccesible by joe public), but would also have caching
servers, which are the ones they make public.  Since they typically have
several caching DNS servers, in theory there is a good chance that each of
them will get a different one of the RR Ips from their secondary server, so
in theory the RR goal is often achieved?  For example I just used DOS
nslookup to query my ISPs 2 main dns servers for www.microsoft.com - they
each returned a different address, although repeatedly querying each one
returns the same answer every time.  If I go through a local caching DNS on
my LAN, that returns a third address for MS - again, the same one every
time.

 If the result contains a set of IP addresses in a particular
 order, then that's what is obtained.  To my knowledge (my reasoning
 falls down if this is not the case, so this is the bit to check!)
 neither the returned A records themselves nor the returned SOA record
 contain any indication that they should be handed out in a round-robin
 fashion; and the SOA record would not typically be requested 
 by another
 server.

AFAIK that is correct, the DNS protocol does not say anything about how DNS
servers should respond to clients when there are multiple Ips registered in
DNS for a host.  Likewise if the DNS server only returns one IP all the
time, the client protocol provides no way for the client to say give me the
next one or give me number 3 or give me them all.  So some caching DNS
servers will always return the first one in the list, others will order Ips
according to their own rule (which meets the spec) but then always serve the
first one in that order.  And others will cycle through them in turn (which
is RR).  Basically, it's internal feature of the DNS server to decide how
it treats hostnames for which is has more than one IP.  

Of these 3 basic approaches, the first gives no RR, the second is slightly
better, the 3rd is the best.  Of course they are all only rudimentary load
balancing methods, and of course even the 3rd falls down if ISPs with
millions of users happen to cache a single IP for a site, as you say. 

Someone please correct me if any of this is wrong, as I'd like to understand
this area better :)

PS this has rekindled my interest so I just googled to refresh my mind on
the basics, this seems a useful page that explains what we are talking about
above.
http://www.onjava.com/pub/a/onjava/2001/09/26/load.html 



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



RE: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Steve Kirk
You can run 5.0.28 on jdk1.5 but you need to add a compatibility package
which is available from the tc downloads page.  Basically it adds 3 jars to
fix issues with xml compatibility with the 1.4 vm.

I haven't done it myself (I upgraded both at once) but google some of these
words and you can read all about it.

PS if you do go to 5.5 and have DBCP, be sure to change your context.xml to
the new format required by TC5.5.  I spent nearly 3 days working that out.

 -Original Message-
 From: Raverkar, Sachin (Sachin) [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 08:58
 To: tomcat-user@jakarta.apache.org
 Subject: Are we required to move to Tomcat 5.5 in order to 
 move to JDK 1.5
 
 
 Hi all, 
  
 We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
 We need to move onto JDK 1.5. We would build our war file 
 using JDK 1.5.
 Can we continue to use Tomcat-5.0.28 with  JDK 1.5? 
 Do you see any problem? Are there any known issues?
 Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
 are we required to move to Tomcat 5.5 in order to move to JDK 1.5?
  
 - Sachin
 



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



RE: JPDA and Tomcat 5.5.9 Service on Windows

2005-05-26 Thread Steve Kirk

I've been running tomcat on windows for 5 years, as a service for 2 years,
and I didn't know that screen existed !!  What a revelation.  :)

 -Original Message-
 From: Philippe Johan [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 08:09
 To: tomcat-user@jakarta.apache.org
 Cc: cam r
 Subject: RE: JPDA and Tomcat 5.5.9 Service on Windows
 
 
 Hi cam,
 
 When running tomcat as a windows service, there is also a 
 configuration
 screen.  If you do not yet have the small icon in the 
 notification area,
 you can use the Configure Tomcat option from the Start menu (or
 tomcat5w.exe //ES//Tomcat5).
 In this screen you can add the parameters on the Java tab 
 (see attached
 image)
 
 Regards,
 
 Johan
 
 -Original Message-
 From: cam r [mailto:[EMAIL PROTECTED] 
 Sent: dinsdag 24 mei 2005 16:04
 To: Tomcat Users List
 Subject: JPDA and Tomcat 5.5.9 Service on Windows
 
 Hi all,
 
   I am trying to set up debugging on Tomcat while it is running as a
 Windows service. The requirements of the project negate me from being
 able to run it as a script.
 
   I have tried adding;
 
-Xdebug 
 -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
 
   to the Java Options in the Java tab of the Apache Tomcat Properties
 gui screen. I have also added;
 
jpda start
 
   to the Arguments in the Startup tab of the Apache Tomcat Proeprties
 gui screen. But have had no luck getting Tomcat to run.
 
  I have also tried setting the arguments for Tomcat through
 environment variablesin;
 
My Computer  Properties  Environment Variables  System Variables
  CATALINA_OPTS
 
  but this has not worked either.
 
  Has anyone set up debugging for Tomcat 5.5.9 while it is running as a
 service? Any tips would be most welcome.
 
 
 cam
 
 
 



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



RE: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Steve Kirk

I was not looking forward to reconfiguring logging, as it'd always been an
area that generated some confusion, but if anything logging is easier on 5.5
than 5.0 IMHO.

I had Loggers configured in 5.0, but these are redundant in 5.5, so I have
no logging config at all now - I just use the java.util.logging classes in
my servlet code (no changes at all since it ran on 5.0), and it works
perfectly for my needs without any config file at all.

 -Original Message-
 From: Tim Diggins [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 10:28
 To: Tomcat Users List
 Subject: Re: Are we required to move to Tomcat 5.5 in order 
 to move to JDK 1.5
 
 
 I'm not an expert, but I believe (from experience  previous 
 googling) 
 that tomcat 5.0.x will respond with an exception 
 (IncorrectClassFileFormat or something) when it encounters 
 class files 
 compiled with jdk1.5, and that thus yes you need 5.5.
 
 There are some recent threads about migrating from 5.0 to 5.5, in 
 particular I recall discussion of change of default logging library.
 
 -- Tim
 
 Raverkar, Sachin (Sachin) wrote:
  Hi all, 
   
  We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
  We need to move onto JDK 1.5. We would build our war file 
 using JDK 1.5.
  Can we continue to use Tomcat-5.0.28 with  JDK 1.5? 
  Do you see any problem? Are there any known issues?
  Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
  are we required to move to Tomcat 5.5 in order to move to JDK 1.5?
   
  - Sachin
  
 
 
 -
 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]



Fwd: garbage collection problem with class sun.reflect.GeneratedMethodAccessor

2005-05-26 Thread dharshana vanderbona
Hi All,

I'm working on a web application which uses Struts  JSPs.
Platform : Linux
Servlet Engine : Tomcat 5.5
Java version: Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed
mode, sharing)

with the following settings.
JAVA_OPTS=-Xms512m -Xmx512m
JAVA_OPTS=$JAVA_OPTS -verbose:gc -XX:+PrintGCTimeStamps

After running the system for sometime with around 50 users I noticed
that the system is starting to fillup the memory. But strangely even
after all the users have disconnected, the amount of used memory did
not change (see below)..

Thereafter I put %System.gc();% inside a jsp and called it, and I
was able to see that it freed up all the memory and brought the
application to normal state again...


Following is the extract of the log file..

9016.887: [GC 449375K-417120K(520256K), 0.0053700 secs]
59219.795: [GC 449376K-417117K(520256K), 0.0127150 secs]
59373.876: [GC 449373K-421264K(520256K), 0.0118400 secs]
-- this is where I ran the GC command...
59374.291: [Full GC[Unloading class sun.reflect.GeneratedMethodAccessor588]
[Unloading class sun.reflect.GeneratedMethodAccessor554]
[Unloading class sun.reflect.GeneratedMethodAccessor584]
[Unloading class sun.reflect.GeneratedMethodAccessor580]
[Unloading class sun.reflect.GeneratedMethodAccessor538]
[Unloading class sun.reflect.GeneratedMethodAccessor540]
[Unloading class sun.reflect.GeneratedMethodAccessor536]
[Unloading class org.apache.jsp.results_jsp]
[Unloading class sun.reflect.GeneratedMethodAccessor550]
[Unloading class sun.reflect.GeneratedMethodAccessor548]
[Unloading class sun.reflect.GeneratedMethodAccessor570]
[Unloading class sun.reflect.GeneratedMethodAccessor565]
[Unloading class sun.reflect.GeneratedMethodAccessor551]
[Unloading class sun.reflect.GeneratedMethodAccessor589]
[Unloading class sun.reflect.GeneratedMethodAccessor534]
[Unloading class sun.reflect.GeneratedMethodAccessor571]
[Unloading class sun.reflect.GeneratedMethodAccessor552]
[Unloading class sun.reflect.GeneratedMethodAccessor542]
[Unloading class sun.reflect.GeneratedMethodAccessor546]
[Unloading class sun.reflect.GeneratedMethodAccessor557]
[Unloading class sun.reflect.GeneratedMethodAccessor587]
[Unloading class sun.reflect.GeneratedMethodAccessor566]
[Unloading class sun.reflect.GeneratedMethodAccessor567]
[Unloading class sun.reflect.GeneratedMethodAccessor585]
[Unloading class sun.reflect.GeneratedMethodAccessor558]
[Unloading class sun.reflect.GeneratedMethodAccessor533]
[Unloading class sun.reflect.GeneratedMethodAccessor535]
[Unloading class sun.reflect.GeneratedMethodAccessor582]
[Unloading class sun.reflect.GeneratedMethodAccessor549]
[Unloading class sun.reflect.GeneratedMethodAccessor545]
[Unloading class sun.reflect.GeneratedMethodAccessor586]
[Unloading class sun.reflect.GeneratedMethodAccessor572]
[Unloading class sun.reflect.GeneratedMethodAccessor537]
[Unloading class sun.reflect.GeneratedMethodAccessor556]
[Unloading class sun.reflect.GeneratedMethodAccessor563]
[Unloading class sun.reflect.GeneratedMethodAccessor544]
[Unloading class sun.reflect.GeneratedMethodAccessor569]
[Unloading class sun.reflect.GeneratedMethodAccessor583]
[Unloading class sun.reflect.GeneratedMethodAccessor573]
[Unloading class sun.reflect.GeneratedMethodAccessor564]
[Unloading class sun.reflect.GeneratedMethodAccessor547]
[Unloading class sun.reflect.GeneratedMethodAccessor543]
[Unloading class sun.reflect.GeneratedMethodAccessor581]
[Unloading class sun.reflect.GeneratedMethodAccessor555]
[Unloading class sun.reflect.GeneratedMethodAccessor553]
[Unloading class sun.reflect.GeneratedMethodAccessor541]
[Unloading class sun.reflect.GeneratedMethodAccessor568]
[Unloading class sun.reflect.GeneratedMethodAccessor539]
 432832K-110487K(520256K), 0.7306930 secs]



Can someone please let me know what is going wrong here..

Thanks,
Dharshana

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



Re: Force Non-SSL

2005-05-26 Thread Tim Funk

From a config point of view no. The simple workaround
- Ditch the web.xml config for requiring SSL
- Create a filter which checks the scheme and URL - if the do not match what 
you desire - you can issue a redirect in the filter to https (or http) as desired



-Tim

August Detlefsen wrote:


Is there no way to do it? SSL creates a lot of overhead for a site that
is serving up 100MB image files. 





--- Tim Funk [EMAIL PROTECTED] wrote:


no

-Tim

August Detlefsen wrote:


In my webapp I force clients to use SSL encryption for logins with


a

security constraint and transport-guarantee elements like this: 


   security-constraint
 web-resource-collection
   web-resource-nameLogin/web-resource-name
   url-pattern/login/*/url-pattern
 /web-resource-collection

 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
   /security-constraint

However, once a user hits the login page, every subsequent page


also


uses https. Is there a way to force them back to regular http once


they

leave the login section? 



-
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: [OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Peter Crowther
 From: Steve Kirk [mailto:[EMAIL PROTECTED] 
 Thanks Peter, interesting.

Internet issues in the large tend to be - you get emergent behaviour
that is often unexpected :-).

 I think these are
 referred to as caching servers as opposed to secondary.  It's the
 secondaries that receive the zone transfers.

Yes.  Note that these roles are per-zone; a given DNS server may act as
a primary or secondary for some zones, and as a caching server for
others.

 Having said that, I'd have thought that a large ISP such as 
 AOL would have
 secondaries, (inaccesible by joe public), but would also have caching
 servers, which are the ones they make public.

It would be difficult to persuade those secondaries to be effective -
for what zones are they secondaries?  Let's say AOL want to act as a
secondary for foo.com.  How do AOL contact the owners of foo.com in
order to request that their secondary server is added to the list of
allowed IPs for zone transfers?  Other than that, AOL could then make
use of those servers as forwarders from their caching servers, I accept.

 Since they typically have
 several caching DNS servers, in theory there is a good chance 
 that each of
 them will get a different one of the RR Ips from their 
 secondary server, so
 in theory the RR goal is often achieved?

Assuming they are independent and not configured to use the same
forwarders, yes.  You might be surprised how few DNS servers an
organisation needs, though - Demon (my home ISP, and not a small one)
has two, and could probably get away with one except for redundancy.
I've not seen an ISP setup document yet that says to use primary and
secondary DNS of ns47.isp.net and ns32.isp.net - they're almost all ns0
and ns1 or ns1 and ns2, indicating that there are probably very few in
the organisation.

 For example I just used DOS
 nslookup to query my ISPs 2 main dns servers for 
 www.microsoft.com - they
 each returned a different address, although repeatedly 
 querying each one
 returns the same answer every time.  If I go through a local 
 caching DNS on
 my LAN, that returns a third address for MS - again, the same 
 one every time.

Yup.  So anyone using your ISP's DNS servers will get one of two IPs for
www.microsoft.com at present, out of the however many they have.  Lumpy
load balancing in action :-).

You likely haven't set up your own caching DNS to forward requests to
your ISP's DNS servers; otherwise you'd have had one of the same
answers.

 Basically, it's internal feature of the DNS server 
 to decide how
 it treats hostnames for which is has more than one IP.

Indeed.

 PS this has rekindled my interest so I just googled to 
 refresh my mind on
 the basics, this seems a useful page that explains what we 
 are talking about above.
 http://www.onjava.com/pub/a/onjava/2001/09/26/load.html 

Yes, that seems like a reaonable summary, although it doesn't really go
into the caching effects we're discussing here.

- Peter

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



Re: shared install under Linux

2005-05-26 Thread Mark
Is this for a development environment ?

On 5/23/05, Marius Scurtescu [EMAIL PROTECTED] wrote:
 Hi,
 
 Could anyone share some advice on how to install Tomcat on a Linux box
 such that it can be shared by several users?
 
 I would imagine that you install Tomcat to a system folder like /usr or
 /opt and then users that want to use Tomcat will have configuration
 files in their own home folders.
 
 Any advice for a typical Linux install in general (folder layout),
 sharing aside?
 
 Thanks,
 Marius
 
 
 -
 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/Personal Web Server Problem

2005-05-26 Thread Robin Rembish
Steve,

Thanks for responding.  The results of netstat -a include the following:

Active Connections

  Proto  Local Address  Foreign AddressState
  TCP4e317:8080 0.0.0.0:0  LISTENING
  TCP4e317:8081 0.0.0.0:0  LISTENING

According to the jwsdp launcher server log, Tomcat is using ports 8080 and
8081.
How would I change the port that Personal Web Server runs on?  Please keep
in mind that PWS was uninstalled.  However, when this problem is resolved, I
want to re-install it.  So what is the best plan of attack and how do I
accomplish it?

Clearly, I know nothing about technical support.  So I need a step-by-step
process.

Thanks,

Robin



- Original Message -
From: Steve Kirk [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, May 26, 2005 5:06 AM
Subject: RE: Tomcat/Personal Web Server Problem



Looks like TC cannot start.  If you have fresh installed it, then hazarding
a guess, I'd say it might be because the port might be in use.  You can't
have 2 servers on the same port. Did you have them configured to run on the
same port (8080)?

One thing to check is to open a dos window then type netstat -a, this will
list all ports in use on your machine.  Give it a while to run, this can
sometimes take up to a minute depending on what's running on your machine.
If 8080 is listed there and tomcat is not started, you know that the old
config of PWS still has the port.  You need to take further steps to
uninstall it.

Or, change the port that either TC or PWS runs on.  Then you can run both at
once if you like.

 -Original Message-
 From: Robin Rembish [mailto:[EMAIL PROTECTED]
 Sent: Wednesday 25 May 2005 23:03
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat/Personal Web Server Problem


 I had both Tomcat 4.1 and Microsoft Personal Web Server
 installed on my laptop ( an IBM Thinkpad - Windows NT
 operating system). It had been several months since I used Tomcat.

 When I started the Tomcat server and typed in localhost:8080
 in the Internet Explorer address window, it brought me to
 Personal Web Server rather than bringing up the Tomcat page.

 I then decided to uninstall both Personal Web Server and the
 Java Web Services Developers Pack. But after reinstalling the
 latter, I am getting a page not found condition. (Details are below).

 On the advice of someone at a technical forum, I started
 Tomcat (Start/Programs/Java Web Services Developer Pack
 1.1/Start Tomcat)

 and then checked

 Start/Programs/Administrative Tools/Windows NT Diagnostics/Services

 It had:

 JavaWebServer Stopped

 although the services log file (and all other log files)
 under jwsdp-1_1 indicated Tomcat was running

 If anyone can help, I'd really appreciate it.

 Robin
 
 Type in Address Window:
 http://localhost:8080

 Error message:

 Page cannot be displayed
 The page you are looking for is currently unavailable


 In Internet Explorer
 Above Address Window:
 res://C:\WINNT\System32\shdoclc.dll/dnserror.htm#http://localh
 ost:8080/









-
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: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread David Smith
Small correction -- 5.5 needs the compat package to work on jdk l.4, not 
5.0 needs it to work on jdk 1.5. I've used TC 5.0  jdk 1.5 together no 
problem.


--David

Steve Kirk wrote:


You can run 5.0.28 on jdk1.5 but you need to add a compatibility package
which is available from the tc downloads page.  Basically it adds 3 jars to
fix issues with xml compatibility with the 1.4 vm.

I haven't done it myself (I upgraded both at once) but google some of these
words and you can read all about it.

PS if you do go to 5.5 and have DBCP, be sure to change your context.xml to
the new format required by TC5.5.  I spent nearly 3 days working that out.

 


-Original Message-
From: Raverkar, Sachin (Sachin) [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 May 2005 08:58

To: tomcat-user@jakarta.apache.org
Subject: Are we required to move to Tomcat 5.5 in order to 
move to JDK 1.5



Hi all, 


We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
We need to move onto JDK 1.5. We would build our war file 
using JDK 1.5.
Can we continue to use Tomcat-5.0.28 with  JDK 1.5? 
Do you see any problem? Are there any known issues?

Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
are we required to move to Tomcat 5.5 in order to move to JDK 1.5?

- Sachin

   





-
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: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Steve Kirk
Yes sorry, david is correct, I got it backwards.

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 12:59
 To: Tomcat Users List
 Subject: Re: Are we required to move to Tomcat 5.5 in order 
 to move to JDK 1.5
 
 
 Small correction -- 5.5 needs the compat package to work on 
 jdk l.4, not 
 5.0 needs it to work on jdk 1.5. I've used TC 5.0  jdk 1.5 
 together no 
 problem.
 
  --David
 
 Steve Kirk wrote:
 
 You can run 5.0.28 on jdk1.5 but you need to add a 
 compatibility package
 which is available from the tc downloads page.  Basically it 
 adds 3 jars to
 fix issues with xml compatibility with the 1.4 vm.
 
 I haven't done it myself (I upgraded both at once) but 
 google some of these
 words and you can read all about it.
 
 PS if you do go to 5.5 and have DBCP, be sure to change your 
 context.xml to
 the new format required by TC5.5.  I spent nearly 3 days 
 working that out.
 
   
 
 -Original Message-
 From: Raverkar, Sachin (Sachin) [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 08:58
 To: tomcat-user@jakarta.apache.org
 Subject: Are we required to move to Tomcat 5.5 in order to 
 move to JDK 1.5
 
 
 Hi all, 
  
 We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
 We need to move onto JDK 1.5. We would build our war file 
 using JDK 1.5.
 Can we continue to use Tomcat-5.0.28 with  JDK 1.5? 
 Do you see any problem? Are there any known issues?
 Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
 are we required to move to Tomcat 5.5 in order to move to JDK 1.5?
  
 - Sachin
 
 
 
 
 
 
 -
 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: [OT] RE: DNS Request distribution and TCP NAT distribution For Tomcat Cluster

2005-05-26 Thread Steve Kirk

 Yup.  So anyone using your ISP's DNS servers will get one of 
 two IPs for
 www.microsoft.com at present, out of the however many they 
 have.  Lumpy
 load balancing in action :-).

Yes true, hadn't thought of it like that.  Where a site has more Ips for a
host than an ISP has DNS servers, this is going to lead to lumpiness.

I guess this is one of the key reasons why RR DNS is only ever a poor man's
load balancer.  OK-ish if you have 2 Ips, gets worse if you have more.

 You likely haven't set up your own caching DNS to forward requests to
 your ISP's DNS servers; otherwise you'd have had one of the same
 answers.

Funnily enough I have, and I use Demon too.  I think my local DNS has maybe
kept an MS entry cached and it's refresh TTL is out of sync with the demon
DNS caches.  But what you say is right - if I restart that local DNS, it
will then get a fresh MS entry from one of the 2 cached at the Demon
servers.  In fact I just have, and it did.

Thanks again, that's clarified a few things I was a bit fuzzy on.

Sorry John for the slight off-topic diversion but I hope this diversion on
RR DNS might have been of interest to you too.



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



RE: garbage collection problem with class sun.reflect.GeneratedMethodAccessor

2005-05-26 Thread Caldarale, Charles R
 From: dharshana vanderbona [mailto:[EMAIL PROTECTED] 
 Subject: Fwd: garbage collection problem with class 
 sun.reflect.GeneratedMethodAccessor
 
 After running the system for sometime with around 50 users I noticed
 that the system is starting to fillup the memory. But strangely even
 after all the users have disconnected, the amount of used memory did
 not change (see below)..
 
 Thereafter I put %System.gc();% inside a jsp and called it, and I
 was able to see that it freed up all the memory and brought the
 application to normal state again...
 
 Can someone please let me know what is going wrong here..

Nothing's going wrong - all that you've described is perfectly normal
and expected behavior.  Garbage collection does not run until it has to,
or it's forced, via the System.gc() call.

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



Context Class with Tomcat 5.5.7

2005-05-26 Thread luc_boudreau
I'm developping on Tomcat 5.5.7 and I want to use the Environment Entries with 
my servers.

 

To access those entries, it seems like I need to use the Context class located 
in the package org.apache.tomcat.core.Context.

 

I cannot find this package or the source code for this class. Is there :

 

1.  Another way to access the entrie's value; 
2.  A precompiled package available; 
3.  Source code available; 

 

Thanks !

 

Luc Boudreau

Université du Québec

Canada

 



RE: welcome file handling

2005-05-26 Thread Jureczky Bálint
I thinking your proposal 1 is good, it has the least impact on existing
code. Proposal 2 is not too easy to follow because the name and port should
be in my case the ip of an external firewall (which is not known).

I'm still very interested what is in the background of the different
behavior.

Balint


-Original Message-
From: Tim Diggins [mailto:[EMAIL PROTECTED] 
Sent: 2005.május 26. 12:18
To: Tomcat Users List
Subject: Re: welcome file handling

Don't know about the difference, but a couple of potential workarounds:

1) could be to have your welcome page just be the default index.jsp and 
have it just contain a redirect to the relevant page (but this will mean 
a response-request roundtrip for your user).

2) alternatively you could include a base href=(absolute url) in the 
body of your frameset, but this would add a dependency on your server 
name, port, and context path in your html (yuck), but you could get 
around this with something from JSTL (which I don't know so well, but 
something like %@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
c:url value=dir1/dir2/index.jsp/).

Tim

Jureczky Bálint wrote:
 Hello All,
  
 We had problems with welcome-file handling after Tomcat upgrade. The
welcome
 file points to page like /dir1/dir2/index.jsp. The page is found despite
the
 fact that the servlet specification says leading / is not allowed, this is
 valid in all Tomcat versions I know. 
  
 The exact problem is that the behavior when I try to access webapp/dir1
via
 browser is different in tomcat versions 4.1.29 and 5.0.28. In 5.0.28 the
 pages in the frames are not displayed, they are not found in 4.1.29.
  
 index.jsp uses framesets and relative paths to reference the elements of
the
 frame. I had the idea that maybe the mechanism how the welcome files are
 displayed (redirect / forward) is changed, between the versions.
  
 Do you know what is the difference which causes this behavior? Do you know
 any workaround?
  
 Thank you,
  
 Balint Jureczky
 


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


RE: Context Class with Tomcat 5.5.7

2005-05-26 Thread Steve Kirk

You might not need code/docs to do that, you might be OK just reading the
JNDI how-to:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-resources-howto.html 

See also this page. 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html 

If you do need the docs, you could maybe use the docs for
javax.servlet.ServletContext which is the interface that
org.apache.tomcat.core.Context implements.  Docs here: 
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContex
t.html 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 13:41
 To: tomcat-user@jakarta.apache.org
 Subject: Context Class with Tomcat 5.5.7
 
 
 I'm developping on Tomcat 5.5.7 and I want to use the 
 Environment Entries with my servers.
 
  
 
 To access those entries, it seems like I need to use the 
 Context class located in the package org.apache.tomcat.core.Context.
 
  
 
 I cannot find this package or the source code for this class. 
 Is there :
 
  
 
 1.Another way to access the entrie's value; 
 2.A precompiled package available; 
 3.Source code available; 
 
  
 
 Thanks !
 
  
 
 Luc Boudreau
 
 Université du Québec
 
 Canada
 
  
 
 



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



Logging to two logfiles by classes instantiated by init

2005-05-26 Thread Steve Kirk

I have always used 2 ways of logging.  Mainly I use java.util.logging
classes, including a custom Formatter that I wrote myself.  I do not use
log4j.  When my webapp first starts, the init() method of my own custom
Invoker servlet loads the config for my main logging code is loaded from
web.xml using getInitParameter(), so if for any reason that config is bad,
or some other exception happens during init(), I use the bogstandard
javax.servlet.GenericServlet#log() method to log any problems to TC's own
loggers.  All of this works fine.

Once initialised, my main logging code works by providing a static method
that any servlet in the webapp inherits.

Now, here is the weird thing.  When Invoker.writeToLog is called by a class
that was instantiated during Invoker#init(), it writes the log message to
both its own logfile and the TC stdout log.  These two files have quite
different formatters, and the message appears in the appropriate format in
each file.  When double-logging happens, the TC log clearly shows that
Invoker.writeToLog was the calling method, so it's not just that my code is
calling both methods.  Servlets and classes loaded/instantiated later log
correctly to my main log only.

Can anyone suggest what might be causing this please?  More details on setup
below.

I have been running TC5.0.x on JDK1.4.x for about a year, and previous
versions before that.  I just upgraded to TC5.5.9/jdk1.5.0_02.  Have made
the config changes required and it all works swimmingly.  Only one problem
persists, a small logging issue, which in fact was there before, but I
ignored it.  Basically some of my log statements get written to two files at
the same time.

However, given that logging has moved on a bit in 5.5, this is a chance to
clean things up, so I have decided to take a look at it.  I have removed the
Logger that used to be in conf/server.xml in TC5.0.  I therefore have the
bogstandard logging that ships in a standard 5.5 TC install.  (I do have a
FastCommonAccessLogValve and a RequestDumperValve configured but I'm
assuming that those are separate issues).



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



RE: Tomcat/Personal Web Server Problem

2005-05-26 Thread Steve Kirk
Well based on your netstat output below, this proves that something is
listening on 8080 and 8081.  It doesn't indicate what is (not sure if there
is a way to find out).

If you are accessing http://localhost:8080 and still getting PWS, then it is
still starting on 8080, before TC is, so TC is probably failing to start.
If TC cannot start for this reasons, it will say so in its logs - look at
any files under the logs directory under your tomcat install directory.
Read carefully for any error logged.

I realise that you have repeated that PWS is uninstalled, but you do also
say that you can still access it at 8080.  Perhaps it would help if you said
why you think you are accessing PWS not TC.  Do they serve completely
different pages?  If they serve the same pages is it possible that you just
think you are seeing PWS?

PS I should point out that I have not run JWS myself so am best-guessing
based on TC experience.

 -Original Message-
 From: Robin Rembish [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 12:59
 To: Tomcat Users List
 Subject: Re: Tomcat/Personal Web Server Problem
 
 
 Steve,
 
 Thanks for responding.  The results of netstat -a include the 
 following:
 
 Active Connections
 
   Proto  Local Address  Foreign AddressState
   TCP4e317:8080 0.0.0.0:0  LISTENING
   TCP4e317:8081 0.0.0.0:0  LISTENING
 
 According to the jwsdp launcher server log, Tomcat is using 
 ports 8080 and
 8081.
 How would I change the port that Personal Web Server runs on? 
  Please keep
 in mind that PWS was uninstalled.  However, when this problem 
 is resolved, I
 want to re-install it.  So what is the best plan of attack 
 and how do I
 accomplish it?
 
 Clearly, I know nothing about technical support.  So I need a 
 step-by-step
 process.
 
 Thanks,
 
 Robin
 
 
 
 - Original Message -
 From: Steve Kirk [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, May 26, 2005 5:06 AM
 Subject: RE: Tomcat/Personal Web Server Problem
 
 
 
 Looks like TC cannot start.  If you have fresh installed it, 
 then hazarding
 a guess, I'd say it might be because the port might be in 
 use.  You can't
 have 2 servers on the same port. Did you have them configured 
 to run on the
 same port (8080)?
 
 One thing to check is to open a dos window then type netstat 
 -a, this will
 list all ports in use on your machine.  Give it a while to 
 run, this can
 sometimes take up to a minute depending on what's running on 
 your machine.
 If 8080 is listed there and tomcat is not started, you know 
 that the old
 config of PWS still has the port.  You need to take further steps to
 uninstall it.
 
 Or, change the port that either TC or PWS runs on.  Then you 
 can run both at
 once if you like.
 
  -Original Message-
  From: Robin Rembish [mailto:[EMAIL PROTECTED]
  Sent: Wednesday 25 May 2005 23:03
  To: tomcat-user@jakarta.apache.org
  Subject: Tomcat/Personal Web Server Problem
 
 
  I had both Tomcat 4.1 and Microsoft Personal Web Server
  installed on my laptop ( an IBM Thinkpad - Windows NT
  operating system). It had been several months since I used Tomcat.
 
  When I started the Tomcat server and typed in localhost:8080
  in the Internet Explorer address window, it brought me to
  Personal Web Server rather than bringing up the Tomcat page.
 
  I then decided to uninstall both Personal Web Server and the
  Java Web Services Developers Pack. But after reinstalling the
  latter, I am getting a page not found condition. (Details 
 are below).
 
  On the advice of someone at a technical forum, I started
  Tomcat (Start/Programs/Java Web Services Developer Pack
  1.1/Start Tomcat)
 
  and then checked
 
  Start/Programs/Administrative Tools/Windows NT Diagnostics/Services
 
  It had:
 
  JavaWebServer Stopped
 
  although the services log file (and all other log files)
  under jwsdp-1_1 indicated Tomcat was running
 
  If anyone can help, I'd really appreciate it.
 
  Robin
  
  Type in Address Window:
  http://localhost:8080
 
  Error message:
 
  Page cannot be displayed
  The page you are looking for is currently unavailable
 
 
  In Internet Explorer
  Above Address Window:
  res://C:\WINNT\System32\shdoclc.dll/dnserror.htm#http://localh
  ost:8080/
 
 
 
 
 
 
 
 
 
 -
 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: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Tim Diggins
And, oops, I'm sorry for spreading the original FUD - Following this 
thread, I've just tried again to get everything working on tc5.0/jdk1.5 
and hey-presto, everything ok - guess I must've had TC running on jdk1.4 
after all...


But planning to migrate to 5.5 anyway.

thanks everyone

T


Steve Kirk wrote:

Yes sorry, david is correct, I got it backwards.



-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 May 2005 12:59

To: Tomcat Users List
Subject: Re: Are we required to move to Tomcat 5.5 in order 
to move to JDK 1.5



Small correction -- 5.5 needs the compat package to work on 
jdk l.4, not 
5.0 needs it to work on jdk 1.5. I've used TC 5.0  jdk 1.5 
together no 
problem.


--David

Steve Kirk wrote:


You can run 5.0.28 on jdk1.5 but you need to add a 


compatibility package

which is available from the tc downloads page.  Basically it 


adds 3 jars to


fix issues with xml compatibility with the 1.4 vm.

I haven't done it myself (I upgraded both at once) but 


google some of these


words and you can read all about it.

PS if you do go to 5.5 and have DBCP, be sure to change your 


context.xml to

the new format required by TC5.5.  I spent nearly 3 days 


working that out.






-Original Message-
From: Raverkar, Sachin (Sachin) [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 May 2005 08:58

To: tomcat-user@jakarta.apache.org
Subject: Are we required to move to Tomcat 5.5 in order to 
move to JDK 1.5



Hi all, 


We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
We need to move onto JDK 1.5. We would build our war file 
using JDK 1.5.
Can we continue to use Tomcat-5.0.28 with  JDK 1.5? 
Do you see any problem? Are there any known issues?

Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
are we required to move to Tomcat 5.5 in order to move to JDK 1.5?

- Sachin

  





-
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: Showing Tomcat Icon rather than DOS icon

2005-05-26 Thread Steve Kirk
Jack, You accidentally replied direct to me rather than to the list.  It's
best to reply to the list so that everyone gets to see the answer.  I'm
replying to you via the list now.

If you mean by the run bar/pc bar the bar at the top of the window that
TC runs in, then I think what you are trying to do is what used to be done
via a PIF file.  These no longer exist in more recent versions of windows
AFAIK.  Sorry, not sure how to do it.

 -Original Message-
 From: Dakota Jack [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 13:43
 To: Steve Kirk
 Subject: Re: Showing Tomcat Icon rather than DOS icon
 
 
 I perhaps should say that I have the Tomcat icon on the Start menu
 with no difficulties.  The problem is the run bar.  Thanks, again.
 
 On 5/26/05, Dakota Jack [EMAIL PROTECTED] wrote:
  That works if you are talking about changing the icon for a 
 file.  How
  does that work here.  What file are you talking about right clicking
  on?  Right clicking on the bar on the window won't do this.  Thanks
  for helping.
  
  On 5/26/05, Steve Kirk [EMAIL PROTECTED] wrote:
   Right click, choose properties, click change icon, browse 
 to tc dir, choose
   tomcat.exe.
  
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Thursday 26 May 2005 08:47
To: Tomcat Users List
Subject: Showing Tomcat Icon rather than DOS icon
   
   
How can I write my Tomcat startup script to show the 
 Tomcat icon on a
PC bar rather than the DOS icon?  Thanks
   
--
You can lead a horse to water but you cannot make it float
on its back.
~Dakota Jack~
   

 -
To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
  
  
  
  --
  You can lead a horse to water but you cannot make it float 
 on its back.
  ~Dakota Jack~
  
 
 
 -- 
 You can lead a horse to water but you cannot make it float 
 on its back.
 ~Dakota Jack~
 



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



Re: Tomcat/Personal Web Server Problem

2005-05-26 Thread Robin Rembish
Steve,

After uninstalling Personal Web Server, I was not getting PWS when typing
http://localhost:8080 in the address window of Internet Explorer.

I got the following error message:

Page cannot be displayed
The page you are looking for is currently unavailable

Above Address Window:
res://C:\WINNT\System32\shdoclc.dll/dnserror.htm#http://localhost:8080/

I checked the jwsdp-1_1 logs and didn't find any errors.  The output from
the launcher server log is below.

Robin

Launcher.server.log

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Attribute port: 8081
[INFO] Http11Protocol - -Attribute maxThreads: 75
[INFO] Http11Protocol - -Attribute backlog: 10
[INFO] Http11Protocol - -Attribute tcpNoDelay: true
[INFO] Http11Protocol - -Attribute soTimeout: 6
[INFO] Http11Protocol - -Attribute timeout: 6
[INFO] Http11Protocol - -Attribute secure: false
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 protocol handler on
port 8081
[INFO] Http11Protocol - -Attribute port: 8080
[INFO] Http11Protocol - -Attribute maxThreads: 75
[INFO] Http11Protocol - -Attribute backlog: 10
[INFO] Http11Protocol - -Attribute tcpNoDelay: true
[INFO] Http11Protocol - -Attribute soTimeout: 6
[INFO] Http11Protocol - -Attribute timeout: 6
[INFO] Http11Protocol - -Attribute secure: false
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 protocol handler on
port 8080
Starting service Internal Services
Java Web Services Developer Pack/1.1-fcs
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol handler on port
8081
Starting service Java Web Services Developer Pack
Java Web Services Developer Pack/1.1-fcs
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol handler on port
8080


- Original Message -
From: Steve Kirk [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, May 26, 2005 9:17 AM
Subject: RE: Tomcat/Personal Web Server Problem


Well based on your netstat output below, this proves that something is
listening on 8080 and 8081.  It doesn't indicate what is (not sure if there
is a way to find out).

If you are accessing http://localhost:8080 and still getting PWS, then it is
still starting on 8080, before TC is, so TC is probably failing to start.
If TC cannot start for this reasons, it will say so in its logs - look at
any files under the logs directory under your tomcat install directory.
Read carefully for any error logged.

I realise that you have repeated that PWS is uninstalled, but you do also
say that you can still access it at 8080.  Perhaps it would help if you said
why you think you are accessing PWS not TC.  Do they serve completely
different pages?  If they serve the same pages is it possible that you just
think you are seeing PWS?

PS I should point out that I have not run JWS myself so am best-guessing
based on TC experience.

 -Original Message-
 From: Robin Rembish [mailto:[EMAIL PROTECTED]
 Sent: Thursday 26 May 2005 12:59
 To: Tomcat Users List
 Subject: Re: Tomcat/Personal Web Server Problem


 Steve,

 Thanks for responding.  The results of netstat -a include the
 following:

 Active Connections

   Proto  Local Address  Foreign AddressState
   TCP4e317:8080 0.0.0.0:0  LISTENING
   TCP4e317:8081 0.0.0.0:0  LISTENING

 According to the jwsdp launcher server log, Tomcat is using
 ports 8080 and
 8081.
 How would I change the port that Personal Web Server runs on?
  Please keep
 in mind that PWS was uninstalled.  However, when this problem
 is resolved, I
 want to re-install it.  So what is the best plan of attack
 and how do I
 accomplish it?

 Clearly, I know nothing about technical support.  So I need a
 step-by-step
 process.

 Thanks,

 Robin



 - Original Message -
 From: Steve Kirk [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, May 26, 2005 5:06 AM
 Subject: RE: Tomcat/Personal Web Server Problem



 Looks like TC cannot start.  If you have fresh installed it,
 then hazarding
 a guess, I'd say it might be because the port might be in
 use.  You can't
 have 2 servers on the same port. Did you have them configured
 to run on the
 same port (8080)?

 One thing to check is to open a dos window then type netstat
 -a, this will
 list all ports in use on your machine.  Give it a while to
 run, this can
 sometimes take up to a minute depending on what's running on
 your machine.
 If 8080 is listed there and tomcat is not started, you know
 that the old
 config of PWS still has the port.  You need to take further steps to
 uninstall it.

 Or, change the port that either TC or PWS runs on.  Then you
 can run both at
 once if you like.

  -Original Message-
  From: Robin Rembish [mailto:[EMAIL PROTECTED]
  Sent: Wednesday 25 May 2005 23:03
  To: tomcat-user@jakarta.apache.org
  Subject: 

HTMLManager FAIL :

2005-05-26 Thread Karasek-XID, Nicolas
Hello,

With tomcat 5.5.4, I'm trying to deploy a war in tomcat manager and I'm
getting the following exception :

SEVERE: Exception invoking periodic operation: 
java.lang.NullPointerException
at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:87
5)
at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:98
3)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1139)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29
2)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1293)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1553)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1562)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1542)
at java.lang.Thread.run(Unknown Source)

Any idea for this ? 

Note that the deploiement process work perfectly on another tomcat
(5.5.9) when I use the ant task.

-- 
Nicolas

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



RE: Tomcat/Personal Web Server Problem

2005-05-26 Thread Steve Kirk
Sorry, my mistake - you said that clearly the first time but I misread it.
I'm struggling to make any further suggestions I'm afraid.

You could try the bood old fashioned reboot.  Is the problem persists,
verify that 8080/8081 are still in LISTENING state.

Then maybe can you install TC on another port (by stopping it, changing it's
config settings, reboot the PC so that you are sure you've cleared any
network ports, then restating it).  Again repeat the netstat -a command to
see if that new port is open and there is nothing on 8080/8081.  This at
least gives you the clue that TC is starting and running on the ports that
you think it is.

What version OS are you on?

 -Original Message-
 From: Robin Rembish [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 15:21
 To: Tomcat Users List
 Subject: Re: Tomcat/Personal Web Server Problem
 
 
 Steve,
 
 After uninstalling Personal Web Server, I was not getting PWS 
 when typing
 http://localhost:8080 in the address window of Internet Explorer.
 
 I got the following error message:
 
 Page cannot be displayed
 The page you are looking for is currently unavailable
 
 Above Address Window:
 res://C:\WINNT\System32\shdoclc.dll/dnserror.htm#http://localh
 ost:8080/
 
 I checked the jwsdp-1_1 logs and didn't find any errors.  The 
 output from
 the launcher server log is below.
 
 Robin
 
 Launcher.server.log
 
 [INFO] Registry - -Loading registry information
 [INFO] Registry - -Creating new Registry instance
 [INFO] Registry - -Creating MBeanServer
 [INFO] Http11Protocol - -Attribute port: 8081
 [INFO] Http11Protocol - -Attribute maxThreads: 75
 [INFO] Http11Protocol - -Attribute backlog: 10
 [INFO] Http11Protocol - -Attribute tcpNoDelay: true
 [INFO] Http11Protocol - -Attribute soTimeout: 6
 [INFO] Http11Protocol - -Attribute timeout: 6
 [INFO] Http11Protocol - -Attribute secure: false
 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 
 protocol handler on
 port 8081
 [INFO] Http11Protocol - -Attribute port: 8080
 [INFO] Http11Protocol - -Attribute maxThreads: 75
 [INFO] Http11Protocol - -Attribute backlog: 10
 [INFO] Http11Protocol - -Attribute tcpNoDelay: true
 [INFO] Http11Protocol - -Attribute soTimeout: 6
 [INFO] Http11Protocol - -Attribute timeout: 6
 [INFO] Http11Protocol - -Attribute secure: false
 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 
 protocol handler on
 port 8080
 Starting service Internal Services
 Java Web Services Developer Pack/1.1-fcs
 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol 
 handler on port
 8081
 Starting service Java Web Services Developer Pack
 Java Web Services Developer Pack/1.1-fcs
 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol 
 handler on port
 8080
 
 
 - Original Message -
 From: Steve Kirk [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, May 26, 2005 9:17 AM
 Subject: RE: Tomcat/Personal Web Server Problem
 
 
 Well based on your netstat output below, this proves that 
 something is
 listening on 8080 and 8081.  It doesn't indicate what is (not 
 sure if there
 is a way to find out).
 
 If you are accessing http://localhost:8080 and still getting 
 PWS, then it is
 still starting on 8080, before TC is, so TC is probably 
 failing to start.
 If TC cannot start for this reasons, it will say so in its 
 logs - look at
 any files under the logs directory under your tomcat 
 install directory.
 Read carefully for any error logged.
 
 I realise that you have repeated that PWS is uninstalled, but 
 you do also
 say that you can still access it at 8080.  Perhaps it would 
 help if you said
 why you think you are accessing PWS not TC.  Do they serve completely
 different pages?  If they serve the same pages is it possible 
 that you just
 think you are seeing PWS?
 
 PS I should point out that I have not run JWS myself so am 
 best-guessing
 based on TC experience.
 
  -Original Message-
  From: Robin Rembish [mailto:[EMAIL PROTECTED]
  Sent: Thursday 26 May 2005 12:59
  To: Tomcat Users List
  Subject: Re: Tomcat/Personal Web Server Problem
 
 
  Steve,
 
  Thanks for responding.  The results of netstat -a include the
  following:
 
  Active Connections
 
Proto  Local Address  Foreign AddressState
TCP4e317:8080 0.0.0.0:0  LISTENING
TCP4e317:8081 0.0.0.0:0  LISTENING
 
  According to the jwsdp launcher server log, Tomcat is using
  ports 8080 and
  8081.
  How would I change the port that Personal Web Server runs on?
   Please keep
  in mind that PWS was uninstalled.  However, when this problem
  is resolved, I
  want to re-install it.  So what is the best plan of attack
  and how do I
  accomplish it?
 
  Clearly, I know nothing about technical support.  So I need a
  step-by-step
  process.
 
  Thanks,
 
  Robin
 
 
 
  - Original Message -
  From: Steve Kirk [EMAIL PROTECTED]
  To: 'Tomcat Users List' 

Re: Showing Tomcat Icon rather than DOS icon

2005-05-26 Thread Tim Diggins
If you make a SHORTCUT to a batch file, then it you can change its icon 
(both of the shortcut-icon and of the window it launches) by 
rightclicking the shortcut, properties, Shortcut tab: Change icon


(a shortcut to a batch file gives some similar controls to what a PIF 
used to give, can also change the color  background of the monitor etc.).


Tim


Steve Kirk wrote:

Jack, You accidentally replied direct to me rather than to the list.  It's
best to reply to the list so that everyone gets to see the answer.  I'm
replying to you via the list now.

If you mean by the run bar/pc bar the bar at the top of the window that
TC runs in, then I think what you are trying to do is what used to be done
via a PIF file.  These no longer exist in more recent versions of windows
AFAIK.  Sorry, not sure how to do it.



-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 May 2005 13:43

To: Steve Kirk
Subject: Re: Showing Tomcat Icon rather than DOS icon


I perhaps should say that I have the Tomcat icon on the Start menu
with no difficulties.  The problem is the run bar.  Thanks, again.

On 5/26/05, Dakota Jack [EMAIL PROTECTED] wrote:

That works if you are talking about changing the icon for a 


file.  How


does that work here.  What file are you talking about right clicking
on?  Right clicking on the bar on the window won't do this.  Thanks
for helping.

On 5/26/05, Steve Kirk [EMAIL PROTECTED] wrote:

Right click, choose properties, click change icon, browse 


to tc dir, choose


tomcat.exe.



-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Thursday 26 May 2005 08:47
To: Tomcat Users List
Subject: Showing Tomcat Icon rather than DOS icon


How can I write my Tomcat startup script to show the 


Tomcat icon on a


PC bar rather than the DOS icon?  Thanks

--
You can lead a horse to water but you cannot make it float
on its back.
~Dakota Jack~




-

To unsubscribe, e-mail: 


[EMAIL PROTECTED]

For additional commands, e-mail: 


[EMAIL PROTECTED]








--
You can lead a horse to water but you cannot make it float 


on its back.


~Dakota Jack~




--
You can lead a horse to water but you cannot make it float 
on its back.

~Dakota Jack~






-
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.5.9 and JK: username returns null

2005-05-26 Thread Thomas Nybro Bolding
Having just upgraded to Tomcat 5.5.9 I choose to use JK rather than JK2 as 
JK2 is being reported deprecated. With JK2 I used IIS integrated 
authorization and simply entered tomcat.requestAuthentication=false in my 
jk2.properties file. How do I accomplish the same with JK???

Best regards Thomas



FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. 
Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere 
afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette 
e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri 
for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori 
den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os 
ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at 
modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by 
sending a reply, then delete the message from your system without making, 
distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from viruses 
and other errors that might affect the computer or IT system where it is 
received and read, the recipient opens the message at his or her own risk. We 
assume no responsibility for any loss or damage arising from the receipt or use 
of this message.
/FONT



RE: html:errors/ blank page on invalid form

2005-05-26 Thread Andy

Guru and Nikola,

Thanks for the suggestions, having looked at this again, I think this is a
Struts problem however, so I've posted to struts-users.

Thanks anyway,

Andy.

-Original Message-
From: Gurumoorthy [mailto:[EMAIL PROTECTED]
Sent: 26 May 2005 08:37
To: Tomcat Users List
Subject: Re: html:errors/ blank page on invalid form


hello
html:form action=/SubmitLogonForm.do is wrong
html:form action=/SubmitLogonForm

Regards
Guru

- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, May 26, 2005 6:04 AM
Subject: Re: html:errors/ blank page on invalid form


 Andy wrote:

 Hi All,
 
 I'm unable to output any errors using html:errors/ tag, in Tomcat
 5.5.7 I've tried numerous configurations and have now ran out of
patience.
 As I haven't been using Struts for more than three days I hope somebody
 more experienced can point help me out.
 
 When I select Submit, entering data into my form fields so the form is
 parsed as valid, the forward works correctly. When I leave the fields
 empty, so the form is parsed as invalid, I just get an empty page back -
 which must be generated by Struts as it doesn't match any HTML I have.
 
 

 Check out the logs, you could be running into an exception. Also, set
 buffer size of 20kb on all your pages, while you're testing. Empty
 output can also be caused by an exception in the page itself, and buffer
 being already sent.

 Here is what I have in various files -
 

--
-
-
 
 
 logon.jsp -
 
 %@ page contentType=text/html;charset=UTF-8 language=java %
 %@ taglib uri=/tags/struts-bean prefix=bean %
 %@ taglib uri=/tags/struts-html prefix=html %
 html
 head
 titlebean:message key=logon.title//title
 /head
 body
 html:errors/
 html:form action=/SubmitLogonForm.do
 table
 tr
 tdUsername/td
 tdhtml:text property=username//td
 /tr
 tr
 tdPassword/td
 tdhtml:text property=password//td
 /tr
 tr
 td
 html:submit/
 html:cancel/
 /td
 td/td
 /tr
 /table
 /html:form
 
 /body
 
 

 Looks fine, except for the buffer page directive.

 In LogonAction.java -
 
 
 public ActionForward execute(ActionMapping mapping, ActionForm form,
  HttpServletRequest request,
 HttpServletResponse response)
 throws Exception {
 
 if (isCancelled(request)) {
 log.debug(cancel pressed);
 return mapping.findForward(Constants.FAILURE);
 }
 
 

 Why would you consider Cancel a failure? Not that it will not work,
but...

 LogonForm logonForm = (LogonForm)form;
 log.debug(username +logonForm.getUsername());
 log.debug(password +logonForm.getPassword());
 
 return mapping.findForward(Constants.SUCCESS);
 }
 
 

 You're not checking the login, but that's fine for a test.

 In LogonForm.java (I have getters/setters for HTML fields, and a reset
 method,
 not shown) -
 
 public ActionErrors validate(ActionMapping actionMapping,
 HttpServletRequest httpServletRequest) {
 
 log.debug(validate);
 ActionErrors errors = new ActionErrors();
 
 if
 (FormUtils.isNullOrEmpty(httpServletRequest.getParameter(username))) {
 log.debug(logon.form.username.invalid);
 errors.add(ActionErrors.GLOBAL_MESSAGE,new
 ActionMessage(logon.form.username.invalid));
 }
 
 

 You don't need to use GLOBAL_MESSAGE, that is wrong, I think. And use
 errors, not messages. My validation would read:

 errors.add( username, new ActionError( logon.form.username.invalid));

 Nix.

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



Client authentication for single servlet

2005-05-26 Thread Alistair Young
In Tomcat 5.0.x Is it possible to for a servlet to get a client's 
certificate without forcing the whole server to use client 
authentication?


in server.xml:
clientAuth=true - stops everyone accessing via https
clientAuth=want - secure servlet displays no content
clientAuth=false - 
request.getAttribute(javax.servlet.request.X509Certificate) doesn't 
get the cert


thanks,
Alistair


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



Implementing custom session expiration rule

2005-05-26 Thread Marc Vaillancourt
I have a requirement to implement different session timeout values for
different user roles. What would be the most straightforward way to
accomplish this?

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



Re: shared install under Linux

2005-05-26 Thread Marius Scurtescu

Mark wrote:

Is this for a development environment ?


Yes, for development.


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



RE: Implementing custom session expiration rule

2005-05-26 Thread Steve Kirk
You could implement a filter that checked the time since last visit, and if
the session had expired according to your custom rule, invalidate the
session and redirect to appropriate page such as login.  You'd have to make
sure that the default session time set in server.xml was longer than the
max session time you wanted in your custom method, otherwise the browser
would time out the session for you if based on cookies.

I haven't used Filters, but as far as I understand the principles, I don't
think a redirect from within the filter code would upset anything.  I think
you can break out of the filter chain like this without problems.

 -Original Message-
 From: Marc Vaillancourt [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 17:29
 To: tomcat-user@jakarta.apache.org
 Subject: Implementing custom session expiration rule
 
 
 I have a requirement to implement different session timeout values for
 different user roles. What would be the most straightforward way to
 accomplish this?
 
 -
 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]



Problem with precompiled JSPs

2005-05-26 Thread Mike Baliel

Hello,

I have an application that is currently running under JBoss 3.2.x 
with Jetty that I would like to get running on Tomcat 5.X.  I have 
precompiled all of the JSP's and mapped them to there respective JSP 
path in the web.xml.  Here is a sample fragment of the web.xml:



?xml version=1.0 encoding=UTF-8?
!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 id=WebApp
display-namemjc_campus_tour/display-name
servlet
servlet-nametourArea0/servlet-name
display-nametourArea0/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea0_jsp/servlet-class
/servlet
servlet
servlet-nametourArea1/servlet-name
display-nametourArea1/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea1_jsp/servlet-class
/servlet
servlet
servlet-nametourArea2/servlet-name
display-nametourArea2/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea2_jsp/servlet-class
/servlet
servlet
servlet-nametourArea3/servlet-name
display-nametourArea3/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea3_jsp/servlet-class
/servlet
servlet
servlet-namefooter/servlet-name
display-namefooter/display-name

servlet-classcom.atomogy.virtualtour.view.include.footer_jsp/servlet-class
/servlet
servlet
servlet-nameheader/servlet-name
display-nameheader/display-name

servlet-classcom.atomogy.virtualtour.view.include.header_jsp/servlet-class
/servlet
servlet-mapping
servlet-nametourArea0/servlet-name
url-pattern/pages/tourArea0.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea1/servlet-name
url-pattern/pages/tourArea1.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea2/servlet-name
url-pattern/pages/tourArea2.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea3/servlet-name
url-pattern/pages/tourArea3.jsp/url-pattern
/servlet-mapping
 servlet-mapping
servlet-namefooter/servlet-name
url-pattern/include/footer.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameheader/servlet-name
url-pattern/include/header.jsp/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
/web-app


The error message that I get when trying to run the application on 
Tomcat is as follows:



2005-05-26 09:33:03 StandardWrapperValve[tourArea0]: Servlet.service() 
for servlet tourArea0 threw exception
java.lang.NoSuchMethodError: 
org.apache.jasper.runtime.JspRuntimeLibrary.include(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljavax/servlet/jsp/JspWriter;Z)V
at 
com.atomogy.virtualtour.view.pages.tourArea0_jsp._jspService(tourArea0_jsp.java:43)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 

RE: HttpSessionListener

2005-05-26 Thread Randy George

Hi Christopher,

I think I've fixed the problem. I did two things 
1) I renamed the SessionCounter to MyCounter
2) Somehow I had commented out the 
HttpSession session = request.getSession(true);
Once I had a session started everything worked (including the Tomcat Manager
sessions). I am still baffled as to why it continued to work on the
developer server after the session was commented out, but assume it was
cached somehow. I finally noticed it after rebooting the system and finding
the developer server having the same problem. 

A little humbling, but a happy ending. Thanks for your help!

randy


-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 2:01 AM
To: Tomcat Users List
Subject: Re: HttpSessionListener

Hi Randy,

Randy George wrote:

Hi Will and Christopher,

   Good thought. I shut down Tomcat and started it again with a clean
set of logs:
localhost.2005-05-25.log
   .
   .
May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC')

   I interpret this to show that the listener element in web.xml is
initialized and later a sessionCeated() method was actually called:
  .
  .
public synchronized void sessionCreated (HttpSessionEvent se) {
System.out.println(sessionCreated +sessionCount);
sessionCount++;
}

However, there is no entry in the stout log so whatever sessionCreated
method is called it is not the one registered?
   listener
   listener-classcom.test.SessionCounter/listener-class
   /listener
  

Yes that is my thought, too. There is a SessionListener initialized but 
apparently not yours. You should put a log statement into the 
constructor of your listener and make sure.
You didn't answer my question about deployment: do you deploy your 
application on the development and the production box in the same way. 
If not, you should try to do it in the same way on the devel box as you 
do on the prod box and look if the problem appears on the prod box, too.
Another idea: the name (com.test.SessionCounter) of your listenere is 
not very unique. Maybe there is a conflcit with an existing class in 
Tomcats shared or common folder on the production system. Are there any 
other applications installed on the production tomcat?

I also just noticed that the Tomcat WebApp Manager is showing only 0's for
sessions regardless of how many sessions are started?
  

That is really strange. Are you sure that you are hitting the production 
tomcat with your tests? Any other log entries which could confirm that?


greetings,
Christoph

-
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: HttpSessionListener

2005-05-26 Thread Randy George

Hi Christopher,

I think I've fixed the problem. I did two things 
1) I renamed the SessionCounter to MyCounter
2) Somehow I had commented out the 
HttpSession session = request.getSession(true);
Once I had a session started everything worked (including the Tomcat Manager
sessions). I am still baffled as to why it continued to work on the
developer server after the session was commented out, but assume it was
cached somehow. I finally noticed it after rebooting the system and finding
the developer server having the same problem. 

A little humbling, but a happy ending. Thanks for your help!

randy


-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 2:01 AM
To: Tomcat Users List
Subject: Re: HttpSessionListener

Hi Randy,

Randy George wrote:

Hi Will and Christopher,

   Good thought. I shut down Tomcat and started it again with a clean
set of logs:
localhost.2005-05-25.log
   .
   .
May 25, 2005 11:22:17 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 25, 2005 11:27:45 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: sessionCreated('BD963D7E6AACE0E2387F37919BB277FC')

   I interpret this to show that the listener element in web.xml is
initialized and later a sessionCeated() method was actually called:
  .
  .
public synchronized void sessionCreated (HttpSessionEvent se) {
System.out.println(sessionCreated +sessionCount);
sessionCount++;
}

However, there is no entry in the stout log so whatever sessionCreated
method is called it is not the one registered?
   listener
   listener-classcom.test.SessionCounter/listener-class
   /listener
  

Yes that is my thought, too. There is a SessionListener initialized but 
apparently not yours. You should put a log statement into the 
constructor of your listener and make sure.
You didn't answer my question about deployment: do you deploy your 
application on the development and the production box in the same way. 
If not, you should try to do it in the same way on the devel box as you 
do on the prod box and look if the problem appears on the prod box, too.
Another idea: the name (com.test.SessionCounter) of your listenere is 
not very unique. Maybe there is a conflcit with an existing class in 
Tomcats shared or common folder on the production system. Are there any 
other applications installed on the production tomcat?

I also just noticed that the Tomcat WebApp Manager is showing only 0's for
sessions regardless of how many sessions are started?
  

That is really strange. Are you sure that you are hitting the production 
tomcat with your tests? Any other log entries which could confirm that?


greetings,
Christoph

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



jk 1.2.14 connector connection problem

2005-05-26 Thread Derrick Koes
I've run with this configuration elsewhere without error.  I'm not certain what 
the issue is.  I have this same problem without using the loadbalancer worker.  
I can't even get to jkstatus.  Any help is greatly appreciated.

server.xml

?xml version='1.0' encoding='utf-8'?
Server
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be updated 
and saved name=UserDatabase type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=Catalina
Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 
disableUploadTimeout=true port=8080 redirectPort=8443
/Connector
Connector URIEncoding=UTF-8 port=8009 protocol=AJP/1.3 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler 
disableUploadTimeout=true maxProcessors=0 redirectPort=8443 debug=9
/Connector
Engine defaultHost=localhost jvmRoute=djk name=Catalina
  Host appBase=webapps name=localhost
Logger className=org.apache.catalina.logger.FileLogger 
prefix=localhost_log. suffix=.txt timestamp=true/
  /Host
  Logger className=org.apache.catalina.logger.FileLogger 
prefix=catalina_log. suffix=.txt timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
/Engine
  /Service
/Server

workers.properties

# +++ BEGIN CONFIGURATION ++
# 
# http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html
#
# The following configuration file describes a JK installation
# which does round-robin, session-aware load balancing across all
# defined workers.  Having a single worker will balance the load on
# that worker.  This is the default, even if you don't spell it out,
# but it is spelled out here for clarity.  @TODO indicates a 
# configuration must be made here.  @OPTIONAL indicates an optional
# customization may be made.
#
# workers.properties -
#
#   Copyright 1999-2004 The Apache Software Foundation
# 
#   Licensed under the Apache License, Version 2.0 (the License);
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
# 
#   http://www.apache.org/licenses/LICENSE-2.0
# 
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an AS IS BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
#
# This file provides jk derived plugins with the needed information to
# connect to the different tomcat workers.  Note that the distributed
# version of this file requires modification before it is usable by a
# plugin.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them in your own configuration!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to do is un-comment and modify the first three
# properties, i.e. workers.tomcat_home, workers.java_home and ps.
# Most of the configuration is derived from these.
#
# When you are done updating workers.tomcat_home, workers.java_home and ps
# you should have 3 workers configured:
#
# - An ajp12 worker that connects to localhost:8007
# - An ajp13 worker that connects to localhost:8009
# - A jni inprocess worker.
# - A load balancer worker
#
# However by default the plugins will only use the ajp12 worker. To have
# the plugins use other workers you should modify the worker.list property.
#

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=\

#
#-- ADVANCED MODE 
#-
#

#
#-- DEFAULT worket list --
#-
#
#
# The workers that your plugins should create and work with
# The name of the worker can contain only the alphanumeric characters
# [a-z][A-Z][0-9] and is case insensitive.
#
# Add 'inprocess' if you want JNI connector 
worker.list=loadbalancer,jkstatus

#
#-- DEFAULT ajp13 WORKER DEFINITION --
#-
#

#
# Defining a worker named ajp13 

Re: Problem with precompiled JSPs

2005-05-26 Thread Mike Baliel

Hello again,

Is anyone using precompiled JSP's in a similar way or have knowledge of 
others using precompiled JSP's in Tomacat that is similar to the usage 
below?


Any response is welcomed... ;-)


Mike Baliel wrote:

Hello,

I have an application that is currently running under JBoss 3.2.x 
with Jetty that I would like to get running on Tomcat 5.X.  I have 
precompiled all of the JSP's and mapped them to there respective JSP 
path in the web.xml.  Here is a sample fragment of the web.xml:



?xml version=1.0 encoding=UTF-8?
!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 id=WebApp
display-namemjc_campus_tour/display-name
servlet
servlet-nametourArea0/servlet-name
display-nametourArea0/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea0_jsp/servlet-class 


/servlet
servlet
servlet-nametourArea1/servlet-name
display-nametourArea1/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea1_jsp/servlet-class 


/servlet
servlet
servlet-nametourArea2/servlet-name
display-nametourArea2/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea2_jsp/servlet-class 


/servlet
servlet
servlet-nametourArea3/servlet-name
display-nametourArea3/display-name

servlet-classcom.atomogy.virtualtour.view.pages.tourArea3_jsp/servlet-class 


/servlet
servlet
servlet-namefooter/servlet-name
display-namefooter/display-name

servlet-classcom.atomogy.virtualtour.view.include.footer_jsp/servlet-class 


/servlet
servlet
servlet-nameheader/servlet-name
display-nameheader/display-name

servlet-classcom.atomogy.virtualtour.view.include.header_jsp/servlet-class 


/servlet
servlet-mapping
servlet-nametourArea0/servlet-name
url-pattern/pages/tourArea0.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea1/servlet-name
url-pattern/pages/tourArea1.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea2/servlet-name
url-pattern/pages/tourArea2.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nametourArea3/servlet-name
url-pattern/pages/tourArea3.jsp/url-pattern
/servlet-mapping
 servlet-mapping
servlet-namefooter/servlet-name
url-pattern/include/footer.jsp/url-pattern
/servlet-mapping
servlet-mapping
servlet-nameheader/servlet-name
url-pattern/include/header.jsp/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
/web-app


The error message that I get when trying to run the application on 
Tomcat is as follows:



2005-05-26 09:33:03 StandardWrapperValve[tourArea0]: Servlet.service() 
for servlet tourArea0 threw exception
java.lang.NoSuchMethodError: 
org.apache.jasper.runtime.JspRuntimeLibrary.include(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/String;Ljavax/servlet/jsp/JspWriter;Z)V 

at 
com.atomogy.virtualtour.view.pages.tourArea0_jsp._jspService(tourArea0_jsp.java:43) 


at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) 

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) 

at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 

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

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 

at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 

at 

Vedr.: Tomcat 5.5.9 and JK: username returns null - solved

2005-05-26 Thread Thomas Nybro Bolding
As pointed out by Mr. Allistair Crossley in his blog 
http://www.adcworks.com/blog/ one has to modify server.xml.

For anyone updating their Tomcat to 5.5x I highly recommend Allistairs 
blog!

/Thomas






Thomas Nybro Bolding/THBO/Intranet/[EMAIL PROTECTED]
26-05-2005 17:42
Besvar venligst til Tomcat Users List

 
Til:Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Vedr.:  Tomcat 5.5.9 and JK: username returns null



Having just upgraded to Tomcat 5.5.9 I choose to use JK rather than JK2 as 

JK2 is being reported deprecated. With JK2 I used IIS integrated 
authorization and simply entered tomcat.requestAuthentication=false in my 
jk2.properties file. How do I accomplish the same with JK???

Best regards Thomas



FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig 
information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig 
venligst informere afsender om fejlen ved at bruge svar-funktionen. 
Samtidig beder vi dig slette e-mailen i dit system uden at videresende 
eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er 
fri for virus og andre fejl, som kan paavirke computeren eller 
it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget 
ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet 
i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you 
have received this message by mistake, please inform the sender of the 
mistake by sending a reply, then delete the message from your system 
without making, distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from 
viruses and other errors that might affect the computer or IT system where 
it is received and read, the recipient opens the message at his or her own 
risk. We assume no responsibility for any loss or damage arising from the 
receipt or use of this message.
/FONT





servlet request time out ?!

2005-05-26 Thread Angelov, Rossen
Hi,
Does anybody know about a time out on a servlet request with Tomcat 5?

The problem is that I have a request that takes about 30 minutes but the
browser keeps waiting for the response forever. I tried different browsers
but it's the same behavior.

I put debug statements in the doPost method and it's finishing correctly.
The last debug statement is printed out but the browser is still waiting for
the response.

Ross


This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution.



Re: jk 1.2.14 connector connection problem

2005-05-26 Thread Mladen Turk

Derrick Koes wrote:

I've run with this configuration elsewhere without error.  I'm not certain what 
the issue is.  I have this same problem without using the loadbalancer worker.  
I can't even get to jkstatus.  Any help is greatly appreciated.


The problem is with the installation.
You probably do not have /jakarta virtual directory set up correctly.

Regards,
Mladen.

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



Re: servlet request time out ?!

2005-05-26 Thread Mike Baliel

Hi Angelov,

	I am new to Tomcat (Just started using Tomcat5.0 yesterday), but the 
problem you mentioned sounds like a typical connnection timout.


Have you tried to setting the connectionTimeout value to 0 in the 
server.xml?


Here is to location in server.xml.  Where there is currently a value of 
[connectionTimeout=2] change to [connectionTimeout=0].




 Service name=Catalina

!-- A Connector represents an endpoint by which requests are 
received
 and responses are returned.  Each Connector passes requests on 
to the

 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on 
port 8080.

 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second 
Connector
 entry.  SSL support requires the following steps (see the SSL 
Config

 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 
1.0.2 or

   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA 
(Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA 
(Unix)

   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are 
disabled,

 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port specified
 during installation  --
Connector
port=8080   maxThreads=150 minSpareThreads=25 
maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --


Mike

Angelov, Rossen wrote:

Hi,
Does anybody know about a time out on a servlet request with Tomcat 5?

The problem is that I have a request that takes about 30 minutes but the
browser keeps waiting for the response forever. I tried different browsers
but it's the same behavior.

I put debug statements in the doPost method and it's finishing correctly.
The last debug statement is printed out but the browser is still waiting for
the response.

Ross

This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution.






No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005


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



error-page not catching errors? Tomcat 4.1.31

2005-05-26 Thread David Johnson
Hi all
 I've added the following to my web.xml (thanks for the help)
 
error-page
error-code500/error-code
location/error.jsp/location
/error-page
error-page
error-code404/error-code
location/error.jsp/location
/error-page
error-page
error-codejava.lang.Exception/error-code
location/error.jsp/location
/error-page 
 
 the problem is when I cause an error (like stopping the database then 
trying to hit it or reloading a page that should cause an error 500), I'm 
not seeing my error page.

am I forgetting something? 


-- 
-Dave
[EMAIL PROTECTED]


Re: error-page not catching errors? Tomcat 4.1.31

2005-05-26 Thread Jon Wingfield
You should check tomcat's logs to see if there are any warnings. The 
last error-page def'n is invalid. It should be:


error-page
  exception-typejava.lang.Exception/exception-type
  location/error.jsp/location
/error-page

Maybe tomcat is ignoring all the error-page definitions due to the 
parsing error.


Jon

David Johnson wrote:


Hi all
 I've added the following to my web.xml (thanks for the help)
 
error-page

error-code500/error-code
location/error.jsp/location
/error-page
error-page
error-code404/error-code
location/error.jsp/location
/error-page
error-page
error-codejava.lang.Exception/error-code
location/error.jsp/location
/error-page 
 
 the problem is when I cause an error (like stopping the database then 
trying to hit it or reloading a page that should cause an error 500), I'm 
not seeing my error page.


am I forgetting something? 







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



Re: Problems in building tomcat 4.1.27 from source

2005-05-26 Thread Mark Thomas

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/BUILDING.txt?rev=1.35view=log

I'd use the latest version if I were you. You might end up with a couple 
of different versions of libraries but you should be OK.


Another useful trick is to download a tomcat binary, that way you know 
you will have all the jars you need somewhere.


Mark

Gaurav Bansal wrote:

Can any one tell me how can I build the tomcat 4.1.27 from the source.
It was fairly easy to do it on tomcat 5.5.X with the help of ant alone
but on 4.1.27 it is giving too many errors.. I have resolved many but is
there no way we can build it cleanly ??

You can direct me some links also

Thanks in advance 
Gaurav


-
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: jk 1.2.14 connector connection problem

2005-05-26 Thread Derrick Koes

After verifying with Mladen that the setup was correct, the problem is still 
exhibited. 

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 2:39 PM
To: Tomcat Users List
Subject: Re: jk 1.2.14 connector connection problem

Derrick Koes wrote:
 I've run with this configuration elsewhere without error.  I'm not certain 
 what the issue is.  I have this same problem without using the loadbalancer 
 worker.  I can't even get to jkstatus.  Any help is greatly appreciated.

The problem is with the installation.
You probably do not have /jakarta virtual directory set up correctly.

Regards,
Mladen.

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






RE: jk 1.2.14 connector connection problem

2005-05-26 Thread Phillip Qin
Try the simpliest configuration in workers.properties

# Define 1 real worker using ajp13
worker.list=worker1,status
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300

worker.status.type=status



-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED] 
Sent: May 26, 2005 3:59 PM
To: Tomcat Users List
Subject: RE: jk 1.2.14 connector connection problem



After verifying with Mladen that the setup was correct, the problem is still
exhibited. 

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 2:39 PM
To: Tomcat Users List
Subject: Re: jk 1.2.14 connector connection problem

Derrick Koes wrote:
 I've run with this configuration elsewhere without error.  I'm not 
 certain what the issue is.  I have this same problem without using the 
 loadbalancer worker.  I can't even get to jkstatus.  Any help is 
 greatly appreciated.

The problem is with the installation.
You probably do not have /jakarta virtual directory set up correctly.

Regards,
Mladen.

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





!DSPAM:42962a91309751699410697!


tomcat on the SGI

2005-05-26 Thread Murad Nayal


Hi,

has anybody been able to get TOMCAT 5.9 running on an SGI workstation: I
have installed the binary distribution 5.9 but can't get it to start.


[4]/local/jakarta-tomcat-5.5.9 65# java -version
java version 1.4.1_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_06)
Java HotSpot(TM) Client VM (build 1.4.1_06, mixed mode)


[4]/local/jakarta-tomcat-5.5.9/bin 67# startup.sh
Using CATALINA_BASE:   /local/jakarta-tomcat-5.5.9
Using CATALINA_HOME:   /local/jakarta-tomcat-5.5.9
Using CATALINA_TMPDIR: /tmp
Using JRE_HOME:   /usr/java2

and then nothing happens

ps -el | grep tomcat
returns nothing

not sure what to do!!

thanks a million
Murad Nayal

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



Re: Tomcat/Personal Web Server Problem

2005-05-26 Thread Robin Rembish
Steve,

Thanks for trying to help.  I've decided to have Windows NT re-installed on
my laptop.

Robin
- Original Message -
From: Steve Kirk [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, May 26, 2005 10:34 AM
Subject: RE: Tomcat/Personal Web Server Problem


Sorry, my mistake - you said that clearly the first time but I misread it.
I'm struggling to make any further suggestions I'm afraid.

You could try the bood old fashioned reboot.  Is the problem persists,
verify that 8080/8081 are still in LISTENING state.

Then maybe can you install TC on another port (by stopping it, changing it's
config settings, reboot the PC so that you are sure you've cleared any
network ports, then restating it).  Again repeat the netstat -a command to
see if that new port is open and there is nothing on 8080/8081.  This at
least gives you the clue that TC is starting and running on the ports that
you think it is.

What version OS are you on?

 -Original Message-
 From: Robin Rembish [mailto:[EMAIL PROTECTED]
 Sent: Thursday 26 May 2005 15:21
 To: Tomcat Users List
 Subject: Re: Tomcat/Personal Web Server Problem


 Steve,

 After uninstalling Personal Web Server, I was not getting PWS
 when typing
 http://localhost:8080 in the address window of Internet Explorer.

 I got the following error message:

 Page cannot be displayed
 The page you are looking for is currently unavailable

 Above Address Window:
 res://C:\WINNT\System32\shdoclc.dll/dnserror.htm#http://localh
 ost:8080/

 I checked the jwsdp-1_1 logs and didn't find any errors.  The
 output from
 the launcher server log is below.

 Robin

 Launcher.server.log

 [INFO] Registry - -Loading registry information
 [INFO] Registry - -Creating new Registry instance
 [INFO] Registry - -Creating MBeanServer
 [INFO] Http11Protocol - -Attribute port: 8081
 [INFO] Http11Protocol - -Attribute maxThreads: 75
 [INFO] Http11Protocol - -Attribute backlog: 10
 [INFO] Http11Protocol - -Attribute tcpNoDelay: true
 [INFO] Http11Protocol - -Attribute soTimeout: 6
 [INFO] Http11Protocol - -Attribute timeout: 6
 [INFO] Http11Protocol - -Attribute secure: false
 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1
 protocol handler on
 port 8081
 [INFO] Http11Protocol - -Attribute port: 8080
 [INFO] Http11Protocol - -Attribute maxThreads: 75
 [INFO] Http11Protocol - -Attribute backlog: 10
 [INFO] Http11Protocol - -Attribute tcpNoDelay: true
 [INFO] Http11Protocol - -Attribute soTimeout: 6
 [INFO] Http11Protocol - -Attribute timeout: 6
 [INFO] Http11Protocol - -Attribute secure: false
 [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1
 protocol handler on
 port 8080
 Starting service Internal Services
 Java Web Services Developer Pack/1.1-fcs
 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol
 handler on port
 8081
 Starting service Java Web Services Developer Pack
 Java Web Services Developer Pack/1.1-fcs
 [INFO] Http11Protocol - -Starting Coyote HTTP/1.1 protocol
 handler on port
 8080


 - Original Message -
 From: Steve Kirk [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, May 26, 2005 9:17 AM
 Subject: RE: Tomcat/Personal Web Server Problem


 Well based on your netstat output below, this proves that
 something is
 listening on 8080 and 8081.  It doesn't indicate what is (not
 sure if there
 is a way to find out).

 If you are accessing http://localhost:8080 and still getting
 PWS, then it is
 still starting on 8080, before TC is, so TC is probably
 failing to start.
 If TC cannot start for this reasons, it will say so in its
 logs - look at
 any files under the logs directory under your tomcat
 install directory.
 Read carefully for any error logged.

 I realise that you have repeated that PWS is uninstalled, but
 you do also
 say that you can still access it at 8080.  Perhaps it would
 help if you said
 why you think you are accessing PWS not TC.  Do they serve completely
 different pages?  If they serve the same pages is it possible
 that you just
 think you are seeing PWS?

 PS I should point out that I have not run JWS myself so am
 best-guessing
 based on TC experience.

  -Original Message-
  From: Robin Rembish [mailto:[EMAIL PROTECTED]
  Sent: Thursday 26 May 2005 12:59
  To: Tomcat Users List
  Subject: Re: Tomcat/Personal Web Server Problem
 
 
  Steve,
 
  Thanks for responding.  The results of netstat -a include the
  following:
 
  Active Connections
 
Proto  Local Address  Foreign AddressState
TCP4e317:8080 0.0.0.0:0  LISTENING
TCP4e317:8081 0.0.0.0:0  LISTENING
 
  According to the jwsdp launcher server log, Tomcat is using
  ports 8080 and
  8081.
  How would I change the port that Personal Web Server runs on?
   Please keep
  in mind that PWS was uninstalled.  However, when this problem
  is resolved, I
  want to re-install it.  So what is the 

RE: servlet request time out ?!

2005-05-26 Thread Steve Kirk

I haven't tested this myself, so I'm only going on what the docs say (5.5): 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html 

If I've understood correctly, this doc seems to say that the
connectionTimeout param doesn't have the effect Angelov is looking for - it
sets the max time between a connection (socket) being opened by the client,
and the client sending a request url to TC.

 -Original Message-
 From: Mike Baliel [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 19:49
 To: Tomcat Users List
 Subject: Re: servlet request time out ?!
 
 
 Hi Angelov,
 
   I am new to Tomcat (Just started using Tomcat5.0 
 yesterday), but the 
 problem you mentioned sounds like a typical connnection timout.
 
 Have you tried to setting the connectionTimeout value to 0 in the 
 server.xml?
 
 Here is to location in server.xml.  Where there is currently 
 a value of 
 [connectionTimeout=2] change to [connectionTimeout=0].
 
 
 
   Service name=Catalina
 
  !-- A Connector represents an endpoint by which requests are 
 received
   and responses are returned.  Each Connector passes 
 requests on 
 to the
   associated Container (normally an Engine) for processing.
 
   By default, a non-SSL HTTP/1.1 Connector is established on 
 port 8080.
   You can also enable an SSL HTTP/1.1 Connector on 
 port 8443 by
   following the instructions below and uncommenting 
 the second 
 Connector
   entry.  SSL support requires the following steps 
 (see the SSL 
 Config
   HOWTO in the Tomcat 5 documentation bundle for more detailed
   instructions):
   * If your JDK version 1.3 or prior, download and 
 install JSSE 
 1.0.2 or
 later, and put the JAR files into 
 $JAVA_HOME/jre/lib/ext.
   * Execute:
   %JAVA_HOME%\bin\keytool -genkey -alias tomcat 
 -keyalg RSA 
 (Windows)
   $JAVA_HOME/bin/keytool -genkey -alias tomcat 
 -keyalg RSA 
 (Unix)
 with a password value of changeit for both the 
 certificate and
 the keystore itself.
 
   By default, DNS lookups are enabled when a web 
 application calls
   request.getRemoteHost().  This can have an adverse impact on
   performance, so you can disable it by setting the
   enableLookups attribute to false.  When DNS lookups are 
 disabled,
   request.getRemoteHost() will return the String 
 version of the
   IP address of the remote client.
  --
 
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on the 
 port specified
   during installation  --
  Connector
 port=8080   maxThreads=150 minSpareThreads=25 
 maxSpareThreads=75
 enableLookups=false redirectPort=8443 
 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /
  !-- Note : To disable connection timeouts, set 
 connectionTimeout value
   to 0 --
 
 
 Mike
 
 Angelov, Rossen wrote:
  Hi,
  Does anybody know about a time out on a servlet request 
 with Tomcat 5?
  
  The problem is that I have a request that takes about 30 
 minutes but the
  browser keeps waiting for the response forever. I tried 
 different browsers
  but it's the same behavior.
  
  I put debug statements in the doPost method and it's 
 finishing correctly.
  The last debug statement is printed out but the browser is 
 still waiting for
  the response.
  
  Ross
  
  This communication is intended solely for the addressee and is
  confidential and not for third party unauthorized distribution.
  
  
  
  
  
 --
 --
  
  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.322 / Virus Database: 266.11.17 - Release 
 Date: 5/25/2005
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005
 
 
 -
 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: servlet request time out ?!

2005-05-26 Thread Angelov, Rossen
That's exactly how I understood it too. The request will be dropped if after
certain number of milliseconds the request's URI hasn't been received.

In my case the URI comes directly with the request and based on my log I can
see the request is being processed but there is no response after the doPost
method is finished.

I can still give it try with connectionTimeout=0, but don't expect it to
help.

Ross

-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 3:09 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: servlet request time out ?!



I haven't tested this myself, so I'm only going on what the docs say (5.5): 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html 

If I've understood correctly, this doc seems to say that the
connectionTimeout param doesn't have the effect Angelov is looking for - it
sets the max time between a connection (socket) being opened by the client,
and the client sending a request url to TC.

 -Original Message-
 From: Mike Baliel [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 19:49
 To: Tomcat Users List
 Subject: Re: servlet request time out ?!
 
 
 Hi Angelov,
 
   I am new to Tomcat (Just started using Tomcat5.0 
 yesterday), but the 
 problem you mentioned sounds like a typical connnection timout.
 
 Have you tried to setting the connectionTimeout value to 0 in the 
 server.xml?
 
 Here is to location in server.xml.  Where there is currently 
 a value of 
 [connectionTimeout=2] change to [connectionTimeout=0].
 
 
 
   Service name=Catalina
 
  !-- A Connector represents an endpoint by which requests are 
 received
   and responses are returned.  Each Connector passes 
 requests on 
 to the
   associated Container (normally an Engine) for processing.
 
   By default, a non-SSL HTTP/1.1 Connector is established on 
 port 8080.
   You can also enable an SSL HTTP/1.1 Connector on 
 port 8443 by
   following the instructions below and uncommenting 
 the second 
 Connector
   entry.  SSL support requires the following steps 
 (see the SSL 
 Config
   HOWTO in the Tomcat 5 documentation bundle for more detailed
   instructions):
   * If your JDK version 1.3 or prior, download and 
 install JSSE 
 1.0.2 or
 later, and put the JAR files into 
 $JAVA_HOME/jre/lib/ext.
   * Execute:
   %JAVA_HOME%\bin\keytool -genkey -alias tomcat 
 -keyalg RSA 
 (Windows)
   $JAVA_HOME/bin/keytool -genkey -alias tomcat 
 -keyalg RSA 
 (Unix)
 with a password value of changeit for both the 
 certificate and
 the keystore itself.
 
   By default, DNS lookups are enabled when a web 
 application calls
   request.getRemoteHost().  This can have an adverse impact on
   performance, so you can disable it by setting the
   enableLookups attribute to false.  When DNS lookups are 
 disabled,
   request.getRemoteHost() will return the String 
 version of the
   IP address of the remote client.
  --
 
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on the 
 port specified
   during installation  --
  Connector
 port=8080   maxThreads=150 minSpareThreads=25 
 maxSpareThreads=75
 enableLookups=false redirectPort=8443 
 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /
  !-- Note : To disable connection timeouts, set 
 connectionTimeout value
   to 0 --
 
 
 Mike
 
 Angelov, Rossen wrote:
  Hi,
  Does anybody know about a time out on a servlet request 
 with Tomcat 5?
  
  The problem is that I have a request that takes about 30 
 minutes but the
  browser keeps waiting for the response forever. I tried 
 different browsers
  but it's the same behavior.
  
  I put debug statements in the doPost method and it's 
 finishing correctly.
  The last debug statement is printed out but the browser is 
 still waiting for
  the response.
  
  Ross
  
  This communication is intended solely for the addressee and is
  confidential and not for third party unauthorized distribution.
  
  
  
  
  
 --
 --
  
  No virus found in this incoming message.
  Checked by AVG Anti-Virus.
  Version: 7.0.322 / Virus Database: 266.11.17 - Release 
 Date: 5/25/2005
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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


This communication is 

RE: servlet request time out ?!

2005-05-26 Thread Steve Kirk
Sorry Ross, got yr name wrong :)

Would be interested to know how to do it though, if you find out could you
please post, thanks.

 -Original Message-
 From: Angelov, Rossen [mailto:[EMAIL PROTECTED] 
 Sent: Thursday 26 May 2005 21:20
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: servlet request time out ?!
 
 
 That's exactly how I understood it too. The request will be 
 dropped if after
 certain number of milliseconds the request's URI hasn't been received.
 
 In my case the URI comes directly with the request and based 
 on my log I can
 see the request is being processed but there is no response 
 after the doPost
 method is finished.
 
 I can still give it try with connectionTimeout=0, but don't 
 expect it to
 help.
 
 Ross
 
 -Original Message-
 From: Steve Kirk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 26, 2005 3:09 PM
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: servlet request time out ?!
 
 
 
 I haven't tested this myself, so I'm only going on what the 
 docs say (5.5): 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html 
 
 If I've understood correctly, this doc seems to say that the
 connectionTimeout param doesn't have the effect Angelov is 
 looking for - it
 sets the max time between a connection (socket) being opened 
 by the client,
 and the client sending a request url to TC.
 
  -Original Message-
  From: Mike Baliel [mailto:[EMAIL PROTECTED] 
  Sent: Thursday 26 May 2005 19:49
  To: Tomcat Users List
  Subject: Re: servlet request time out ?!
  
  
  Hi Angelov,
  
  I am new to Tomcat (Just started using Tomcat5.0 
  yesterday), but the 
  problem you mentioned sounds like a typical connnection timout.
  
  Have you tried to setting the connectionTimeout value to 0 in the 
  server.xml?
  
  Here is to location in server.xml.  Where there is currently 
  a value of 
  [connectionTimeout=2] change to [connectionTimeout=0].
  
  
  
Service name=Catalina
  
   !-- A Connector represents an endpoint by which 
 requests are 
  received
and responses are returned.  Each Connector passes 
  requests on 
  to the
associated Container (normally an Engine) for 
 processing.
  
By default, a non-SSL HTTP/1.1 Connector is 
 established on 
  port 8080.
You can also enable an SSL HTTP/1.1 Connector on 
  port 8443 by
following the instructions below and uncommenting 
  the second 
  Connector
entry.  SSL support requires the following steps 
  (see the SSL 
  Config
HOWTO in the Tomcat 5 documentation bundle for 
 more detailed
instructions):
* If your JDK version 1.3 or prior, download and 
  install JSSE 
  1.0.2 or
  later, and put the JAR files into 
  $JAVA_HOME/jre/lib/ext.
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat 
  -keyalg RSA 
  (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat 
  -keyalg RSA 
  (Unix)
  with a password value of changeit for both the 
  certificate and
  the keystore itself.
  
By default, DNS lookups are enabled when a web 
  application calls
request.getRemoteHost().  This can have an 
 adverse impact on
performance, so you can disable it by setting the
enableLookups attribute to false.  When DNS 
 lookups are 
  disabled,
request.getRemoteHost() will return the String 
  version of the
IP address of the remote client.
   --
  
   !-- Define a non-SSL Coyote HTTP/1.1 Connector on the 
  port specified
during installation  --
   Connector
  port=8080   maxThreads=150 minSpareThreads=25 
  maxSpareThreads=75
  enableLookups=false redirectPort=8443 
  acceptCount=100
  debug=0 connectionTimeout=2
  disableUploadTimeout=true /
   !-- Note : To disable connection timeouts, set 
  connectionTimeout value
to 0 --
  
  
  Mike
  
  Angelov, Rossen wrote:
   Hi,
   Does anybody know about a time out on a servlet request 
  with Tomcat 5?
   
   The problem is that I have a request that takes about 30 
  minutes but the
   browser keeps waiting for the response forever. I tried 
  different browsers
   but it's the same behavior.
   
   I put debug statements in the doPost method and it's 
  finishing correctly.
   The last debug statement is printed out but the browser is 
  still waiting for
   the response.
   
   Ross
   
   This communication is intended solely for the addressee and is
   confidential and not for third party unauthorized distribution.
   
   
   
   
   
  --
  --
   
   No virus found in this incoming message.
   Checked by AVG Anti-Virus.
   Version: 7.0.322 / Virus Database: 266.11.17 - Release 
  Date: 5/25/2005
  
  
  -- 
  

RE: jk 1.2.14 connector connection problem

2005-05-26 Thread Derrick Koes

Nope, no dice. 

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 4:06 PM
To: 'Tomcat Users List'
Subject: RE: jk 1.2.14 connector connection problem

Try the simpliest configuration in workers.properties

# Define 1 real worker using ajp13
worker.list=worker1,status
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300

worker.status.type=status



-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED]
Sent: May 26, 2005 3:59 PM
To: Tomcat Users List
Subject: RE: jk 1.2.14 connector connection problem



After verifying with Mladen that the setup was correct, the problem is still
exhibited. 

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 2:39 PM
To: Tomcat Users List
Subject: Re: jk 1.2.14 connector connection problem

Derrick Koes wrote:
 I've run with this configuration elsewhere without error.  I'm not 
 certain what the issue is.  I have this same problem without using the 
 loadbalancer worker.  I can't even get to jkstatus.  Any help is 
 greatly appreciated.

The problem is with the installation.
You probably do not have /jakarta virtual directory set up correctly.

Regards,
Mladen.

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





!DSPAM:42962a91309751699410697!



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



Can not get Tomcat 5.5.x (specifically 5.5.9) to recompile modified jsp

2005-05-26 Thread Tom Autera
Hello,

When I modify an existing jsp, Tomcat 5.5.9 does not recompile and serve
the jsp.  I have been messing around with the following options, but
nothing seems to work.  I have to bounce Tomcat to get the refresh.

servlet
servlet-namejsp/servlet-name
 
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namecheckInterval/param-name
param-value4/param-value
/init-param
init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
init-param
param-namemodificationTestInterval/param-name
param-value0/param-value
/init-param
init-param
param-namekeepgenerated/param-name
param-valuefalse/param-value
/init-param
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


Tom Autera
Yamaha Motor, Cypress
(714) 761-6146


Re: servlet request time out ?!

2005-05-26 Thread Mike Baliel

Hi Angelov,

	I had a similar problem a few years back using websphere 4.0 and IBM's 
HTTP server.  The HTTP server was dropping the connection with the 
servlet container before the unit of work had finished.  Setting the 
HTTP server's connection timeout to infinite resolved the issue.


Not sure if it will work here... but it is worth a try..



Angelov, Rossen wrote:

That's exactly how I understood it too. The request will be dropped if after
certain number of milliseconds the request's URI hasn't been received.

In my case the URI comes directly with the request and based on my log I can
see the request is being processed but there is no response after the doPost
method is finished.

I can still give it try with connectionTimeout=0, but don't expect it to
help.

Ross

-Original Message-
From: Steve Kirk [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 3:09 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: servlet request time out ?!



I haven't tested this myself, so I'm only going on what the docs say (5.5): 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html 


If I've understood correctly, this doc seems to say that the
connectionTimeout param doesn't have the effect Angelov is looking for - it
sets the max time between a connection (socket) being opened by the client,
and the client sending a request url to TC.



-Original Message-
From: Mike Baliel [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 May 2005 19:49

To: Tomcat Users List
Subject: Re: servlet request time out ?!


Hi Angelov,

	I am new to Tomcat (Just started using Tomcat5.0 
yesterday), but the 
problem you mentioned sounds like a typical connnection timout.


Have you tried to setting the connectionTimeout value to 0 in the 
server.xml?


Here is to location in server.xml.  Where there is currently 
a value of 
[connectionTimeout=2] change to [connectionTimeout=0].




 Service name=Catalina

!-- A Connector represents an endpoint by which requests are 
received
 and responses are returned.  Each Connector passes 
requests on 
to the

 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on 
port 8080.
 You can also enable an SSL HTTP/1.1 Connector on 
port 8443 by
 following the instructions below and uncommenting 
the second 
Connector
 entry.  SSL support requires the following steps 
(see the SSL 
Config

 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and 
install JSSE 
1.0.2 or
   later, and put the JAR files into 
$JAVA_HOME/jre/lib/ext.

 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat 
-keyalg RSA 
(Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat 
-keyalg RSA 
(Unix)
   with a password value of changeit for both the 
certificate and

   the keystore itself.

 By default, DNS lookups are enabled when a web 
application calls

 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are 
disabled,
 request.getRemoteHost() will return the String 
version of the

 IP address of the remote client.
--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the 
port specified

 during installation  --
Connector
port=8080   maxThreads=150 minSpareThreads=25 
maxSpareThreads=75
   enableLookups=false redirectPort=8443 
acceptCount=100

   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set 
connectionTimeout value

 to 0 --


Mike

Angelov, Rossen wrote:


Hi,
Does anybody know about a time out on a servlet request 


with Tomcat 5?

The problem is that I have a request that takes about 30 


minutes but the

browser keeps waiting for the response forever. I tried 


different browsers


but it's the same behavior.

I put debug statements in the doPost method and it's 


finishing correctly.

The last debug statement is printed out but the browser is 


still waiting for


the response.

Ross

This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution.







--
--


No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release 


Date: 5/25/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.17 - Release Date: 5/25/2005


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

Re: tomcat on the SGI (problem solved)

2005-05-26 Thread Murad Nayal


Hi

just wanted to say I solved the problem by downloading the compat
package. turns out this tomcat version requires JRE 1.5

thanks

Murad Nayal wrote:
 
 Hi,
 
 has anybody been able to get TOMCAT 5.9 running on an SGI workstation: I
 have installed the binary distribution 5.9 but can't get it to start.
 
 [4]/local/jakarta-tomcat-5.5.9 65# java -version
 java version 1.4.1_06
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_06)
 Java HotSpot(TM) Client VM (build 1.4.1_06, mixed mode)
 
 [4]/local/jakarta-tomcat-5.5.9/bin 67# startup.sh
 Using CATALINA_BASE:   /local/jakarta-tomcat-5.5.9
 Using CATALINA_HOME:   /local/jakarta-tomcat-5.5.9
 Using CATALINA_TMPDIR: /tmp
 Using JRE_HOME:   /usr/java2
 
 and then nothing happens
 
 ps -el | grep tomcat
 returns nothing
 
 not sure what to do!!
 
 thanks a million
 Murad Nayal


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



Possible to to log into db?

2005-05-26 Thread David
Hallo,

 

Anybody knows if how I can configure tomcat to store the access log into a
rational database? Is there an existing tutorial?

 

Regards

 

David



RE: tomcat on the SGI

2005-05-26 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Murad Nayal
 Subject: tomcat on the SGI
 
 [4]/local/jakarta-tomcat-5.5.9 65# java -version
 java version 1.4.1_06
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_06)
 Java HotSpot(TM) Client VM (build 1.4.1_06, mixed mode)

Did you install the compat package which is required to run with a 1.4
JRE?

Do you have port conflicts?

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



Sticky Session, Round-Robin with BalancerFilter?

2005-05-26 Thread Scott Dudley


Is it possible to perform JK-like sticky session, round robin load 
balancing using a Tomcat instance as the front-end vs Apache, IIS, etc?


This may seem an odd request, but I've been asked to port an application 
from Resin to Tomcat.  They are using an instance of resin in this very 
manner (as a front-end) and don't want to introduce another web server 
into the mix.  They simply want to replace resin with tomcat.  I 
demonstrated a simple load-balance arrangement by running the 
distributed balancer app on one instance to distribute requests to 
others.  What I didn't realize is that the resin filter supported the 
sticky session, round robin stuff.


Recap: any way to do this using a Tomcat instance as the front-end?

Many thanks.

--

Regards,

Scott Dudley


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



Re: html:errors/ blank page on invalid form

2005-05-26 Thread Gurumoorthy
Andy,
We had this issue before ... can you do email me the
struts-config.xml ?
i think the PATH in forward name is not correct
action 
forward name=SUCCCESS path=/index.jsp
forward name=FAIL path=/login.jsp
/action

- Original Message -
From: Andy [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, May 26, 2005 5:00 PM
Subject: RE: html:errors/ blank page on invalid form



 Guru and Nikola,

 Thanks for the suggestions, having looked at this again, I think this is a
 Struts problem however, so I've posted to struts-users.

 Thanks anyway,

 Andy.

 -Original Message-
 From: Gurumoorthy [mailto:[EMAIL PROTECTED]
 Sent: 26 May 2005 08:37
 To: Tomcat Users List
 Subject: Re: html:errors/ blank page on invalid form
 
 
 hello
 html:form action=/SubmitLogonForm.do is wrong
 html:form action=/SubmitLogonForm
 
 Regards
 Guru
 
 - Original Message -
 From: Nikola Milutinovic [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Thursday, May 26, 2005 6:04 AM
 Subject: Re: html:errors/ blank page on invalid form
 
 
  Andy wrote:
 
  Hi All,
  
  I'm unable to output any errors using html:errors/ tag, in Tomcat
  5.5.7 I've tried numerous configurations and have now ran out of
 patience.
  As I haven't been using Struts for more than three days I hope
somebody
  more experienced can point help me out.
  
  When I select Submit, entering data into my form fields so the form is
  parsed as valid, the forward works correctly. When I leave the fields
  empty, so the form is parsed as invalid, I just get an empty page
back -
  which must be generated by Struts as it doesn't match any HTML I have.
  
  
 
  Check out the logs, you could be running into an exception. Also, set
  buffer size of 20kb on all your pages, while you're testing. Empty
  output can also be caused by an exception in the page itself, and
buffer
  being already sent.
 
  Here is what I have in various files -
  
 
 --
 -
 -
  
  
  logon.jsp -
  
  %@ page contentType=text/html;charset=UTF-8 language=java %
  %@ taglib uri=/tags/struts-bean prefix=bean %
  %@ taglib uri=/tags/struts-html prefix=html %
  html
  head
  titlebean:message key=logon.title//title
  /head
  body
  html:errors/
  html:form action=/SubmitLogonForm.do
  table
  tr
  tdUsername/td
  tdhtml:text property=username//td
  /tr
  tr
  tdPassword/td
  tdhtml:text property=password//td
  /tr
  tr
  td
  html:submit/
  html:cancel/
  /td
  td/td
  /tr
  /table
  /html:form
  
  /body
  
  
 
  Looks fine, except for the buffer page directive.
 
  In LogonAction.java -
  
  
  public ActionForward execute(ActionMapping mapping, ActionForm
form,
   HttpServletRequest request,
  HttpServletResponse response)
  throws Exception {
  
  if (isCancelled(request)) {
  log.debug(cancel pressed);
  return mapping.findForward(Constants.FAILURE);
  }
  
  
 
  Why would you consider Cancel a failure? Not that it will not work,
 but...
 
  LogonForm logonForm = (LogonForm)form;
  log.debug(username +logonForm.getUsername());
  log.debug(password +logonForm.getPassword());
  
  return mapping.findForward(Constants.SUCCESS);
  }
  
  
 
  You're not checking the login, but that's fine for a test.
 
  In LogonForm.java (I have getters/setters for HTML fields, and a reset
  method,
  not shown) -
  
  public ActionErrors validate(ActionMapping actionMapping,
  HttpServletRequest httpServletRequest) {
  
  log.debug(validate);
  ActionErrors errors = new ActionErrors();
  
  if
  (FormUtils.isNullOrEmpty(httpServletRequest.getParameter(username)))
{
  log.debug(logon.form.username.invalid);
  errors.add(ActionErrors.GLOBAL_MESSAGE,new
  ActionMessage(logon.form.username.invalid));
  }
  
  
 
  You don't need to use GLOBAL_MESSAGE, that is wrong, I think. And use
  errors, not messages. My validation would read:
 
  errors.add( username, new ActionError(
logon.form.username.invalid));
 
  Nix.
 
  -
  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: servlet request time out ?!

2005-05-26 Thread Angelov, Rossen
Well, I know only two attributes in Tomcat that configure connection related
timeouts: connectionTimeout and disableUploadTimeout.

I already tried setting connectionTimeout=0 but it didn't work. Now I'll try
setting disableUploadTimeout=true. I didn't have it before in my server.xml
and by default it's set to false, so hopefully this works.

Any suggestions are welcome if anybody else knows other timeouts for the
request.

Thanks,
Ross

-Original Message-
From: Mike Baliel [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 3:37 PM
To: Tomcat Users List
Subject: Re: servlet request time out ?!


Hi Angelov,

I had a similar problem a few years back using websphere 4.0 and
IBM's 
HTTP server.  The HTTP server was dropping the connection with the 
servlet container before the unit of work had finished.  Setting the 
HTTP server's connection timeout to infinite resolved the issue.

Not sure if it will work here... but it is worth a try..



Angelov, Rossen wrote:
 That's exactly how I understood it too. The request will be dropped if
after
 certain number of milliseconds the request's URI hasn't been received.
 
 In my case the URI comes directly with the request and based on my log I
can
 see the request is being processed but there is no response after the
doPost
 method is finished.
 
 I can still give it try with connectionTimeout=0, but don't expect it to
 help.
 
 Ross
 
 -Original Message-
 From: Steve Kirk [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 26, 2005 3:09 PM
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: servlet request time out ?!
 
 
 
 I haven't tested this myself, so I'm only going on what the docs say
(5.5): 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html 
 
 If I've understood correctly, this doc seems to say that the
 connectionTimeout param doesn't have the effect Angelov is looking for -
it
 sets the max time between a connection (socket) being opened by the
client,
 and the client sending a request url to TC.
 
 
-Original Message-
From: Mike Baliel [mailto:[EMAIL PROTECTED] 
Sent: Thursday 26 May 2005 19:49
To: Tomcat Users List
Subject: Re: servlet request time out ?!


Hi Angelov,

  I am new to Tomcat (Just started using Tomcat5.0 
yesterday), but the 
problem you mentioned sounds like a typical connnection timout.

Have you tried to setting the connectionTimeout value to 0 in the 
server.xml?

Here is to location in server.xml.  Where there is currently 
a value of 
[connectionTimeout=2] change to [connectionTimeout=0].



  Service name=Catalina

 !-- A Connector represents an endpoint by which requests are 
received
  and responses are returned.  Each Connector passes 
requests on 
to the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on 
port 8080.
  You can also enable an SSL HTTP/1.1 Connector on 
port 8443 by
  following the instructions below and uncommenting 
the second 
Connector
  entry.  SSL support requires the following steps 
(see the SSL 
Config
  HOWTO in the Tomcat 5 documentation bundle for more detailed
  instructions):
  * If your JDK version 1.3 or prior, download and 
install JSSE 
1.0.2 or
later, and put the JAR files into 
$JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat 
-keyalg RSA 
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat 
-keyalg RSA 
(Unix)
with a password value of changeit for both the 
certificate and
the keystore itself.

  By default, DNS lookups are enabled when a web 
application calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are 
disabled,
  request.getRemoteHost() will return the String 
version of the
  IP address of the remote client.
 --

 !-- Define a non-SSL Coyote HTTP/1.1 Connector on the 
port specified
  during installation  --
 Connector
port=8080   maxThreads=150 minSpareThreads=25 
maxSpareThreads=75
enableLookups=false redirectPort=8443 
acceptCount=100
debug=0 connectionTimeout=2
disableUploadTimeout=true /
 !-- Note : To disable connection timeouts, set 
connectionTimeout value
  to 0 --


Mike

Angelov, Rossen wrote:

Hi,
Does anybody know about a time out on a servlet request 

with Tomcat 5?

The problem is that I have a request that takes about 30 

minutes but the

browser keeps waiting for the response forever. I tried 

different browsers

but it's the same behavior.

I put debug statements in the doPost method and it's 

finishing correctly.

The last debug statement is printed out but the browser is 

still waiting 

OT: Software release process

2005-05-26 Thread Nathan Smith
Hi all,
 
I was wondering if someone could give me some insight into how their release
process works.
 
We are a small company with three Java developers working on a web based
application. Our release or even the development process needs to change to
make doing full or patch releases a lot easier and trouble free, with 100%
certainty that the code we are releasing works, no new bugs have been
introduced, and the correct versions of the files are in the release.
 
We currently have a system called CallUs for notifying us of bugs, problems,
and enhancements. Each Call has unique number much like the way Bugzilla
works. We can raise calls internally or our clients can by accessing our
site and logging in.
 
Each developer is allocated a call and development takes place. We have to
decide based on priority which calls are going into the next release. We are
at the moment having to do releases each week to keep one of our clients up
to date with bug fixes.
 
Once development is finished on the call the files are committed to CVS
containing a message something like this, CALL_1000 Changes made. The call
is then assigned to our only QA tester. At different times of the day a
build is carried out using the files in CVS and then deployed to the Web
Server containing Tomcat. The QA system needs to be accessed externally as
the QA person lives in another part of the country.
 
At the end of the week when all calls have been finished a release build is
carried out using files from CVS repository. The Version and Build numbers
incremented. Might get tested on a Demo system before notifying clients of
release. All appropriate documentation is prepared and files are put on the
Web Server ready for download.
 
Another step that we going to try and do is only checkout those files that
are associated with each call. This can be done as their is a script that
runs in the background on the CVS Server that finds all files with a message
containing the same call number. Once found those files are all tagged with
that call number. If using the above message the files would then be tagged
with CALL_1000. This has a problem, in that files maybe checked out in the
wrong order overwriting changes that should have been merged into the file.
 
A problem arises when a call is QA rejected and that call is not finished by
the time a release has to be done. Should the files be backed out of the
repository?
 
What steps can we take to be able to carry out a Release build from the
repository any time and be 100% certain that it will build and work?
 
Our unit testing or JUnit testing is pretty much nill. A lot of our work
surrounds accessing a database, we need to able to easily write unit tests
for to make sure we getting the correct data back. The application is also
web based, which poses another problem.
 
I would really be interested in how other developers carry out there release
process and whether they have addressed any of these problems. Any
information would be greatly appreciated and sorry about the length.
 
Cheers.
 
 

Nathan Smith 
Software Developer 
LabPro 2000 Limited 
Phone: +64 4 586 6840
Facsimile: +64 4 586 6841
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 http://www.labpro2000.com/ www.labpro2000.com 

Level 6, Riverside Tower on Daly, 15 Daly Street 
Lower Hutt, New Zealand 
 


An unexpected exception has been detected in native code outside the VM.

2005-05-26 Thread David B Sullivan
We're running Tomcat 4.1 on Sun Solaris 9, connecting to another Solaris 9 
box running Oracle 9.2.0.1 and Java 1.4.2_05.
When Tomcat tries to connect to the DataBase, it crashes, with the log 
file shown below. We can point Tomcat at another DataBase, same versions 
of everything, and it works fine. We can point to this DataBase from 
another server, with everything being the same and that works too. Not 
being knowledgeable of Tomcat or reading the traceback information, I 
really don't know where to start looking 
We're locked into versions because of the Application, so I really need to 
get this Version working.
Can anybody tell me what this log file is saying?? 
Any info would be much appreciated.
Thanks,
 cat hs_err_pid2578.log

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xEF8EDD88
Function=[Unknown. Nearest: vcharSizedNormalizeUTF+0x460]
Library=/usr/local/matrix/1052/RMI/lib/solaris4/libvgalaxy-unicode.so.7

Current Java thread:
at com.matrixone.jni.MatrixKernel.dbStartup(Native Method)
at com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:47)
- locked 0xf5f3ffe0 (a java.lang.Class)
at com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:35)
at 
com.matrixone.jdl.rmi.bosErrorObjectImpl.init(bosErrorObjectImpl.java:10)
at 
com.matrixone.jdl.rmi.bosInterfaceImpl.init(bosInterfaceImpl.java:50)
at 
com.matrixone.jdl.MatrixJNISession.getInterface(MatrixJNISession.java:43)
at 
com.matrixone.jdl.MatrixRMISession.getInterface(MatrixRMISession.java:74)
at matrix.db.Context.getInterface(Context.java:1191)
at matrix.db.Context.getContext(Context.java:1241)
at matrix.db.Context.printTrace(Context.java:2684)
at com.matrixone.servlet.AuditServlet.init(AuditServlet.java:63)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888)
- locked 0xf22a8010 (a org.apache.catalina.core.StandardWrapper)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)
- locked 0xf22a8010 (a org.apache.catalina.core.StandardWrapper)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3363)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3586)
- locked 0xf22dfa38 (a org.apache.catalina.core.StandardContext)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:774)
- locked 0xf200bc28 (a java.util.HashMap)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:260)
- locked 0xf200bd40 (a 
org.apache.catalina.core.StandardHostDeployer)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:741)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:445)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:353)
at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)
- locked 0xf2009448 (a org.apache.catalina.core.StandardHost)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
- locked 0xf2009448 (a org.apache.catalina.core.StandardHost)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
- locked 0xf1fe6e70 (a org.apache.catalina.core.StandardEngine)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
- locked 0xf1fe6e70 (a org.apache.catalina.core.StandardEngine)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
- locked 0xf201a2c8 (a [Lorg.apache.catalina.Service;)
at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

Dynamic libraries:
0x1 /usr/local/j2sdk1.4.2_06/bin/java
0xff37  

Anybody using Godaddy ssl certs?

2005-05-26 Thread Mark Winslow
I'm having problems getting them to work.  I'm
wondering if anybody has had either problems or
successes with them.  The self-generated keys from
keytool work, but I get a message that the browsers
don't have common encryption algorithms once I install
the tomcat alias cert from godaddy.com.

Thanks.




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

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



Anybody using Godaddy ssl certs?

2005-05-26 Thread Mark Winslow
I'm having problems getting them to work.  I'm
wondering if anybody has had either problems or
successes with them.  The self-generated keys from
keytool work, but I get a message that the browsers
don't have common encryption algorithms once I install
the tomcat alias cert from godaddy.com.

Thanks.



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

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



Re: Anybody using Godaddy ssl certs?

2005-05-26 Thread Scott Reynolds
I installed an SSL Cert from GoDaddy a few weeks ago and haven't had any
trouble with Tomcat 4.1.

Scott

--- Mark Winslow [EMAIL PROTECTED] wrote:
 I'm having problems getting them to work.  I'm
 wondering if anybody has had either problems or
 successes with them.  The self-generated keys from
 keytool work, but I get a message that the browsers
 don't have common encryption algorithms once I install
 the tomcat alias cert from godaddy.com.
 
 Thanks.
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new Resources site
 http://smallbusiness.yahoo.com/resources/
 
 -
 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]



Only one ssl domain per server instance?

2005-05-26 Thread Mark Winslow
I'm wondering if there's a way to get more than one
ssl domain per server instance.  The ssl Connector tag
seems to be in the top level in server.xml.  Is there
a way to put it with a particular host or context or
have more than one instance per server?  Java's ssl
library seems to accept only one tomcat alias per
keystore.  Is there a way around this?

Thanks.




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

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



Re: Anybody using Godaddy ssl certs?

2005-05-26 Thread Mark Winslow
I'm wondering.  Did you have to match all the fields
like Organization Name and Organizational unit
exactly to what Godaddy uses?  I just put the common
name as my domain name, but noticed after the cert was
issued some of the other fields didn't match.

Thanks.

--- Scott Reynolds [EMAIL PROTECTED] wrote:
 I installed an SSL Cert from GoDaddy a few weeks ago
 and haven't had any
 trouble with Tomcat 4.1.
 
 Scott
 
 --- Mark Winslow [EMAIL PROTECTED] wrote:
  I'm having problems getting them to work.  I'm
  wondering if anybody has had either problems or
  successes with them.  The self-generated keys from
  keytool work, but I get a message that the
 browsers
  don't have common encryption algorithms once I
 install
  the tomcat alias cert from godaddy.com.
  
  Thanks.
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Small Business - Try our new Resources site
  http://smallbusiness.yahoo.com/resources/
  
 

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



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

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



Re: Only one ssl domain per server instance?

2005-05-26 Thread Hassan Schroeder

Mark Winslow wrote:

I'm wondering if there's a way to get more than one
ssl domain per server instance.  The ssl Connector tag
seems to be in the top level in server.xml. 


You can define multiple Connectors, each with its own keystore.

--
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: An unexpected exception has been detected in native code outside the VM.

2005-05-26 Thread Will Hartung
 From: David B Sullivan [EMAIL PROTECTED]
 Sent: Thursday, May 26, 2005 3:42 PM

 We're running Tomcat 4.1 on Sun Solaris 9, connecting to another Solaris 9
 box running Oracle 9.2.0.1 and Java 1.4.2_05.
 When Tomcat tries to connect to the DataBase, it crashes, with the log
 file shown below. We can point Tomcat at another DataBase, same versions
 of everything, and it works fine. We can point to this DataBase from
 another server, with everything being the same and that works too. Not
 being knowledgeable of Tomcat or reading the traceback information, I
 really don't know where to start looking
 We're locked into versions because of the Application, so I really need to
 get this Version working.
 Can anybody tell me what this log file is saying??
 Any info would be much appreciated.
 Thanks,
  cat hs_err_pid2578.log

 An unexpected exception has been detected in native code outside the VM.
 Unexpected Signal : 11 occurred at PC=0xEF8EDD88
 Function=[Unknown. Nearest: vcharSizedNormalizeUTF+0x460]
 Library=/usr/local/matrix/1052/RMI/lib/solaris4/libvgalaxy-unicode.so.7

 Current Java thread:
 at com.matrixone.jni.MatrixKernel.dbStartup(Native Method)
 at com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:47)

Looks like what I'm assuming are your JDBC drivers are exploding with a
SIGFAULT.

And it looks like its imploding with something to do with UNICODE, so
perhaps you have some kind of strange Locale issue.

Is that matrixone stuff actually your JDBC driver? Any reason you can't use
the Oracle thin (JDBC Type 4) drivers?

This looks to me to be a problem with MatrixOne, and I'd give them a call.
Tomcat is but a victim.

Regards,

Will Hartung
([EMAIL PROTECTED])


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



Re: Anybody using Godaddy ssl certs?

2005-05-26 Thread Mark Winslow
OK, I did a rekey and it now works.  I did match
everything up like below, but I'm not sure if it was
that, rekeying, or something else like errors during
downloading previously.

Thanks!

--- Mark Winslow [EMAIL PROTECTED] wrote:
 I'm wondering.  Did you have to match all the fields
 like Organization Name and Organizational unit
 exactly to what Godaddy uses?  I just put the common
 name as my domain name, but noticed after the cert
 was
 issued some of the other fields didn't match.
 
 Thanks.
 
 --- Scott Reynolds [EMAIL PROTECTED] wrote:
  I installed an SSL Cert from GoDaddy a few weeks
 ago
  and haven't had any
  trouble with Tomcat 4.1.
  
  Scott
  
  --- Mark Winslow [EMAIL PROTECTED] wrote:
   I'm having problems getting them to work.  I'm
   wondering if anybody has had either problems or
   successes with them.  The self-generated keys
 from
   keytool work, but I get a message that the
  browsers
   don't have common encryption algorithms once I
  install
   the tomcat alias cert from godaddy.com.
   
   Thanks.
   
   
 
   __ 
   Do you Yahoo!? 
   Yahoo! Small Business - Try our new Resources
 site
   http://smallbusiness.yahoo.com/resources/
   
  
 

-
   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]
  
  
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new Resources site
 http://smallbusiness.yahoo.com/resources/
 

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



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

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



Re: OT: Software release process

2005-05-26 Thread Patrick Thomas
On 5/26/05, Nathan Smith [EMAIL PROTECTED] wrote:
 ... trouble free, with 100%
 certainty that the code we are releasing works, no new bugs have been
 introduced, and  ...

Wow... if you figure out how to do that, make sure you write a book.
I'll be wanting a copy. ;)

~PST

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



Re: Anybody using Godaddy ssl certs?

2005-05-26 Thread Scott Reynolds
I just set the common name and organization name to the name of my domain. 
When I examine the certificate details, that's all that's in there as far as my
info is concerned.  Everything else says something about Starfield
Technologies, Inc.

Scott

--- Mark Winslow [EMAIL PROTECTED] wrote:
 I'm wondering.  Did you have to match all the fields
 like Organization Name and Organizational unit
 exactly to what Godaddy uses?  I just put the common
 name as my domain name, but noticed after the cert was
 issued some of the other fields didn't match.
 
 Thanks.
 
 --- Scott Reynolds [EMAIL PROTECTED] wrote:
  I installed an SSL Cert from GoDaddy a few weeks ago
  and haven't had any
  trouble with Tomcat 4.1.
  
  Scott
  
  --- Mark Winslow [EMAIL PROTECTED] wrote:
   I'm having problems getting them to work.  I'm
   wondering if anybody has had either problems or
   successes with them.  The self-generated keys from
   keytool work, but I get a message that the
  browsers
   don't have common encryption algorithms once I
  install
   the tomcat alias cert from godaddy.com.
   
   Thanks.
   
   
 
   __ 
   Do you Yahoo!? 
   Yahoo! Small Business - Try our new Resources site
   http://smallbusiness.yahoo.com/resources/
   
  
 
 -
   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]
  
  
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new Resources site
 http://smallbusiness.yahoo.com/resources/
 
 -
 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: Are we required to move to Tomcat 5.5 in order to move to JDK 1.5

2005-05-26 Thread Mark Leone
Sounds like the consensus is that Tomcat 5.0.x will work with jdk 1.5. 
FWIW I found the following two problems trying to run code built for jre 
1.4 in a 1.5 jvm.


1. A couple DOM classes (don't remember which ones, but you'll know it 
if you run in to them) had some methods added in jdk 1.5. If you try to 
load an implementation class for one of these that was developed in jdk 
1.4, you'll get missing method implementation errors. To resolve, you 
can add empty method specifications for the classes that require them, 
or upgrade to an XML parser that was written for jdk 1.5.


2. JDK 1.5 uses the symbol enum as a reserved keyword. You'll have to 
change any and all occurrences of this symbol in your code (where it is 
used as a variable name) to something else, e.g. enumer.


There may be other backward compatibility issues, but these are the two 
that I've run into.


-Mark

Tim Diggins wrote:

And, oops, I'm sorry for spreading the original FUD - Following this 
thread, I've just tried again to get everything working on 
tc5.0/jdk1.5 and hey-presto, everything ok - guess I must've had TC 
running on jdk1.4 after all...


But planning to migrate to 5.5 anyway.

thanks everyone

T


Steve Kirk wrote:


Yes sorry, david is correct, I got it backwards.



-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday 26 May 
2005 12:59

To: Tomcat Users List
Subject: Re: Are we required to move to Tomcat 5.5 in order to move 
to JDK 1.5



Small correction -- 5.5 needs the compat package to work on jdk l.4, 
not 5.0 needs it to work on jdk 1.5. I've used TC 5.0  jdk 1.5 
together no problem.


--David

Steve Kirk wrote:


You can run 5.0.28 on jdk1.5 but you need to add a 



compatibility package

which is available from the tc downloads page.  Basically it 



adds 3 jars to


fix issues with xml compatibility with the 1.4 vm.

I haven't done it myself (I upgraded both at once) but 



google some of these


words and you can read all about it.

PS if you do go to 5.5 and have DBCP, be sure to change your 



context.xml to

the new format required by TC5.5.  I spent nearly 3 days 



working that out.






-Original Message-
From: Raverkar, Sachin (Sachin) [mailto:[EMAIL PROTECTED] Sent: 
Thursday 26 May 2005 08:58

To: tomcat-user@jakarta.apache.org
Subject: Are we required to move to Tomcat 5.5 in order to move to 
JDK 1.5



Hi all,
We are currently using Tomcat-5.0.28 and JDK 1.4.2_03.
We need to move onto JDK 1.5. We would build our war file using 
JDK 1.5.
Can we continue to use Tomcat-5.0.28 with  JDK 1.5? Do you see any 
problem? Are there any known issues?

Since Tomcat 5.5 is designed to run on J2SE 5.0 [JDK 1.5] and later,
are we required to move to Tomcat 5.5 in order to move to JDK 1.5?

- Sachin

 





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




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



Re: shared install under Linux

2005-05-26 Thread Mark
Then in that case, I would make the context writable to all
developers, and also make the context reloadable.  By making the
context reloadable, tomcat will reload any classes/jars that are
placed into/or updated in  the context.

A couple tips would be:

1. If you are building classes into the context/WEB-INF directory, do
not perform a clean operation, as this could throw tomcat off.
2. I would recommend building jar files, and then place a copy of the
jar file into the context.




On 5/26/05, Marius Scurtescu [EMAIL PROTECTED] wrote:
 Mark wrote:
  Is this for a development environment ?
 
 Yes, for development.
 
 
 -
 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]



OT: Release procedure experiences

2005-05-26 Thread Nathan Smith
Hi all,
 
should have been a bit more succinct with my request.
 
I would like to know what kind of software Release procedure a lot of you
carry out, and your experiences with that procedure, with respect to a small
company developing commercial software.
 
How do you carry out patch releases?
 
How do you carry out full releases?
 
Do you have a development CVS and release CVS?
 
Or, do you just carry out releases from the development CVS?
 
Do you identify files for each piece of work by a bug id number or call
number?
 
Can the files associated with that id be checked out from CVS? Is that a
good idea for doing patch releases?
 
How would you do unit tests for a web application that relies heavily on a
database and the data in it?
 
Anything else you have experienced that may be helpful to streamline out
release process.
 
Maybe I could reciprocate if anybody has a question for me.
 
 
Cheers.
 

Nathan Smith 
Software Developer 
LabPro 2000 Limited 
Phone: +64 4 586 6840
Facsimile: +64 4 586 6841
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] 
 http://www.labpro2000.com/ www.labpro2000.com 

Level 6, Riverside Tower on Daly, 15 Daly Street 
Lower Hutt, New Zealand 
 


RE: Help with reloading a servlet for log4j logging.

2005-05-26 Thread Subhrajyoti Moitra
It worked

Thanks a lot Mariano!

-Original Message-
From: Mariano [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 12:23 PM
To: 'Tomcat Users List'
Subject: RE: Help with reloading a servlet for log4j logging.

You must use
PropertyConfigurator.configureAndWatch(fileProperties,miliseconds)

By

Mariano

-Mensaje original-
De: Subhrajyoti Moitra [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 26 de mayo de 2005 8:35
Para: tomcat-user@jakarta.apache.org
Asunto: Help with reloading a servlet for log4j logging.


Hi,

 

I am initializing Log4J system using an init servlet, which is loaded on
start-up (servlet name is Log4JInitServlet).

In web.xml I am pointing to the log4j.properties file using the param
tag.

 

 

Problem

Now suppose I change some properties in log4j.properties file. (change
the log level for example).

I want to reload this file with the changed properties and restart log4j
system with these new properties.

 

Question

 

Can I re-load the new properties file (and consequently the log4j
system) by reloading the initservlet (LogJInitServlet)?

Something similar to reloading an entire webcontext using
http://localhost/manager?reload=myLog4JApp. 

I don't want to restart tomcat to restart the logging system.

Can this be done in tomcat?

 

I am using tomcat 4.x version, on win32/linux systems.

 

Thanks a lot in advance,

 

Subhro.

 

 



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



Parsing Log4J log file.

2005-05-26 Thread Subhrajyoti Moitra
Hi,

 

Given :

 

I am using Log4J along with AspectJ for logging.

The Conversion pattern I am using in log4j is as follows. (This is just
an example)

%d{ABSOLUTE} %5p %X{JSESSIONID} %c{1}:%L - %m%n

 

In a Servlet filter I am setting the JSESSIONID in a MDC.

 

So finally my logs are something like this:

 

snip

19:45:00,745  WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting
[com.xx.ac.xxx.connection.CConnectionManager.getActiveSize]

19:45:00,745  WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:66 - Entering
[com.xx.ac.xxx.connection.CConnectionManager.getCacheSize]

19:45:00,745  WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting
[com.xx.ac.xxx.connection.CConnectionManager.getCacheSize]

19:45:00,745  WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting
[com.xx.ac.xxx.connection.CConnectionManager.getConnection]

19:45:00,745  WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:76 - Exiting
[com.xx.ac.xxx.academy.AcademyQry.getNextAcademyToInitialize]

19:45:00,839  WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting
[com.xx.ac.xxx.connection.CConnectionManager.getConnection]

19:45:00,839  WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:76 - Exiting
[com.xx.ac.xxx.academy.Academy.getNextAcademyToInitialize]

19:45:00,839  WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting
[com.xx.ac.xxx.connection.CDataSourceManager.getConnection]

19:45:00,839  WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:59 -
Initializing
[com.xx.ac.xxx.presentation.servlet.event.CForwardResolution.init]

19:45:00,855  WARN 16CB951ED8ADBB1262AC21944AD94AF8 trace:76 - Exiting
[com.xx.ac.xxx.sql.CSqlStatementFactory.createPreparedStatement]

19:45:00,855  WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:66 - Entering
[com.xx.ac.xxx.presentation.servlet.state.CStateManager.put]

19:45:00,855  WARN 5DAD9A3F70E9FE171F41CFF12CFE480B trace:76 - Exiting
[com.xx.ac.xxx.presentation.servlet.state.CStateManager.put]

 

snip

 

 

Each log statement has the session id along with it.

 

 

Problem:

 

I want a log viewer. A graph plotted for each SET of session ids. So the
user will enter some thing like 16CB951ED8ADBB1262AC21944AD94AF8 as
input(to start with). My viewer will parse all the entries in the log
file for the particular sessionid entered by the user. It will then plot
a graph with the names of methods/classes. So basically the idea is to
get a picture of all the method calls that got executed. The viewer need
not process log files in real time. 

So I am looking for some API for parsing Log4J logs. I know of chainsaw.
But I don't know if this can parse existing log files and give some sort
of plot of all the method calls.

 

Possible Solution: 

 

Write a perl script to parse the log files. Feed this data in some graph
plotter. Probably use some cross platform GUI toolkit for some
flamboyancy (wxWindows/Swing). This is required to be running on
Linux/Win32 systems. I am not very accommodating with Swing. But if it
can fix the problem, I will be more than happy.

Alternatively I can use Perl:GD wrapper to generate png images on the
fly and display it on a browser. This will be very good.

Please suggest something on this regard. 

 

 

 

 

 

Thanks a lot in advance.

 

Subhro

 

 

 

 

 

 



Re: An unexpected exception has been detected in native code outside the VM.

2005-05-26 Thread Nikola Milutinovic

David B Sullivan wrote:

We're running Tomcat 4.1 on Sun Solaris 9, connecting to another Solaris 9 
box running Oracle 9.2.0.1 and Java 1.4.2_05.
When Tomcat tries to connect to the DataBase, it crashes, with the log 
file shown below. We can point Tomcat at another DataBase, same versions 
of everything, and it works fine. We can point to this DataBase from 
another server, with everything being the same and that works too. Not 
being knowledgeable of Tomcat or reading the traceback information, I 
really don't know where to start looking 
We're locked into versions because of the Application, so I really need to 
get this Version working.
Can anybody tell me what this log file is saying?? 
Any info would be much appreciated.

Thanks,
cat hs_err_pid2578.log

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xEF8EDD88
Function=[Unknown. Nearest: vcharSizedNormalizeUTF+0x460]
Library=/usr/local/matrix/1052/RMI/lib/solaris4/libvgalaxy-unicode.so.7

Current Java thread:
   at com.matrixone.jni.MatrixKernel.dbStartup(Native Method)
   at com.matrixone.jni.MatrixKernel.getKernel(MatrixKernel.java:47)
 



This sounds like you're using Oracle's JDBC driver that is not Type-4 
(pure Java). It is crashing in one of the external libraries. The 
immediate remedy is to use a pure Java JDBC driver.


Nix.

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